Agent skill

Agp 9 Upgrade

by arindamxd in arindamxd/camerax-android

Upgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9.

Apache-2.0Auto-check passedMobile

Install Agp 9 Upgrade

skills CLI
$ npx skills add arindamxd/camerax-android --skill agp-9-upgrade -a claude-code

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

GitHub CLI
$ gh skill install arindamxd/camerax-android agp-9-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/arindamxd/camerax-android.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/agp-9-upgrade .claude/skills/agp-9-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
agp-9-upgrade
GitHub stars
132
Used in
4 other repos
Token cost
~883 tokens
SKILL.md length
417 words
Files
5 (incl. references)
Skills in repo
21
Repo updated
First seen
Licence
Apache-2.0

At a glance

Upgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9.

  • Works in 6 steps: Update dependencies → Migrate to built-in Kotlin → Migrate to the new AGP DSL → …
  • Migrating Kotlin Multiplatform (KMP) projects
  • SKILL.md covers Migration guide, Requirements, Steps and Guidelines, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Agp 9 Upgrade is an agent skill from arindamxd/camerax-android. Upgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Do not use this skill for migrating Kotlin Multiplatform (KMP) projects.

Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/buildconfig.md`, `references/ksp-kapt.md` and `references/paparazzi-gradle-9.md`).

It sits in Mobile, covering Android development, Cross-platform mobile apps and Code migrations. It works with Android, Gradle and Kotlin. The repository describes itself as: A Play Store camera app showing Jetpack CameraX APIs in Kotlin — install it, use it, copy the patterns. The licence is Apache-2.0.

When your agent uses it

  • Migrating Kotlin Multiplatform (KMP) projects
  • Tasks that involve Android development
  • Tasks that involve Cross-platform mobile apps

Example prompts

  • “/agp-9-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. BuildConfig
  6. Update gradle.properties

What it can do on your machine

Read from SKILL.md and the folder at commit 7c36352. 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

Agp 9 Upgrade loads about 883 tokens when it runs, and up to ~2.6k if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 417 words of instructions outside code blocks.

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

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 arindamxd/camerax-android at commit 7c36352, republished under its Apache-2.0 licence (© arindamxd). 417 words, ~883 tokens.

Download SKILL.mdSave it as .claude/skills/agp-9-upgrade/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
agp-9-upgrade
description
Upgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Do not use this skill for migrating Kotlin Multiplatform (KMP) projects.
license
Complete terms in LICENSE.txt
metadata.author
Google LLC
metadata.last-updated
2026-08-06
metadata.keywords
Android Gradle Plugin 9, AGP 9, AGP Upgrade, AGP Migration, New AGP DSL, Migrate to built-in Kotlin

Migration guide

See the AGP 9 migration guide for the major changes, many breaking, in AGP 9 compared to AGP 8.

Requirements

If the user requests to update or migrate to AGP 9, first check the AGP version used in the project. If it is lower than 9, stop and ask the user to run the AGP Upgrade Assistant in Android Studio to update to the latest stable version of AGP, and confirm when done. The user may also request that this requirement be skipped; if this is the case, you should update the version of AGP to the latest stable version as part of the AGP 9 migration. See the AGP 9 migration guide for how to do this.

Each version of AGP has its own set of compatibilities with other tools, such as Gradle, JDK, and Kotlin. The release notes for each of these versions will include a Compatibility table indicating the minimum versions for these tools.

Do not use this skill for KMP projects, as they are unsupported.

Steps

If AGP is already at 9 or higher, then do the following:

Step 1: Update dependencies

If KSP (com.google.devtools.ksp) is used in the project, ensure it is on version 2.3.6 or higher.

If Hilt is used in the project, ensure it is on version 2.59.2 or higher.

Step 2: Migrate to built-in Kotlin

See the guide for detailed information.

Step 3. Migrate to the new AGP DSL

See the guide for detailed information.

See also gradle-recipes for examples on how to migrate old code to code that is compatible with AGP 9 and the new DSL.

Show full SKILL.md (149 more words)Show less
Step 4. Migrate kapt to KSP or legacy-kapt

If KSP (com.google.devtools.ksp) or kapt (org.jetbrains.kotlin.kapt) are used in the project, see KSP, kapt, and legacy-kapt for detailed migration steps.

Step 5. BuildConfig

If any Android module contains custom BuildConfig fields, see BuildConfig for detailed information.

Step 6. Update gradle.properties

After the migration, check gradle.properties. Remove the following flags:

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

Additionally, delete all temporary files you've created.

Guidelines

  • Never write or run python scripts.
  • Only search the Gradle dependency cache when inspecting external dependencies, and only as a last resort.
  • Never add android.disallowKotlinSourceSets=false to gradle.properties.
  • When verifying changes, don't run the clean task. This is a waste of time.

Verification

After migration, verify the following:

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

Troubleshooting

Paparazzi v2.0.0-alpha04 and lower versions have issues with AGP 9. See references/paparazzi-gradle-9.md for details.

© arindamxd, Apache-2.0. 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 4 other files (references) in .agents/skills/agp-9-upgrade of arindamxd/camerax-android.

  • SKILL.md
  • references/buildconfig.md
  • references/ksp-kapt.md
  • references/paparazzi-gradle-9.md
  • references/recipes.md

Open the folder on GitHubat commit 7c36352

Used in 4 other repositories

We found 8 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 4 other GitHub owners. This page covers the copy in arindamxd/camerax-android, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Agp 9 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.

Agp 9 Upgrade compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agp 9 Upgrade this skillarindamxd/camerax-android1324 repos~883Automated safety check: PassApache-2.0
Claude Android NinjaDrjacky/claude-android-ninja124—~5.2kAutomated safety check: PassApache-2.0
Expo Brownfield Integrationmweinbach/agent-coworker1562 repos~900Automated safety check: NotesCustom licence
Android Audio E2Ehyochan/react-native-nitro-sound961—~814Automated safety check: PassMIT
Android and KMP Baselinercosteira79/android-skills151—~3kAutomated safety check: PassMIT
Upgrade React NativeShopify/flash-list7.2k—~1.9kAutomated safety check: PassMIT

Similar skills

  • 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 9 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
  • 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 9 days ago
    MobileAuto-check passed
  • Android and KMP Baseline

    rcosteira79/android-skills

    Sets house defaults for Android and Kotlin Multiplatform work and routes to the right specialized skill for Compose, networking, testing or build tooling.

    151 GitHub stars~3k tokensUpdated 19 days ago
    MobileAuto-check passed
  • Upgrade React Native

    Shopify/flash-list

    Official

    Upgrade the React Native fixture app to a new version. An agent skill from Shopify/flash-list.

    7.2k GitHub stars~1.9k tokensUpdated 7 days ago
    MobileAuto-check passed
  • Official

    Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+.

    364 GitHub starsUsed in 2 repos~5.6k tokens
    MobileAuto-check passed

More from arindamxd/camerax-android

All 21 skills in this repo
  • Styles

    arindamxd/camerax-android

    A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.

    132 GitHub starsUsed in 4 repos~2.3k tokens
    Auto-check passed
  • Verified Email

    arindamxd/camerax-android

    Provides a complete workflow for implementing verified email retrieval on Android Credential Manager API.

    132 GitHub starsUsed in 4 repos~4.7k tokens
    Auto-check passed
  • Edge To Edge

    arindamxd/camerax-android

    A skill your agent uses to migrate your Jetpack Compose app to add adaptive edge-to-edge support and troubleshoot common issues.

    132 GitHub starsUsed in 5 repos~3.6k tokens
    Auto-check passed
  • Camerax

    arindamxd/camerax-android

    Provide technical guidance for Android camera development with CameraX.

    132 GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed
  • Leanback To Compose Tv Migration

    arindamxd/camerax-android

    Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv).

    132 GitHub starsUsed in 2 repos~8.7k tokens
    Auto-check passed
  • Migrate XML Views To Jetpack Compose

    arindamxd/camerax-android

    Provides a structured workflow for migrating an Android XML View to Jetpack Compose.

    132 GitHub starsUsed in 5 repos~1.4k tokens
    Auto-check passed

Categories

Questions about Agp 9 Upgrade

What does Agp 9 Upgrade do?

Upgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Agp 9 Upgrade is an agent skill from arindamxd/camerax-android. Upgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9.

When should I use Agp 9 Upgrade?

Agp 9 Upgrade fits situations like: migrating Kotlin Multiplatform (KMP) projects; tasks that involve Android development; tasks that involve Cross-platform mobile apps.

How do I install Agp 9 Upgrade in Claude Code?

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

How do I install Agp 9 Upgrade in Codex?

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

Can I use Agp 9 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 arindamxd/camerax-android --skill agp-9-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/agp-9-upgrade, .gemini/skills/agp-9-upgrade, .github/skills/agp-9-upgrade and .opencode/skills/agp-9-upgrade in your project.

What does Agp 9 Upgrade need to run?

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

Does Agp 9 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 Agp 9 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 Agp 9 Upgrade use?

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

How many tokens does Agp 9 Upgrade use?

About 883 tokens (SKILL.md is roughly 3.5k 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 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Agp 9 Upgrade?

Skills that share tags, products or a category with Agp 9 Upgrade: Claude Android Ninja (Drjacky/claude-android-ninja, 124 stars), Expo Brownfield Integration (mweinbach/agent-coworker, 156 stars), Android Audio E2E (hyochan/react-native-nitro-sound, 961 stars) and Android and KMP Baseline (rcosteira79/android-skills, 151 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agp 9 Upgrade?

arindamxd (a GitHub user) maintains it in arindamxd/camerax-android, which has 132 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 2, 2026.

Source: arindamxd/camerax-android on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.