agp-upgradelisted
Install: claude install-skill duonglkh/claude-android
# agp-upgrade
Guide Claude through an AGP version upgrade for the **current Android project**, using the
`claude-android` MCP server to read project context.
## When this skill applies
The user asks anything like:
- "Upgrade AGP from 8.5 to 8.7"
- "I want to migrate to AGP 9"
- "What needs to change to bump AGP?"
- "Show me the AGP upgrade plan for this project"
## Required tool — the MCP server must be registered
This skill calls into the `claude-android` MCP server. If the server is not registered with
Claude Code, instruct the user to run:
```bash
npm install -g @duonglkh/claude-android
claude mcp add android claude-android-mcp
```
Then verify with `claude mcp list`. The server name should be `android`.
## Workflow
Follow these steps in order. Do not skip.
### 1. Read project context
Call `mcp__android__get_project_info` with `projectPath` = the absolute path to the project
root (where `settings.gradle.kts` lives). Use `pwd` or ask the user to confirm if uncertain.
Capture from the result:
- `agpVersion` (current)
- `kotlinVersion`
- `modules` list
- `isKmp` (KMP projects have extra steps)
- `hasBuildLogic` (convention plugins → upgrade them too)
If `agpVersion` is `null`, the project is not on a modern catalog — warn the user and ask
where AGP is declared.
### 2. Ask target AGP version
If the user has not specified, ask:
> "Bạn muốn upgrade lên AGP version nào? Latest stable is **X.Y.Z** as of <today>. Reply with version or 'latest'."
Look up the latest st