/apple-dev-skills:interactive-simulator-ux-audit [udid] [flow]from apple-dev-skills
Drives a booted iOS Simulator with idb to audit interactive UX flows — navigation, modals, safe-area/Dynamic Island clipping, offline states, and Dynamic Type at accessibility sizes. Catches bugs that static snapshots miss.
Ships in apple-dev-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.
Snapshot tests render a view in a fixed-size NSHostingView — they model neither
navigation, taps, the device safe area, nor the Dynamic Island. A whole class of bugs
only shows when something actually drives the app: a screen that never appears after
a selection, a flow that's unplayable when the user is signed out of a cloud account,
completion content clipped by the Dynamic Island. This skill is the audit loop that
catches those, using idb (Facebook's iOS Simulator automation tool) to tap, read the
accessibility tree, and capture screenshots against a booted Simulator.
Owns: live Simulator driving via idb, the audit loop, and the coordinate/build gotchas
below. Does not own: scripted, CI-run UI tests that launch and assert without a human
watching → host-driven-xcuitest-e2e; static pixel-diff regression gates → swift-testing-baseline.
Use this skill first to find a bug interactively; write a host-driven XCUITest afterward
to pin the fix.
context: fork runs this skill in a subagent with no access to the conversation
history — it can't infer anything from earlier turns, only from the invocation
arguments and this file. When invoking (matches argument-hint: "[udid] [flow]"), supply:
Target simulator UDID: $0; flow to audit: $1.
udid — the target booted simulator's identifier (idb list-targets), for a
simulator the calling session created and owns. One
fork drives exactly one simulator; never omit this and let the fork boot/pick one
implicitly — see "One booted simulator serializes all driving" under Gotchas, and
the fleet-sizing note under Preflight below for running several forks in parallel.flow — what to audit: the screen/feature and the specific behavior in
question (e.g. "onboarding flow: verify the paywall's dismiss button returns to the
correct tab, not the root").Without these, the fork has no way to know which simulator to drive or what "done" looks like — it starts from this file alone.
idb (one-time, not via Homebrew)If your project's policy forbids Homebrew, a direct GitHub release download is a distinct, usually-allowed path — confirm against your own policy, then:
idb_companion: download idb-companion.macos-arm64.tar.gz from
https://github.com/facebook/idb/releases → extract to e.g.
~/idb-tools/companion/idb-companion.macos-arm64/ (binary lives in bin/, with a sibling
Frameworks/ directory the binary loads via @executable_path). An objc
duplicate-class warning for FBProcess at launch is non-fatal. The asset filename
changes across releases — confirm the current one first with
gh release view --repo facebook/idb --json assets.idb CLI: pip3 install --user fb-idb.PATH. Symlink idb directly. For the companion, use a wrapper script
that execs the real binary's absolute path — a bare symlink breaks the
@executable_path/../Frameworks rpath and the companion fails to load its frameworks.idb list-targets, then against a booted simulator's UDID,
idb ui describe-all --udid <udid> returns the accessibility tree (element frames +
labels) in device-point space (e.g. an iPhone 17 Pro reports 402×874 pt).Before running multiple agents or audit sessions in parallel, size the fleet with
arithmetic, not a tool — steps 1-2 need nothing beyond Activity Monitor or xcrun simctl
and already give a usable answer for most cases.
phys_footprint — Activity Monitor's Memory column
for the simulator's processes (or sum it yourself via xcrun simctl spawn <udid> ...
if scripting). Runnable parallel count ≈ available RAM ÷ that measured number. Don't
adopt a fixed GB figure from a blog post or any tool's README as your budget — real
footprint shifts with iOS version, installed apps, and what the app under test does.https://github.com/MobAI-App/simslim, verified 2026-09-03). If
step 1's math already gets you a workable number, stop here — an optional third step
(a per-simulator daemon-disable) is in references/simulator-fleet-sizing.md and is
unrelated to the rest of this skill.xcodebuild -workspace <App>.xcworkspace -scheme <Scheme> -sdk iphonesimulator -configuration Debug -destination 'platform=iOS Simulator,id=<udid>' -derivedDataPath build/sim build, then xcrun simctl install <udid> <App.app>. <udid> is a simulator the
calling session created for this audit. A name=<device> destination can match another
session's simulator on a shared Mac → parallel-agent-xcode-hygiene.idb ui describe-all --udid <udid> # element frames + accessibility labels
idb ui tap --udid <udid> <x> <y> # tap at device-point coordinates
xcrun simctl io <udid> screenshot <path.png> # capture, then read the PNG and look at it
xcrun simctl io <udid> recordVideo <path.mp4> # capture a flow as video
recordVideo fails outright if <path.mp4> already exists (NSPOSIXErrorDomain code 17,
"file exists") — pass --force to overwrite, or rm -f <path.mp4> first, especially when re-running
the same recording path across attempts.
describe-all, not from eyeballing a screenshot — a
screenshot is rendered at the device's pixel scale (commonly 3×), not point space. Tap the
center of an element's reported frame.describe-all again before the next action — a tap can miss, dismiss an
unrelated system alert, or navigate further than expected, and you need to know where you
actually landed.describe-all legitimately returns an empty treeidb's accessibility dump is not 100% reliable — observed in practice (and tracked upstream,
e.g. facebook/idb#767) to come back empty or missing elements on some view hierarchies, with no
element frame to tap from. When that happens, don't treat "no pixel-coordinate tapping" as
absolute: fall back to screenshot pixels ÷ device scale = points (e.g. a 1206×2622 px
screenshot at a 3× scale device → tap at pixel ÷ 3, so 402×874 pt for that iPhone 17 Pro) and
screenshot after every tap to confirm it landed correctly — this fallback is only safe
because you're verifying each step, not because the math is guaranteed accurate.
"$xy" as one argument and fail with invalid int value if you built a coordinate string
like xy="201 488". Pass literal integers, or force splitting (${=xy} in zsh).idb must be on PATH for any MCP or wrapper tool that shells out to it — without it,
taps fail with spawn idb ENOENT even though a plain screenshot still works (screenshot can
go through simctl alone; tapping cannot).xcrun simctl ui <udid> content_size accessibility-extra-extra-extra-large then relaunch to test Dynamic Type; reset with
content_size large. appearance dark|light for color scheme. System alerts (permission
prompts, sign-in sheets) persist across an app relaunch — dismiss them before reading the
app underneath.references/idb-input-quirks.md first — idb ui text returns before it finishes
typing, and banners are not in the accessibility tree.Core functionality should rarely hard-gate on an optional cloud/account state — verify it doesn't, and drive all three states below separately; they exercise different code paths.
| State | How to induce | What diverges |
|---|---|---|
| Offline | Mid-flow, turn off the host Mac's network or use the host Mac's Network Link Conditioner (it applies to the whole Mac) — the Simulator uses the Mac's networking stack and has no separate airplane mode | Network calls fail fast — no connection to wait on |
| Online, signed out | Sign out of the cloud account with network reachable | The same calls can hang (a real round-trip stalls waiting on an unauthenticated container that never resolves) — a pass while offline can mask this |
| Online, signed in | Real signed-in test account in the simulator | Baseline correct behavior — account-gated features may by design show nothing when signed out; confirm the flow works signed in before flagging graceful degradation as a bug |
File each finding with its screenshot as evidence and a repro; label it environmental (stale build, wrong account state) versus a genuine bug, and re-verify on a fresh, correctly-built install before reporting it as real.
A snapshot test proves a view renders correctly given a state; it says nothing about whether the app ever reaches that state through real interaction, or how it behaves at the literal edges of a physical device (notch, Dynamic Island) that a fixed test harness frame doesn't model. Driving the actual Simulator is the only check that covers the seam between "the view is correct" and "the user can get there."
host-driven-xcuitest-e2e for automated coverage and snapshot tests for pixel
regressions instead.idb's ui subcommand only works against
simulators; drive a Mac app with host-driven-xcuitest-e2e's window-frame-click pattern instead.describe-all — taps
land at the wrong spot on any non-1× device unless converted (pixel ÷ scale); only fall back
to pixel math when describe-all legitimately returns an empty tree (see above), and verify
every such tap with a follow-up screenshot.idb list-targets confirms the target simulator is booted before driving starts.describe-all, not a screenshot pixel estimate.host-driven-xcuitest-e2e — turn a finding from this audit into an automated, CI-runnable regression test.simulator-runtime-verification — runtime checks this fork cannot run (push tokens, Universal Links, Keychain, UserDefaults seeding, upgrade installs) and the traps that fake their results.parallel-agent-xcode-hygiene — creating the simulator this audit drives, addressing it by UDID, and deleting it afterwards on a Mac other agents share.swift-testing-baseline — the static snapshot-testing layer this skill complements, not replaces.ios-accessibility-engineering — Dynamic Type / VoiceOver checks that pair naturally with this audit loop.mise-tool-management — the general non-Homebrew tool-install pattern behind the idb install step above and the simslim step in references/simulator-fleet-sizing.md.xcode-build-skill:xcode-build (aggregated external) — plain build, launch, and screenshot commands; this skill is the fork-based audit loop on top of a build that already exists.references/official-docs.md.What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundThree short reads, in order
ios-simulator, idb, ux-audit, accessibility-tree, interactive-testing
28 skills in this plugin
/ai-translated-localizationLocalization scope and AI-translation execution for Apple-platform Apps on `Localizable.xcstrings` — default locale set, source / primary language rule, per-locale review gotchas, completeness gates. Use when deciding which locales to ship at project setup; when adding or refreshing user-facing strings (UI keys, Game Center, App Store metadata) in non-source locales; when `extractionState: stale` entries or untranslated placeholder markers appear; or when asked "how many locales", "how do translations enter git". Does NOT cover RTL layout or ASC upload mechanics → asc-api-automation./apple-platform-targetsDefault minimum deployment target for Apple-platform Swift Apps — iOS 26 / macOS 26 on the Xcode 26 toolchain (Swift 6 language mode) — and how to deviate down (iOS 18 / 17) or up. Use when starting a new Apple-platform project, writing the Package.swift `platforms:` list, deciding whether an API newer than the floor is worth bumping for or a client requirement forces dropping below it, or when asked "what should the minimum iOS / macOS version be". Entry point of the bootstrap chain; does NOT own language mode → swift6-concurrency, or module layout → swiftpm-modularization.npx claudepluginhub wei18/apple-dev-skills --plugin apple-dev-skillsOther plugins' skills for the same job