Skip to content
Gelatin UIAlpha

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

Read https://gelatinui.com/docs/agents.md. Add its Gelatin UI block to AGENTS.md at the project root. For Claude Code, use CLAUDE.md. Make the file if it is missing. Done: the file holds the block once, with no key in it.

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

  1. Open AGENTS.md at the root of your project. For Claude Code, open CLAUDE.md. Make the file if it is missing.
  2. Paste this block into the file. Your agent reads the file before it works in your code.
Markdown

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:

Shell

/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