agentleFS
gokhanamalgokhanamal/ai-context/skills/ios-simulator/SKILL.md

ios-simulator

Skill1 starsChanged 8 months agoMITView on GitHub

Drive an iOS Simulator from plain-language instructions by discovering the project, launching the app, inspecting the visible UI, and interacting with elements through xcodebuildmcp. Use when the user wants an agent to open Simulator, navigate screens, tap buttons, type into fields, scroll, or capture screenshots and logs. ALSO auto-invoke this skill when you need to take a screenshot of a built iOS app, verify a UI component visually, or test a UI change you just implemented — any time seeing the running app in Simulator would confirm your work.

  • Installs packages

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. callstack/agent-device★ 4.9ksame name
    2. dpearson2699/swift-ios-skills★ 1.2ksame name
    3. simiancraft/simiancraft-skills★ 8same name
    4. ninjaproger/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

32 rules. 0 are common, 16 are distinctive, and 16 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 16

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for the requested simulator task:

    line 10
  2. Distinctive:

    If the CLI is missing, stop and provide setup help instead of improvising.

    line 19
  3. Very specific:

    Prefer xcodebuildmcp simulator build-and-run when the app needs to be launched.

    line 23
  4. Very specific:

    Prefer taps by accessibility id or label.

    line 26
  5. Distinctive:

    If it fails, stop and give short install guidance such as:

    line 40
  6. Very specific:

    If the repo does not clearly expose a single .xcworkspace or .xcodeproj, use project-discovery discover-projects.

    line 47
  7. Distinctive:

    Prefer a workspace over a project when both exist for the same app.

    line 48
  8. Very specific:

    If the scheme is unknown, use project-discovery list-schemes.

    line 49
  9. Distinctive:

    Ask the user only when there are multiple plausible app targets or schemes and the correct choice is not obvious.

    line 50
  10. Very specific:

    Use simulator list to find devices when the task names a preferred device or when you need a simulator id.

    line 54
  11. Very specific:

    Use simulator boot only for manual flows that need an already-booted device.

    line 55
  12. Very specific:

    Use simulator open when the Simulator app should be visible to the user.

    line 56
  13. Very specific:

    Do not boot a simulator just because you can.

    line 57
  14. Very specific:

    Prefer simulator build-and-run for the common path.

    line 61
  15. Very specific:

    If the app is already built and only a relaunch is needed, use simulator launch-app.

    line 62
  16. Distinctive:

    If the bundle id is unknown, resolve it with:

    line 63
  17. Very specific:

    Call simulator snapshot-ui before the first tap, type, swipe, or scroll.

    line 69
  18. Very specific:

    If skills/ios-simulator/scripts/ui_helper.py is available, use it as the default fast path for taps on visible elements.

    line 70
  19. Very specific:

    After any action that could change layout or navigation, run snapshot-ui again before the next interaction.

    line 72
  20. Distinctive:

    verify focus if the UI output changes

    line 76
  21. Very specific:

    Prefer ui-automation gesture for common scrolling.

    line 78
  22. Very specific:

    Use ui-automation swipe only when a preset gesture is not precise enough.

    line 79
  23. Distinctive:

    If an element is missing or not hittable:

    line 80
  24. Distinctive:

    use coordinate fallback only when the element is visible and uniquely identified

    line 83
  25. Very specific:

    Use simulator screenshot or ui-automation screenshot when the user asks for proof or when a failure needs visual confirmation.

    line 87
  26. Distinctive:

    Use simulator log capture when a flow crashes, stalls, or needs console evidence.

    line 88
  27. Distinctive:

    When the flow fails, summarize:

    line 89
  28. Distinctive:

    Ask for confirmation before destructive or external actions, including delete, purchase, submit, sign-out, account changes, or anything …

    line 97
  29. Distinctive:

    Do not erase simulators, reset location, clear app data, or change status bar state unless the user explicitly asks.

    line 98
  30. Distinctive:

    Do not guess between multiple similarly named UI elements without confirming which one is intended.

    line 99
  31. Distinctive:

    Do not use coordinate taps as the first choice when an accessibility id or label is available.

    line 100
  32. Distinctive:

    Prefer explicit command flags over hidden profiles or session defaults unless the user specifically asks to rely on them.

    line 101

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

iOS Simulator

Use this skill for the requested simulator task:

$ARGUMENTS

This is a manual workflow skill. Treat every simulator action as deliberate, verify progress after each step, and pause before risky side effects.

