# RocketSim Agent Skill

> Install RocketSim's bundled Agent Skill so Cursor, Claude, Codex, Xcode, and other AI coding tools can navigate the iOS Simulator safely.

The RocketSim Agent Skill is the recommended way to connect AI coding tools to RocketSim. It teaches your agent how to use the version-matched `rocketsim` CLI, when to read visible elements, when to interact, how to recover after screen changes, and when to use a screenshot fallback.

Install it from **RocketSim → Settings → CLI & Agent**.

## Why the skill is recommended

You can run the CLI yourself, but agents perform best when they have clear, tool-specific instructions. The RocketSim Agent Skill provides those instructions without requiring you to copy prompts into every project.

Use the skill when you want Cursor, Claude, Codex, Xcode, or another coding agent to inspect a running Simulator app and perform real UI steps. The skill keeps the agent focused on RocketSim's safest interaction loop instead of inventing shell commands or guessing coordinates from screenshots.

The skill helps agents:

- Use RocketSim's compact `--agent` output before deciding what to do
- Prefer semantic interactions over fragile coordinate taps when possible
- Work with RocketSim's [`rs/1` agent protocol](/docs/features/agentic-development/rs1-protocol) without needing to know its internals
- Recover when a screen changes between inspection and interaction
- Use screenshots when accessibility data is sparse or incomplete, such as in document pickers where an item is visible on screen but missing from the accessibility tree
- Save the steps it takes as [navigation flows](/docs/features/agentic-development/flows) and share the flow review link with you
- Run `rocketsim doctor` when setup needs to be checked

