Skip to content
Development
Skill

/ios-simulator-skill

29 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.

From plugin
ios-simulator-skill
1.2k1 skill
Install
$ npx -y skills add conorluddy/ios-simulator-skill --skill ios-simulator-skill --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/ios-simulator-skill

Context preview

The summary Claude sees to decide when to auto-load this skill.

29 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.

SKILL.md

ios-simulator-skill.SKILL.md
name: ios-simulator-skill
version: 1.5.0
description: 29 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.

iOS Simulator Skill

Build, test, and automate iOS applications using accessibility-driven navigation and structured data instead of pixel coordinates.

Quick Start

# 1. Check environment
bash scripts/sim_health_check.sh

# 2. Launch app
python scripts/app_launcher.py --launch com.example.app

# 3. Map screen to see elements
python scripts/screen_mapper.py

# 4. Tap button
python scripts/navigator.py --find-text "Login" --tap

# 5. Enter text
python scripts/navigator.py --find-type TextField --enter-text "user@example.com"

All scripts support `--help` for detailed options and `--json` for machine-readable output.

Navigation Strategy

**Always prefer the accessibility tree over screenshots for navigation.** The accessibility tree gives you element types, labels, frames, and tap targets — structured data that's cheaper and more reliable than image analysis.

Use this priority: 1. `screen_mapper.py` → structured element list (5-7 lines, ~10 tokens) 2. `navigator.py --find-text/--find-type/--find-id` → semantic interaction 3. Screenshots → only for visual verification, bug reports, or visual diff

Screenshots cost 1,600–6,300 tokens depending on size. The accessibility tree costs 10–50 tokens in default mode.

29 Production Scripts

Build & Development (2 scripts)

1. **build_and_test.py** - Build Xcode projects, run tests, parse results with progressive disclosure

  • Build with live result streaming
  • Parse errors and warnings from xcresult bundles
  • Retrieve detailed build logs on demand
  • Options: `--project`, `--scheme`, `--clean`, `--test`, `--verbose`, `--json`

2. **log_monitor.py** - Real-time log monitoring with intelligent filtering

  • Stream logs or capture by duration
  • Filter by severity (error/warning/info/debug)
  • Deduplicate repeated messages
  • Options: `--app`, `--severity`, `--follow`, `--duration`, `--output`, `--json`

Device State (2 scripts)

3. **appearance.py** - Control simulator appearance: dark mode, Dynamic Type size, and locale/region

  • Toggle light/dark theme via `xcrun simctl ui`
  • Set Dynamic Type size with friendly aliases (XS through AX5)
  • Write locale and region defaults; optional app restart via `--bundle-id`
  • RTL flagged automatically for ar/he/fa/ur/yi locales
  • Options: `--theme`, `--text-size`, `--locale`, `--region`, `--reset`, `--bundle-id`, `--udid`, `--json`, `--verbose`

4. **location.py** - Simulate GPS coordinates, named city presets, and GPX scenario playback

  • Fix a coordinate with `--lat`/`--lng` or pick a city with `--city`
  • Play a built-in scenario (City Run, Freeway Drive, etc.) via `--gpx <scenario>`
  • Animate multi-waypoint paths with configurable speed via `--waypoints` and `--speed`
  • Clear simulated location with `--clear`; list available scenarios with `--list-scenarios`
  • Options: `--lat`, `--lng`, `--city`, `--gpx`, `--waypoints`, `--speed`, `--clear`, `--list-scenarios`, `--udid`, `--json`, `--verbose`

Navigation & Interaction (5 scripts)

5. **screen_mapper.py** - Analyze current screen and list interactive elements

  • Element type breakdown
  • Interactive button list
  • Text field status
  • Options: `--verbose`, `--hints`, `--json`

6. **navigator.py** - Find and interact with elements semantically

  • Find by text (fuzzy matching)
  • Find by element type
  • Find by accessibility ID
  • Enter text or tap elements
  • Options: `--find-text`, `--find-type`, `--find-id`, `--tap`, `--enter-text`, `--json`

7. **gesture.py** - Perform swipes, scrolls, pinches, and complex gestures

  • Directional swipes (up/down/left/right)
  • Multi-swipe scrolling
  • Pinch zoom
  • Long press
  • Pull to refresh
  • Options: `--swipe`, `--scroll`, `--pinch`, `--long-press`, `--refresh`, `--json`

8. **keyboard.py** - Text input and hardware button control

  • Type text (fast or slow)
  • Special keys (return, delete, tab, space, arrows)
  • Hardware buttons (home, lock, volume, screenshot)
  • Key combinations
  • Options: `--type`, `--key`, `--button`, `--slow`, `--clear`, `--dismiss`, `--json`

9. **app_launcher.py** - App lifecycle management

  • Launch apps by bundle ID
  • Terminate apps
  • Install/uninstall from .app bundles
  • Deep link navigation
  • List installed apps
  • Check app state
  • Pass launch arguments (`--args`) and environment variables (`--env KEY=VALUE`, injected as `SIMCTL_CHILD_*`) to the app on launch/restart
  • Options: `--launch`, `--terminate`, `--restart`, `--install`, `--uninstall`, `--open-url`, `--list`, `--state`, `--args`, `--env`, `--wait-for-debugger`

Testing & Analysis (9 scripts)

10. **accessibility_audit.py** - Check WCAG compliance on current screen

  • Critical issues (missing labels, empty buttons, no alt text)
  • Warnings (missing hints, small touch targets)
  • Info (missing IDs, deep nesting)
  • Options: `--verbose`, `--output`, `--json`

11. **visual_diff.py** - Compare two screenshots for visual changes

  • Pixel-by-pixel comparison
  • Threshold-based pass/fail
  • Generate diff images
  • Options: `--threshold`, `--output`, `--details`, `--json`

12. **test_recorder.py** - Automatically document test execution

  • Capture screenshots and accessibility trees per step
  • Generate markdown reports with timing data
  • Options: `--test-name`, `--output`, `--verbose`, `--json`

13. **app_state_capture.py** - Create comprehensive debugging snapshots

  • Screenshot, UI hierarchy, app logs, device info
  • Markdown summary for bug reports
  • Options: `--app-bundle-id`, `--output`, `--log-lines`, `--json`

14. **sim_health_check.sh** - Verify env

Read more
Ships withios-simulator-skill

Production-ready skill for building, testing, and automating iOS apps. 29 scripts optimized for both human developers and AI agents. (If you'd prefer an MCP, XC-MCP -> NPM )

Get the whole plugin
Stats
1,250
Stars
91
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
11mo ago
Created

Repo: conorluddy/ios-simulator-skill