Agent skill

Gradle Build Performance

by rcosteira79 in rcosteira79/android-skills

A skill your agent uses when Android/Gradle builds are slow — diagnosing bottlenecks with build scans, enabling configuration cache, migrating kapt to KSP, fixing cache misses, and optimizing CI/CD…

MITAuto-check passedDevOps & Cloud

Install Gradle Build Performance

skills CLI
$ npx skills add rcosteira79/android-skills --skill gradle-build-performance -a claude-code

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

GitHub CLI
$ gh skill install rcosteira79/android-skills gradle-build-performance --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/rcosteira79/android-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/android-skills/skills/gradle-build-performance .claude/skills/gradle-build-performance && 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-build-performance
GitHub stars
153
Token cost
~720 tokens
SKILL.md length
276 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when Android/Gradle builds are slow — diagnosing bottlenecks with build scans, enabling configuration cache, migrating kapt to KSP, fixing cache misses, and optimizing CI/CD…

  • Android/Gradle builds are slow — diagnosing bottlenecks with build scans
  • SKILL.md covers Configuration phase — the…, kapt → KSP (mandatory on AGP 9), Dependency resolution and A reasonable gradle.properties…
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Enabling configuration cache

What it does

Gradle Build Performance is an agent skill from rcosteira79/android-skills. Use when Android/Gradle builds are slow — diagnosing bottlenecks with build scans, enabling configuration cache, migrating kapt to KSP, fixing cache misses, and optimizing CI/CD build times.

Its SKILL.md is about 720 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering CI/CD. It works with Gradle, Android and Kotlin. The repository describes itself as: Claude Code skills for Android & KMP development. The licence is MIT.

When your agent uses it

  • Android/Gradle builds are slow — diagnosing bottlenecks with build scans
  • Enabling configuration cache
  • Migrating kapt to KSP
  • Fixing cache misses

Example prompts

  • “/gradle-build-performance”

What it can do on your machine

Read from SKILL.md and the folder at commit 0f9af5a. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are properties).

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

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    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 Build Performance loads about 720 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 276 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~720

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from rcosteira79/android-skills at commit 0f9af5a, republished under its MIT licence (© rcosteira79). 276 words, ~720 tokens.

