agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/agp9-kotlin-migration/SKILL.md

agp9-kotlin-migration

Skill2 starsChanged 5 months agoMITView on GitHub

Use for safe Android Gradle Plugin 9, Kotlin, Gradle wrapper, version catalog, Compose and Firebase BoM migrations.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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:

    Check compatibility before editing.

    line 28
  2. Distinctive:

    Run sync/build validation after each step.

    line 30
  3. Distinctive:

    Document rollback commands and residual risks.

    line 31
  4. Distinctive:

    Do not upgrade every dependency blindly.

    line 35
  5. Distinctive:

    Do not mix alpha/beta versions unless requested.

    line 36
  6. Distinctive:

    Do not change module structure without a reason.

    line 37
  7. Distinctive:

    Keep version catalog aliases stable when possible.

    line 38
  8. Distinctive:

    Do not assume these companion skills are installed.

    line 52
  9. Distinctive:

    Use $super-android-kotlin-firebase to migrate this project to AGP 9 safely.

    line 92
  10. Distinctive:

    Use $super-android-kotlin-firebase to fix this Gradle sync failure after a Kotlin upgrade.

    line 93

≈ “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

Upgrade Android build tooling in small verified steps while preserving module structure, CI and dependency compatibility.

When to use

  • Migrating to AGP 9 or newer Kotlin tooling.
  • Fixing Gradle sync errors after an upgrade.
  • Modernizing Gradle Kotlin DSL, wrapper or version catalogs.

Inputs to inspect

  • settings.gradle.kts
  • Root and module build.gradle.kts files
  • gradle/libs.versions.toml
  • gradle/wrapper/gradle-wrapper.properties
  • CI workflow files
  • Compose and Firebase BoM usage

Required workflow

  1. Record current Gradle, AGP, Kotlin, Compose and Firebase versions.
  2. Check compatibility before editing.
  3. Upgrade one tooling family at a time.
  4. Run sync/build validation after each step.
  5. Document rollback commands and residual risks.

Rules

  • Do not upgrade every dependency blindly.
  • Do not mix alpha/beta versions unless requested.
  • Do not change module structure without a reason.
  • Keep version catalog aliases stable when possible.
  • Preserve build variants and signing boundaries.

Related existing skills

Local skills to invoke

  • gradle-build
  • dependency-upgrade-safety
  • debugging
  • testing

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.

Files commonly touched

  • settings.gradle.kts
  • build.gradle.kts
  • app/build.gradle.kts
  • gradle/libs.versions.toml
  • gradle-wrapper.properties
  • .github/workflows/*

Commands to validate

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

Common mistakes to avoid

  • Skipping wrapper compatibility.
  • Updating Kotlin and Compose compiler assumptions together without checks.
  • Removing plugins still used by convention modules.
  • Ignoring CI differences from local builds.

Checklist

  • Current versions captured.
  • Compatibility noted.
  • Small-step plan used.
  • CI impact checked.
  • Build and tests run or explained.

Example prompts

  • Use $super-android-kotlin-firebase to migrate this project to AGP 9 safely.
  • Use $super-android-kotlin-firebase to fix this Gradle sync failure after a Kotlin upgrade.

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/agp9-upgrade-checklist.md
  • references/kotlin-plugin-compatibility.md
  • references/gradle-version-catalogs.md
  • references/known-migration-issues.md
  • templates/version-catalog-before-after.md
  • templates/android-application-build-gradle-template.md
  • templates/android-library-build-gradle-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.