ios-simulator-skill
CLAUDE.md1.3k starsChanged 3 months agoMITView on GitHub
This file provides guidance to Claude Code and developers working with this repository. iOS Simulator Skill is a production-ready Agent Skill providing 29 scripts for iOS app building, testing, and automation. It wraps Apple's xcrun simctl and Facebook's idb tools with semantic interfaces designed for AI agents and developers. Key Statistics: - 29 production scripts - 7 script categories (Build, Device State, Navigation, Testing, Permissions, Simulator Discovery, Lifecycle) - 7 shared utility modules (~2,400 lines) - 100% token-optimized default output…
Trending
More talk lately.thin dataabout the whole repository
Who's talking about conorluddy/ios-simulator-skill
- A Hacker News story“iOS Simulator Claude Skill”Hacker News · Oct 22, 2025 · 3 points
- signerlabs/ShipSwift“建议,新增ios自动化调试skill”GitHub · Jun 23, 2026 · 1 reactions
- @tom-doerr.bsky.social“https://github.com/conorluddy/ios-simulator-skill”Bluesky · May 2, 2026 · 1 likes
- A Hacker News story“An iOS Simulator Skill for ClaudeCode”Hacker News · Oct 29, 2025 · 1 points
- sudosubin/agents.nix“claude-code-plugins.github.conorluddy.ios-simulator-skill: init at 1.5.0”GitHub · Oct 4, 2026
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub, Hacker News and Bluesky (11 times).
On GitHub · 8
- Jun 23, 2026建议,新增ios自动化调试skill — signerlabs/ShipSwift1 reaction
- Oct 4, 2026claude-code-plugins.github.conorluddy.ios-simulator-skill: init at 1.5.0 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.conorluddy.ios-simulator-skill: init at 1.5.0 — sudosubin/agents.nix0 reactions
- May 28, 2026[Chore] Claude Code iOS 팀 워크플로우 초기 세팅 — DearDayApp/DearDay-iOS0 reactions
- Mar 23, 2026Agentic dev setup: recommended agent skills for accessibility + iOS Simulator integration testing — gwillish/encountersays it tested it0 reactions · 7 comments
3 more on GitHub
- Mar 9, 2026[SUBMISSION] ios-simulator-skill — ProSkillsMD/proskills0 reactions · 5 comments
- Feb 20, 2026ios-simulator-skill — AAswordman/OperitSkillMarket0 reactions
- Jan 13, 2026feat: Add iOS Simulator agent integration via MCP — ejohane/zine0 reactions
On Hacker News · 2
- Oct 22, 2025iOS Simulator Claude Skill3 points · 1 comment
- Oct 29, 2025An iOS Simulator Skill for ClaudeCode1 point
On Bluesky · 1
- May 2, 2026https://github.com/conorluddy/ios-simulator-skill — @tom-doerr.bsky.social1 likes and repost
The file
We split this CLAUDE.md into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 62
All scripts use class-based architecture for testability:
- Very specific: line 83
All scripts support optional --udid with auto-detection:
- Very specific: line 139
test_recorder.py: Test documentation
- Very specific: line 160
simctl_create.py: Create device
- Very specific: line 161
simctl_delete.py: Delete device
- Distinctive: line 206
Never use shell=True
- Distinctive: line 221
Use class-based design for > 50 lines of logic
- Distinctive: line 225
Follow Black and Ruff standards
- Very specific: line 226
Update SKILL.md table of contents
- Very specific: line 231
Update version in SKILL.md frontmatter, pyproject.toml
- Distinctive: line 232
Verify CI passes (Black, Ruff)
- Distinctive: line 233
Create GitHub release with vX.X.X tag
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md - Developer Guide
This file provides guidance to Claude Code and developers working with this repository.
Project Overview
iOS Simulator Skill is a production-ready Agent Skill providing 29 scripts for iOS app building, testing, and automation. It wraps Apple's xcrun simctl and Facebook's idb tools with semantic interfaces designed for AI agents and developers.
Key Statistics:
- 29 production scripts
- 7 script categories (Build, Device State, Navigation, Testing, Permissions, Simulator Discovery, Lifecycle)
- 7 shared utility modules (~2,400 lines)
- 100% token-optimized default output
- 184 unit tests across pipeline / sessions / token-budget / diff / privacy (run
pytest tests/)
Project Structure
ios-simulator-skill/ # Repository root
├── ios-simulator-skill/ # Distributable package
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin manifest
│ └── skills/
│ └── ios-simulator-skill/
│ ├── SKILL.md # Entry point (table of contents)
│ └── scripts/ # 29 production scripts
│ ├── build_and_test.py
│ ├── xcode/ # Xcode integration module
│ ├── log_monitor.py
│ ├── hang_watcher.py # HangBuster session recorder + legacy stream
│ ├── screen_mapper.py
│ ├── navigator.py
│ ├── gesture.py
│ ├── keyboard.py
│ ├── app_launcher.py
│ ├── accessibility_audit.py
│ ├── visual_diff.py
│ ├── test_recorder.py
│ ├── app_state_capture.py
│ ├── clipboard.py
│ ├── status_bar.py
│ ├── push_notification.py
│ ├── privacy_manager.py
│ ├── simctl_boot.py
│ ├── simctl_shutdown.py
│ ├── simctl_create.py
│ ├── simctl_delete.py
│ ├── simctl_erase.py
│ ├── sim_health_check.sh
│ └── common/ # Shared utilities
│ ├── hang_pipeline.py # HangBuster filter pipeline (pure fns)
│ └── hang_sessions.py # HangBuster session storage
├── .github/workflows/
├── pyproject.toml
└── README.mdArchitecture Patterns
Pattern 1: Class-Based Script Design
All scripts use class-based architecture for testability:
class DeviceManager:
def __init__(self, udid: str | None = None):
self.udid = udid
def execute(self, **kwargs) -> tuple[bool, str]:
# Return (success, message) tuple
pass
def main():
parser = argparse.ArgumentParser()
manager = DeviceManager(args.udid)
success, message = manager.execute()
print(message)
sys.exit(0 if success else 1)Pattern 2: Auto-UDID Detection
All scripts support optional --udid with auto-detection:
try:
udid = resolve_device_identifier(args.udid) # May be None
except RuntimeError as e:
print(f"Error: {e}", file=sys.stderr)
sys.exit(1)Pattern 3: Output Formatting
Consistent format across all scripts:
# Default (3-5 lines)
Device booted: iPhone 16 Pro (ABC123) [2.1s]
# --verbose (50+ lines)
Device booted successfully.
Device UDID: ABC123DEF456...
Boot time: 2.1 seconds
# --json (20-30 lines)
{"action": "boot", "udid": "ABC123", "success": true}Pattern 4: Batch Operations
Most scripts support batch operations:
python scripts/simctl_boot.py --all
python scripts/simctl_boot.py --type iPhoneScript Categories
Build & Development (2)
- build_and_test.py: Build with progressive disclosure
- log_monitor.py: Real-time log monitoring
Device State (2)
- appearance.py: Dark mode, Dynamic Type, locale/region
- location.py: GPS coordinates, city presets, GPX route playback
Navigation & Interaction (5)
- screen_mapper.py: Analyze screen
- navigator.py: Semantic element finding
- gesture.py: Touch simulation
- keyboard.py: Text input and keys
- app_launcher.py: App lifecycle
Testing & Analysis (9)
- accessibility_audit.py: WCAG compliance
- visual_diff.py: Screenshot comparison
- test_recorder.py: Test documentation
- app_state_capture.py: Debugging snapshots
- sim_health_check.sh: Environment verification
- model_inspector.py: Core Data and SwiftData model inspection
- container.py: App sandbox files, UserDefaults, Core Data store paths
- hang_watcher.py (HangBuster): session-scoped hang recorder with progressive disclosure (
--start/--stop/--get-details/--diff); raw NDJSON mode (--raw-capture+ size cap + gzip) forjqexploration; bounded auto-restart on stream EOF (IOS_SIM_HANG_MAX_RESTARTS) so crashed workers are markedcrashednot stalerunning; aggregate disk cap (IOS_SIM_HANG_TOTAL_CAP_MB) pruned on every--start; legacy--watch/--sincepaths preserved - localization_audit.py: String catalog gaps, missing keys, placeholder mismatches
Advanced Testing & Permissions (4)
- clipboard.py: Clipboard management
- status_bar.py: Status bar control
- push_notification.py: Push notifications
- privacy_manager.py: Permission management
Simulator Discovery (2)
- sim_list.py: List simulators with progressive disclosure (96% token reduction)
- simulator_selector.py: Suggest best simulator from recent use, latest iOS, boot status
Device Lifecycle Management (5)
- simctl_boot.py: Boot device
- simctl_shutdown.py: Shutdown device
- simctl_create.py: Create device
- simctl_delete.py: Delete device
- simctl_erase.py: Reset device
Shared Utilities
device_utils.py (~450 lines)
resolve_device_identifier(): UDID/name/booted resolutionlist_simulators(): List with state filtering_extract_device_type(): Parse device type from name
screenshot_utils.py (~346 lines)
capture_screenshot(): File or inline modegenerate_screenshot_name(): Semantic namingresize_screenshot(): Token optimization
cache_utils.py (~258 lines)
ProgressiveCache: Large output caching with TTL
hang_pipeline.py (~630 lines)
Pure-function HangBuster filter pipeline (parse → normalise → threshold → bucket → cluster → aggregate → rank → format). Reusable but scoped — promote to a generic log_filters.py only when a second consumer appears (AHA).
parse_log_line(),normalise_message(),bucket_severity(),compute_fingerprint()cluster_events(),rank_clusters(), aggregators (bursts/quiet/process)format_l0/l1/l2(),format_cluster_detail(),format_diff()estimate_tokens()(char/4 heuristic),compress_to_budget()diff_sessions()withfingerprint_versionguard- Dataclasses:
NormalisedEvent,Cluster,SessionSummary,Severity(StrEnum)
hang_sessions.py (~400 lines)
SessionStore: filesystem-backed session repository at~/.ios-simulator-skill/sessions/<id>/{meta.json, events.jsonl, summary.json, raw.ndjson.gz?, auto_samples.jsonl?}- Session ID format:
hang-YYYYMMDD-HHmmss-<4hex>(random suffix avoids same-second collisions) - Atomic meta writes (
.tmp+replace); worker writes its own pid (no pidfile race) - Status state machine:
pending → running → (stopped | crashed).mark_crashedrecordsstopped_at_mssobuild_summaryreflects the capture window, not the time of inspection.persist_worker_counterspreserves terminal status (cannot clobber CRASHED/STOPPED back to RUNNING). - TTL prune via
IOS_SIM_HANG_SESSION_TTL_HOURSon every--start - Aggregate cap via
IOS_SIM_HANG_TOTAL_CAP_MB(prune_to_aggregate_cap) — oldest-first eviction; runs alongside TTL prune on every--start raw_path()+session_total_bytes()accessors for raw-capture mode
Quality Standards
- Type hints (modern Python syntax)
- Docstrings on all functions
- Specific exception handling
- --help support on all scripts
- Black formatter compliance
- Ruff linter (0 errors)
- Never use shell=True
Token Efficiency
96% reduction in typical output:
- Default: 3-5 lines (5-10 tokens)
- Verbose: 50+ lines (400+ tokens)
- JSON: 20-30 lines (20-30 tokens)
This keeps AI agent conversations focused and cost-effective.
Contributing
New scripts should:
- Use class-based design for > 50 lines of logic
- Support --udid and auto-detection
- Support --json output
- Provide --help documentation
- Follow Black and Ruff standards
- Update SKILL.md table of contents
- Work with real simulators before submission
Release Process
- Update version in SKILL.md frontmatter, pyproject.toml
- Verify CI passes (Black, Ruff)
- Create GitHub release with vX.X.X tag
- Attach zipped ios-simulator-skill/ directory
Design Philosophy
Semantic: Find elements by meaning, not pixels.
Progressive: Minimal output by default, details on demand.
Accessible: Built on standard iOS accessibility APIs.
Zero-Config: Works immediately with no setup.
Structured: JSON and formatted text, not raw logs.
Reusable: Common patterns across all scripts.
This design works for both developers and AI agents.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

