Skip to main content
skill CX Codex

shadcn · pedronauck — Claude Code skill: what it does, how to install

Guides AI agents through shadcn/ui and Radix UI best practices. Prevents broken themes and keeps component accessibility intact.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pedronauck/skills --skill shadcn -a claude-code
Open on GitHub

What shadcn does

This skill guides your AI coding agent when generating or refactoring shadcn/ui components. It enforces semantic design tokens such as bg-background and text-foreground. Hardcoded color classes like bg-white or text-black are explicitly banned because they break light and dark theme switching.

Component exports must stay separate rather than namespaced via Object.assign. The skill keeps Radix UI accessibility attributes untouched, ensuring screen readers and keyboard navigation continue to work. Before completing edits, the agent runs a checklist covering tokens, keyboard navigation, pnpm run typecheck, and project tests.

What it helps with

  • apply design tokens for dark and light theme switching
  • extend existing components with new props and variants
  • preserve Radix UI accessibility attributes and screen reader labels
  • structure compound components using individual exports

Example prompts for the agent

  • Add a loading variant to the Button component following shadcn rules
  • Build an accessible Dialog using design tokens instead of hardcoded colors
  • Refactor this card into separate exported subcomponents

How to install shadcn

1Skills CLI (Vercel)

npx skills add pedronauck/skills --skill shadcn -a claude-code

2Manually: put the files in place

~/.claude/skills/shadcn/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/shadcn/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about shadcn

How do I install shadcn in Claude Code?

Run npx skills add pedronauck/skills --skill shadcn -a claude-code in your terminal. You can also save the file directly to ~/.claude/skills/shadcn/SKILL.md.

What does the shadcn skill do?

It provides conventions for working with shadcn/ui and Radix UI primitives. It enforces design system tokens, separate compound component exports, and accessibility standards.

Why does this skill ban classes like bg-white?

Explicit color utilities break theme switching. The skill requires semantic tokens like bg-background linked to CSS variables in globals.css so dark mode functions reliably.

Similar skills

Everything for Frontend and UI →

shadcn by other authors comes first.

shadcn shadcn-ui A skill that keeps your agent on the rails with shadcn/ui: adds components, searches registries, fixes markup and builds a design system from your spec. CX Codex +1 123,300installs shadcn typeui.sh Gives the agent a shadcn/ui-style design system: tokens, typography, component states and accessibility criteria. CX Codex +1 2,500installs shadcn official Vercel Labs This skill guides Codex through adding shadcn/ui components and configuring themes. Use it when building a React interface with Tailwind CSS. CX Codex GP ChatGPT 72installs shadcn pproenca A skill with 58 shadcn/ui rules that tells your agent how to add components, build forms and keep accessibility intact. CX Codex +1 724installs shadcn PyModel A skill that hands your agent a rulebook for shadcn/ui: component architecture, accessibility, theming, forms and tables. Useful whenever it writes or edits React UI. CX Codex +1 458installs shadcn-ui giuseppe-trisciuoglio A skill that tells the agent how to install and configure shadcn/ui components: buttons, dialogs, tables, and forms with React Hook Form and Zod. CX Codex +1 22,400installs shadcn-component-review mattbx Reviews finished components and layouts against shadcn patterns: spacing, semantic tokens, primitive composition, and the project's chosen visual style. CX Codex +1 635installs shadcn-layouts jwynia Teaches the agent the CSS models behind shadcn and Tailwind layouts, so height, scroll and flex/grid problems get fixed instead of guessed at. CX Codex +1 457installs avoid-ai-design ungspirit A skill that audits frontend code for the patterns that make a UI look AI-generated, then rewrites it around one deliberate design direction. Useful when a Claude or Codex build looks like everyone else's. CX Codex +1 641installs shadcn-svelte huntabyte A skill for working with shadcn-svelte: adding components, building interfaces, fixing styles, and debugging projects. Use it if you're building UI with shadcn-svelte on Svelte or planning to start. CX Codex +1 6,700installs ui-design-system samhvw8 A skill for reviewing and building React interfaces with TailwindCSS, Radix UI and shadcn/ui. Useful when your components have drifted apart. CX Codex +1 3,200installs

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor