hoangnguyen0403/android-agp-upgrade
Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill android-agp-upgrade
Step-by-step workflow for upgrading an Android project to AGP 9.
com.google.devtools.ksp) is used, ensure version 2.3.6+.AGP 9 includes built-in Kotlin support — the org.jetbrains.kotlin.android plugin is no longer needed.
See migration guide for detailed steps.
AGP 9 introduces a new DSL for android {} blocks. Key changes include namespace handling, build type configuration, and source set declarations.
See DSL migration for before/after examples.
If the project uses kapt:
legacy-kapt as a bridge.If any module uses custom BuildConfig fields, update to the new AGP 9 syntax.
Remove these flags after migration:
android.builtInKotlinandroid.newDslandroid.uniquePackageNamesandroid.enableAppCompileTimeRClassandroid.disallowKotlinSourceSets=false to gradle.properties.clean task when verifying — it wastes time../gradlew help succeeds../gradlew build --dry-run succeeds.Take hoangnguyen0403/android-agp-upgrade from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.