android-cli
Skill4 starsChanged 39 days agoMITView on GitHub
Expert-level Android development skill for Claude Code. Autonomously plans, develops, builds, tests, debugs, optimizes, and maintains Android applications using Kotlin, Jetpack Compose, and Material Design 3. Before any Android task, detect the available tools. Run the environment check script if uncertain: If ANDROID_HOME or JAVA_HOME are not set, use full paths or set them in the current session: If the android command is not in PATH, install or reinstall: After installation, restart the shell or add the install directory to…
11 other projects use a version of this.
Adopted by
Most recently taken up by
- greenart7c3/Ambertheir own version, first seen Nov 30, 2026
- KryIZX/Skill-Mastertheir own version, first seen Nov 29, 2026
- AlwaysLovePasta/claude-android-devtheir own version, first seen Nov 15, 2026
- antoniolg/agent-kittheir own version, first seen Nov 8, 2026
- gug007/lpmtheir own version, first seen Nov 1, 2026
- PL-Coding-GmbH/Skillstheir own version, first seen Oct 25, 2026
Used with
Projects with it also use navigation-3 and edge-to-edge.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
drewid74Skillnavigation-3
Learn how to install and migrate to Jetpack Navigation 3, and how to
Also in 3 projects that use this
kid1412621Skilledge-to-edge
Use this skill to migrate your Jetpack Compose app to add adaptive edge-to-edge
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- rosuH/EasyWatermark★ 1.9ksame name
- greenart7c3/Amber★ 368same name
- LIghtJUNction/MagicNet★ 238same name
- kid1412621/SummaryExpressive★ 217same name
- gug007/lpm★ 147same name
- antoniolg/agent-kit★ 100same name
- PL-Coding-GmbH/Skills★ 26same name
- drewid74/ai_skills★ 8same name
- aaronbrethorst/claude-skills★ 4same name
- AlwaysLovePasta/claude-android-dev★ 1same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- ai-integration-engineerSkill
- android-frontend-engineerSkill
- android-security-engineerSkill
- android-security-lab-builderSkill
- android-testing-engineerSkill
- android-ui-ux-designSkill
- app-performance-engineerSkill
- app-product-architectSkill
- backend-api-engineerSkill
- database-offline-syncSkill
- devops-release-engineerSkill
- firebase-supabase-engineerSkill
- fullstack-web-engineerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Before any Android task, detect the available tools.
- Very specific: line 62
If ANDROID_HOME or JAVA_HOME are not set, use full paths or set them in the current session:
- Very specific: line 73
If the android command is not in PATH, install or reinstall:
- Distinctive: line 79
After installation, restart the shell or add the install directory to PATH.
- Distinctive: line 129
When asked to build an Android application, follow this workflow:
- Distinctive: line 142
Document the plan before writing code.
- Very specific: line 145
Use android create for template-based projects:
- Distinctive: line 153
Write Kotlin code following the architecture plan.
- Distinctive: line 156
Follow the coding standards in the reference docs.
- Distinctive: line 169
Read Gradle output carefully.
- Distinctive: line 191
Check for hardcoded secrets, insecure storage, missing network security config.
- Distinctive: line 203
Never claim success without execution results: Always show actual build output, test results, or error messages.
- Very specific: line 205
Never invent Android CLI commands: Only use commands documented in the android --help output.
- Distinctive: line 208
Never weaken security for convenience: Do not disable TLS validation, export components unnecessarily, or store secrets in plaintext.
- Very specific: line 212
Inspect before modifying: Read existing project files, build.gradle.kts, and AndroidManifest.xml before making changes.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Android Development Specialist
Expert-level Android development skill for Claude Code. Autonomously plans, develops, builds, tests, debugs, optimizes, and maintains Android applications using Kotlin, Jetpack Compose, and Material Design 3.
Environment Detection
Before any Android task, detect the available tools. Run the environment check script if uncertain:
& "$HOME/.claude/skills/android-cli\scripts\check-environment.ps1"Known Environment Paths (Windows)
| Tool | Path |
| Android CLI | ${ANDROID_CLI_HOME}/android.exe |
| Android SDK | ${ANDROID_HOME} |
| Android CLI data | $HOME/.android/cli |
| ADB | SDK platform-tools\adb.exe |
| sdkmanager | SDK cmdline-tools\latest\bin\sdkmanager.bat |
| avdmanager | SDK cmdline-tools\latest\bin\avdmanager.bat |
| Emulator | SDK emulator\emulator.exe |
| Build tools | SDK build-tools\{version}\ |
| Android Studio | C:\Program Files\Android\Android Studio |
| JDK 21 | C:\Program Files\Java\jdk-21.0.12 |
If ANDROID_HOME or JAVA_HOME are not set, use full paths or set them in
the current session:
$env:ANDROID_HOME = "${ANDROID_HOME}"
$env:JAVA_HOME = "C:\Program Files\Java\jdk-21.0.12"
$env:PATH = "${ANDROID_CLI_HOME};$env:ANDROID_HOME\platform-tools;$env:ANDROID_HOME\emulator;$env:ANDROID_HOME\cmdline-tools\latest\bin;$env:PATH"Android CLI Installation
If the android command is not in PATH, install or reinstall:
curl -fsSL https://dl.google.com/android/cli/latest/windows_x86_64/install.cmd -o "%TEMP%\i.cmd" && "%TEMP%\i.cmd"After installation, restart the shell or add the install directory to PATH.
Core Capabilities
1. Android CLI Commands
See references/android-cli-commands.md
for the complete command reference including create, run, install,
layout, screen, sdk, emulator, docs, studio, input, and more.
2. Kotlin & Jetpack Compose Development
See references/kotlin-development.md and references/jetpack-compose.md for patterns, architecture, and Material 3 implementation.
3. Architecture & Dependency Injection
See references/android-architecture.md for MVVM, Clean Architecture, Hilt, Navigation Compose, Room, Retrofit, and state management patterns.
4. Gradle Build System
See references/gradle-builds.md for build configuration, variants, signing, dependency management, and AGP setup.
5. Device & Emulator Management
See references/adb-device-management.md and references/emulator-management.md.
6. Debugging
See references/debugging.md for logcat, crash analysis, layout inspection, and network debugging.
7. Security Engineering
See references/android-security.md for OWASP MASVS compliance, secure storage, network security, and authorized security testing.
8. Testing & QA
See references/testing.md for JUnit, Compose UI testing, Espresso, and CI/CD integration.
9. Performance
See references/performance.md for profiling, memory optimization, and startup performance.
10. Troubleshooting
See references/troubleshooting.md for common errors and their solutions.
Autonomous Development Workflow
When asked to build an Android application, follow this workflow:
Step 1 — Understand Requirements
- Clarify app purpose, target API levels, and required features.
- Identify UI complexity (single screen vs multi-screen navigation).
- Determine data sources (local DB, REST API, both).
- Note any security or compliance requirements.
Step 2 — Plan Architecture
- Choose architecture pattern (default: MVVM with Clean Architecture layers).
- Identify modules:
app,data,domainfor larger apps. - Plan navigation graph.
- Select dependencies (Hilt, Room, Retrofit as needed).
- Document the plan before writing code.
Step 3 — Create Project
Use android create for template-based projects:
android create empty-activity --name="App Name" --namespace=com.example.app --output=./app-nameOr create manually with proper Gradle structure when templates don't fit.
Step 4 — Implement
- Write Kotlin code following the architecture plan.
- Build Compose UI with Material 3 theming.
- Implement navigation, state management, data layers.
- Follow the coding standards in the reference docs.
Step 5 — Build
# From project root
.\gradlew assembleDebugOr use the build script:
& "$HOME/.claude/skills/android-cli\scripts\build-debug.ps1" -ProjectPath ".\app-name"Step 6 — Diagnose Errors
- Read Gradle output carefully. Do not claim success without clean output.
- For common errors, consult references/troubleshooting.md.
- Fix dependency conflicts, API incompatibilities, and Kotlin errors iteratively.
Step 7 — Deploy & Test
# Install and run on connected device/emulator
android run --apks=app/build/outputs/apk/debug/app-debug.apk
# Or via ADB
adb install -r app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n com.example.app/.MainActivityStep 8 — Automated Testing
.\gradlew test # Unit tests
.\gradlew connectedCheck # Instrumentation tests (requires device)Or use: & "$HOME/.claude/skills/android-cli\scripts\run-tests.ps1" -ProjectPath ".\app-name"
Step 9 — Security Review
- Review AndroidManifest.xml for exported components and permissions.
- Check for hardcoded secrets, insecure storage, missing network security config.
- Run lint:
.\gradlew lint
Step 10 — Release Build
.\gradlew assembleRelease # APK
.\gradlew bundleRelease # AAB for Play StoreSigning configuration must be set up in build.gradle.kts first.
Critical Rules
- Never claim success without execution results. Always show actual build output, test results, or error messages.
- Never invent Android CLI commands. Only use commands documented in the
android --helpoutput. When the CLI lacks a feature, use Gradle, ADB, or SDK tools instead. - Never weaken security for convenience. Do not disable TLS validation, export components unnecessarily, or store secrets in plaintext.
- Never delete projects, reset devices, overwrite signing keys, or publish apps without explicit user approval.
- Inspect before modifying. Read existing project files,
build.gradle.kts, andAndroidManifest.xmlbefore making changes. - Use actual installed tools. Detect what's available and use full paths when tools aren't in PATH.
- Prefer Gradle wrapper (
gradlew/gradlew.bat) over system Gradle. - Use
android docs searchto look up current Android API documentation when uncertain about API usage.
Quick Reference — Common Tasks
| Task | Command |
| Create project | android create empty-activity --name="MyApp" --output=./my-app |
| List templates | android create --list |
| Build debug APK | .\gradlew assembleDebug |
| Build release AAB | .\gradlew bundleRelease |
| Install APK | android install --apks=path/to/app.apk |
| Run app | android run --apks=path/to/app.apk |
| List devices | adb devices |
| Screenshot | android screen capture -o screenshot.png |
| UI layout dump | android layout -p |
| Search docs | android docs search "jetpack compose" |
| Install SDK pkg | android sdk install platforms/android-35 |
| List SDK pkgs | android sdk list --all |
| Create emulator | android emulator create |
| Start emulator | android emulator start <name> |
| Run unit tests | .\gradlew test |
| Run lint | .\gradlew lint |
| Check environment | android info |
| Logcat | adb logcat -v time *:W |
| Describe project | android describe --project_dir=./my-app |
PowerShell Automation Scripts
Located in scripts/:
- check-environment.ps1 — Detects installed Android tools and reports status.
- build-debug.ps1 — Builds a debug APK with error handling.
- run-tests.ps1 — Runs unit and instrumentation tests.
- inspect-device.ps1 — Reports connected device status and properties.
Cross-Skill Orchestration
This skill is the entry point for Android development. For specialized tasks, identify and load the appropriate specialized skill:
| Task Domain | Skill | When to Use |
| UI/UX Design | android-ui-ux-design | Premium design systems, Material 3 theming, responsive layouts, motion, design-to-code |
| Frontend Engineering | android-frontend-engineer | Compose architecture, Navigation3, MVVM/MVI, Hilt DI, coroutines, networking |
| Backend APIs | backend-api-engineer | REST APIs, NestJS/FastAPI, authentication, PostgreSQL, Docker |
| Database & Offline | database-offline-sync | Room, DataStore, migrations, offline-first, sync, conflict resolution |
| Security | android-security-engineer | OWASP MASVS, threat modeling, secure storage, network security, auth security |
| Security Labs | android-security-lab-builder | Intentionally vulnerable apps, CTF challenges, security training |
| Testing & QA | android-testing-engineer | JUnit, Compose tests, Espresso, screenshot testing, CI automation |
| Performance | app-performance-engineer | Startup optimization, Compose perf, memory, APK size, benchmarking |
| DevOps & Release | devops-release-engineer | CI/CD, signing, GitHub Actions, Docker, Play Console, monitoring |
| AI Integration | ai-integration-engineer | LLM APIs, chat UI, streaming, RAG, on-device ML, AI safety |
| Firebase/Supabase | firebase-supabase-engineer | Auth, Firestore, Realtime DB, Cloud Functions, Supabase |
| Web Companion | fullstack-web-engineer | React/Next.js dashboards, admin panels, web APIs |
| Product Architecture | app-product-architect | Requirements, system design, tech selection, project planning |
Orchestration Workflow Example
For a complex request like "Build a premium cybersecurity Android app with login, dashboard, backend, and database":
- app-product-architect — Define requirements, architecture, data models
- android-ui-ux-design — Create design system, screen layouts, theme
- android-frontend-engineer — Implement Compose screens, navigation, state
- backend-api-engineer — Build REST API, auth endpoints, Docker setup
- database-offline-sync — Design schema, implement Room, sync strategy
- android-security-engineer — Review auth, storage, network security
- android-testing-engineer — Write tests, set up CI
- devops-release-engineer — Configure builds, signing, deployment
Load skills as needed during the workflow. This skill handles the Android CLI commands, project creation, building, and emulator management throughout.
Example Projects
Located in examples/:
- basic-compose-app/ — Minimal Jetpack Compose + Material 3 project scaffold.
- secure-android-app/ — Security-hardened project with network security config, encrypted storage, and proper permission handling.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