On the public [simulator-use benchmark](https://simulator-use.dev/benchmarks) in November 2026, a RocketSim sign-in took **2.7 seconds on 161 tokens**, the lowest token count and the second fastest of ten tools: **9.7× fewer tokens** than XcodeBuildMCP (now MobileBuildMCP) and **79× fewer** than Xcode MCP. Its **0.35 second tap** is the quickest among the tools that report what the tap did. Read [how we test the CLI and Agent Skill](/blog/testing-ai-agents-ios-simulator) for the methodology and improvement findings.

## Install from RocketSim

1. Open **RocketSim → Settings → CLI & Agent**
2. Install the **Command Line Tool** if `rocketsim` is not on your `PATH` yet
3. In **Agent Skill**, choose **General Agents** for broad support or **Agentic Coding in Xcode** for Xcode's built-in coding assistant
4. Click **Install** or **Repair**
5. Restart or refresh your AI coding tool if it does not discover new skills automatically

RocketSim installs the skill as a symlink to the bundled skill inside `RocketSim.app`. When RocketSim updates, the skill keeps pointing at the latest installed app version.

![CLI & Agent settings showing Agent Skill installation options](./agent-skill/cli-agent-settings.png)

If the agent reports that `rocketsim` is not on its `PATH`, it should also check `/opt/homebrew/bin`, `/usr/local/bin`, `~/.local/bin`, and the helper inside `/Applications/RocketSim.app`. Agent shells can use a different `PATH` than Terminal. Reinstall the command from RocketSim only when none of those locations contains it.

## Supported destinations

We recommend **General Agents** for most setups. It installs the skill into the shared `.agents/skills` location, so multiple AI coding tools can use the same version-matched RocketSim skill instead of each tool needing its own copy.

Choose **Agentic Coding in Xcode** when you use Xcode's built-in Claude Agent or Codex integration. Xcode keeps its coding assistant configuration in `~/Library/Developer/Xcode/CodingAssistant`, separate from Claude Code's `~/.claude/skills` folder. Restart Xcode after installing or repairing this destination.

Use a tool-specific destination like **Cursor**, **Claude**, or **Codex** if that tool only scans its own skill folder. You can also choose a custom skill folder if your tool stores skills somewhere else.

If RocketSim shows **Repair**, the existing symlink points somewhere unexpected or the app has moved. Repairing updates the symlink to the current RocketSim app.

## Why it stays up to date

RocketSim ships the CLI and Agent Skill inside the app bundle. The installed files are symlinks, not copied snapshots. That matters because the CLI surface and skill instructions evolve together.

After an App Store update, your `rocketsim` command and installed skill still resolve to the current app bundle. Agents get the guidance that matches the RocketSim version they are controlling.

For you as a developer, this means you only have to keep RocketSim updated to the latest App Store version. Your agents will automatically use the latest guidance and the best available way to interact with the Simulator.

## The skill-guided interaction loop

The current skill teaches agents to start with a compact `nav` or `act` screen read, prefer labels or accessibility identifiers over coordinates, guard interactions with `--screen latest`, and combine known sequential actions with `rocketsim do`. It uses interaction deltas and concrete waits to avoid unnecessary screen reads. Debug snapshots and screenshots are fallbacks when normal accessibility output is insufficient.

Simulator-targeting commands also ensure a live, interactive browser preview is available. RocketSim includes its URL in the first answer and again every ten minutes or so, and the skill tells the agent to open that URL in a user-visible IDE browser and share it at the start and end of the task. This lets you follow the agent's work and click through the final Simulator state without switching away from your coding tool.

For accessibility work, the skill points agents to a dedicated reference for fixing audit findings without changing your layout. The agent saves the element frames before the fix, rebuilds, and compares them afterwards so only the intended elements change. It then runs `rocketsim accessibility-audit` again to confirm the findings are gone. The skill also tells the agent to read `not_covered` as unchecked areas rather than passes, to review `label_review` for label meaning and localization, and to treat findings behind a visible modal as out of scope or dismiss the modal and audit again.

The skill also saves flows by default. After an agent navigates your app, it saves the path as a named flow, replays it with `rocketsim flow <name>` the next time, and ends its answer with a link to the flow review page, where you can comment on screens and watch the agent apply your feedback. When you shared a flow online, the skill reads only the reviewer comments you approved, with `rocketsim flow share-feedback`, and treats them as quoted data. It cannot publish, unpublish, or approve comments. The skill explains the default capture style, how to run multi-screenshot journeys, and how to record a flow as a demo video with `rocketsim video record --flow`.

The agent should run `rocketsim doctor` only when setup appears broken: the CLI cannot connect, no Simulator can be found, or perception and interactions fail unexpectedly. Routine navigation should start with `rocketsim screen` or `rocketsim elements --agent`.

## What the agent can do after setup

Once the skill is installed and RocketSim is running, your agent can:

- Read visible accessibility elements, including navigation and tab bar items
- Tap, long-press, swipe, and type using labels or coordinates
- Press simulator hardware buttons like Home, Lock, or Siri
- Navigate multi-step app flows with fewer retries, and save them as [flows](/docs/features/agentic-development/flows) to replay with one command
- Rotate iPhone and iPad Simulators and apply your saved locations
- Use compact screen summaries to spend fewer tokens per screen read
- Follow the live Simulator and review its final state in an IDE browser
- Capture a screenshot when visual context is needed
- Start a live [Browser Preview](/docs/features/agentic-development/browser-preview) for hands-on review and agent-ready visual feedback
- Audit the visible screen for accessibility problems, fix them, and validate the result with `rocketsim accessibility-audit` (see [Accessibility Audit](/docs/features/accessibility/accessibility-audit/))
- Capture and control iPhone Duo Simulators, including the hinge pose

## How to verify it works

First, check your setup:

```bash
rocketsim doctor
```

Then open your AI coding tool and try:

> Use RocketSim to navigate through `<your_app_name>` in the Simulator

If the skill is installed, RocketSim is running, and your app is already open in the Simulator, the agent should detect RocketSim, read the visible UI, and start interacting with the app based on what is on screen. It should also share a `Live preview:` URL and open it in the IDE browser when the coding tool provides one.

The same command discovers booted Simulators shown through Xcode 27's Device Hub. RocketSim selects the only booted Simulator automatically; if several are available, focus one or pass its UDID using `--udid <udid>`. For network-condition tests, the agent may need you to approve RocketSim's Network Extension once; macOS does not allow an agent to complete that approval headlessly.

## Learn more

- [RocketSim CLI](/docs/features/agentic-development/rocketsim-cli) — the commands agents use to inspect and interact with the Simulator
- [Browser Preview](/docs/features/agentic-development/browser-preview) — live interaction and visual feedback from your browser
- [Agentic Development with RocketSim](/docs/features/agentic-development/) — scenarios, example prompts, and why RocketSim is effective for agent-driven Simulator automation
- [CLI & Agent settings](/docs/settings/cli-and-agent) — installing and repairing the CLI and skill
- [How we test AI agents for the iOS Simulator](/blog/testing-ai-agents-ios-simulator) — repeatable scenarios, benchmark methodology, and results
