# taggor agent

> Teach an AI agent to write and publish Taggor components in this project. Usage, options, examples and exit codes.

## taggor agent

Teach an AI agent to write and publish Taggor components in this project.

Subcommands: `taggor agent install`.

## taggor agent install

Install the Taggor skill and rules for your AI agent into this project (safe to repeat).

```sh title="Usage"
npx taggor agent install [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `--agent <value>` | Which agent to install for: claude (skill + CLAUDE.md), codex (AGENTS.md), cursor (rules) or all (default). | - |
| `--check` | Install nothing: say whether what is installed matches this CLI's version. | - |

Also takes the [common options](https://taggor.dev/docs/reference/cli.md#common-options): `--json`, `--no-input`.

```sh title="Examples"
npx taggor agent install --agent claude
npx taggor agent install --check
```

Exit codes: `0` ok, `1` generic, `2` usage, `5` conflict. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).
