> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# AI

To help coding agents understand Rstack CLI commands, configuration, and best practices, Rstack CLI provides the following resources:

- [AGENTS.md](#agentsmd)
- [Agent Skills](#agent-skills)
- [llms.txt](#llmstxt)
- [Markdown docs](#markdown-docs)

## AGENTS.md

Projects created with [create-rstack](https://www.npmjs.com/package/create-rstack) include an [`AGENTS.md`](https://agents.md/) file that gives coding agents the key context for working with Rstack CLI.

You can also copy the following content into your own `AGENTS.md`:

```markdown wrapCode title="AGENTS.md"
This project uses Rstack CLI as its JS toolchain:

- Read the docs linked from `node_modules/rstack/docs/llms.txt` when needed
- Online docs: https://rstack.rs/llms.txt
- Run `rs -h` for CLI help
```

This content serves a similar purpose to the [rstack-cli-docs](#rstack-cli-docs) Skill, helping coding agents use Rstack CLI and find relevant documentation. Add it to `AGENTS.md` or install the Skill; either is sufficient.

## Agent Skills

Rstack CLI provides domain-specific Agent Skills that help coding agents give more accurate guidance and perform relevant tasks.

### rstack-cli-docs

The [rstack-cli-docs](https://github.com/rstackjs/rstack-cli/tree/main/.agents/skills/rstack-cli-docs) Skill helps coding agents consult version-matched documentation for Rstack CLI commands, configuration, and public APIs.

Install it with the [skills](https://www.npmjs.com/package/skills) package:


```sh [npx]
npx skills add rstackjs/rstack-cli --skill rstack-cli-docs
```

```sh [yarn]
yarn dlx skills add rstackjs/rstack-cli --skill rstack-cli-docs
```

```sh [pnpm]
pnpm dlx skills add rstackjs/rstack-cli --skill rstack-cli-docs
```

```sh [bunx]
bunx skills add rstackjs/rstack-cli --skill rstack-cli-docs
```

```sh [deno]
deno run -A npm:skills add rstackjs/rstack-cli --skill rstack-cli-docs
```

### migrate-to-rstack-cli

The [migrate-to-rstack-cli](https://github.com/rstackjs/rstack-cli/tree/main/.agents/skills/migrate-to-rstack-cli) Skill migrates projects from standalone Rstack tools and related development tools to Rstack CLI.

To migrate an existing project, install the Skill:


```sh [npx]
npx skills add rstackjs/rstack-cli --skill migrate-to-rstack-cli
```

```sh [yarn]
yarn dlx skills add rstackjs/rstack-cli --skill migrate-to-rstack-cli
```

```sh [pnpm]
pnpm dlx skills add rstackjs/rstack-cli --skill migrate-to-rstack-cli
```

```sh [bunx]
bunx skills add rstackjs/rstack-cli --skill migrate-to-rstack-cli
```

```sh [deno]
deno run -A npm:skills add rstackjs/rstack-cli --skill migrate-to-rstack-cli
```

For supported tools and migration instructions, see [Migrate to Rstack CLI](/guide/migration.md).

## llms.txt

[llms.txt](https://llmstxt.org/) is a standard that helps LLMs discover and use project documentation. The Rstack CLI documentation site provides the following files:

- [llms.txt](https://rstack.rs/llms.txt): A structured index containing the title, link, and description of each documentation page.

```text
https://rstack.rs/llms.txt
```

- [llms-full.txt](https://rstack.rs/llms-full.txt): A single file containing the full content of all documentation pages.

```text
https://rstack.rs/llms-full.txt
```

Use `llms.txt` when the agent can follow links and load only the pages relevant to a task. Use `llms-full.txt` when the agent needs the complete documentation in one context and the larger token cost is acceptable.

## Markdown docs

Every Rstack CLI documentation page has a corresponding `.md` plain-text version that can be provided directly to an agent. On any documentation page, use “Copy Markdown” or “Copy Markdown Link” under the title to copy its content or URL.

```text
https://rstack.rs/guide/quick-start.md
```
