Skip to content
Skills Library
Programming · Testing

ui-crawler-max

/ui-crawler-max

Autonomous UI crawler for iOS simulator apps — rapid, element-precise data collection. Use whenever the user says "crawl my app", "auto-test the UI", "click/tap through every screen", "monkey test", "explore the app and find errors/crashes", "collect screenshots of all screens", "smoke test the whole app", or asks for any app QA sweep, crash hunt, or screen inventory. It taps every reachable button/cell/switch via XCUITest, screenshots and journals every screen, detects crashes AS THEY HAPPEN with repro steps, streams console errors, and fans out cheap parallel Haiku subagents to label the hau

Licence
MIT
Last repository change
01.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 01.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/UICrawlerTests.swift, scripts/crawl.sh

What it does and when to use it

Autonomous UI crawler for iOS simulator apps — rapid, element-precise data collection. Use whenever the user says "crawl my app", "auto-test the UI", "click/tap through every screen", "monkey test", "explore the app and find errors/crashes", "collect screenshots of all screens", "smoke test the whole app", or asks for any app QA sweep, crash hunt, or screen inventory. It taps every reachable button/cell/switch via XCUITest, screenshots and journals every screen, detects crashes AS THEY HAPPEN with repro steps, streams console errors, and fans out cheap parallel Haiku subagents to label the hau

Triggers from the description

crawl my appauto-test the UIclick/tap through every screenmonkey testexplore the app and find errors/crashescollect screenshots of all screenssmoke test the whole app
Original author description

Autonomous UI crawler for iOS simulator apps — rapid, element-precise data collection. Use whenever the user says "crawl my app", "auto-test the UI", "click/tap through every screen", "monkey test", "explore the app and find errors/crashes", "collect screenshots of all screens", "smoke test the whole app", or asks for any app QA sweep, crash hunt, or screen inventory. It taps every reachable button/cell/switch via XCUITest, screenshots and journals every screen, detects crashes AS THEY HAPPEN with repro steps, streams console errors, and fans out cheap parallel Haiku subagents to label the hau

How it works

  1. Architecture (4 moving parts)
  2. Prerequisite: a UI-testing target
  3. Run workflow
  4. Output artifact contract
  5. Post-run flow (main agent — do this yourself, in order)
  6. Safety (non-negotiable)
  7. Troubleshooting
Original SKILL.md headings · 173 lines, 1,208 words
SKILL.md preview
---
name: ui-crawler-max
description: >-
  Autonomous UI crawler for iOS simulator apps — rapid, element-precise data collection.
  Use whenever the user says "crawl my app", "auto-test the UI", "click/tap through every
  screen", "monkey test", "explore the app and find errors/crashes", "collect screenshots
  of all screens", "smoke test the whole app", or asks for any app QA sweep, crash hunt,
  or screen inventory. It taps every reachable button/cell/switch via XCUITest,
  screenshots and journals every screen, detects crashes AS THEY HAPPEN with repro steps,
  streams console errors, and fans out cheap parallel Haiku subagents to label the haul.
  Data collection only — route fixes to swiftui-max/swift-language afterwards. Trigger
  even for a vague "is anything in my app broken?" — a crawl answers it empirically.
---

# UI Crawler Max

Crawl an iOS app in the simulator like a tireless QA intern: tap everything reachable,
record everything seen, never judge. This skill **collects data**; siblings analyze it
(`swiftui-max` for UI fixes, `swift-language` for crashes/concurrency, `apple-hig-ux`
for design verdicts). Environment: Xcode 26.6, iOS 26.5 simulators (`iPhone 17 Pro`
present), `xcodegen` installed. No `idb`, no `cliclick` needed — the crawler runs
*inside* the app process via XCUITest, so every tap is element-precise (`element.tap()`),
never screen-coordinate guessing.

## Architecture (4 moving parts)

1. **`scripts/UICrawlerTests.swift`** — a complete, compile-verified XCUITest that greedy-DFS
   explores the app: screen signature = FNV-1a hash of visible element identifiers+labels+
   frames (rounded to 10pt buckets); global visited-set of `(screen, element)` keys; taps
   unvisited buttons/cells/switches/segmented controls (tab-bar/nav/back buttons are
   `.button` descendants, covered); `swipeUp` up to 3× per screen to reveal more; back-nav
   ladder: nav back button → Done/Close/Cancel/Dismiss → edge swipe → relaunch.
2. **`scripts/crawl.sh`** — boots the sim, starts a console **error log stream before the
   run**, invokes `xcodebuild test`, harvests `.ips` crash reports afterwards, prints the
   artifact tree.
3. **Journal + screenshots** — JSON-lines journal per step, PNG + accessibility-hierarchy
   dump per *new* screen. After every single tap the crawler asserts
   `app.state == .runningForeground`; on crash it writes a repro record (last 10 steps),
   relaunches, marks the crashing element visited (**never tapped twice**), and continues.
