/testing:android-app-testingfrom testing
Use when the user wants to live-test an Android APK end-to-end on an emulator/device and get a works/doesn't-work + UI/UX report — driving the real app, not writing test code. Triggers: "test my Android app", "QA this APK", "run the app on the emulator and tell me what breaks", "click through every screen", "review the app's UX", "does my APK work", "test the built APK". Installs/launches the APK, enumerates screens from the accessibility tree, exercises each feature via adb (tap/type/swipe/launch), watches logcat for crashes/ANRs, captures screenshots + UI dumps, and emits a structured report. Primary path is direct local adb; optional richer path via claude-in-mobile. Sibling of web-app-testing and desktop-app-testing (shared report format). Does NOT fire for: building/coding an Android app (use claude-android-ninja / jetpack-compose-expert), iOS, or unit tests.
Ships in testing. 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; scripts run unread.
Live, end-to-end testing of a built Android APK on an emulator (or device): install, launch,
drive every screen/feature, watch for crashes & ANRs, review UI/UX, and emit a structured
works/doesn't-work report. Companion to web-app-testing and desktop-app-testing — all three
share one report format (references/report-format.md).
scripts/androidtest.sh). Fully validated, no gateway needed.
Everything below uses this.references/claude-in-mobile-path.md. The adb path covers the full loop without the gateway.adb + emulator (default ~/Android/Sdk/...; override ADB/EMULATOR).AVD or the first emulator returned by emulator -list-avds). The emulator does NOT auto-boot — step 1 boots it.scripts/androidtest.sh wraps the verified adb drive loop. Commands:
androidtest.sh boot [<avd>] # launch headless, wait for sys.boot_completed
androidtest.sh ready # serial + boot/model/android; exit 0 if ready
androidtest.sh install <apk> # adb install -r -g
androidtest.sh launch <pkg>[/<activity>] # am start (or monkey LAUNCHER if no activity)
androidtest.sh stop <pkg> # am force-stop
androidtest.sh shot <run_dir> <name> # screencap -> evidence/<name>.png (pulled to host)
androidtest.sh tree <run_dir> <name> # uiautomator dump -> evidence/<name>.xml (host)
androidtest.sh taptext <run_dir> <text> # find text in a fresh UI dump, tap its center
androidtest.sh tapxy <x> <y> # input tap
androidtest.sh swipe <x1> <y1> <x2> <y2> [ms] # input swipe
androidtest.sh text "<string>" # input text into focused field
androidtest.sh key <BACK|HOME|ENTER|…># input keyevent
androidtest.sh current # current focused activity/package
androidtest.sh logclear # logcat -c (call before a feature)
androidtest.sh crashes # grep buffer for FATAL/ANR/SIG/died
All primitives were live-validated (2026-05-29) against an Android 15 AVD.
androidtest.sh boot (waits for sys.boot_completed), then ready. Create
the run dir ~/.agents/docs/sessions/<app>-android-test/run_<id>/.androidtest.sh install <apk>. Note the package name
(aapt dump badging <apk> | grep package, or adb shell pm list packages -3 after install).launch <pkg>; shot/tree the first screen. Parse the uiautomator XML to
enumerate clickable elements, text fields, tabs, nav targets. Build the feature checklist (merge
with any user-supplied spec) — one row per feature in the report. Write plan.md in the run dir.logclear → act (taptext for semantic taps, tapxy for
coords, text/key for input, swipe for gestures) → shot +
tree for evidence → check current (did navigation happen?) and crashes (FATAL/ANR?).
Classify PASS / PARTIAL / FAIL / BLOCKED.
taptext over raw coordinates — it survives layout changes (coords don't).crashes shows FATAL EXCEPTION / signal …(SIG…) / has died. → FAIL.crashes shows ANR in, or current stops changing / UI frozen. → FAIL.stop <pkg> then launch to avoid state leaking.uiautomator XML with empty text AND empty content-desc on interactive elements =
accessibility findings.report.md + result.json in the run dir, per
references/report-format.md.Run-dir layout per references/report-format.md: evidence/*.png (screencaps), evidence/*.xml
(uiautomator dumps), logcat captures, result.json. The driver pulls screenshots/dumps from the
device to the host run dir automatically.
adb kill-server is run — avoid it; if a device
disappears, the qemu process is usually still alive and re-registers, or just boot a fresh one.am start -n pkg/.Activity needs the real activity; if unknown, use launch <pkg> (monkey
LAUNCHER) which resolves the launcher activity.input text can't type spaces directly — the driver encodes them (%s); for complex strings
prefer per-field taps.-gpu swiftshader_indirect is reliable for CI-style headless; custom-rendered
(game/Canvas/Flutter-impeller) UIs may expose little in uiautomator → fall back to screenshot +
coordinate taps and flag reduced confidence.references/report-format.md — shared cross-platform report spec, run-dir layout, verdicts.references/claude-in-mobile-path.md — optional gateway path, checks, and ADB recovery.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dinglebear-ai/dendrite --plugin testingOther plugins' skills for the same job
6 skills in this plugin
/claude-in-mobileThis skill is the RAW claude-in-mobile MCP/CLI driver — use it to issue individual device-automation calls: drive an iOS Simulator, tap/swipe/type on an Android device or emulator, capture or diff screenshots, inspect the UI tree, audit accessibility, fan out across multiple devices, or run guarded Play Store release operations. Triggers: "drive my emulator", "tap this element", "screenshot the simulator", "call a claude-in-mobile tool", "run an autopilot flow". Does NOT produce a structured works/doesn't-work test report — for an end-to-end APK test run with a written report, use android-app-testing (or desktop-app-testing); this skill is the low-level driver those harnesses sit on top of./desktop-app-testingUse when the user wants to live-test a built Windows desktop application (.exe) end-to-end inside the agent-os Windows 11 VM and get a works/doesn't-work + UI/UX report — launching the real binary and driving it, not writing test code. Triggers: "test my Windows app", "QA this .exe", "run my desktop build on agent-os and tell me what breaks", "click through the app", "review the desktop app's UX", "does my exe work", "test the built binary in the Windows VM". Gets the .exe into the VM, launches it, enumerates controls from the UI Automation tree, drives every feature (click/type by element), watches for crashes/hangs/error dialogs, captures screenshots + control-tree dumps, and emits a structured report. Drives the agent-os VM via the Windows-MCP gateway. Sibling of web-app-testing and android-app-testing (shared report format). Does NOT fire for: building/coding a desktop app, the user's personal Windows on winhost (use nircmd), or general agent-os VM driving (use agent-os).