Agent skill

Android Agp Upgrade

by HoangNguyen0403 in HoangNguyen0403/agent-skills-standard

Upgrade an Android project to Android Gradle Plugin (AGP) 9.

MITAuto-check passedMobile

Install Android Agp Upgrade

skills CLI
$ npx skills add HoangNguyen0403/agent-skills-standard --skill android-agp-upgrade -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HoangNguyen0403/agent-skills-standard android-agp-upgrade --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/android/android-agp-upgrade .claude/skills/android-agp-upgrade && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
android-agp-upgrade
GitHub stars
572
Token cost
~668 tokens
SKILL.md length
267 words
Files
4 (incl. references)
Skills in repo
211
Repo updated
First seen
Licence
MIT

At a glance

Upgrade an Android project to Android Gradle Plugin (AGP) 9.

  • Works in 6 steps: Update dependencies → Migrate to built-in Kotlin → Migrate to the new AGP DSL → …
  • Migrating to AGP 9
  • SKILL.md covers Priority: P1 (HIGH), Prerequisites, Step 1: Update dependencies and Step 2: Migrate to built-in…, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Android Agp Upgrade is an agent skill from HoangNguyen0403/agent-skills-standard. 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.

Its SKILL.md is about 670 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `evals/evals.json`, `references/built-in-kotlin.md` and `references/dsl-migration.md`).

It sits in Mobile, covering Android development. It works with Android, Gradle and Kotlin. The repository describes itself as: A collection of Agent Skills Standard and Best Practice for Programming Languages, Frameworks that help our AI Agent follow best practies on frameworks and programming laguages. The licence is MIT.

When your agent uses it

  • Migrating to AGP 9
  • Updating Gradle build files
  • Migrating to built-in Kotlin
  • Adopting the new AGP DSL

Example prompts

  • “/android-agp-upgrade”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Update dependencies
  2. Migrate to built-in Kotlin
  3. Migrate to the new AGP DSL
  4. Migrate kapt to KSP or legacy-kapt
  5. Update BuildConfig
  6. Clean up gradle.properties

What it can do on your machine

Read from SKILL.md and the folder at commit b529c2d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Android Agp Upgrade loads about 668 tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 49 tokens; SKILL.md has 267 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~668
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HoangNguyen0403/agent-skills-standard at commit b529c2d, republished under its MIT licence (© HoangNguyen0403). 267 words, ~668 tokens.

Download SKILL.mdSave it as .claude/skills/android-agp-upgrade/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
android-agp-upgrade
description
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.

AGP 9 Upgrade Workflow

Priority: P1 (HIGH)

Step-by-step workflow for upgrading an Android project to AGP 9.

Prerequisites

  • Check current AGP version. If below 8.x, recommend running the AGP Upgrade Assistant in Android Studio first.
  • Do NOT use this skill for Kotlin Multiplatform (KMP) projects.
  • Verify Gradle, JDK, and Kotlin version compatibility with AGP 9 release notes.

Step 1: Update dependencies

  • If KSP (com.google.devtools.ksp) is used, ensure version 2.3.6+.
  • If Hilt is used, ensure version 2.59.2+.
  • Update AGP to the latest stable 9.x version in the project's build files.

Step 2: Migrate to built-in Kotlin

AGP 9 includes built-in Kotlin support — the org.jetbrains.kotlin.android plugin is no longer needed.

See migration guide for detailed steps.

Step 3: Migrate to the new AGP DSL

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.

Step 4: Migrate kapt to KSP or legacy-kapt

If the project uses kapt:

  • Prefer migrating to KSP where annotation processors support it (Room, Hilt, Moshi).
  • For processors without KSP support, use legacy-kapt as a bridge.

Step 5: Update BuildConfig

If any module uses custom BuildConfig fields, update to the new AGP 9 syntax.

Step 6: Clean up gradle.properties

Remove these flags after migration:

  1. android.builtInKotlin
  2. android.newDsl
  3. android.uniquePackageNames
  4. android.enableAppCompileTimeRClass

Guidelines

  • Never write or run Python scripts for build migration.
  • Never add android.disallowKotlinSourceSets=false to gradle.properties.
  • Do not run clean task when verifying — it wastes time.

Verification

  1. ./gradlew help succeeds.
  2. ./gradlew build --dry-run succeeds.
  3. Gradle IDE sync succeeds.

References

© HoangNguyen0403, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/android/android-agp-upgrade of HoangNguyen0403/agent-skills-standard.

  • SKILL.md
  • evals/evals.json
  • references/built-in-kotlin.md
  • references/dsl-migration.md

Open the folder on GitHubat commit b529c2d

Compare with similar skills

Android Agp Upgrade next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Android Agp Upgrade compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Android Agp Upgrade this skillHoangNguyen0403/agent-skills-standard572—~668Automated safety check: PassMIT
Android Developmentdpconde/claude-android-skill336—~1.7kAutomated safety check: PassMIT
Claude Android NinjaDrjacky/claude-android-ninja124—~5.2kAutomated safety check: PassApache-2.0
Expo Brownfield Integrationmweinbach/agent-coworker1562 repos~900Automated safety check: NotesCustom licence
Jugg Android Dev Loopniki914/zafiro241—~2kAutomated safety check: PassMIT
Build Foremannekomangaorg/Neko2.8k—~807Automated safety check: PassApache-2.0