Download SKILL.mdSave it as .claude/skills/gradle-build-performance/SKILL.md (or your agent's skills folder).
name
gradle-build-performance
description
Use when Android/Gradle builds are slow — diagnosing bottlenecks with build scans, enabling configuration cache, migrating kapt to KSP, fixing cache misses, and optimizing CI/CD build times.

Gradle Build Performance

This reference covers the workflow discipline plus the patterns that move the needle and are easy to get wrong, not the standard knobs (org.gradle.caching, org.gradle.parallel, org.gradle.jvmargs, android.nonTransitiveRClass, kapt → ksp).

Workflow: measure a baseline (clean + incremental) → ./gradlew assembleDebug --scan (or --profile for a no-upload report) → find the slow phase (configuration / execution / dependency resolution) in the Build Scan timeline → apply one optimization at a time → measure again. Batching changes means you never learn what helped.

Configuration phase — the cheapest wins

  • Configuration cache (org.gradle.configuration-cache=true, AGP 8+) skips the entire configuration phase when inputs are unchanged. Start with org.gradle.configuration-cache.problems=warn, move to fail once clean.
  • No I/O during configuration. A file("version.txt").readText(), a network call, or exec {} at configuration time breaks the configuration cache and slows every build — defer it to execution: providers.fileContents(layout.projectDirectory.file("version.txt")).asText.
  • Lazy task registration — tasks.register("x") { … } (configured only if it's in the execution graph), never tasks.create("x") { … } (eager).
  • Convention plugins, not subprojects {} / allprojects {} — those root-build blocks eagerly evaluate every subproject. Move shared config into convention plugins (see android-skills:android-gradle-logic).

kapt → KSP (mandatory on AGP 9)

KSP is ~2× faster than kapt, and AGP 9 makes the migration mandatory — it has built-in Kotlin support and org.jetbrains.kotlin.kapt is incompatible with it. Migrate to KSP (requires KSP 2.3.1+ on AGP 9; Hilt / Room / Moshi all support it), or fall back to com.android.legacy-kapt (same version as AGP) for annotation processors with no KSP equivalent. See JetBrains' kotlin-tooling-agp9-migration skill for the broader AGP 9 mechanics.

Dependency resolution

  • Pin versions — a dynamic 1.0.+ or -SNAPSHOT forces a network resolution check on every build. Pin 1.2.3.
  • Repository order — Gradle checks repositories in declaration order; put the most-used first (google() then mavenCentral(), third-party last).

A reasonable gradle.properties baseline

properties
org.gradle.configuration-cache=true
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC
android.nonTransitiveRClass=true

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

Files

Just SKILL.md in plugins/android-skills/skills/gradle-build-performance of rcosteira79/android-skills.

Open the folder on GitHubat commit 0f9af5a

Compare with similar skills

Gradle Build Performance 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 Build Performance compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gradle Build Performance this skillrcosteira79/android-skills153—~720Automated safety check: PassMIT
Gradle Build PerformanceMoustachauve/WLED-Android1693 repos~2kAutomated safety check: PassApache-2.0
Enforcing Stability In CIrosuH/EasyWatermark1.9k1 repos~4kAutomated safety check: PassApache-2.0
Gplay Gradle Buildhanamizuki/solopreneur152—~1.2kAutomated safety check: PassMIT
Upgrade Notesgetknit/knit133—~1.2kAutomated safety check: PassGPL-3.0
Levyra CI WorkflowsLUC4N3X/Levyra-deepsound591—~2kAutomated safety check: PassGPL-3.0

Similar skills

  • Gradle Build Performance

    Moustachauve/WLED-Android

    Debug and optimize Android/Gradle build performance. An agent skill from Moustachauve/WLED-Android.

    169 GitHub starsUsed in 3 repos~2k tokens
    DevOps & CloudAuto-check passed
  • Enforcing Stability In CI

    rosuH/EasyWatermark

    A skill your agent uses to set up a CI gate that fails the build when Compose stability silently regresses, using the skydoves/compose-stability-analyzer Gradle plugin (primary) or the…

    1.9k GitHub starsUsed in 1 repo~4k tokens
    DevOps & CloudAuto-check passed
  • Gplay Gradle Build

    hanamizuki/solopreneur

    Build, sign, and package Android apps with Gradle before uploading to Google Play.

    152 GitHub stars~1.2k tokensUpdated 14 days ago
    DevOps & CloudAuto-check passed
  • Upgrade Notes

    getknit/knit

    Read the vendor's breaking changes, deprecations, migration notes and CVEs for every version between the one pinned now and the one being moved to, through the whatsnew MCP server's upgradenotes tool.

    133 GitHub stars~1.2k tokensUpdated yesterday
    SecurityAuto-check passed
  • Levyra CI Workflows

    LUC4N3X/Levyra-deepsound

    Automatically use for Levyra GitHub Actions, CI, F-Droid, Gradle/AGP/Kotlin/KSP compatibility, build performance, configuration/build cache, artifacts, release automation, workflow security, or…

    591 GitHub stars~2k tokensUpdated today
    MobileAuto-check passed
  • Android Cicd

    davila7/claude-code-templates

    Automated Android CI/CD pipeline to Google Play — supports TWA, React Native, Flutter, and native Android.

    33k GitHub stars~2.2k tokensUpdated yesterday
    MobileAuto-check passed

More from rcosteira79/android-skills

All 21 skills in this repo
  • Guides writing correct, performant Compose and Compose Multiplatform UI across Android, desktop, iOS and web, from state and animation to design-to-code and crash fixes.

    153 GitHub stars~2.6k tokensUpdated 21 days ago
    Auto-check passed
  • Kotlin Multiplatform Boundaries

    rcosteira79/android-skills

    Helps choose how common Kotlin Multiplatform code reaches platform APIs: expect/actual, a common interface with platform bindings, or separate platform screens.

    153 GitHub stars~1.5k tokensUpdated 21 days ago
    Auto-check passed
  • Android Data Layer and Room in KMP

    rcosteira79/android-skills

    Sets out the repository pattern's error-propagation model for Android and Kotlin Multiplatform, plus the Room setup for commonMain.

    153 GitHub stars~1.2k tokensUpdated 21 days ago
    Auto-check passed
  • Android Debugging

    rcosteira79/android-skills

    Android and KMP debugging techniques for crashes, ANRs, memory leaks, R8 traces, Gradle failures and Compose recomposition, built on finding the root cause first.

    153 GitHub stars~2.6k tokensUpdated 21 days ago
    Auto-check passed
  • Android and KMP Baseline

    rcosteira79/android-skills

    Sets house defaults for Android and Kotlin Multiplatform work and routes to the right specialized skill for Compose, networking, testing or build tooling.

    153 GitHub stars~3k tokensUpdated 21 days ago
    Auto-check passed
  • Android Gradle Build Logic

    rcosteira79/android-skills

    Sets up Android Gradle convention plugins in a build-logic composite build, including the version catalog wiring and shared configuration that are easy to get wrong.

    153 GitHub stars~959 tokensUpdated 21 days ago
    Auto-check passed

Categories

Questions about Gradle Build Performance

What does Gradle Build Performance do?

A skill your agent uses when Android/Gradle builds are slow — diagnosing bottlenecks with build scans, enabling configuration cache, migrating kapt to KSP, fixing cache misses, and optimizing CI/CD…. Gradle Build Performance is an agent skill from rcosteira79/android-skills. Use when Android/Gradle builds are slow — diagnosing bottlenecks with build scans, enabling configuration cache, migrating kapt to KSP, fixing cache misses, and optimizing CI/CD build times.

When should I use Gradle Build Performance?

Gradle Build Performance fits situations like: android/Gradle builds are slow — diagnosing bottlenecks with build scans; enabling configuration cache; migrating kapt to KSP; fixing cache misses.

How do I install Gradle Build Performance in Claude Code?

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

How do I install Gradle Build Performance in Codex?

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

Can I use Gradle Build Performance 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 rcosteira79/android-skills --skill gradle-build-performance -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-build-performance, .gemini/skills/gradle-build-performance, .github/skills/gradle-build-performance and .opencode/skills/gradle-build-performance in your project.

What does Gradle Build Performance need to run?

SKILL.md names no scripts, command-line tools or credentials: Gradle Build Performance is instructions for the agent only.

Does Gradle Build Performance access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Gradle Build Performance 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. Review the folder before installing.

What licence does Gradle Build Performance use?

Gradle Build Performance is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gradle Build Performance use?

About 720 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gradle Build Performance?

Skills that share tags, products or a category with Gradle Build Performance: Gradle Build Performance (Moustachauve/WLED-Android, 169 stars), Enforcing Stability In CI (rosuH/EasyWatermark, 1.9k stars), Gplay Gradle Build (hanamizuki/solopreneur, 152 stars) and Upgrade Notes (getknit/knit, 133 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gradle Build Performance?

rcosteira79 (a GitHub user) maintains it in rcosteira79/android-skills, which has 153 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on September 19, 2026.

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