Skip to content

Diagnostic and optimization guide for slow Android/Gradle builds, covering build scans, phases, and CI caching.

CCM score
59 of 100
skills.sh installs
839
GitHub stars
1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the measure-then-change workflow: baseline timing, build scan generation with --scan, phase identification, and one change at a time
  • Includes 12 optimization patterns such as configuration cache, build cache, parallel execution, KSP migration, and pinned dependency versions
  • Provides bottleneck tables for slow configuration, slow compilation, and cache misses, each with symptoms and fixes
  • Designed for Android teams tuning local builds and CI/CD pipelines that use Gradle and Develocity

Install

$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill gradle-build-performance -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Gradle Build Performance

When to Use

  • Build times are slow (clean or incremental)
  • Investigating build performance regressions
  • Analyzing Gradle Build Scans
  • Identifying configuration vs execution bottlenecks
  • Optimizing CI/CD build times
  • Enabling Gradle Configuration Cache
  • Reducing unnecessary recompilation
  • Debugging kapt/KSP annotation processing

Example Prompts

  • "My builds are slow, how can I speed them up?"
  • "How do I analyze a Gradle build scan?"
  • "Why is configuration taking so long?"
  • "Why does my project always recompile everything?"
  • "How do I enable configuration cache?"
  • "Why is kapt so slow?"

Workflow

  1. Measure Baseline — Clean build + incremental build times
  2. Generate Build Scan — ./gradlew assembleDebug --scan
  3. Identify Phase — Configuration? Execution? Dependency resolution?
  4. Apply ONE optimization — Don't batch changes
  5. Measure Improvement — Compare against baseline
  6. Verify in Build Scan — Visual confirmation

Quick Diagnostics

Generate Build Scan

./gradlew assembleDebug --scan

Profile Build Locally

Details

Repository
github.com/new-silvermoon/awesome-android-agent-skills
Categories
Mobile Apps, DevOps & Cloud
First seen
Jun 3, 2026

More from new-silvermoon/awesome-android-agent-skills

All 17

Similar to Gradle Build Performance

More Mobile Apps