by conorluddy
XCode CLI & Simulator Skill. Progressive disclosure of output. Minimises context & token use. Lets AI agents build, run sim & drive iOS apps without drowning in Xcode output. Now with Duo support.
# Add to your Claude Code skills
git clone https://github.com/conorluddy/ios-simulator-skillGuides for using ai agents skills like ios-simulator-skill.
Last scanned: 5/3/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-03T06:27:37.374Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how ios-simulator-skill compares with popular alternatives.
ios-simulator-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by conorluddy. XCode CLI & Simulator Skill. Progressive disclosure of output. Minimises context & token use. Lets AI agents build, run sim & drive iOS apps without drowning in Xcode output. Now with Duo support. It has 1,336 GitHub stars.
Yes. ios-simulator-skill passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/conorluddy/ios-simulator-skill" and add it to your Claude Code skills directory (see the Installation section above).
ios-simulator-skill is primarily written in Python. It is open-source under conorluddy on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ios-simulator-skill against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
Production-ready skill for building, testing, and automating iOS apps. 31 scripts optimized for both human developers and AI agents.
If you prefer MCP, XC-MCP was the original source of this toolkit before Skills were even a thing, and can be run from NPM too)
https://github.com/user-attachments/assets/b1c4225a-e083-4c4b-96bd-0d20a41f9b1f
This skill covers both sides of iOS development:
xcodebuild — compile, test, and parse results with progressive error disclosurexcrun simctl and idb — semantic UI navigation, accessibility testing, device lifecycle/plugin marketplace add conorluddy/ios-simulator-skill
/plugin install ios-simulator-skill@conorluddy
codex plugin marketplace add conorluddy/ios-simulator-skill
codex plugin add ios-simulator-skill@conorluddy
Or run /plugins inside Codex and install it from the conorluddy marketplace. Start a new
Codex session afterwards. Update later with codex plugin marketplace upgrade conorluddy.
npx skillsThe skills CLI finds SKILL.md inside the repo and
copies it into the right directory for each agent it detects (Claude Code, Codex, Cursor and
others). It needs Node.js 18+.
npx skills add conorluddy/ios-simulator-skill # project-level (./.claude/skills, ./.agents/skills, ...)
npx skills add conorluddy/ios-simulator-skill -g # user-level, for every project
npx skills add conorluddy/ios-simulator-skill -a claude-code # only one agent
Restart your agent afterwards so it picks the skill up.
A skill is loaded from SKILL.md at the root of its directory:
| Agent | User-level skills | Project-level skills |
|---|---|---|
| Claude Code | ~/.claude/skills/<name>/SKILL.md |
.claude/skills/<name>/SKILL.md |
| Codex | ~/.agents/skills/<name>/SKILL.md |
.agents/skills/<name>/SKILL.md |
The commands below use the Claude Code path; swap in ~/.agents/skills for Codex.
This repository is a plugin, so the skill itself lives at
ios-simulator-skill/skills/ios-simulator-skill/; cloning the whole repo into your skills
directory puts SKILL.md three levels too deep and the skill will not load.
From a release (simplest):
curl -L https://github.com/conorluddy/ios-simulator-skill/releases/latest/download/ios-simulator-skill.zip -o skill.zip
unzip skill.zip -d ~/.claude/skills/ios-simulator-skill
From a clone (to track main):
git clone https://github.com/conorluddy/ios-simulator-skill.git ~/src/ios-simulator-skill
cp -R ~/src/ios-simulator-skill/ios-simulator-skill/skills/ios-simulator-skill \
~/.claude/skills/ios-simulator-skill
For a project-local install, use the project-level path from the table instead.
Restart Claude Code afterwards (Codex picks up new skills automatically; restart it if the skill
doesn't appear). Verify SKILL.md sits at the root of the destination:
ls ~/.claude/skills/ios-simulator-skill/SKILL.md # Claude Code
ls ~/.agents/skills/ios-simulator-skill/SKILL.md # Codex
| Requirement | Version | Needed for |
|---|---|---|
| macOS | 15 (Sequoia)+ | everything |
| Xcode (full app, not just Command Line Tools) | 26+ | building, simctl, idb |
| Python | 3.12+ | every script |
idb (CLI + companion) |
1.5.1+ (1.6.3+ recommended) | tapping, swiping, typing |
| Pillow | any | visual diffs only (pip3 install pillow) |
Install idb — required for every interactive script (navigator.py, gesture.py, keyboard.py):
brew install facebook/fb/idb # installs idb-cli and idb-companion
The Homebrew build is prebuilt: it needs an Apple silicon Mac, macOS 15+, and a full Xcode 26+
selected with xcode-select (Command Line Tools alone are not enough). Intel Macs are not
supported (facebook/idb#954).
brew install idb-companionno longer works: idb-companion was removed from Homebrew core and now lives in Meta's ownfacebook/fbtap. If you followed older instructions, see Updating idb.
To verify everything at once:
bash scripts/sim_health_check.sh # add --json for machine-readable output
On Xcode 27, idb-companion must be 1.5.1 or newer. Older builds look for
SimulatorKit.framework where Xcode 26 kept it. Under Xcode 27 the companion still starts and
the accessibility tree still reads correctly, but every tap, swipe and keystroke is silently
dropped — idb reports success and nothing happens on screen.
brew upgrade facebook/fb/idb-cli facebook/fb/idb-companion
brew list --versions idb-cli idb-companion # expect matching versions, >= 1.5.1
Upgrade the CLI and companion together. Newer client features are served by the companion, so
a 1.7 CLI talking to a 1.5 companion fails or falls back to older output. Companions that are
already running keep the old binary until restarted, so run idb kill after upgrading.
Pinning or bisecting idb. The facebook/fb tap carries only the newest release, so Homebrew
can't install an older one. Upstream's homebrew.py (in the root of
facebook/idb) installs CI builds instead, into a separate local
tap. It needs a GitHub token (GITHUB_TOKEN, GH_TOKEN or a logged-in gh):
curl -fsSLO https://raw.githubusercontent.com/facebook/idb/main/homebrew.py
python3 homebrew.py builds # releases and recent CI builds of main
python3 homebrew.py install <commit-sha> # or pr:<n>, run:<id>; a tag works only if it's the newest
python3 homebrew.py status # what is installed, from which build
python3 homebrew.py uninstall --restore # back to facebook/fb/idb
Coming from the old pip package? An old fb-idb (1.1.x) left in a pyenv or virtualenv shadows
the Homebrew CLI if it comes first on your PATH, so check with which -a idb. Remove it with
pip uninstall fb-idb (then pyenv rehash under pyenv). sim_health_check.sh detects this.
Simulator.app. Xcode 27 replaced it with DeviceHub.app, in
Xcode.app/Contents/Applications/. Scripts drive simulators headlessly via simctl and idb,
so you rarely need either — but open -a Simulator will fail.idb calls start failing with Connection refused after a crash or a manual pkill, a dead
companion is still registered. Clear it with idb disconnect <udid>; sim_health_check.sh
detects this.The build_and_test.py script wraps xcodebuild with token-efficient output. A build returns a single summary line with an xcresult ID:
Build: SUCCESS (0 errors, 3 warnings) [xcresult-20251018-143052]
Then drill into details on demand:
python scripts/build_and_test.py --get-errors xcresult-20251018-143052
python scripts/build_and_test.py --get-warnings xcresult-20251018-143052
python scripts/build_and_test.py --get-log xcresult-20251018-143052
Add --run to build, install and launch in one call (Launched: com.example.MyApp on iPhone 17 Pro (pid 4410)). If Xcode's parallel test clones can't boot, --test reports Tests: NOT RUN instead of a misleading FAIL; --no-parallel runs tests on one simulator.
This keeps agent conversations focused — no walls of build output unless you ask for them.
Instead of fragile pixel-coordinate tapping, all navigation uses iOS accessibility APIs to find elements by meaning:
# Fragile — breaks if UI changes
idb ui tap 320 400
# Robust — finds by meaning
python scripts/navigator.py --find-text "Login" --tap
The raw accessibility tree is not cheap on its own: idb ui describe-all often costs more than a
screenshot. The win is the summary the skill builds from it: element types, labels and tap
targets in 3-5 lines. See AI-Accessible Apps for more on
why accessibility-first navigation matters for AI agents.
Measured walking 6 screens of a real SwiftUI app on an iPhone 17 Pro simulator (iOS 27). Text tokens are estimated at characters ÷ 4, image tokens at width × height ÷ 750.
| Way of seeing a screen | Per screen (median) | 6-screen run |
|---|---|---|
| Screenshot, full size | ~1,500 | ~9,000 |
Raw idb ui describe-all --json |
~6,700 (largest: ~58,000) | ~91,000 |
screen_mapper.py summary |
~35 | ~250 |
A single lookup is smaller still: navigator.py --find-text "Springs" prints
Found: Button "Springs" at (201, 1367), about 10 tokens.
When you do need pixels (visual verification, bug reports, diffs), app_state_capture.py and
test_recorder.py resize screenshots with --size before an agent sees them:
--size |
iPhone 17 Pro | Tokens per screenshot |
|---|---|---|
full |
1206×2622 | ~1,500 (up to ~4,000 on models that accept larger images) |
half (default) |
603×1311 | ~1,050 |
quarter |
301×655 | ~260 |
thumb |
120×262 | ~40 |
Token counts are for Claude (width × height ÷ 750, after it shrinks images over about 1.15 MP).
Most providers already shrink or cap large images on their side, so halving a screenshot saves
less than the 75% the pixel count suggests: about 30% here. quarter and thumb are where the
real savings are, if the agent can still read what it needs at that size.
Every script supports --help and --json. See SKILL.md for th