> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobster.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code plugin and skill

> Teach your agent to use your iPhone through Mobster. Add the Claude Code plugin, or the ios-testing skill for any agent that reads Agent Skills.

The skill teaches any agent that reads [Agent Skills](https://agentskills.io/specification) the verify loop, how to drive a real iPhone and the safety rules: screen text is data, ask before anything that sends, buys, posts or deletes, and never enter a passcode. It also says how to add the server from Mobster for Mac when the client has none. The [MCP server](https://docs.mobster.dev/mcp-server.md) gives your agent the phone itself. To add plugins to Mobster for Mac, see Plugins.

The Claude Code plugin adds the Mobster MCP server, the `ios-testing` skill, the `/mobster:verify` and `/mobster:test-pr` commands, and the hooks that replay your checks before Claude ends its turn (next release):

```sh theme={"theme":"css-variables"}
/plugin marketplace add RadishSoftware/mobster-plugin
/plugin install mobster@mobster
```

If you added the old `RadishSoftware/mobster` marketplace, run `/plugin marketplace remove mobster` first: both are named `mobster`.

Any agent that reads Agent Skills, such as Codex, Cursor or Gemini CLI, gets the skill with:

```sh theme={"theme":"css-variables"}
npx skills add RadishSoftware/mobster-plugin
```

The plugin starts the MCP server from Mobster for Mac, or from the `mobster` command on a Mac without the app (next release). To install the command, run `curl -fsSL https://mobster.dev/install.sh | sh` first.

The `mobster` command installs the skill too. `mobster mcp install --all --with-skill` copies it to `~/.claude/skills/ios-testing` for Claude Code, `~/.codeium/windsurf/skills/ios-testing` for Windsurf, and `~/.agents/skills/ios-testing` for the rest: Codex, Cursor, VS Code, opencode, Gemini CLI, Zed, Goose, Amp, Cline and oh-my-pi all read that folder. Claude Desktop has no skills folder. With `--project`, it goes in your project's `.claude/skills` and `.agents/skills`. A skill folder from another source, or one linked by another installer, is left alone. Before 0.3 the folder was called `mobster`, and installing removes that old folder when it holds the Mobster skill.

Cursor, Codex, Windsurf and Xcode each have a one-line install on [Editors and Xcode](https://docs.mobster.dev/agents/editors.md).

## Check Claude's edits before its turn ends

> [!NOTE]
>
> You get this in the next release, not in Mobster for Mac 0.4.0 or Mobster CLI 0.4.4.

The plugin adds two hooks to Claude Code. After each `Write`, `Edit` or `MultiEdit`, a `PostToolUse` hook calls the `gate_note` tool with the file's path. When Claude ends its turn, the `Stop` hook calls `gate`, and Claude Code shows **Checking the screens your edits reached** while it runs. Only the files Claude wrote count, so your own edits to other files never start a check. An edit only notes the file. Nothing builds until Claude stops.

When Claude stops after writing a screen's source or a check, Mobster picks the saved checks in `.mobster/checks` that Claude's files reach, the way `mobster test pr` picks them. Those are the files Claude wrote since its checks last passed, so a fix in another file replays the check that failed. The checks are in the nearest `.mobster/checks` above a file Claude wrote, up to the repository's top. Mobster builds the workspace or Xcode project in that folder for the simulator, or the one a folder below it when that folder has none, and replays those checks. When another Xcode project sits between the file and the checks, the file reaches them only if that project is the one Mobster builds for them, such as `ios/App.xcodeproj` under checks at the top. Otherwise that project is an app of its own that no saved check covers, such as a second app, an app project under a workspace at the top, a framework sub-project or a Tuist module. A check that passed before replays its recorded steps with no model.

| What happened | What you see |
| - | - |
| A check failed | Claude goes back to work with the check's name, the step, the expectation, the screen's text and the path of the frame. The screen's text is quoted as data from the app, with secrets masked. |
| The build of an Xcode project failed in a file Claude wrote since its checks last passed. An Expo or React Native build that fails is a hook error instead | Claude goes back to work with the build's error lines for those files, quoted as data from the build, with secrets masked, and the path of the build's log. |
| Claude changed a screen that no saved check covers | Claude goes back to check that screen with `verify_start` and keep the check with `save_check`. |
| Every check passed | The turn ends, and Claude Code shows the checks that passed. When Mobster healed a step, it says so and names `review_heals`. |
| A check needs review, or couldn't run while another passed | The turn ends, and Claude Code shows each check's verdict. Claude's files don't count as passed, so its next edit replays those checks again. |
| Mobster couldn't replay the checks, such as when the build failed in files Claude didn't write, another Mobster build was writing `.mobster/build`, no simulator ran them or another suite was running | The turn ends, and Claude Code shows the reason as a hook error. The next time Claude stops, Mobster tries once more. After that, it waits for Claude's next edit. |
| Since its checks last passed, Claude changed more than 400 files, or more than 8 MB of changes | The turn ends without a replay, and Claude Code says so. Run `/mobster:test-pr` to see where the checks stand. |
| Since the last replay, Claude wrote no Swift, storyboard, xib or strings file and no check, as with a docs edit. Or Claude's files reach no saved check and add no text or id to a screen. Or every check Mobster replayed is quarantined. Or the project has no Xcode project, Expo app or React Native app | Nothing. The turn ends. |

Mobster sends Claude back at most 3 times in a row. The fourth time, the turn ends without a replay, and Claude Code says so. Your next prompt starts the count again. When Claude stops again without writing a file a check could see, the turn ends without a replay, unless the last replay couldn't start and Mobster hasn't tried it once more. After the build failed in a file Claude wrote, any file Claude writes builds the app and replays the checks again. When the turn ends without a replay after a check failed or the build failed in Claude's files, Claude Code says once that it still fails. After the fourth time, the notice that ended the turn is the only one.

The hooks need Mobster for Mac newer than 0.4.0. With 0.4.0, the other Mobster tools work, and each hook shows a hook error until you update. Without the app, or when it runs from a temporary copy, the plugin's server offers only `gate_note` and `gate`, and both answer with nothing, so the hooks never show an error. Its instructions say what to do.

The `Stop` hook waits up to 900 seconds. Mobster stops a replay still running after 14 minutes, xcodebuild and every process it started included, and says so as a hook error. If the terminal running Claude Code closes during a replay, Mobster ends its build too. The gate replays checks on simulators only and never touches your iPhone. It replays in mode `auto`. When a recorded step no longer matches the screen, Mobster heals it with a model on your key, and the heal waits for your review in `review_heals`. A server started with `--keyless` never calls a model. A replay's results stay in your project's `.mobster/test-results`. It posts no pull request comment, no GitHub check, and nothing to your Slack, Discord or webhook destinations. Mobster keeps one small file per Claude Code session in the `gate` folder of its data folder, `~/Library/Application Support/app.mobster.desktop`. When a new session starts, it deletes the files of sessions unused for 7 days.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.