gradle-run
Skill1 starsChanged 40 days agoMITView on GitHub
Use when planning to execute Gradle through `gradle`, `./gradlew`, or a custom `gradlew*` wrapper script, or diagnosing a Gradle build, recovering a workflow's status, compact workflow ledger, repeated failure fingerprint, check, test, lint, warning, or failure even when no new Gradle run is appropriate.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- chrisbanes/skillsedited, first seen Jun 18, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- chrisbanes/skills★ 1.2k79% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- android-benchmark-comparisonSkill
- build-and-verifySkill
- compose-animationsSkill
- compose-component-designSkill
- compose-focus-navigationSkill
- compose-performanceSkill
- compose-state-and-effectsSkill
- compose-ui-testing-patternsSkill
- deliver-specSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grillingSkill
- grounded-writingSkill
- implement-with-subagentsSkill
- kotlin-api-designSkill
- kotlin-architectureSkill
- kotlin-concurrency-and-flowSkill
- kotlin-control-flowSkill
- kotlin-skill-routerSkill
- new-featureSkill
- prototypeSkill
- release-kotlin-librarySkill
- researchSkill
- review-prSkill
- run-github-projectSkill
- run-on-deviceSkill
- setup-environmentSkill
- setup-issue-trackerSkill
- shepherdSkill
- tddSkill
- to-planSkill
- triageSkill
- wayfinderSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Treat complete Gradle output as a temporary, sensitive artifact.
- Very specific: line 14
Every create, run, status, and finish invocation is the entire shell command for that tool call.
- Distinctive: line 29
Create one workflow before its first command and retain its opaque ID:
- Very specific: line 35
Run create, each run, and finish as standalone shell commands.
- Very specific: line 45
If a tool session disappears or the run's outcome is unknown, use the same workflow ID (and the same global --root if one was supplied):
- Distinctive: line 78
Do not substitute compilation for requested fixture tests, or skip a requested run because it may find no tests.
- Distinctive: line 80
Read only the bounded JSON summary.
- Distinctive: line 87
Keep one wrapper execution owner at a time.
- Distinctive: line 91
Run broad only for an aggregate question that targeted evidence cannot answer.
- Distinctive: line 98
Treat the full log as raw sensitive material even though summaries and ledgers redact common credentials.
- Distinctive: line 103
If a bounded result reports cache access denied before Gradle starts, report the exact path and recommend only an explicit writable-root …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gradle run
Core principle
Treat complete Gradle output as a temporary, sensitive artifact. Every
agent-initiated Gradle command runs through the compact-output wrapper; never
stream, tee, paste, or reopen a full build log.
Every create, run, status, and finish invocation is the entire shell command for
that tool call. Prefixes, assignments, conditionals, pipes, command chains, and
follow-up inspection invalidate lifecycle evidence even when Gradle succeeds.
Procedure
- Classify the request. Reuse a current successful result when unchanged source and inputs already answer the question. A focused task that validates another change is incidental; build/check/warning/failure work is a Gradle-centered workflow.
- Resolve this skill directory. If
python3orscripts/gradle_run.pyis unavailable (a failing standalonecreateshows this), stop and report that prerequisite; never run Gradle directly as a fallback. Invoke the project's designated entrypoint (normally./gradlew) as provided; do not read its source to second-guess it or substitute another launcher script. Create one workflow before its first command and retain its opaque ID:
python3 <skill-dir>/scripts/gradle_run.py createRun
create, eachrun, andfinishas standalone shell commands. Do not combine one withls,test, variable setup,git,rg,&&,;, a pipe, or a newline containing another command. Ifcreatefails, retry a fresh standalonecreatebefore anyrun. Use the wrapper exclusively; it supplies--console=plainand--no-scanunless console behavior was selected or the user authorized--scan. Add--warning-mode allonly for warning discovery or an explicit request. Ifrunorfinishreportsworkflow is busy, inspect status and wait for the owner; keep one execution owner and avoid a duplicate build.If a tool session disappears or the run's outcome is unknown, use the same workflow ID (and the same global
--rootif one was supplied):python3 <skill-dir>/scripts/gradle_run.py status --workflow <id>Status is read-only and returns immediately with at most 16 KiB of JSON.
runidentifies the active or latest run by sequence, wrapper/child PIDs, start time, working directory, command and question.resultis the latest stored bounded terminal summary, identified byresult_sequence; while a new run is active it may describe the previous run. Status never opens logs. Poll status onrunning; a held lock specific to that run supplies activity evidence, while PIDs are identity only. Unrelated workflow lock contention leaves an abandoned rununcertain.completedincludes failed builds and launch errors: checkresult.exit_status.interruptedrequires a recorded signal.uncertaincovers abandoned active records, missing locks, incomplete/legacy ledgers and transitions without sufficient evidence. Report that uncertainty; the next action is an ownership investigation, not completion inferred from a PID, a rerun (even conditional or later), cleanup,finish, or process termination. A new workflow isidle; afterfinishit isfinishedand its result has been removed. Unknown IDs fail closed. Finish only after retrieving the needed result.For incidental validation, stay in the current agent and run the narrowest task that answers a non-empty verification question:
python3 <skill-dir>/scripts/gradle_run.py run \ --workflow <id> --scope targeted \ --question "Does :module:test pass after this change?" -- \ ./gradlew :module:testDo not substitute compilation for requested fixture tests, or skip a requested run because it may find no tests; run it and report that caveat. Read only the bounded JSON summary; report both the managed wrapper and nested Gradle task, the question, and its bounded answer.
- For Gradle-centered work, keep diagnosis, repository edits, and wrapper execution with the current implementation owner by default. Delegate a bounded read-only investigation only when it offers useful independent analysis. Select and brief an optional helper using the shared selection and handoff reference. Keep one wrapper execution owner at a time; a helper reports evidence and recommendations to that owner. Continue directly when no helper is available.
- Reuse actionable summaries, group warnings/failures by fingerprint, and return source/line evidence plus the narrowest next command. Run broad only for an aggregate question that targeted evidence cannot answer. On a repeated primary source/compiler fingerprint, stop rebuilding; inspect the cited source line and nearby declaration, import, or receiver context before revising the diagnosis. Verify each source change with the same wrapper and narrowest applicable task. In the final diagnosis, name the focused inspection as the next action; do not claim a source fix before it. A new question does not permit a blind repeat.
- Treat the full log as raw sensitive material even though summaries and
ledgers redact common credentials. Never expose it in model-visible context.
On interruption, use the wrapper's recorded signal and bounded partial
diagnostics; it owns process-group/process-tree cleanup and durable ledger
updates. Only logs still represented by the bounded recent-run ledger remain.
If a bounded result reports cache access denied before Gradle starts, report
the exact path and recommend only an explicit writable-root entry for that
existing cache directory, for the user to authorize. Stop there: do not
apply it, plan a follow-up rerun,
finish, or new workflow, disable the sandbox, or relocate caches. Finish after the last requested validation (targeted or broad) passes, or report unresolved fingerprints and why validation cannot continue. In the final response, quote each non-empty
--questionand give its bounded answer; command history is not a substitute for reported evidence. Then run:python3 <skill-dir>/scripts/gradle_run.py finish --workflow <id>Report that finish removed only wrapper-owned logs. A finished known ID is idempotent; an unknown ID or active workflow fails closed and leaves files in place. This skill does not constrain unrelated review, implementation, or subagents.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

