# Shadcn

> Shadcn is an open-source agent skill for developer tools. Guides an AI agent through adding, fixing and styling shadcn/ui components. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/debugbundle/debugbundle/tree/main/.agents/skills/shadcn
- **Repository:** https://github.com/debugbundle/debugbundle
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** shadcn
- **Collection:** https://github.com/debugbundle/debugbundle
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill teaches an agent how to work with shadcn/ui projects, where components are copied as source code into the user's codebase through the shadcn CLI. It asks the agent to read the project's configuration first, then search registries and pull component documentation before writing or changing UI, so it works from the real APIs and aliases in use rather than guessing.

The skill bundles a set of critical rules covering styling, forms, component composition and icon usage, with links to detailed reference files for each area. It also describes a review step after adding components from any registry, and a safe process for updating existing components that preserves local edits by comparing upstream and local versions with CLI dry-run and diff commands.

It expects an existing or new project using shadcn/ui and runs commands through the project's package runner (npx, pnpm dlx or bunx). Its allowed tools are limited to those shadcn CLI invocations, and no bundled scripts are included.

## When your agent uses it

> Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/debugbundle/debugbundle/tree/HEAD/.agents/skills/shadcn)
- [Asks for: Bash(npx shadcn@latest *), Bash(pnpm dlx shadcn@latest *), Bash(bunx --bun shadcn@latest *)](https://github.com/debugbundle/debugbundle/blob/HEAD/.agents/skills/shadcn/SKILL.md)
- [Includes binary files](https://github.com/debugbundle/debugbundle/tree/HEAD/.agents/skills/shadcn)
- [License: Apache-2.0](https://github.com/debugbundle/debugbundle/tree/HEAD/.agents/skills/shadcn)

## Features

- **Project context awareness:** Reads the project's shadcn configuration, including aliases, framework, Tailwind version and icon library, before making changes.
- **Component discovery and docs:** Searches registries and fetches component documentation and example URLs before writing UI.
- **Composition and styling rules:** Enforces conventions such as semantic colors, gap-based spacing, and full Card, Dialog and Tabs composition.
- **Form and validation patterns:** Covers FieldGroup and Field layouts, input groups, and invalid and disabled states.
- **Safe component updates:** Uses dry-run and diff commands to merge upstream changes while keeping local modifications.
- **Preset switching workflow:** Guides the choice between reinstalling, merging or skipping components when applying a new preset.

## Good for

- Add a settings page built from tabs, cards and form controls
- Build a dashboard layout with a sidebar, charts and a table
- Fix form validation so fields show invalid and disabled states correctly
- Update an installed shadcn component from upstream without losing local changes
- Create a new Next.js or Vite app initialized with a shadcn preset

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/shadcn` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/debugbundle/debugbundle.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/shadcn &&
cp -R "$tmp/.agents/skills/shadcn" ~/.claude/skills/shadcn &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/shadcn` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/shadcn` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/debugbundle/debugbundle.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/shadcn &&
cp -R "$tmp/.agents/skills/shadcn" ~/.agents/skills/shadcn &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/shadcn` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/shadcn` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/debugbundle/debugbundle.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/shadcn &&
cp -R "$tmp/.agents/skills/shadcn" ~/.cursor/skills/shadcn &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/shadcn` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/debugbundle/debugbundle.git --path .agents/skills/shadcn
```

Or copy the folder to `~/.gemini/skills/shadcn` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/shadcn`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/debugbundle/debugbundle.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/shadcn &&
cp -R "$tmp/.agents/skills/shadcn" ~/.copilot/skills/shadcn &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/shadcn` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/debugbundle/debugbundle.git
```

Then copy `debugbundle/.agents/skills/shadcn` into your agent's skills folder as `shadcn`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

It applies when working with shadcn/ui, component registries, presets, preset codes, or any project containing a components.json file, as well as commands like shadcn init.

### Which tools can the skill run?

It is limited to shadcn CLI commands run through npx, pnpm dlx or bunx with the shadcn@latest package.

### Does Shadcn include scripts?

No. The skill consists of instruction files and reference documents without bundled scripts.

### How do I install Shadcn in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/shadcn to use it in all your projects, or to .claude/skills/shadcn in one project.

### Does Shadcn run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Shadcn?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Shadcn?

The closest alternatives to Shadcn are 21st UI, Web artifacts builder, UI component builder, Tastemaker and Discover design system.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [21st UI](https://ai-powered.com/skills/21st-ui): 21st UI is an open-source agent skill for developer tools.
- [Web artifacts builder](https://ai-powered.com/skills/web-artifacts-builder): Web artifacts builder is a free agent skill for developer tools.
- [UI component builder](https://ai-powered.com/skills/ui-component-builder): UI component builder is an open-source agent skill for developer tools.
- [Tastemaker](https://ai-powered.com/skills/tastemaker-codeswithroh): Tastemaker is an open-source agent skill for design and media.
- [Discover design system](https://ai-powered.com/skills/discover-design-system): Discover design system is an open-source agent skill for design and media.
- [Vue UI](https://ai-powered.com/skills/vue-ui): Vue UI is an open-source agent skill for developer tools.
- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering): Frontend UI engineering is an open-source agent skill for developer tools.
- [Frontend design](https://ai-powered.com/skills/frontend-design-melandlabs): Frontend design is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/shadcn-debugbundle
