# Use the docs with your agent

> Give your coding agent the docs and Alta's tools: llms.txt, Markdown pages, the author MCP and the JSON outputs of the CLI.

Your coding agent (Claude Code, Codex or any other) can write Alta content as well as you can, if it reads the same docs and uses the same checks. This page gives it both.

**Before you begin (5 minutes)**

- The `alta` command on your path: see [Install the CLI](https://docs.altasystem.ai/start/install).
- An agent that can run commands or connect to an MCP server.

### Point it at the docs

The docs are published for agents too. `https://docs.altasystem.ai/llms.txt` lists every public page with one line each, and `llms-full.txt` holds the whole site in one file. Every page is also served as plain Markdown: add `.md` to its address.

Give your agent the address of `llms.txt` and let it pick the pages it needs.

```text [Prompt]
Read https://docs.altasystem.ai/llms.txt,
then the pages you need. Write Alta content
in ./my-pack. Run `alta lint my-pack` after
every change, and fix every problem it
reports before you stop.
```

### Connect the author MCP

`alta mcp --author --root <dir>` starts an MCP server on standard input and output. It gives your agent tools to create, read, write and check content inside one folder, and nothing else: no command, no network, no file outside the root.

Its tools: `genres` (what can be made), `docs` (the guides, standards and examples), `schema`, `executors` and `checks` (the closed lists of actions and proofs), `step` (check steps on their own while writing them), `scaffold`, `list`, `read`, `write`, `check` and `pack` (a dry run that writes nothing).

```sh [Terminal]
claude mcp add alta-author -- alta mcp --author --root .
```

### Or let it use the CLI

Without MCP, the agent runs `alta` like you do. Two outputs are made for it: `alta help --json` describes every command, its options, examples and exit codes, and the versions of every standard; `alta lint --json` gives each problem with its rule, field, fix and the link to its section of the errors page.

```sh [Terminal]
alta help --json
alta lint my-pack --json
```

### Check its work

Whatever the agent wrote, `alta lint` is the judge: what it accepts, the game plays. Then look at it yourself in the game.

```sh [Terminal]
alta lint my-pack
alta dev my-pack
```

## Pitfalls

| Do | Avoid |
|---|---|
| Give the agent one folder as its root | A root that holds other projects or secrets |
| Ask it to run `alta lint` until it passes | Trusting a pack that was never checked |
| Let it read the examples through `docs` | Fields invented from memory |

The author tools never touch a player's world. An agent working in a world can only propose actions; the player agrees in the game. See [The plan card and the player's consent](https://docs.altasystem.ai/concepts/consent).

**Next:**

- [Quickstart](https://docs.altasystem.ai/quickstart)
- [MCP](https://docs.altasystem.ai/reference/mcp/)
- [Make a step that does it](https://docs.altasystem.ai/guides/quests/do-it-step)
