Add rules to AGENTS.md
Paste one block into AGENTS.md or CLAUDE.md, and your agent adds Gelatin UI items with the shadcn CLI, the MCP server, and the docs.
For AI agents · step 3 of 4 · 3 min read
Prompt for your agent
Your agent reads /docs/agents.md: the same text as this page, as Markdown.
One block of rules tells your agent how to work with Gelatin UI. With it, the agent adds Gelatin UI items with the shadcn CLI, reads their docs, and keeps your Pro API key out of your files.
Add the block
- Open
AGENTS.mdat the root of your project. For Claude Code, openCLAUDE.md. Make the file if it is missing. - Paste this block into the file. Your agent reads the file before it works in your code.
Read the docs as Markdown
Each docs page and each item page has a Markdown copy. Add .md to the URL, or send the Accept: text/markdown header:
/llms.txt lists each item page with the link to its Markdown copy.
Connect the MCP server
The block tells your agent to use the MCP server, so connect it next. The Connect the MCP server guide has the setup for Claude Code, Claude.ai, Cursor, VS Code, Codex, ChatGPT, Windsurf, and Zed, and the steps for any other client. It also says which clients work today.
Next steps
- Connect the MCP server: connect your agent to the server that the block names.
- Create an API key: one key for the shadcn CLI and your agent.
- Install Pro items: the same command, with your key.