
Gradle Build Performance
This walks you through the full build optimization cycle: measure baseline, generate a build scan, identify whether you're bottlenecked in configuration or execution, apply one fix at a time, and verify improvement. It covers the usual wins like configuration cache, build cache, and parallel execution, plus Android-specific stuff like migrating kapt to KSP and enabling non-transitive R classes. The side-by-side tables showing bad versus good patterns (dynamic dependencies, eager task creation) are genuinely helpful. What I like is the focus on measurement discipline, not just throwing gradle.properties flags at the wall. If your builds are slow and you don't know why, start here and work through the diagnostics systematically.
- skills.sh installs
- 809
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill gradle-build-performance --agent claude-codeInstalls into .claude/skills of the current project.
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
- Measure Baseline — Clean build + incremental build times
- Generate Build Scan —
./gradlew assembleDebug --scan - Identify Phase — Configuration? Execution? Dependency resolution?
- Apply ONE optimization — Don't batch changes
- Measure Improvement — Compare against baseline
- Verify in Build Scan — Visual confirmation
Quick Diagnostics
Generate Build Scan
./gradlew assembleDebug --scan
Profile Build Locally
Sponsors
Details
- Repository
- github.com/new-silvermoon/awesome-android-agent-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, Debugging, Mobile Development, Java & JVM
- First seen
- Jun 3, 2026
More from new-silvermoon/awesome-android-agent-skills
All 17- Compose Ui760
- Android Gradle Logic738
- Android Architecture701
- Kotlin Concurrency Expert684
- Compose Performance Audit596
- Android Emulator Skill578
- Android Viewmodel576
- Android Coroutines569
- Android Accessibility560
- Android Data Layer531
- Android Retrofit495
- Coil Compose464
- Xml To Compose Migration451
- Compose Navigation438
- Rxjava To Coroutines Migration347
- Android Testing869