# shadcn-ui

This skill helps configure shadcn/ui and build React interfaces with Tailwind CSS and Radix UI. Use it for forms, tables, dialogs, and themes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 3 installs
- Author: acejou27
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/acejou27/skills/tree/HEAD/shadcn-ui/shadcn-ui/SKILL.md
- Updated: 2025-10-26
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/acejou27-shadcn-ui

## What it does

The skill guides an agent through setting up shadcn/ui and adding components with `npx shadcn@latest`. Its coverage includes buttons, forms, sortable data tables, dialogs, sheets, popovers, alerts, cards, selects, and searchable comboboxes.

The examples use TypeScript, Tailwind CSS, and Radix UI primitives. They also show patterns with `react-hook-form`, `zod`, `next-themes`, and `lucide-react`. The skill covers projects built with Next.js, Vite, Remix, Astro, and Laravel. The dark-mode example depends on `next-themes`, while the validation example uses `react-hook-form` and `zod`.

It can also guide changes to design tokens and `components.json`, plus accessible navigation and notification patterns. Components are added with commands such as `npx shadcn@latest add button` or `npx shadcn@latest add dialog form input`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add acejou27/skills --skill shadcn-ui -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/shadcn-ui/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/shadcn-ui/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add acejou27/skills --skill shadcn-ui -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/shadcn-ui/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add acejou27/skills --skill shadcn-ui -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/shadcn-ui/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install acejou27/skills shadcn-ui/shadcn-ui/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/shadcn-ui/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add acejou27/skills --skill shadcn-ui -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/acejou27/skills --path shadcn-ui/shadcn-ui
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/shadcn-ui/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add acejou27/skills --skill shadcn-ui -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/acejou27/skills/tree/HEAD/shadcn-ui/shadcn-ui/SKILL.md

## When to use it
- set up shadcn/ui in a React project
- add buttons, forms, and dialogs through the CLI
- build a sortable data table with pagination
- wire dark mode through `next-themes`
- create alerts and overlay components

## Example prompts
- Set up shadcn/ui in this project and add a button with `npx shadcn@latest add button`.
- Build a profile form with validation using `react-hook-form` and `zod`.
- Create an invoice table with sorting, filtering, and pagination using shadcn/ui components.

## Similar
- [typescript-shadcn-ui-nextjs-cursorrules-prompt-fil](https://affpapa.org/en/nevibecode/rules/typescript-shadcn-ui-nextjs-cursorrules-prompt-fil.md) — rule · ★ 41178 repo stars
- [design-guide](https://affpapa.org/en/nevibecode/skills/design-guide.md) — skill · 416 installs
- [json-render-shadcn](https://affpapa.org/en/nevibecode/skills/json-render-shadcn.md) — skill · 257 installs
- [shadcn](https://affpapa.org/en/nevibecode/skills/vercel-labs-shadcn.md) — skill · 72 installs
- [shadcn-code-review](https://affpapa.org/en/nevibecode/skills/shadcn-code-review.md) — skill · 206 installs
- [tailwind-design-system](https://affpapa.org/en/nevibecode/skills/giuseppe-trisciuoglio-tailwind-design-system.md) — skill · 4800 installs

## Other versions with the same name
- [shadcn-ui · google-labs-code](https://affpapa.org/en/nevibecode/skills/shadcn-ui.md) — 55400 installs
- [shadcn-ui · nexu-io](https://affpapa.org/en/nevibecode/skills/nexu-io-shadcn-ui.md) — 3100 installs
- [shadcn-ui · giuseppe-trisciuoglio](https://affpapa.org/en/nevibecode/skills/giuseppe-trisciuoglio-shadcn-ui.md) — 22800 installs
- [shadcn-ui · jezweb](https://affpapa.org/en/nevibecode/skills/jezweb-shadcn-ui.md) — 3600 installs
- [shadcn-ui · existential-birds](https://affpapa.org/en/nevibecode/skills/existential-birds-shadcn-ui.md) — 358 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
