Agent skill

Gradle Run

by chrisbanes in chrisbanes/skills

A skill your agent uses when planning to execute Gradle through gradle, ./gradlew, or a custom gradlew wrapper script, or diagnosing a Gradle build, compact workflow ledger, repeated failure…

Apache-2.0Auto-check passedMobile

Install Gradle Run

skills CLI
$ npx skills add chrisbanes/skills --skill gradle-run -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install chrisbanes/skills gradle-run --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/chrisbanes/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gradle-run .claude/skills/gradle-run && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gradle-run
GitHub stars
1.1k
Token cost
~1.2k tokens
SKILL.md length
569 words
Files
5 (incl. scripts, references)
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when planning to execute Gradle through gradle, ./gradlew, or a custom gradlew wrapper script, or diagnosing a Gradle build, compact workflow ledger, repeated failure…

  • Works in 8 steps: Classify the request. Reuse a current… → Resolve this skill directory and confirm… → Create one workflow before its first… → …
  • Planning to execute Gradle through gradle
  • SKILL.md covers Core principle and Procedure
  • Runs Python scripts from its folder; calls python3

What it does

Gradle Run is an agent skill from chrisbanes/skills. Use when planning to execute Gradle through gradle, ./gradlew, or a custom gradlew wrapper script, or diagnosing a Gradle build, compact workflow ledger, repeated failure fingerprint, check, test, lint, warning, or failure even when no new Gradle run is appropriate.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/subagent-selection.md` and `scripts/gradle_run.py`).

It sits in Mobile. It works with Gradle. The repository describes itself as: Skills for Kotlin, Jetpack Compose, and Android development. The licence is Apache-2.0.

When your agent uses it

  • Planning to execute Gradle through gradle
  • A custom gradlew wrapper script
  • Diagnosing a Gradle build
  • Compact workflow ledger

Example prompts

  • “/gradle-run”

Requirements

  • Python 3

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Classify the request. Reuse a current successful result when unchanged
  2. Resolve this skill directory and confirm python3 plus
  3. Create one workflow before its first command and retain its opaque ID
  4. For incidental validation, stay in the current agent and run the narrowest
  5. For Gradle-centered work, keep diagnosis, repository edits, and wrapper
  6. Reuse actionable summaries, group warnings/failures by
  7. Treat the full log as raw sensitive material even though summaries and
  8. Finish after the last requested validation (targeted or broad) passes, or

What it can do on your machine

Read from SKILL.md and the folder at commit 037aab9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gradle Run loads about 1.2k tokens when it runs, and up to ~2.6k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 569 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from chrisbanes/skills at commit 037aab9, republished under its Apache-2.0 licence (© chrisbanes). 569 words, ~1,193 tokens.

Download SKILL.mdSave it as .claude/skills/gradle-run/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
gradle-run
description
Use when planning to execute Gradle through `gradle`, `./gradlew`, or a custom `gradlew*` wrapper script, or diagnosing a Gradle build, compact workflow ledger, repeated failure fingerprint, check, test, lint, warning, or failure even when no new Gradle run is appropriate.

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, 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

  1. 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.

  2. Resolve this skill directory and confirm python3 plus scripts/gradle_run.py. If either is unavailable, stop and report that prerequisite; never run Gradle directly as a fallback.

  3. Create one workflow before its first command and retain its opaque ID:

    sh
    python3 <skill-dir>/scripts/gradle_run.py create

    Run create, each run, and finish as standalone shell commands. Do not combine one with test, variable setup, git, rg, &&, ;, a pipe, or a newline containing another command. If create fails, retry a fresh standalone create before any run. Use the wrapper exclusively; it supplies --console=plain and --no-scan unless console behavior was selected or the user authorized --scan. Add --warning-mode all only for warning discovery or an explicit request. A workflow is busy result is an ownership violation: wait for the owner or correct ownership; do not start or finish concurrently.

  4. For incidental validation, stay in the current agent and run the narrowest task that answers a non-empty verification question:

    sh
    python3 <skill-dir>/scripts/gradle_run.py run \
      --workflow <id> --scope targeted \
      --question "Does :module:test pass after this change?" -- \
      ./gradlew :module:test

    Do not substitute compilation for requested fixture tests. Read only the bounded JSON summary; report both the managed wrapper and nested Gradle task, the question, and its bounded answer.

  5. 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.

  6. 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.

  7. 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.

  8. 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 --question and give its bounded answer; command history is not a substitute for reported evidence. Then run:

    sh
    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.

© chrisbanes, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/gradle-run of chrisbanes/skills.

  • SKILL.md
  • agents/openai.yaml
  • references/subagent-selection.md
  • scripts/gradle_run.py
  • scripts/test_gradle_run.py

Open the folder on GitHubat commit 037aab9

Compare with similar skills

Gradle Run next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gradle Run compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gradle Run this skillchrisbanes/skills1.1k—~1.2kAutomated safety check: PassApache-2.0
Test Metro Ide LocallyZacSweers/metro1.4k—~3kAutomated safety check: PassApache-2.0
Gradle Buildchampionswimmer/TwoFac130—~1.2kAutomated safety check: PassNone
Kuikly Multi Module ConfigTencent-TDS/KuiklyUI-AI130—~1.2kAutomated safety check: PassCustom licence
Configuring Test Dependenciesskydoves/android-testing-skills334—~4.1kAutomated safety check: PassApache-2.0
Android API Diffgkd-kit/gkd43k—~796Automated safety check: PassGPL-3.0

Similar skills

  • Test Metro Ide Locally

    ZacSweers/metro

    Run Metro's IDE plugin from source in a sandboxed local IDE against a consumer project.

    1.4k GitHub stars~3k tokensUpdated today
    MobileAuto-check passed
  • Gradle Build

    championswimmer/TwoFac

    Use Gradle commands to build and run the app by platform. An agent skill from championswimmer/TwoFac.

    130 GitHub stars~1.2k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Kuikly Multi Module Config

    Tencent-TDS/KuiklyUI-AI

    Kuikly 多模块工程配置助手。指导如何创建 Kuikly 子模块、配置多模块。当用户需要创建新 Kuikly 子模块、配置多模块参数、解决 KuiklyCoreEntry 入口类冲突时使用。

    130 GitHub stars~1.2k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Configuring Test Dependencies

    skydoves/android-testing-skills

    A skill your agent uses to wire the correct Gradle dependency matrix for Jetpack Compose UI tests.

    334 GitHub stars~4.1k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Android API Diff

    gkd-kit/gkd

    Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.

    43k GitHub stars~796 tokensUpdated today
    MobileAuto-check passed
  • Android Development

    dpconde/claude-android-skill

    Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.

    336 GitHub stars~1.7k tokensUpdated 10 mo ago
    MobileAuto-check passed

More from chrisbanes/skills

All 19 skills in this repo
  • Compose Animations

    chrisbanes/skills

    A skill your agent uses when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one…

    1.1k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • A skill your agent uses when writing or reviewing Jetpack Compose UI tests, screenshot tests or baseline-recording evidence, previews, semantics assertions, fake image loading, keyboard input, focus…

    1.1k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Release Kotlin Library

    chrisbanes/skills

    A skill your agent uses when preparing, publishing, or checking readiness for a Kotlin library release, including verifying its gradle-maven-publish-plugin prerequisite, reconciling changelogs and…

    1.1k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check: notes
  • Run GitHub Project

    chrisbanes/skills

    A skill your agent uses when asked to set up, review, or operate a repository's GitHub Project workflow, including ready claims, role-labelled human work, unknown remote mutation outcomes, Todo…

    1.1k GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Compose Component Design

    chrisbanes/skills

    A skill your agent uses when designing or reviewing reusable Jetpack Compose component APIs with modifier parameters, root layout placement, caller-provided variable content, primitive content…

    1.1k GitHub starsUsed in 1 repo~718 tokens
    Auto-check passed
  • Compose Focus Navigation

    chrisbanes/skills

    A skill your agent uses when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus…

    1.1k GitHub stars~994 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Gradle Run

What does Gradle Run do?

A skill your agent uses when planning to execute Gradle through gradle, ./gradlew, or a custom gradlew wrapper script, or diagnosing a Gradle build, compact workflow ledger, repeated failure…. Gradle Run is an agent skill from chrisbanes/skills./gradlew, or a custom gradlew wrapper script, or diagnosing a Gradle build, compact workflow ledger, repeated failure fingerprint, check, test, lint, warning, or failure even when no new Gradle run is appropriate.

When should I use Gradle Run?

Gradle Run fits situations like: planning to execute Gradle through gradle; A custom gradlew wrapper script; diagnosing a Gradle build; compact workflow ledger.

How do I install Gradle Run in Claude Code?

Run `npx skills add chrisbanes/skills --skill gradle-run -a claude-code`. Or copy the skill folder (skills/gradle-run in chrisbanes/skills) into .claude/skills/gradle-run in your project. Claude Code loads it when a task matches its description.

How do I install Gradle Run in Codex?

Run `npx skills add chrisbanes/skills --skill gradle-run -a codex`. Or copy the skill folder (skills/gradle-run in chrisbanes/skills) into .agents/skills/gradle-run in your project. Codex loads it when a task matches its description.

Can I use Gradle Run in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add chrisbanes/skills --skill gradle-run -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gradle-run, .gemini/skills/gradle-run, .github/skills/gradle-run and .opencode/skills/gradle-run in your project.

What does Gradle Run need to run?

Going by SKILL.md and its folder, Gradle Run needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Gradle Run access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Gradle Run safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Gradle Run use?

Gradle Run is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gradle Run use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Gradle Run?

Skills that share tags, products or a category with Gradle Run: Test Metro Ide Locally (ZacSweers/metro, 1.4k stars), Gradle Build (championswimmer/TwoFac, 130 stars), Kuikly Multi Module Config (Tencent-TDS/KuiklyUI-AI, 130 stars) and Configuring Test Dependencies (skydoves/android-testing-skills, 334 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gradle Run?

chrisbanes (a GitHub user) maintains it in chrisbanes/skills, which has 1,093 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 9, 2026.

Source: chrisbanes/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.