Similar skills

  • Android Development

    dpconde/claude-android-skill

    Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.

    336 GitHub stars~1.7k tokensUpdated 10 mo ago
    MobileAuto-check passed
  • Claude Android Ninja

    Drjacky/claude-android-ninja

    Build and migrate Android apps with Kotlin, Jetpack Compose, MVVM, Hilt, Room 3 (KSP, SQLiteDriver, Flow/suspend DAOs), Navigation3, and multi-module Gradle.

    124 GitHub stars~5.2k tokensUpdated 11 days ago
    MobileAuto-check passed
  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    MobileAuto-check: notes
  • Jugg Android Dev Loop

    niki914/zafiro

    A skill your agent uses when editing source files (Java/Kotlin/XML/layout/AndroidManifest/Gradle) in a Android project, or when user asks to build/deploy/verify an Android app.

    241 GitHub stars~2k tokensUpdated today
    MobileAuto-check passed
  • Build Foreman

    nekomangaorg/Neko

    Optimizes Gradle build scripts, compilation times, and Android Studio sync performance.

    2.8k GitHub stars~807 tokensUpdated yesterday
    MobileAuto-check passed
  • Android Audio E2E

    hyochan/react-native-nitro-sound

    Build and run device-backed Android end-to-end checks for react-native-nitro-sound permissions, recording, playback, listeners, pause/resume, seek, speed, audio focus, lifecycle behavior, and rapid…

    961 GitHub stars~814 tokensUpdated 11 days ago
    MobileAuto-check passed

More from HoangNguyen0403/agent-skills-standard

All 211 skills in this repo
  • Subagent-Driven Development

    HoangNguyen0403/agent-skills-standard

    Runs a multi-task implementation plan by sending each task to a fresh implementer subagent, reviewing it independently, then reviewing the whole branch.

    572 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • draw.io Architecture Diagramming

    HoangNguyen0403/agent-skills-standard

    Draws architecture diagrams as editable draw.io files from a JSON spec, with a fixed house style, one C4 level per diagram and evidence-tagged shapes.

    572 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Android Navigation 3 Guide

    HoangNguyen0403/agent-skills-standard

    Implements and migrates to Jetpack Navigation 3 in Compose: NavDisplay, typed route objects, a state-list back stack, deep links, multiple back stacks and dialog scenes.

    572 GitHub stars~687 tokensUpdated yesterday
    Auto-check passed
  • Angular HttpClient Standards

    HoangNguyen0403/agent-skills-standard

    Sets rules for Angular HTTP code: functional interceptors, typed requests, services that own every call, and httpResource for reactive data loading in Angular 17+.

    572 GitHub stars~652 tokensUpdated yesterday
    Auto-check passed
  • Angular Tooling

    HoangNguyen0403/agent-skills-standard

    Angular CLI usage, code generation, build configuration, and bundle optimization.

    572 GitHub stars~743 tokensUpdated yesterday
    Auto-check passed
  • Common Code Review

    HoangNguyen0403/agent-skills-standard

    Conduct high-quality, persona-driven code reviews. An agent skill from HoangNguyen0403/agent-skills-standard.

    572 GitHub stars~772 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Android Agp Upgrade

What does Android Agp Upgrade do?

Upgrade an Android project to Android Gradle Plugin (AGP) 9. Android Agp Upgrade is an agent skill from HoangNguyen0403/agent-skills-standard. Upgrade an Android project to Android Gradle Plugin (AGP) 9.

When should I use Android Agp Upgrade?

Android Agp Upgrade fits situations like: migrating to AGP 9; updating Gradle build files; migrating to built-in Kotlin; adopting the new AGP DSL.

How do I install Android Agp Upgrade in Claude Code?

Run `npx skills add HoangNguyen0403/agent-skills-standard --skill android-agp-upgrade -a claude-code`. Or copy the skill folder (skills/android/android-agp-upgrade in HoangNguyen0403/agent-skills-standard) into .claude/skills/android-agp-upgrade in your project. Claude Code loads it when a task matches its description.

How do I install Android Agp Upgrade in Codex?

Run `npx skills add HoangNguyen0403/agent-skills-standard --skill android-agp-upgrade -a codex`. Or copy the skill folder (skills/android/android-agp-upgrade in HoangNguyen0403/agent-skills-standard) into .agents/skills/android-agp-upgrade in your project. Codex loads it when a task matches its description.

Can I use Android Agp Upgrade in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HoangNguyen0403/agent-skills-standard --skill android-agp-upgrade -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/android-agp-upgrade, .gemini/skills/android-agp-upgrade, .github/skills/android-agp-upgrade and .opencode/skills/android-agp-upgrade in your project.

What does Android Agp Upgrade need to run?

SKILL.md names no scripts, command-line tools or credentials: Android Agp Upgrade is instructions for the agent only. Our summary lists: Python 3.

Does Android Agp Upgrade access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Android Agp Upgrade safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Android Agp Upgrade use?

Android Agp Upgrade is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Android Agp Upgrade use?

About 668 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1k tokens, read only when the agent opens those files.

What are the alternatives to Android Agp Upgrade?

Skills that share tags, products or a category with Android Agp Upgrade: Android Development (dpconde/claude-android-skill, 336 stars), Claude Android Ninja (Drjacky/claude-android-ninja, 124 stars), Expo Brownfield Integration (mweinbach/agent-coworker, 156 stars) and Jugg Android Dev Loop (niki914/zafiro, 241 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Android Agp Upgrade?

HoangNguyen0403 (a GitHub user) maintains it in HoangNguyen0403/agent-skills-standard, which has 572 GitHub stars. The repository holds 211 skills in this directory. The repository was last updated on October 9, 2026.

Source: HoangNguyen0403/agent-skills-standard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.