Verify and bootstrap the Google Android CLI (`android` command) on the user's machine. Use when the `android` command is missing, outdated, misconfigured (wrong SDK path), or when the user wants to set up `.androidrc` or wire the CLI into agents (`android init`). Triggers include "android cli 설치", "android command not found", "android update", "sdk 경로", ".androidrc", "android init", "android cli 환경설정". Do NOT use this skill for day-to-day deploy/emulator/screen workflows — those have dedicated skills.
npx claudepluginhub kez-lab/android-custom-skillsThis skill uses the workspace's default tool permissions.
Pre-flight + onboarding for the Google Android CLI. Most other skills in this repo assume `android` is installed and pointing at a valid SDK; this skill is the fallback that fixes those preconditions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Pre-flight + onboarding for the Google Android CLI. Most other skills in this repo assume android is installed and pointing at a valid SDK; this skill is the fallback that fixes those preconditions.
Reads .claude/android-skills.json at the git repo root:
{
"androidCli": {
"sdkPath": "/Users/me/Library/Android/sdk",
"preferredAgents": ["claude-code"]
}
}
| Field | Purpose |
|---|---|
androidCli.sdkPath | Override Android SDK location. Used to populate --sdk in .androidrc. If absent, fall back to android info. |
androidCli.preferredAgents | Which agents android skills add should target by default. |
Run these in order. Stop and remediate at the first failure.
# 1. Is the CLI installed?
which android || command -v android
# 2. What version?
android --version
# 3. Where is the SDK?
android info
Expected outputs:
/usr/local/bin/android (macOS) or similar.0.7.x. The CLI changes often — anything more than a few weeks old should be updated.platforms/, build-tools/, platform-tools/.OS-specific install (per the Android CLI release page):
# macOS (Apple Silicon)
curl -fsSL https://dl.google.com/android/cli/latest/darwin_arm64/install.sh | bash
# Linux x86_64
curl -fsSL https://dl.google.com/android/cli/latest/linux_x86_64/install.sh | bash
Windows: documented as not supported via PowerShell download. Use cmd.exe:
curl.exe -fsSL https://dl.google.com/android/cli/latest/windows_x86_64/install.cmd -o "%TEMP%\i.cmd" && "%TEMP%\i.cmd"
Re-open the shell so PATH refreshes. Verify with which android.
android update
Encourage running this regularly — feature surface changes weekly.
~/Library/Android/sdk or ~/Library/Android/Sdk~/Android/Sdkandroid --sdk=/path/to/sdk <command>.androidrc: see below.androidCli.sdkPath in .claude/android-skills.json so other skills can read it..androidrc setupLocation: ~/.androidrc on macOS/Linux, %USERPROFILE%\.androidrc on Windows. One flag per line:
--sdk=/Users/me/Library/Android/sdk
Only persist flags that should apply to every invocation. Per-command flags belong on the command line.
android init)Installs the official android-cli skill into detected agent skill directories. Run once per machine:
android init
If the user has multiple agents (Claude Code, Gemini, Antigravity) and only wants some, use:
android skills add --agent='claude-code' --skill=android-cli
Note: this repo's skills are richer than the official one. Recommend keeping the official skill for "what does this command do" lookups and our skills (android-deploy, android-emulator, etc.) for workflows.
If .claude/android-skills.json lacks androidCli and the user is setting up:
android info.<path>) and your active agent to .claude/android-skills.json? [y/N]".{
"androidCli": {
"sdkPath": "<path>",
"preferredAgents": ["<active-agent>"]
}
}
which android and android info before recommending an install — the CLI may already be set up correctly.install.sh already configures it. Use the official installers.--sdk into every command. Either .androidrc or a single env-var override.android update autonomously — let the user trigger updates so they don't lose work mid-task.sdkmanager. They overlap (android sdk install) but Android CLI is the recommended entry point.ANDROID_HOME / ANDROID_SDK_ROOT env vars when --sdk / .androidrc does the job per-CLI.android init blindly on every machine without checking which agents are detected (it installs to all by default).android update when the CLI is already present.