ucsandman/claude-skills / phone
phone
VerifiedControl the user's iPhone, including apps and messaging.
Drive the user's iPhone (SideTap)
The user's real iPhone is connected to this PC over USB and fully controllable.
Replace /path/to/sidetap below with the SideTap folder — a git clone, or
%LOCALAPPDATA%\SideTap\app when it was installed with the sidetap.io
one-liner. Driving the phone works from any project directory.
Run
Cheapest path, and the only one a subagent with no MCP tools has: the declick
adapter iphone. Build it once with
declick add "mcp:python /path/to/sidetap/scripts/phone_mcp.py" --name iphone,
then every helper is a shell verb:
declick daemon start # once per boot: keeps the server warm, ~0.6s a call instead of 2-4s
declick run iphone ocr --rows screen --fields text,x,y --limit 30
declick run iphone tap-text --text "General"
declick run iphone send-message --contact Mom --text "hi"
declick run iphone act --steps '[{"tool":"tap","args":{"x":100,"y":200}},{"tool":"type_text","args":{"text":"hi"}}]'
declick describe iphone --verb tap-text # one verb's flags, under 500 tokens
Verbs are the helper names in kebab-case (tap_text is tap-text) and every
argument is a --flag; inside act --steps the tool names stay Python-style
(type_text). ocr and find-text answer {warning, source, flags, screen}:
--rows screen unwraps the rows and the warning stays in meta.extra. Set
DECLICK_TIMEOUT_MS=120000 for unlock, send-message, read-messages and
find-on-home-screen, which can outrun the 30s default. Every safety gate below
applies unchanged.
For a step that needs logic between gestures, run Python with the helpers in scope:
cd /path/to/sidetap && ./phone-harness.cmd <<'PY'
send_message("Mom", "hi")
PY
Bare phone-harness is NOT on the bash PATH — always use ./phone-harness.cmd
from the repo root. Helpers are pre-imported; print() output comes back to you.
REQUIRED SUB-SKILL: read phone-gotchas before your first tap. It holds the
coordinate traps, the batching tool, and what the harness genuinely cannot do —
none of which you can learn by looking at the screen.
Helpers
| Helper | Use |
|---|---|
send_message(contact, text) | full Messages send; contact = conversation name in the Messages list |
send_image(contact, image_path, text="") | send a PNG/JPEG file from this PC as a Messages attachment, optional caption (clipboard paste; same approval gate) |
save_clipboard_image(path) | save the image copied on the phone to a PNG on this PC |
read_messages(contact, limit=20) | read a thread back: [{text, from_me}, ...], oldest first |
ocr() | all visible text with center coords (real UI tree, exact). Elements are {"text","x","y","type","rect"} — the key is text, and full= is MCP-only |
find_text(t) / tap_text(t) | locate / tap by visible text |
wait_for_text(t, timeout=10) | poll until text appears; returns the element (with x/y) |
tap(x, y) / swipe(x1,y1,x2,y2,secs) / scroll("down") | raw gestures, units = points |
long_press(x, y, seconds=1.0) | context menus and other hidden affordances |
act([{"tool":n,"args":{...}}, ...]) | several tools in ONE round trip; screenshot excluded |
type_text(t) | type into the focused field (tap the field first) — it appends at the cursor |
set_field_text(field, text) | replace a field's contents: pass the ocr() row for the field (it taps it for you), reads the value back. The only correct way to fill a field that may already hold text or an iOS draft |
get_clipboard() / set_clipboard(t) | read or write the iPhone system clipboard |
open_app("messages", wait_seconds=0) | friendly name or bundle id; wait_seconds>0 confirms it reached the foreground and raises if it never did (the only foreground-confirmed launch that does not need the bundle id) |
current_app() / wait_for_app(bundle_id) | frontmost app / wait until one is |
open_apps() / close_app(name) | the app switcher's contents [{name, bundle_id, pid}], newest first, read over USB; force-quit one (same names as open_app). The switcher SCREEN cannot be opened: WDA touches never reach the home-indicator zone (measured) |
screenshot("out.png") / press_home() / wait_stable() / unlock() | utilities |
Not in the table, and you will want them:
- There is no
drag(). Moving Home Screen icons means jiggle mode plus a hand-builtclient()._pointer_actionsgesture, and it fails silently if you skip jiggle mode. Recipe and the page-hiding flow are inphone-gotchas. Same-page drags and folder-creation (drop icon A on icon B) are verified; cross-page drags are not and degrade into plain swipes that look like progress. - "Organise my Home Screen" is not a quick job. ~160 icons is hours of drags
and can strand half-sorted. Hiding pages via the
PageIndicatoreditor is ~10 taps, reversible, and does most of the work — read the costing section inphone-gotchasbefore you promise anything. - Full installed-app inventory:
ios apps --list(go-ios, on PATH asios.EXE). Instant, and far cheaper than sweeping Home Screen pages.
Rules
- Sending to real people: send exactly what the user asked. If you composed the content yourself (a summary, a draft), include the sent text verbatim in your reply. Ask first only when the recipient or content is genuinely ambiguous.
- Messages compose field is labeled "Message", NOT "iMessage" — old message bubbles carry "iMessage" in their labels; searching for it taps the wrong thing.
send_message/read_messageshandle Messages resuming mid-thread, find the thread via Messages SEARCH (type the name, tap the Conversations result), and verify the opened thread's header before acting — a wrong or unverifiable match raises instead of guessing.- MCP alternative: the
sidetapMCP server (see the SideTap README) exposes the same helpers as nativemcp__sidetap__*tools. The declick verbs are the same tools with no per-session catalog cost, and they work from every subagent, so prefer them; fall back to MCP only where declick is not installed. - Anything fails to connect →
./phone-harness.cmd doctorfrom the repo root. Never guess at connection problems. Common: free-Apple-ID signing expires every 7 days →phone-harness fix-input, then the USER clicks Start in Sideloadly. - Phone must be unlocked for bring-up;
unlock()enters PHONE_PASSCODE from .env if set (digit passcodes are typed in one fast request and verified by the pad leaving the screen; if a lock-screen notification holding keyboard focus eats the typed digits, they go in by tapping the pad's buttons instead). It raises if the screen stays dark after two wake attempts — that means the phone needs a hand wake (side button), not a retry loop. - Human-watchable live viewer: http://127.0.0.1:8770 (start with
python launch.py).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |