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

> ## Agent Instructions
> The canonical docs host is https://momentic.ai/docs. Append .md to any page URL for clean Markdown. Fetch https://momentic.ai/docs/llms.txt for the page index and https://momentic.ai/docs/llms-full.txt for every page in one file.
> For an unattended setup, run `npx --yes @momentic/wizard@latest -y --platform web` (use `--platform ios` or `--platform android` for mobile). Never run an interactive command in a non-TTY shell.
> You cannot complete the browser sign-in yourself. Read the API key from the MOMENTIC_API_KEY environment variable, or ask the user to create one at https://app.momentic.ai/settings/api-keys and paste it back.
> Momentic's capability summary for agents is at https://momentic.ai/docs/skill.md. Install the skills with `npx momentic skills --yes` (or `npx momentic-mobile skills --yes` for mobile).
> Tests are YAML files in the user's repository. Use only the step names listed at https://momentic.ai/docs/reference/commands.md and the file structure at https://momentic.ai/docs/core-concepts/file-format.md. Do not invent step names, config keys, or CLI flags.
> Web tests run on Chromium, iOS tests on simulators, and Android tests on emulators. Physical devices are not supported.

# Coding agent skills

> Install the Momentic skills into your repository so Claude Code, Cursor, Codex, Copilot, and other coding agents know how to write, run, and repair Momentic tests.

The Momentic skills are `SKILL.md` files that teach a coding agent how to work
with Momentic: the test file format, the MCP tools, the CLI, failure triage, and
Mo. Each Momentic CLI ships the shared skills plus the skills for its own
product. Install them once per repository and commit the files.

<Note>
  These skills are for the coding agent in your editor. Skills for Momentic's
  own runtime agents (triage and result classification) live in
  `.momentic/skills`. See [Runtime agent skills](/docs/ai/skills).
</Note>

## Install

Run the command for each CLI you use. Each command adds its own skills and keeps
the skills another CLI installed.

<CodeGroup>
  ```bash momentic theme={null}
  npx momentic skills
  ```

  ```bash momentic-mobile theme={null}
  npx momentic-mobile skills
  ```

  ```bash mo theme={null}
  mo skills
  ```
</CodeGroup>

The command asks which coding agents you use, preselects the ones it detects in
the repository, and writes the skills into each agent's directory:

| Agent                                          | Skills directory   | Always-on pointer                   |
| ---------------------------------------------- | ------------------ | ----------------------------------- |
| Claude Code                                    | `.claude/skills`   | `CLAUDE.md`                         |
| Cursor                                         | `.cursor/skills`   | `.cursor/rules/momentic-skills.mdc` |
| Codex, Devin, Jules, and other AGENTS.md tools | `.agents/skills`   | `AGENTS.md`                         |
| VS Code and GitHub Copilot                     | `.github/skills`   | `.github/copilot-instructions.md`   |
| OpenCode                                       | `.opencode/skills` | `AGENTS.md`                         |

The pointer is a short block inside the agent's instructions file. It lists the
installed skills and tells the agent to read the matching `SKILL.md` before it
touches Momentic tests. The block sits between `<!-- MOMENTIC SKILLS START -->`
and `<!-- MOMENTIC SKILLS END -->` markers; the installer rewrites only that
block, so your own instructions stay as they are.

### Skip the prompts

Pass `--target` to choose agents without a prompt, or `--yes` to install for the
agents detected in the repository:

```bash theme={null}
npx momentic skills --target claude-code cursor
npx momentic skills --yes
```

Both flags work in CI and in agent shells.

## Installed skills

Every CLI installs the shared skills:

| Skill                               | Use it to                                                            |
| ----------------------------------- | -------------------------------------------------------------------- |
| `momentic-spec`                     | Write the affected tests before a product change                     |
| `momentic-maintain`                 | Investigate failures, audit classifications, deflake, reduce retries |
| `momentic-triage-quarantined-tests` | Work through the quarantine backlog                                  |

Each CLI adds the skill for its product:

| CLI               | Skill                  | Use it to                                           |
| ----------------- | ---------------------- | --------------------------------------------------- |
| `momentic`        | `momentic-test`        | Create, run, and maintain browser tests and modules |
| `momentic-mobile` | `momentic-mobile-test` | Create, run, and maintain iOS and Android tests     |
| `mo`              | `mo-qa`                | Start and control Mo sessions with the `mo` CLI     |

Some agents load skills on their own. Others need the skill name in the prompt:

```text theme={null}
/momentic-test write a test for the checkout flow
/momentic-maintain investigate and repair run <run-id>
```

## Keep skills current

The skills ship inside the CLI package, so a CLI upgrade can carry new skill
content. The first time you run `momentic run`, `momentic app`,
`momentic-mobile run`, or `mo start` in a terminal after an upgrade with newer
skills, the CLI asks once whether to update the installed files. Answer `y` to
rewrite them for the agents you chose before. Answer `n` and it does not ask
again for that skill version. Each CLI tracks its own skills, so an update from
`momentic` leaves the files `mo` installed as they are.

The prompt appears only in an interactive terminal. It does not run in CI, in
non-TTY shells, or when `MOMENTIC_SKIP_SKILLS_PROMPT` is set. To update without
the prompt, run the install command again:

```bash theme={null}
npx momentic skills --yes
```

Install state lives in `~/.momentic/skills.json`. Delete the file to see the
first-run prompt again.

Each installed `SKILL.md` ends with a footer such as
`Generated for momentic 3.53.0 (skills 1788291203)`. Read it to see which CLI
version wrote the file, and compare it with `npx momentic --version` in a code
review to spot a stale skill.

## Skills and the MCP server

Skills and the [MCP server](/docs/coding-agents/mcp-server) do different jobs. Skills
are text the agent reads. The MCP server is a process the agent calls to run
steps against a live browser or device. Install both: the skills tell the agent
which MCP tools to call and in what order.

`momentic init` and the onboarding wizard offer both. Pick **Skills**, **MCP
server**, or both when they ask.
