/testing:claude-in-mobilefrom testing
This 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.
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.
Use this skill for claude-in-mobile MCP and native CLI workflows — the raw,
call-by-call driver for mobile and desktop automation.
claude-in-mobile is an MCP server plus a native CLI for automating Android,
iOS Simulator, macOS desktop apps, Aurora OS devices, Chrome/Chromium sessions,
quality checks, and app-store release operations. It exposes token-efficient
meta-tools instead of many single-purpose tools.
This skill is the low-level driver: you issue individual tool calls
(device list, tap, screenshot, ui tree, autopilot) and interpret the
results yourself. It does not enumerate an app's features, exercise them in
order, or emit a structured works/doesn't-work + UX report. When the user wants
that end-to-end report for an APK, use android-app-testing (or
desktop-app-testing) — those harnesses call this driver underneath. If the
ask is "test my app and tell me what breaks," prefer the testing harness; if the
ask is "tap that button" or "screenshot the simulator," stay here.
This Testing plugin installs the skill metadata only. Register the MCP server only when no
claude-in-mobile upstream is already available through Labby or the active agent runtime.
For Codex, local stdio fallback:
codex mcp add mobile -- npx -y claude-in-mobile@latest
For Claude Code, local stdio fallback:
claude mcp add --scope user --transport stdio mobile -- npx -y claude-in-mobile@latest
Equivalent JSON config:
{
"mcpServers": {
"mobile": {
"type": "stdio",
"command": "npx",
"args": ["-y", "claude-in-mobile@latest"]
}
}
}
Use MCP tools for interactive agent automation. Use the native CLI for scripts,
CI smoke tests, local setup, or quick manual checks. Check the current package
with npm view claude-in-mobile version before pinning a version. Do not overwrite
an existing project or user MCP config entry unless the user asks for that change.
adb in PATH, plus a connected USB-debuggable device or emulator.audb/audb-client, SSH enabled on the device, and Python
installed on the device for tap and swipe support.Run claude-in-mobile doctor first when setup is uncertain. It checks common
dependencies such as ADB, Android SDK paths, Xcode/simctl, Appium/WDA, JDK,
audb-client, and Chrome.
When using the Labby gateway, do not conclude that claude-in-mobile is broken
just because the first device list shows no Android target. The gateway may
have a working claude-in-mobile server while no device is attached yet, or
while host ADB is bound only to loopback.
Use this recovery sequence before giving up:
# 1. Confirm the upstream is connected.
labby gateway list | rg -i 'claude-in-mobile|mobile'
# 2. Ask claude-in-mobile what it can see through Labby.
labby gateway code exec --json --code \
'async () => await codemode.claude_in_mobile.device({ action: "list" })'
# 3. If Android is missing or system info reports ADB connection refused to
# 172.19.0.1:5037, restart host ADB so gateway/container clients can reach it.
adb kill-server
adb -a start-server
ss -ltnp | rg ':5037'
# 4. If no Android device is attached, boot an emulator instead of stopping.
avdmanager list avd
/path/to/Android/Sdk/emulator/emulator -avd <name> \
-no-window -no-audio -no-boot-anim -no-snapshot \
-gpu off -camera-back none -camera-front none
# 5. Wait for the emulator, then re-check both ADB and Labby.
adb devices -l
adb -s emulator-5554 shell getprop sys.boot_completed
labby gateway code exec --json --code \
'async () => await codemode.claude_in_mobile.device({ action: "list" })'
Important details:
claude-in-mobile may reach the host ADB daemon through a Docker
bridge address such as 172.19.0.1:5037; host ADB listening on
127.0.0.1:5037 is not enough. adb -a start-server binds it for gateway
access.-verbose and headless-safe flags instead of assuming the emulator is
unavailable. A successful headless launch should eventually show
control console listening on port 5554, ADB on port 5555.emulator-5554, use the MCP app/system tools to install,
launch, capture screenshots, and collect crash logs.The server exposes token-efficient meta-tools: core (device, input,
screen, ui, app, system, flow_batch, flow_run, flow_parallel),
quality (accessibility, visual, recorder, sync, autopilot,
performance), and optional modules (browser, desktop, store). See
references/tooling.md for the per-action breakdown of
each family.
Device discovery: list connected devices, set the active target, then capture a screenshot before taking action.
Visual inspection: capture an annotated screenshot, inspect the UI tree, then tap by text, accessibility label, resource id, or screenshot index. Prefer semantic locators over raw coordinates.
Cross-platform app smoke test: launch the app on Android and iOS, wait for the first screen, assert expected text, capture screenshots, and collect logs on failure.
QA pass: run accessibility audit, capture a visual baseline or compare against one, record a short repro if useful, and take performance snapshots around the interaction under test.
Desktop app test: enable the desktop module, launch or attach to the macOS app, focus the window, resize to a stable viewport, inspect windows, then drive clicks and keyboard input.
Browser test: enable or call the browser module, open/navigate to the URL, snapshot DOM refs, click/fill by ref or selector, wait for selectors, and capture visual evidence.
Store release: confirm package name, artifact path, store, track, and rollout intent before uploading or submitting. Treat store actions as destructive.
See references/tooling.md for setup commands, platform details, and coordinate handling.
These examples assume the native CLI binary is installed via Homebrew or a release artifact. The npm package is primarily used for MCP stdio startup.
claude-in-mobile doctor
claude-in-mobile screenshot android
claude-in-mobile tap android 540 960 --from-size 540x960
claude-in-mobile input android "hello world"
claude-in-mobile ui-dump android | grep "Login"
claude-in-mobile store upload --package com.example.app --file app.aab
system shell, file operations, permission changes, and store actions
as privileged operations.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dinglebear-ai/dendrite --plugin testing6 skills in this plugin
/android-app-testingUse 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./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)./mcpjam-ui-testingThis skill should be used when the user wants to validate an MCP-UI or MCP Apps implementation — checking widget rendering in the Inspector, verifying ui:// resource contracts, testing structuredContent, or running MCP Apps conformance checks. Triggers include: "why isn't my MCP widget rendering", "test my MCP-UI implementation", "check if my tool passes MCP Apps conformance", "verify the ui:// resource contract", "debug my Inspector view". Does not apply for general MCP tool smoke-testing (use mcporter for that)./mcporterUse when the user mentions mcporter, says "test an MCP server", "smoke-test these tools", "automate MCP testing", "call a tool from the shell", "list MCP tools", "exercise the gateway tools", or asks for a script that hits MCP endpoints. Covers using mcporter to discover, inspect, and call MCP servers from the shell, and to write repeatable regression or smoke-test scripts. Not for designing new MCP servers, writing server-side handlers, or generic API testing unrelated to MCP./web-app-testingUse when the user wants to live-test a WEB app/site end-to-end in a real browser and get a works/doesn't-work + UI/UX report — not just write Playwright code. Triggers: "test my web app", "QA this site", "run E2E on the web app", "click through every feature and tell me what breaks", "review the UX of this web app", "does my web app work", "test the deployed site". Drives a real Chrome via Playwright over CDP (default http://127.0.0.1:9222), enumerates features from the DOM/ARIA tree, exercises each, captures screenshots + console/page/network errors, and emits a structured report. Sibling of android-app-testing and desktop-app-testing (shared report format). Does NOT fire for: writing a one-off Playwright script (use webwright), pure web design/build with no testing, or backend/API-only testing.