/pm-workspace:android-autonomous-debuggerfrom pm-workspace
Debugs and tests Android apps on physical devices via USB/ADB. Detects crashes, ANRs, memory leaks, runs instrumented tests, and generates reports with screenshots and fix suggestions.
Ships in pm-workspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Trigger: When the user asks to debug, test, or verify an Android app on a physical device, or when a build-and-test cycle is needed against a connected Android device.
Keywords: android debug, test on device, install apk, check crash, mobile testing, e2e test, verify on phone, run on device, screen capture device.
NEVER use source scripts/lib/adb-wrapper.sh && cmd1 && cmd2 — Claude Code's shell-aware permission system blocks compound &&/|| chains, causing permission popups that break autonomous operation.
ALWAYS use ./scripts/adb-run.sh which wraps everything in a single command:
# WRONG — causes permission popups:
source scripts/lib/adb-wrapper.sh && adb_auto_select && adb_screenshot /tmp/s.png
# CORRECT — single command, no popups:
./scripts/adb-run.sh adb_auto_select "adb_screenshot /tmp/s.png"
Each argument is one function call. Inner quotes group words ("adb_tap_text 'Conectar ahora'").
Calls are not shell-evaluated: only public adb_* functions are accepted; ;, $(...),
unbalanced quotes, extra arguments or any other command are REJECTED. Each call runs isolated: a failing call
prints FAILED: <call>, the rest still run, exit 1 at the end.
./scripts/adb-run.sh adb_auto_select adb_device_info
./scripts/adb-run.sh adb_devices
./scripts/adb-run.sh adb_auto_select "adb_install ./path/to/app.apk"
./scripts/adb-run.sh adb_auto_select "adb_uninstall com.package.name" # not installed = ok; adb error = fail
./scripts/adb-run.sh adb_auto_select "adb_launch com.package.name"
./scripts/adb-run.sh adb_auto_select "adb_stop com.package.name"
./scripts/adb-run.sh adb_auto_select "adb_clear_data com.package.name"
./scripts/adb-run.sh adb_auto_select "adb_screenshot /tmp/screen.png"
./scripts/adb-run.sh adb_auto_select "adb_hierarchy /tmp/ui.xml"
./scripts/adb-run.sh adb_auto_select "adb_snapshot /tmp/prefix"
./scripts/adb-run.sh adb_auto_select "adb_tap 500 900"
./scripts/adb-run.sh adb_auto_select "adb_tap_id login_button" # exact id (short or pkg:id/...)
./scripts/adb-run.sh adb_auto_select "adb_tap_text 'Conectar (beta)'" # exact literal text
./scripts/adb-run.sh adb_auto_select "adb_swipe 500 1200 500 400 300"
./scripts/adb-run.sh adb_auto_select adb_scroll_down
./scripts/adb-run.sh adb_auto_select "adb_type 'hola mundo'" # metachars escaped; spaces -> %s
./scripts/adb-run.sh adb_auto_select "adb_key back"
./scripts/adb-run.sh adb_auto_select adb_logcat_clear
./scripts/adb-run.sh adb_auto_select "adb_logcat_errors 30" # last 30 s by device clock
./scripts/adb-run.sh adb_auto_select "adb_logcat_errors 60 com.savia.mobile" # not running -> unfiltered + WARN
./scripts/adb-run.sh adb_auto_select "adb_detect_crash 60" # CRASH_DETECTED|NO_CRASH rc0; LOGCAT_ERROR|NO_LOGS rc2
./scripts/adb-run.sh adb_auto_select "adb_meminfo com.savia.mobile"
./scripts/adb-run.sh adb_auto_select "adb_find_by_id btn_send"
./scripts/adb-run.sh adb_auto_select "adb_find_by_text Savia"
./scripts/adb-run.sh adb_auto_select "adb_wait_for_text Welcome 15"
./scripts/adb-run.sh adb_auto_select "adb_wait_for_id main_screen 10" # [timeout s] [interval s >= 1]
When asked to verify an app on device, follow this cycle:
./scripts/adb-run.sh adb_auto_select adb_device_info adb_logcat_clear
./scripts/adb-run.sh adb_auto_select "adb_install <path>" "adb_launch <package>" "adb_wait_for_text MainScreen 15" "adb_screenshot /tmp/baseline.png"
For each screen/feature to test:
./scripts/adb-run.sh adb_auto_select "adb_tap_text FeatureName" "adb_wait_for_text ExpectedText 10" "adb_screenshot /tmp/feature-X.png" "adb_logcat_errors 10"
If a crash is detected:
./scripts/adb-run.sh adb_auto_select "adb_detect_crash 30" "adb_logcat_errors 60 com.package"
Summarize: PASS/FAIL per screen tested. Include screenshots as evidence. Include crash logs if any. Suggest fixes based on stack traces.
Operations are classified into three security levels:
| Level | Examples | Behavior |
|---|---|---|
| Safe | screenshot, logcat, hierarchy, tap, type | Auto-approved |
| Risky | install, uninstall, force-stop, clear data | Logged, allowed |
| Blocked | rm -rf, format, su, dd | Always rejected |
The android-adb-validate.sh hook classifies the command text. The wrapper also validates | ||
every argument that reaches adb shell (integers, package names, key names) and escapes | ||
adb_type text, so no call can inject commands into the device shell. |
| Variable | Default | Description |
|---|---|---|
ADB_PATH | auto-detect | ADB binary; if set and not executable, error (no fallback) |
ADB_DEVICE | auto-select | Target device serial |
ADB_RETRIES | 3 | Max attempts per command (min 1) |
ADB_TIMEOUT | 30 | Command timeout (seconds) |
./scripts/adb-run.sh — never source wrapper.sh && ...NO_CRASH; captures fail if the pull fails (old file kept, never reported as new); adb_snapshot reports "failed":Nadb_auto_select; chain many functions in one calladb_wait_for_text instead of sleepWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
android-debugging, adb, mobile-testing, crash-detection, anr-detection
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: dependencies: Invalid input: expected array, received object, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
139 skills in this plugin
/adversarial-securityUsar cuando se necesita auditar la seguridad de un proyecto con pipeline Red Team / Blue Team./agent-code-mapUsar cuando un agente necesita conocer la arquitectura del proyecto sin leer ficheros completos./agent-file-mapUsar cuando se trabaja con ficheros externos al workspace que los agentes deben localizar./agent-messagingUsar cuando un agente debe enviar un mensaje a otro agente con roles y receipts, sin pasar por el usuario. Triggers: mensaje a otro agente, agent-message, notify agent, inbox.Other plugins' skills for the same job