---
title: "Install the agent skill"
description: "Add our skill once, and your agent reads the Gelatin UI rules before it adds an item. One command for Claude Code, Codex, Cursor, or any other agent."
url: https://gelatinui.com/docs/agent-skill
markdown_url: https://gelatinui.com/docs/agent-skill.md
docs_index: https://gelatinui.com/docs/llms.txt
prompt: "Read https://gelatinui.com/docs/agent-skill.md. Find the agent I use, and run its steps; if it is not listed, run the steps of Any other agent. Add the Gelatin UI skill, and add the MCP server if the client supports it. Done: the skill files are in this project, and the client lists the gelatin-ui MCP server and its tools."
---

> Docs index: https://gelatinui.com/docs/llms.txt

# Install the agent skill

> Add our skill once, and your agent reads the Gelatin UI rules before it adds an item. One command for Claude Code, Codex, Cursor, or any other agent.

A skill is a folder of rules that your agent reads before it writes code. Our skill tells it how Gelatin UI items fit together.

The skill is plain files: [SKILL.md](https://gelatinui.com/agents/skills/gelatin-ui/SKILL.md) with its references and rules. Tools that find skills by URL read [/.well-known/agent-skills/index.json](https://gelatinui.com/.well-known/agent-skills/index.json).

## Add the skill

Find your agent below and do its three steps in order. Not listed? Do the steps of [Any other agent](#any-other-agent).

### Claude Code

**Step 1: Get the skill.** The `skills` CLI finds the skill on our site and adds it to your project.

```bash
npx skills add https://gelatinui.com -a claude-code -y
```

**Step 2: Add the MCP server.** The skill calls its tools to find, read, and check items.

```bash
claude mcp add --transport http gelatin-ui https://gelatinui.com/mcp
```

**Step 3: Ask for UI.** The agent loads the skill when `components.json` names our registry, or when you name Gelatin UI.

```text
Add an FAQ section with five questions from Gelatin UI.
```

### Codex

**Step 1: Get the skill.** The `skills` CLI finds the skill on our site and adds it to your project.

```bash
npx skills add https://gelatinui.com -a codex -y
```

**Step 2: Add the MCP server.** The skill calls its tools. With a Pro API key, use the [Codex setup](https://gelatinui.com/docs/mcp-server.md#codex).

```bash
codex mcp add gelatin-ui --url https://gelatinui.com/mcp
```

**Step 3: Ask for UI.** The agent loads the skill when `components.json` names our registry, or when you name Gelatin UI.

```text
Add an FAQ section with five questions from Gelatin UI.
```

### Cursor

**Step 1: Get the skill.** The `skills` CLI finds the skill on our site and adds it to your project.

```bash
npx skills add https://gelatinui.com -a cursor -y
```

**Step 2: Add the MCP server.** Put this in `.cursor/mcp.json`. With a Pro API key, add the header of the [Cursor setup](https://gelatinui.com/docs/mcp-server.md#cursor).

```json
{
  "mcpServers": {
    "gelatin-ui": {
      "url": "https://gelatinui.com/mcp"
    }
  }
}
```

**Step 3: Ask for UI.** The agent loads the skill when `components.json` names our registry, or when you name Gelatin UI.

```text
Add an FAQ section with five questions from Gelatin UI.
```

### Antigravity CLI

**Step 1: Get the skill.** The `skills` CLI finds the skill on our site and adds it to your project.

```bash
npx skills add https://gelatinui.com -a antigravity -y
```

**Step 2: Add the MCP server.** Put this in `.agents/mcp_config.json`. The [Antigravity CLI setup](https://gelatinui.com/docs/mcp-server.md#antigravity-cli) says why it gives Free items only.

```json
{
  "mcpServers": {
    "gelatin-ui": {
      "serverUrl": "https://gelatinui.com/mcp"
    }
  }
}
```

**Step 3: Ask for UI.** The agent loads the skill when `components.json` names our registry, or when you name Gelatin UI.

```text
Add an FAQ section with five questions from Gelatin UI.
```

### Any other agent

Your agent is not above? It can still use the skill. Do the first option that works for your agent.

**Step 1: Get the skill.**

1. The `skills` CLI knows many agents (`github-copilot`, `gemini-cli`, `cline`, `roo`, `windsurf`, `zed`, and more). Find the id of yours in the [list of agent ids](https://github.com/vercel-labs/skills/blob/main/docs/agents.md), then run:

   ```bash
   npx skills add https://gelatinui.com -a <your agent id> -y
   ```

2. Not in the list? Download the skill archive that [/.well-known/agent-skills/index.json](https://gelatinui.com/.well-known/agent-skills/index.json) names. Unpack it as a `gelatin-ui` folder in the folder where your agent loads skills.
3. Your agent has no skills? Add the [Gelatin UI block to AGENTS.md](https://gelatinui.com/docs/agents.md), or to the rules file that your agent reads.

**Step 2: Add the MCP server.** Do the steps of [Any other client](https://gelatinui.com/docs/mcp-server.md#any-other-client).

**Step 3: Ask for UI.** Name Gelatin UI in your request, as above.

## How the agent reads the skill

The agent reads `SKILL.md` first. It opens a reference or a rule only when the task needs it. So the skill takes little space in the context of the agent.

## Skill and MCP server

Use both. The skill tells the agent how to work. The MCP server gives it the items.

- **The skill.** The order of the calls, and when to ask you. Parts inside the root, and links through `render`. Theme and motion tokens, not raw values.
- **The MCP server.** Search across each Free and Pro item. The anatomy, props, and install plan of an item. Checks of your code and your versions.

## Next steps

- [Connect the MCP server](https://gelatinui.com/docs/mcp-server.md): let your agent find and add items.
- [Add rules to AGENTS.md](https://gelatinui.com/docs/agents.md): paste the Gelatin UI rules into the file that every agent reads.
- [Get a newer version](https://gelatinui.com/docs/updates.md): Gelatin UI is in alpha, so a newer version can break your code.
