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

Installs 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

  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

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
1mindrally avatarobservability-guidelinesmindrally/skillsObservability guidelines for distributed systems using OpenTelemetry, tracing, metrics, and structured logging805skills.sh installs
2github avatarflowstudio-power-automate-monitoringgithub/awesome-copilotPro+ subscription required. Tenant-wide Power Automate monitoring using the FlowStudio MCP cached store: failure rates, run-health trends, maker/app inventory, 787skills.sh installs
3aj-geddes avatarkubernetes-deploymentaj-geddes/useful-ai-promptsDeploy, manage, and scale containerized applications on Kubernetes clusters with best practices for production workloads, resource management, and rolling updat759skills.sh installs
4ruvnet avatarmonitor-streamruvnet/rufloStream live swarm events using the Monitor tool for real-time observability746skills.sh installs
5aj-geddes avatarlogging-best-practicesaj-geddes/useful-ai-promptsImplement structured logging with JSON formats, log levels (DEBUG, INFO, WARN, ERROR), contextual logging, PII handling, and centralized logging. Use for loggin742skills.sh installs
6alirezarezvani avatardocker-developmentalirezarezvani/claude-skillsDocker and container development agent skill and plugin for Dockerfile optimization, docker-compose orchestration, multi-stage builds, and container security ha720skills.sh installs