Quick Start

  1. Run xcodebuildmcp --help first.
  2. If the CLI is missing, stop and provide setup help instead of improvising.
  3. Discover the Xcode project or workspace only when the path is not already clear.
  4. Resolve the scheme only when it is not obvious.
  5. List, boot, or open the simulator only as needed.
  6. Prefer xcodebuildmcp simulator build-and-run when the app needs to be launched.
  7. Inspect the current screen with snapshot-ui before the first interaction and after every navigation-changing action.
  8. In this repo, prefer python3 skills/ios-simulator/scripts/ui_helper.py tap ... for repeated tap flows so the helper can resolve centers and retry fallbacks automatically.
  9. Prefer taps by accessibility id or label. Use coordinates only after a fresh UI snapshot confirms the target is visible.
  10. Focus a field before using type-text.
  11. Capture screenshots or logs when the user asks for proof or when debugging is needed.

Workflow

1. Preflight

  • Parse the task for four things:
    • what app or repo to run
    • which simulator, if any
    • which screen flow to follow
    • whether proof is required through screenshots or logs
  • Run xcodebuildmcp --help.
  • If it fails, stop and give short install guidance such as:
    • brew tap getsentry/xcodebuildmcp
    • brew install xcodebuildmcp
    • npm install -g xcodebuildmcp@latest

2. Discover The App

  • If the repo does not clearly expose a single .xcworkspace or .xcodeproj, use project-discovery discover-projects.
  • Prefer a workspace over a project when both exist for the same app.
  • If the scheme is unknown, use project-discovery list-schemes.
  • Ask the user only when there are multiple plausible app targets or schemes and the correct choice is not obvious.

3. Prepare The Simulator

  • Use simulator list to find devices when the task names a preferred device or when you need a simulator id.
  • Use simulator boot only for manual flows that need an already-booted device.
  • Use simulator open when the Simulator app should be visible to the user.
  • Do not boot a simulator just because you can. simulator build-and-run already handles booting when needed.

4. Launch The App

  • Prefer simulator build-and-run for the common path.
  • If the app is already built and only a relaunch is needed, use simulator launch-app.
  • If the bundle id is unknown, resolve it with:
    1. simulator get-app-path
    2. project-discovery get-app-bundle-id

5. Navigate And Interact

  • Call simulator snapshot-ui before the first tap, type, swipe, or scroll.
  • If skills/ios-simulator/scripts/ui_helper.py is available, use it as the default fast path for taps on visible elements.
  • Match the requested UI target using visible accessibility ids or labels first.
  • After any action that could change layout or navigation, run snapshot-ui again before the next interaction.
  • For navigation-changing or toggle actions, prefer helper invocations with --expect-change so failed taps retry automatically.
  • For text entry:
    1. focus the field with a tap
    2. verify focus if the UI output changes
    3. use ui-automation type-text
  • Prefer ui-automation gesture for common scrolling.
  • Use ui-automation swipe only when a preset gesture is not precise enough.
  • If an element is missing or not hittable:
    1. refresh the UI snapshot
    2. confirm the target is still expected on the current screen
    3. use coordinate fallback only when the element is visible and uniquely identified

6. Capture Proof And Recover

  • Use simulator screenshot or ui-automation screenshot when the user asks for proof or when a failure needs visual confirmation.
  • Use simulator log capture when a flow crashes, stalls, or needs console evidence.
  • When the flow fails, summarize:
    • what step was attempted
    • what the latest UI snapshot showed
    • what recovery you tried
    • what still blocks progress

Safety Rules

  • Ask for confirmation before destructive or external actions, including delete, purchase, submit, sign-out, account changes, or anything that can alter real data or trigger network side effects.
  • Do not erase simulators, reset location, clear app data, or change status bar state unless the user explicitly asks.
  • Do not guess between multiple similarly named UI elements without confirming which one is intended.
  • Do not use coordinate taps as the first choice when an accessibility id or label is available.
  • Prefer explicit command flags over hidden profiles or session defaults unless the user specifically asks to rely on them.

Examples

  • /ios-simulator Open the simulator, run the current app, go to Settings, and tap Profile
  • /ios-simulator Launch the app on iPhone 16, finish onboarding, type test@example.com, and take a screenshot
  • /ios-simulator Open Simulator, reproduce the crash after tapping Continue, and capture logs

Reference

For exact command patterns, helper usage, and recovery recipes, see references/command-recipes.md.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.