Skip to content
Skill

Shadcn

Guides an AI agent through adding, fixing and styling shadcn/ui components

Shadcn is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
7
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Shadcn

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".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 13 files (69 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Shadcn 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.

More from debugbundle/debugbundle

  1. Gives agents runtime error, incident and uptime evidence from DebugBundle to guide fixes

    • Open source
    • 7 GitHub stars
    • Developer tools
  2. Guides an agent to pick familiar, accessible, system-consistent UI patterns for frontend

    • Open source
    • 7 GitHub stars
    • Design and media
  3. Runs a mandatory doc sync against code changes at the end of each project phase

    • Open source
    • 7 GitHub stars
    • Developer tools
  4. Runs a structured checklist for what could still break before a phase ships

    • Open source
    • 7 GitHub stars
    • Developer tools
  5. Saves status, open decisions and stopping point so the next session resumes cleanly

    • Open source
    • 7 GitHub stars
    • Developer tools