agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/gradle-build/SKILL.md

gradle-build

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Gradle Kotlin DSL, Android Gradle Plugin, Kotlin plugin, version catalogs, Firebase BoM, convention plugins, build variants and modularized Android builds.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 13 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the Android build reproducible, compatible and easy to evolve.

    line 8
  2. Distinctive:

    Read current version strategy before changing versions.

    line 26
  3. Distinctive:

    Check compatibility between Gradle, AGP, Kotlin and Firebase BoM.

    line 27
  4. Distinctive:

    Run sync/build validation.

    line 29
  5. Distinctive:

    Document impact and rollback path.

    line 30
  6. Distinctive:

    Do not upgrade versions blindly.

    line 34
  7. Distinctive:

    Do not duplicate Firebase dependency versions outside the BoM.

    line 35
  8. Distinctive:

    Keep Kotlin DSL consistent.

    line 36
  9. Distinctive:

    Keep signing secrets out of Gradle files.

    line 37
  10. Distinctive:

    Use convention plugins only when the project already benefits from them.

    line 38
  11. Distinctive:

    Do not assume these companion skills are installed.

    line 51
  12. Distinctive:

    Use $super-android-kotlin-firebase to fix this Gradle sync error.

    line 91
  13. Distinctive:

    Use $super-android-kotlin-firebase to add Firebase BoM using version catalogs.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Keep the Android build reproducible, compatible and easy to evolve.

When to use

  • Fixing Gradle sync/build errors.
  • Adding dependencies or plugins.
  • Migrating to version catalogs or convention plugins.
  • Changing build variants, flavors, AGP, Kotlin or Firebase BoM.

Inputs to inspect

  • settings.gradle(.kts), build.gradle(.kts), gradle/libs.versions.toml.
  • Gradle, AGP, Kotlin and Java versions.
  • Full build error and command.
  • CI workflow if relevant.

Required workflow

  1. Read current version strategy before changing versions.
  2. Check compatibility between Gradle, AGP, Kotlin and Firebase BoM.
  3. Change the narrowest build file.
  4. Run sync/build validation.
  5. Document impact and rollback path.

Rules

  • Do not upgrade versions blindly.
  • Do not duplicate Firebase dependency versions outside the BoM.
  • Keep Kotlin DSL consistent.
  • Keep signing secrets out of Gradle files.
  • Use convention plugins only when the project already benefits from them.

Related existing skills

Local skills to invoke

  • android-core
  • agp9-kotlin-migration
  • dependency-upgrade-safety
  • debugging

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • android/skills — use for official Android workflow alignment around edge-to-edge, adaptive UI, Navigation 3, R8, AGP or testing setup.
  • vercel-labs/skills — use for Agent Skills CLI, packaging and multi-agent installation patterns when repository maintenance guidance is needed.

Files commonly touched

  • settings.gradle.kts
  • build.gradle.kts
  • gradle/libs.versions.toml
  • build-logic/*
  • .github/workflows/*

Commands to validate

./gradlew help
./gradlew assembleDebug
./gradlew test
./gradlew lint
./gradlew --version

Common mistakes to avoid

  • Changing AGP and Kotlin together without reason.
  • Mixing Groovy and Kotlin DSL patterns.
  • Adding duplicate plugin declarations.
  • Committing local SDK paths or secrets.

Checklist

  • Version compatibility checked.
  • BoM used correctly.
  • Variants preserved.
  • Build command passes or failure is documented.
  • CI considered.

Example prompts

  • Use $super-android-kotlin-firebase to fix this Gradle sync error.
  • Use $super-android-kotlin-firebase to add Firebase BoM using version catalogs.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/version-catalogs-and-agp.md
  • templates/version-catalog-template.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.