/saarius-skills:phone-prooffrom saarius-skills
Build, install, visually inspect, drive, and re-verify phone or emulator UI changes with device screenshots and compact proof. Use for Android, iOS Simulator, foldable, emulator, APK, app-layout, Vysor, scrcpy, Android Studio, Running Devices, AVD, ADB screenshot, black-frame, wrong-display, unreachable-control, or rendered-regression work where build logs alone cannot prove the human-visible result. Also use before any live voice or Talk proof (macOS say into the phone mic, barge-in, audio focus, spoken replies); read references/live-voice.md first.
Ships in saarius-skills. 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.
Treat pixels as part of the acceptance test. A successful build or install is not a visual verdict. The loop verifies device UI with or without a build: a registered physical test phone and a route-approved Android Studio emulator (AVD) are both first-class proof targets. The install step applies only when there is an artifact to install; a running emulator or phone can be inspected on its own.
Use AGY Pixel Use as the phone-control backend for interoperability slices.
/pixel-use.pixel_devices and use the returned opaque handle.pixel_observe.Use scripts/phone_proof.py and Vysor for display alignment, capture, and
troubleshooting only; do not let them replace Pixel Use as the control backend.
Transient-overlay rubric:
pixel_observe snapshots.Keep this control-plane guidance separate from the PhoneProof visual/proof doctrine. Do not add a device admission gate.
Use scripts/phone_proof.py for Android device inventory and screenshots.
Do not hand-compose a display capture when the helper owns it.
Read the target repo's AGENTS.md and device route. Confirm the exact
registered test device, package, build artifact, allowed actions, restore
condition, and proof root. A mirror window or familiar label is not target
authority.
Write a short visible behavior contract: what should be legible, reachable, populated, and unchanged. Include the screen and posture the human watches.
Build with the repo-owned command. Record the artifact path and digest. Do not infer UI success from compilation.
Inventory Android displays:
python3 scripts/phone_proof.py inventory
With more than one authorized device, supply --serial before the
subcommand. Never copy the serial into public proof.
Install only the reviewed debug/test artifact using the repo's owned
installer or bounded adb install -r <exact-apk>. Force-stop and relaunch
the exact test package so hot reload cannot masquerade as a native install.
Verify the installed package's APK digest(s) against the intended build as
described in the proof contract; an installer success message is not an
artifact identity check. Skip this step for inspection-only work.
Capture the physical display:
python3 scripts/phone_proof.py capture \
--physical-display-id <id-from-inventory> \
--output <proof-root>/after-install.png \
--manifest <proof-root>/after-install.json
Omit --physical-display-id only when inventory reports exactly one
physical display. The helper rejects warning-prefixed or malformed PNG data
and flags unusually small captures as suspicious.
Actually inspect the image with the available image-viewing surface. Check real-size legibility, reachable controls, empty or black regions, clipping, stale content, and expected state. File size and a PNG signature are only anti-corruption checks.
Vysor and Android Studio's Running Devices (Device Mirroring) window are both acceptable human-view routes; scrcpy remains a fallback. The helper's ADB capture stays the canonical agent proof either way. If human and agent disagree, align the mirrored screen, physical capture ID, logical input display ID, posture, and foreground package before debugging the app.
Drive only the explicitly selected plugged-in test device and only
reversible, route-approved actions.
Use AGY Pixel Use (/pixel-use + pixel_observe) as the primary control
path, preferring named → app-semantic → general controls. Fall back to
Android input only when a control is not available through Pixel Use.
Android input uses a logical display ID:
adb shell input -d <logical-display-id> tap <x> <y>
adb shell input -d <logical-display-id> swipe <x1> <y1> <x2> <y2> <ms>
Never reuse a physical screenshot ID as a logical input ID. Capture after every meaningful action and every reinstall.
If the image violates the visible contract, record the finding, fix the smallest source slice, rebuild, reinstall, relaunch, and repeat from capture. Keep before/after images; do not replace failed evidence.
Close only when the final image has been inspected, anti-cheat probes pass, the requested state persists or resets as specified, and the device is restored.
Proof is executable inside Android Studio for both an emulator and a USB/wireless real phone.
adb binary Android Studio uses (SDK platform-tools) so
device inventories match and the workflow does not fight a dueling adb
server started from a different install.emulator-<port> serials; the helper reports
device_class ("emulator" or "physical") so proof manifests
self-describe the target without ever recording the serial.scripts/phone_proof.py capture.--serial when an emulator and a
phone are both attached.Use tree when proof needs text-level evidence of what is rendered, not just
pixels:
python3 scripts/phone_proof.py tree --manifest <proof-root>/tree.json
Never hand-roll uiautomator regex extraction. The dump switches an
attribute's delimiter from " to ' whenever the value itself contains a
double quote, so a naive text="[^"]*" regex returns a confident false
negative on exactly the node that matters. The subcommand parses with a real
XML parser (falling back to a delimiter-safe regex only on malformed XML),
unescapes entities, strips zero-width characters, and reports a node count so
an empty result is visibly empty rather than silently so. result: "empty"
fails closed and exits non-zero without --allow-empty.
Extracted text is on-screen content and follows the same proof-boundary rules as screenshots: never publish serials, account identity, or unrelated content pulled into a capture.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
48 skills in this plugin
/acp-delegationRoute generic requests to use the SaariusSkills ACP plugin or delegate through ACP. The MCP servers come from the separate ai-shed plugin. Discover Grok CLI, Cursor, Antigravity, and Muse native tools, select a suitable harness, verify effective permissions, and submit a bounded task. Use a lane skill directly for an already selected harness./agy-sidebar-sessionStart, message, hand off, inspect, fork, wait on, stop, and export top-level Antigravity 2.0 sidebar sessions across local or SSH-reachable machines using agentapi and LanguageServerService ConnectRPC endpoints. Use when asked to open or manage a sidebar session, hand off work to another Antigravity host, compare quota across subscriptions, message another conversation, or call LanguageServerService RPCs./npx claudepluginhub saariuslystoned/saariusskills --plugin saarius-skills