shadcn-ui avatar

Shadcn

shadcn-ui/uiOfficial

Shadcn/ui skill that adds, searches, debugs, and styles components and enforces project-specific UI rules.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
33
skills.sh installs
150.5K
GitHub stars
128.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers component adding, searching, fixing, styling, and composition, plus chat interfaces built from message primitives
  • Provides project context via npx shadcn@latest info --json and component docs via npx shadcn@latest docs <component>
  • Enforces rules like FieldGroup for forms, data-icon on button icons, semantic color tokens, and gap-* over space-y-*
  • Designed for projects using shadcn/ui, component registries, presets, or any project with a components.json file

Install

$ npx -y skills add shadcn-ui/ui --skill shadcn -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

shadcn/ui

A framework for building ui, components and design systems. Components are added as source code to the user's project via the CLI.

IMPORTANT: Run all CLI commands using the project's package runner: npx shadcn@latest, pnpm dlx shadcn@latest, or bunx --bun shadcn@latest — based on the project's packageManager. Examples below use npx shadcn@latest but substitute the correct runner for the project.

Current Project Context

!`npx shadcn@latest info --json`

The JSON above contains the project config and installed components. Use npx shadcn@latest docs <component> to get documentation and example URLs for any component.

Principles

  1. Use existing components first. Use npx shadcn@latest search to check registries before writing custom UI. Check community registries too.
  2. Compose, don't reinvent. Settings page = Tabs + Card + form controls. Dashboard = Sidebar + Card + Chart + Table.
  3. Use built-in variants before custom styles. variant="outline", size="sm", etc.
  4. Use semantic colors. bg-primary, text-muted-foreground — never raw values like bg-blue-500.

Critical Rules

Details

Repository
github.com/shadcn-ui/ui
Category
Frontend & UI Code
First seen
May 16, 2026

More from shadcn-ui/ui

All 2

Similar to Shadcn

More Frontend & UI Code