Agent skill · Android Skills
/android-cli Let the agent drive Android devices with the android CLI
android-cli teaches the agent the android command-line tool so it can work beyond the code editor. It covers installing the CLI, managing SDK packages, creating projects from templates, inspecting a running app through JSON layout dumps and annotated screenshots, sending input with adb, searching the Android knowledge base and evaluating XML journey tests step by step with a Markdown results file.
Works with
- Android CLI
- Claude Code
- Codex
When to use it
- You want the agent to launch your app on an emulator and check what is on screen.
- You have written user journeys and want them evaluated on a device.
- The agent needs current Android documentation rather than its training data.
How it works
- 1Install and set up
If the tool is missing, the agent installs it with the platform-specific script and uses the sdk, create and emulator commands as needed.
- 2Inspect the screen
It uses the JSON layout dump as the main view of the UI and falls back to annotated screenshots for images, web views or missing elements.
- 3Interact carefully
Taps, swipes and text go through adb input using element coordinates, with focus checks before typing and slow scrolls.
- 4Run journeys
Each journey action is executed exactly as written, checks only inspect the current screen, and results are written to a Markdown file.
What it steers the agent away from
- Guessing a journey's intent instead of following each step literally.
- Typing into a field that does not have focus.
- Relying on outdated knowledge when the docs command can look things up.
Install this skill
It installs with the Android Skills pack.
Android CLI (detected agents)--all installs every skill for each detected agent (Gemini and Antigravity if none are found), while --project puts one skill in a given folder.
android skills add --all
android skills add r8-analyzer --project=.
android skills update --allClaude CodeInstalls the collection as a Claude Code plugin.
/plugin marketplace add android/skills
/plugin install android-skills@android-skillsCodexInstalls the collection as a Codex plugin.
codex plugin marketplace add android/skills
codex plugin add android-skills@android-skillsCommands come from the author’s README; check it for changes before you run them.
Questions
Is the CLI required for the other skills?
No. The other skills work without it, though the README offers the CLI as one way to install and update the whole collection.
What if the layout dump fails?
The skill tells the agent to take an annotated screenshot and resolve numbered regions to tap coordinates.
More guides from Android Skills
/jetpack-compose-performanceFind and fix the Compose code that drops framesAudits Compose code for recomposition, layout, lazy list, animation, effect and drawing costs that cause dropped frames.Read the guide →/migrate-xml-views-to-jetpack-composeConvert one XML layout to Compose with visual parityMoves one XML layout to Compose in ten steps, from a baseline screenshot to visual parity checks and XML removal.Read the guide →/r8-analyzerFind redundant and overly broad R8 keep rulesRuns R8 configuration analysis and reports redundant, overly broad or subsumed keep rules without editing the project.Read the guide →/play-billing-library-version-upgradeUpgrade Play Billing Library without missing breaking changesUpgrades Play Billing Library to the latest stable release, in two-version steps when the app is far behind.Read the guide →/edge-to-edgeMake a Compose app edge-to-edge without hidden buttonsMakes every Activity in a Compose app edge-to-edge and fixes insets, keyboard overlap and system bar legibility.Read the guide →/testing-setupSet up a complete testing strategy for an Android appAssesses an app's test setup, then adds dependency injection for tests, unit, UI, screenshot and end-to-end tests and coverage.Read the guide →
Also in this pack
/agp-9-upgradeMigrates an Android project to Android Gradle Plugin 9 after first checking the current version, excluding Kotlin Multiplatform projects.↗/cameraxGuides CameraX work such as preview, capture and recording lifecycles, Camera2 interop and ML Kit or Media3 effects.↗/android-for-cars-parked-appsAdapts video, game and browser apps to run while parked on Android Auto and Automotive OS within car app quality rules.↗/appfunctionsFinds app workflows worth exposing as AppFunctions and generates the Kotlin code and KDoc so agents and shortcuts can call them.↗/ml-kit-genai-prompt-apiAdds the ML Kit GenAI Prompt API for on-device Gemini Nano requests, with structured output and prefix caching.↗/mlkit-agent-apiBuilds on-device agent loops with the ML Kit GenAI Agent API, AgentSession chat and AppFunctions tool calling.↗/restore-credentialsImplements Restore Credentials with Credential Manager so users are signed back in silently on a new device.↗/verified-emailAdds OTP-free verified email retrieval through Credential Manager digital credentials during sign-up.↗/ink-app-builderAdds stylus and touch drawing with Jetpack Ink, including stock brushes, erasing, undo and redo and Room persistence.↗/ink-custom-brush-builderWrites custom Jetpack Ink BrushFamily definitions with tip shapes, input behaviours, layered coats and textures.↗/adaptiveMakes Compose UIs adapt to phones, tablets, foldables, desktop, TV and XR, keeping state across configuration changes.↗/litert-lmBuilds an Android chat, summary or extraction feature on an on-device open LLM via LiteRT-LM, from model download to streamed Compose UI.↗
Summary by trendhub. The skill itself lives in android/skills/devtools/android-cli by Android (Apache-2.0); read the full, current text there.