---
title: Agents
description: Build editors with coding agents using version-matched package docs, skills, and shadcn MCP, or connect runtime AI agents to your editor.
---
Plate supports two agent workflows: coding agents that build and maintain your editor against the installed package version, and runtime AI agents that read and draft edits inside a running editor.
## Build with a coding agent
Copy a setup prompt for your stack. It installs Plate, writes an `AGENTS.md` pointer to the version-matched docs inside `node_modules`, adds the `plate` skill, and verifies the build:
Follow up with a small check you can test in the browser immediately:
```text
Add an /editor page with headings, bold and italic shortcuts, and a / slash menu using the installed Plate setup. Run the project typecheck and build, then verify in the browser that typing "# Title", toggling bold with Cmd/Ctrl+B, and opening "/" all work.
```
### Point `AGENTS.md` at installed docs
Every `platejs` release packs its Markdown documentation inside `node_modules/platejs/dist/docs/`. Add this block to your app's `AGENTS.md`, or the rules file your coding tool reads:
```md prompt
This app uses Plate (`platejs`), whose API differs from older versions you
may remember. Before you write editor code, read
`node_modules/platejs/dist/docs/llms.txt` and the pages it lists. They match
the installed version.
```
`llms.txt` names the installed `platejs` version and lists every packaged page with its description. A `/docs/` link inside a page resolves to `.md` in `node_modules/platejs/dist/docs/` when `llms.txt` lists it. In a monorepo, point the block at the `node_modules` folder where your app resolves `platejs`.
### Install the `plate` skill
The `plate` skill teaches coding agents Plate workflows across setup, custom plugins, copied UI sync, AI tools, browser testing, and bug reports. Install it from GitHub, via well-known site discovery, or sync it from `node_modules/platejs/dist/skills/plate/`:
```bash
npx skills add udecode/plate --skill plate
```
See [Skills](/docs/agents/skills) for well-known site installs and the included reference guides.
### Registry MCP and Markdown endpoints
- **shadcn MCP:** Use [MCP Server](/docs/agents/mcp) to give coding tools access to `@plate` registry items, kits, and examples. Docs stay local in `node_modules/platejs/dist/docs/` rather than behind a remote docs MCP server.
- **Markdown routes:** Append `.md` to any docs URL (including `/docs/components/.md` and `/docs/examples/.md`), send `Accept: text/markdown`, or fetch `/llms.txt` and `/llms-full.txt`.
- **Copied UI changelog:** Agents can read `/registry/changelog/index.json` and `/registry/changelog/components.json` to merge upstream Plate UI updates without overwriting local edits.
## Connect a runtime agent to your editor
Plate includes headless editor tools, streaming draft sessions, server-side sync agents, and WebMCP registration in `platejs/ai` so agents can inspect documents and propose reviewable edits inside your app.