4. **Haiku labeling fan-out** — after the run, parallel `model: haiku` subagents label
   batches of ~10 screens using `scripts/haiku-analysis-prompt.md`. Fast, factual, no fixes.

## Prerequisite: a UI-testing target

XCUITest needs a `bundle.ui-testing` target. Check: `xcodebuild -list -project App.xcodeproj`
— if no `*UITests` target exists and the project uses xcodegen, add one and regenerate:

```yaml
# project.yml (minimal app + UI test bundle)
name: MyApp
options: { bundleIdPrefix: com.example }
targets:
  MyApp:
    type: application
    platform: iOS
    deploymentTarget: "17.0"
    sources: [MyApp]
  MyAppUITests:
    type: bundle.ui-testing
    platform: iOS
    sources: [MyAppUITests]          # put UICrawlerTests.swift in this folder
    dependencies:
      - target: MyApp                # sets TEST_TARGET_NAME → XCUIApplication() targets MyApp
schemes:
  MyApp:
    build: { targets: { MyApp: all } }
    test:  { targets: [MyAppUITests] }
```

Then: `mkdir -p MyAppUITests && cp <skill>/scripts/UICrawlerTests.swift MyAppUITests/ && xcodegen generate`.
For non-xcodegen projects, add the target in Xcode (File → New → Target → UI Testing Bundle)
or route to `apple-dev-conductor` for project surgery. The template is warning-free in both
Swift 5 and Swift 6 language modes.

## Run workflow

```bash
SKILL=<path-to-this-skill>
bash "$SKILL/scripts/crawl.sh" ~/Projects/MyApp MyApp "iPhone 17 Pro"
```

Knobs (env vars on `crawl.sh`):

| Var | Default | Meaning |
|---|---|---|
| `CRAWL_MAX_STEPS` | 150 | hard step budget |
| `CRAWL_MAX_MINUTES` | 5 | hard time budget |
| `CRAWL_DENYLIST` | see Safety | comma-separated destructive labels, substring match |
| `CRAWL_ARTIFACTS` | `<proj>/crawl-artifacts/<ts>` | output dir |
| `UITEST_TARGET` | `<SCHEME>UITests` | UI test bundle name |
| `APP_NAME` | scheme name | process name for log predicate + crash matching |

**Env into the test runner — the #1 footgun.** Vars reach the runner only via xcodebuild's
*environment* with the `TEST_RUNNER_` prefix (stripped on delivery; verified in
`man xcodebuild`):

```bash
# WRONG — sets a build setting; the test process never sees it
xcodebuild test -scheme MyApp CRAWL_MAX_STEPS=300

# RIGHT — environment variable with TEST_RUNNER_ prefix
env TEST_RUNNER_CRAWL_MAX_STEPS=300 xcodebuild test -scheme MyApp ...
```

`crawl.sh` does this for you — prefer it over hand-rolled xcodebuild. It also starts
`xcrun simctl spawn <udid> log stream --level error --style compact --predicate
'processImagePath CONTAINS[c] "<AppName>"' > "$ART/console-errors.log" &` **before**
`xcodebuild test` (a stream started after misses launch-time errors), kills it after, and
copies new `.ips` files from `~/Library/Logs/DiagnosticReports` created since run start.

The crawler exports `CRAWL_MODE=1` into the app's launch environment — the app may check
it to load fixture data or skip onboarding.

## Output artifact contract

```
crawl-artifacts/<timestamp>/
├── journal.jsonl            # per step: {step, screenSignature, action, elementLabel,
│                            #   elementType, timestamp, result}
│                            # actions: newScreen|tap|scroll|back|skipDenied|dismissAlert|
│                            #   leftApp|crashDetected|relaunch|done
├── screens/<sig>.png        # first screenshot of each unique screen
├── screens/<sig>.txt        # accessibility hierarchy (app.debugDescription)
├── crash-<step>.json        # {crashDetected, step, lastAction, timestamp, repro:[last 10 steps]}
├── crashes/*.ips            # symbolicatable OS crash reports
├── console-errors.log       # error-level unified log for the app process
├── xcodebuild.log           # full build/test output
└── crawl.xcresult           # standard result bundle (attachments, timings)
```

The final `done` journal line summarizes: `steps=N screens=M crashes=K`.

## Post-run flow (main agent — do this yourself, in order)

1. **Read the cheap signals first**: `console-errors.log`, every `crash-*.json`, and
   `journal.jsonl` (grep for `crashDetected`, `skipDenied`, `relaunch`, `leftApp`).
   Symbolicate `.ips` crashes only if a crash was detected.
2. **Fan out Haiku labelers**: split `screens/` into batches of ~10; for each batch launch
   an Agent with `model: haiku` **in parallel (one message, multiple tool calls)** using
   the filled template from `scripts/haiku-analysis-prompt.md`. Each returns strict JSON
   `{screens:[{signature, name_guess, purpose, elements_count, issues:[{type, evidence}]}]}`.
