# Use Vex with AI tools

Give an assistant a short route into the documentation, then let it read the
pages relevant to your task. The same maintained Markdown sources power this
website, the machine-readable pages and the downloadable skill.

## Choose a format

| Resource | Use it for |
| --- | --- |
| [llms.txt](https://vex-lang.org/llms.txt) | A compact entry point with selected language, library and toolchain links |
| [Documentation catalogue](https://vex-lang.org/llms-index.md) | Finding every published Markdown page by section |
| [Vex skill ZIP](https://vex-lang.org/skills/vex-language.zip) | An agent workflow with a small set of local references for compatible skill hosts |
| [SKILL.md](https://vex-lang.org/skills/vex-language/SKILL.md) | Inspecting the skill instructions before installation |
| [llms-full.txt](https://vex-lang.org/llms-full.txt) | The full public documentation snapshot for offline indexing |
| [Artifact manifest](https://vex-lang.org/ai-docs-manifest.json) | Source identities, byte sizes and SHA-256 hashes for a reproducible snapshot |

The six generated standard-library API inventories are filtered through their
public package re-exports, including the documented HTTP submodules. Internal
and test declarations are omitted from the Markdown exports and full snapshot.
References use readable anchors and relative documentation links. Signatures
retain their ownership and error types; redundant parameter tables are omitted.

The full snapshot is much larger than the entry point. Load a specific page
first; use the full export when your retrieval/indexing workflow needs it.
These resources supply context at use time. They do not train a model or
guarantee that every assistant discovers the files automatically.

## Start without installing anything

Give a browsing-capable assistant this prompt, followed by your task:

```text
Use https://vex-lang.org/llms.txt to find the Vex documentation for this task.
Read the relevant language and package pages before choosing syntax or APIs.
Follow the project's instructions and report the compiler version and checks
you actually ran. My task is: ...
```

Each documentation page also has a plain Markdown form. For example,
`/docs/guide/first-project` has `/docs/guide/first-project.md`, and
`/docs/std/` has `/docs/std/index.md`. HTML pages advertise their Markdown
alternate and the documentation entry point through link metadata.

## Install the skill

Download the ZIP, inspect `vex-language/SKILL.md`, and extract the complete
`vex-language` directory into the skill directory supported by your agent.
Preserve its `references` directory. Use your host's skill discovery or reload
mechanism, then select `vex-language` or ask it to work on a Vex program.

The package follows the [Agent Skills format](https://agentskills.io/specification).
Installation paths and activation controls vary by host; this archive does not
install extensions, execute a setup script or grant extra tool permissions.
Its essential references work locally; specialist links use the published
Markdown documentation when network access is available.

The [agent workflow](agent-workflow.md) is also readable as an ordinary
guide. The skill is generated from that page, so fixes to the workflow propagate
to the download during the site build.

## Keep the version visible

The documentation targets 0.4.0. Use `vex --version` to identify your installed
compiler, and consult [verification evidence](verification-evidence.md) for
the actual executable used for recorded examples. A refreshed documentation
archive is not evidence that a new compiler package has been released.

The [llms.txt proposal](https://llmstxt.org/) defines the discovery file.
Source changes regenerate the Markdown exports, catalogue, skill and manifest
together; stale generated outputs fail the repository's check command.
