# Build with AI

Give your coding agent the real ExhaustiveUI API: one command connects the MCP server and the agent instructions.

## Set up in one command

`ng add @exhaustive-ui/core` asks which AI coding tools you use and configures them: the MCP server in their settings, and a section pointing to the ExhaustiveUI guide in their instructions. In a project that already uses
ExhaustiveUI, run the `ai-config` schematic, with one `--tool` per tool.

```bash
ng generate @exhaustive-ui/core:ai-config --tool=claude-code --tool=cursor
```

## Supported tools

The schematic writes the configuration of Claude Code, Cursor, Gemini CLI, Codex and VS Code (values of `--tool`: `claude-code`, `cursor`, `gemini-cli`, `open-ai-codex`, `vscode`). Any other client that
speaks the Model Context Protocol, such as Claude Desktop or OpenCode, starts the server with the same command: the [MCP server](https://exhaustive-ui.com/mcp) page has the manual setup.

## What your agent gets

Four sources, all generated from this documentation and the compiled library: the MCP server, the AGENTS.md guide shipped in the package, the Agent Skill, and the Markdown version of every page with llms.txt and the API manifest.

## What it looks like

The agent looks up the component, reads its real API and an example, then checks its template before writing it. The server documents the version installed in your project. The exchange below is an illustration of that sequence of
tool calls.

## AGENTS.md

`@exhaustive-ui/core` ships its own guide for AI coding agents: `node_modules/@exhaustive-ui/core/AGENTS.md` gives the rules that matter when writing code with the library (imports, canonical tags, templates,
signals, OnPush), and links to a card per component in `llms/cards/`. Coding agents read `node_modules`, so this works without any setup, and always matches the installed version. To make sure your agent reads it first,
mention it in the `AGENTS.md` or `CLAUDE.md` of your project; `ng add` and the `ai-config` schematic do it for you.

```typescript
<!-- AGENTS.md or CLAUDE.md -->
This project uses ExhaustiveUI. Before writing code with it, read node_modules/@exhaustive-ui/core/AGENTS.md,
then the card of each component you use. After changing templates, run: npx -y @exhaustive-ui/mcp check
```

After writing templates, the `check` command of the MCP package validates every template of the project against the API, with file and line, and exits with 1 on errors. The
[llms.txt and Markdown](https://exhaustive-ui.com/llms) page describes the cards and the other files.

## Agent Skill

The Markdown documentation is also bundled as an [Agent Skill](https://agentskills.io), the `SKILL.md` format supported by coding agents such as Claude Code,
Codex, Cursor and OpenCode. Once installed, the agent reads the component docs, API tables and guides from disk whenever it works on ExhaustiveUI code, instead of fetching them from this site each time.

```bash
npx skills add https://exhaustive-ui.com

# update to the latest docs
npx skills update exhaustive-ui
```

In Claude Code, the plugin installs a short skill, which reads the docs of the installed version, together with the MCP server:

```bash
/plugin marketplace add e-xiste/exhaustive-ui
/plugin install exhaustive-ui@exhaustive-ui
```

