# Agent Skills setup

> Install every shadcn/ui Pro skill into Claude Code, Cursor, Codex, OpenCode or any other editor with one command, and connect the MCP servers the skills use.

## Before you start

Skills install from the shadcn/ui Pro registry with your license key, so set up the registry in your project first, as described in [Installation](https://pro.shadcn.co/docs/installation).

## Install the skills

Run the command for your editor in your project root:

```bash title="Claude Code"
npx shadcn@latest add @shadcnpro/skills-claude
```

```bash title="Cursor"
npx shadcn@latest add @shadcnpro/skills-cursor
```

```bash title="Codex"
npx shadcn@latest add @shadcnpro/skills-codex
```

```bash title="OpenCode"
npx shadcn@latest add @shadcnpro/skills-opencode
```

```bash title="Other editors"
npx shadcn@latest add @shadcnpro/skills
```

The command installs all 10 skills, each in its own folder. For example, the Cursor command writes `.cursor/skills/shadcnpro-generate-code/SKILL.md`.

| Editor | Skills folder | How you run a skill |
|---|---|---|
| Claude Code | `.claude/skills/` | `/shadcnpro-create-page` |
| Cursor | `.cursor/skills/` | `/shadcnpro-create-page` |
| Codex | `.agents/skills/` | `$shadcnpro-create-page`, or pick it from `/skills` |
| OpenCode | `.opencode/skills/` | `@shadcnpro-create-page` |
| Other editors | `.agents/skills/` | By name, the way your editor runs skills |

`.agents/skills/` is the shared folder of the open Agent Skills format. Cursor, Codex and OpenCode all read it, so a team that uses several of them can install `@shadcnpro/skills` once. Cursor and OpenCode also read `.claude/skills/`, so the Claude Code command covers them too. Use as few folders as your team's editors need: skills that sit in two folders an editor reads can show up twice.

Commit the skills folder, so everyone on the project gets the same skills.

## Check that it works

Open your editor's chat and type `/shadcnpro-` (`$shadcnpro-` in Codex, `@shadcnpro-` in OpenCode). The editor lists the 10 skills. If it doesn't, restart it, since some editors only load skills when they start.

You don't have to run a skill by name. Ask for the job in your own words, such as "build a pricing page from blocks", and the agent picks the skill that fits.

## Connect the MCP servers

The skills that work with Figma need the Figma MCP server. The other two servers are optional.

| MCP server | Used by | How to connect |
|---|---|---|
| Figma MCP server | `/shadcnpro-generate-code`, `/shadcnpro-import-variables`, `/shadcnpro-design-screen`, `/shadcnpro-create-brand-mode`, `/shadcnpro-update-kit` | [Figma's guide](https://developers.figma.com/docs/figma-mcp-server/remote-server-installation/) |
| MCP server | Every skill that finds, plans or installs blocks. Optional: without it the skills search the registry with the shadcn CLI. | [MCP server setup](https://pro.shadcn.co/docs/mcp/setup) |
| Official shadcn MCP server | `/shadcnpro-generate-code`, for a final checklist. Optional. | One command, below |

To connect the official shadcn MCP server, run this in your project with `claude`, `cursor`, `vscode`, `codex` or `opencode` as the client:

```bash
npx shadcn@latest mcp init --client cursor
```

Figma also publishes its own skills for the Figma MCP server, such as `figma-use`. They come with the Figma plugin for your editor. The skills here load them when they need them.

## Skills that write to Figma

`/shadcnpro-design-screen`, `/shadcnpro-create-brand-mode` and `/shadcnpro-update-kit` change your Figma file. Figma calls this writing to the canvas. It needs:

- **The remote Figma MCP server.** The desktop server can read a file but not write to it.
- **Edit access** to the file.
- **A Figma plan that allows it**: Professional, Organization, Enterprise or Education. See [Figma's guide](https://developers.figma.com/docs/figma-mcp-server/write-to-canvas/).
- **Your fonts in your Figma account.** Fonts that are only installed on your computer aren't available to an agent.

Writing to the canvas is a Figma beta. It's free during the beta, and Figma plans to charge for usage later.

**Save a version first:**
These skills change the file in place, and an agent can't save a version for you. Before you run one, choose **File → Save to version history** in Figma, so you can go back. For a library your team shares, work in a duplicate first.

`/shadcnpro-generate-code` and `/shadcnpro-import-variables` only read from Figma, so view access to the file is enough. Figma limits how many requests a seat can make: View and Collab seats get very few a month, so use a Full or Dev seat. See [Figma's limits](https://developers.figma.com/docs/figma-mcp-server/rate-limits-access/).

## Update the skills

Skills improve over time, and new ones ship in the same command. To update, run your editor's install command again with `--overwrite`:

```bash
npx shadcn@latest add @shadcnpro/skills-cursor --overwrite
```

`--overwrite` replaces the skill files with the latest version, so keep your own instructions in separate files. It also refreshes the list of blocks inside `/shadcnpro-choose-blocks`, which is generated on the day you install.

**If you installed the first two skills:**
Skill names now start with `shadcnpro-`: `/generate-code` is `/shadcnpro-generate-code`. Two folders also changed. Codex skills moved from `.codex/skills/` to `.agents/skills/`, and OpenCode skills from `.opencode/skill/` to `.opencode/skills/`. After you install again, delete the `shadcnpro-` folders in the old location.

## Troubleshooting

### The install fails with a license key error

Your license key isn't reaching the registry. Find the exact message in [Installation → Check the setup](https://pro.shadcn.co/docs/installation#check-the-setup).

### The editor doesn't list the skills

Check that the skills folder from the table above exists in the folder you opened in your editor, then restart the editor.

In a monorepo, the CLI installs the skills next to `components.json`, for example in `apps/web/.cursor/skills/`. Cursor and Claude Code find skills in sub-folders once the agent works on files there. To have them from the start, or in another editor, open that folder in your editor, or move the skills folder to the repository root.

### The agent can't find the Figma tools

The Figma MCP server isn't connected, or isn't signed in to Figma. Check the server in your editor's MCP settings (in Claude Code, type `/mcp`) and sign in again.

### Figma says the file can't be accessed

The agent uses the Figma account that the MCP server is signed in to. Ask it to run `whoami` to see that account, its plan and its seat. The account needs access to the file, and edit access for the skills that write to it.

### Do the skills work without the Figma kit?

The blocks skills never touch Figma. `/shadcnpro-generate-code` and `/shadcnpro-import-variables` work with any Figma file, and give the best results with the [Figma kit](https://pro.shadcn.co/docs/figma-kit), because its components and variables map one-to-one to shadcn/ui. The three skills that write to Figma are made for the kit.