3. **Merge** all batch outputs + crash records + console-error counts into
   `<artifacts>/report.json`, then write the human summary: screens found, coverage
   (steps used / budget), crash count with repro steps, issue tally by type, and the
   3–5 most suspicious screens (embed their PNG paths so the user can look).
4. **Route fixes — do not fix here**: crash stacks & concurrency (`_dispatch_assert_queue_fail`,
   Swift runtime traps) → **swift-language**; layout/dead-end/unlabeled-button/UI bugs →
   **swiftui-max**; design-quality judgments → **apple-hig-ux**. Hand each the artifact
   paths and the relevant `report.json` slice — the evidence is the deliverable.

## Safety (non-negotiable)

- **Never crawl an app signed into a real account or talking to production APIs.** A
  crawler taps *everything*: it will send messages, delete data, and buy things. Simulator
  + test account/fixtures (`CRAWL_MODE=1`) only. If the user asks to crawl a device build
  or a production-logged-in app, refuse and set up a fixture configuration first.
- **Deny-list of destructive labels** (case-insensitive substring match, checked before
  every tap; matches are journaled as `skipDenied`, never tapped). Defaults:
  `delete, remove, erase, reset, pay, purchase, buy, subscribe, checkout, sign out,
  log out, logout, send, report, block`. Extend per app via `CRAWL_DENYLIST` — e.g. an
  email app should add `archive, reply`; keep the defaults, append to them.
- Permission alerts (photos/notifications/location) are auto-accepted by an
  `addUIInterruptionMonitor` handler and journaled as `dismissAlert` — review those lines
  to know which protected resources the crawl granted.
- Budgets are hard stops (`CRAWL_MAX_STEPS`/`CRAWL_MAX_MINUTES`); the crawl always exits
  with a `done` journal line even mid-exploration.
- **Artifacts can capture personal data.** System alerts (e.g. Apple Account verification)
  surface over the app mid-crawl and land in screenshots with real emails/names from the
  host's simulator state. Review `screens/` before sharing artifacts, and prefer a
  freshly-erased simulator (`xcrun simctl erase <udid>`) for runs whose output leaves the
  machine. On *system* alerts prefer dismissive buttons ("Not Now", "Cancel") — affirmative
  choices can bounce the crawl into the iOS Settings app.

## Troubleshooting

- **Monitor never fires / test hangs on an alert**: interruption monitors only trigger on
  the *next* interaction; the crawler's constant tapping handles this. A hang usually
  means a non-alert modal — check the last `screens/<sig>.png`.
- **Signature churn (same screen counted many times)**: timestamps/carousels change labels
  every second. Raise frame bucketing or exclude `.staticText` from the signature loop in
  `UICrawlerTests.swift`.
- **`xcodebuild: error: Scheme not shared`**: share the scheme (or add the `schemes:` block
  to project.yml above).
- **Build fails before tests**: that's a build problem, not a crawl problem — use the
  `xcode-build-fixer` skill first.
Files in this package (4)
  • SKILL.md 10 KB
  • scripts/UICrawlerTests.swift 12 KB
  • scripts/crawl.sh 4 KB
  • scripts/haiku-analysis-prompt.md 3 KB

Versions

The database has no other skills named ui-crawler-max.

Database snapshot: 13.11.2026 · package version 2e48620745c5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100ios-debugger-agent
    Builds an iOS app, installs and launches it on a simulator, then collects evidence about a runtime problem: unified logs, console output, screenshots, the accessibility tree, crash reports and an LLDB session. Works with Apple's command-line tools (xcodebuild, simctl, devicectl,…
  • 95ios-simulator-skill
    Build and test Xcode projects; launch and inspect iOS Simulator apps, navigate by accessibility labels, capture screenshots and logs, and diagnose simulator issues. Use for authorized simulator lifecycle and UI testing on macOS. Requires Xcode, Python 3.12+ and idb for…
  • 86herdr-ios-simulator
    Build, run, drive and debug iOS apps on a simulator shared with the user inside herdr. Use whenever the user wants to run, see, test or debug an iOS or iPhone app ("run it on the simulator", "show me on the iPhone", "tap through the sign-in flow", "why does it crash", "check the…
  • 100mobile
    Runs a mobile app in the iOS simulator or the Android emulator and uses it the way a person would: installs and launches a build, takes screenshots that you then look at, lists what is on the screen (buttons, texts, fields), taps, swipes, types text, opens links, shows the app's…
  • 95limrun-ios-simulator
    Drive an app running on a Limrun cloud iOS simulator: launch, tap, type, read the accessibility element tree, read app logs and simulator syslog, screenshot, record video, connect the app to local services or a private tunnel, play a video file as the camera, send all traffic…
  • 100hk-mobile-app-ui-validation
    Drive a native iOS or Android app on a device or simulator through the mobile MCP, screenshot every screen, measure touch targets, and write up mis-taps, clipped text and screens that trap the user as one HTML page with a score out of 10. Triggers on: 'mobile UI audit', 'touch…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.