dev-toolbelt/dev-team-agents/shadcn

Claude Code and agent skill by dev-toolbelt/dev-team-agents

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

shadcn/ui — Radix UI + Tailwind copy-paste; MCP for component install.

Install

npx vskill@latest install dev-toolbelt/dev-team-agents/shadcn

SKILL.md

The same SKILL.md was published earlier as dev-toolbelt/dev-team-agents/shadcn.

Detection Signals

  • components/ui/ directory with component files (button.tsx, card.tsx, dialog.tsx)
  • components.json at project root
  • @radix-ui/* and lucide-react in package.json
  • cn() utility import from @/lib/utils
  • class-variance-authority (cva) in dependencies

MCP Setup

shadcn/ui has an official MCP that enables component browsing, searching, and installation via natural language.

Add to `.claude/settings.json` (or .claude/settings.local.json for local-only):

json
{
"mcpServers": {
"shadcn-ui": {
"command": "npx",
"args": ["-y", "shadcn@latest", "mcp"]
}
}
}
If auto-configuration fails, ask the user to add the entry manually in their CLI's MCP settings (Claude Code → Settings → MCP Servers; the mcp block of opencode.json; Codex CLI's MCP config). Once active, components can be requested by description and the MCP handles installation.

Core Concepts

ConceptDetail
Copy-pasteComponents live in components/ui/ — owned by the project, not a package
Radix UIAccessible, unstyled headless primitives under the hood
Tailwind CSSAll styling via utility classes
`cn()` utilityclsx + tailwind-merge — required for safe class merging
CVAclass-variance-authority — defines component variants
CLInpx shadcn@latest add <component> installs with all dependencies

Component Patterns

tsx
// Always use cn() for className merging — never string concatenation
import { cn } from "@/lib/utils"
<Button className={cn("w-full", isLoading && "opacity-50")} />
// Variants via CVA — check the component file for available variant values
<Button variant="destructive" size="sm" />
// asChild for polymorphism — render as a different element without wrapper hacks
<Button asChild>
<Link href="/dashboard">Go to dashboard</Link>
</Button>

CLI Reference

bash
npx shadcn@latest add button # add single component
npx shadcn@latest add dialog sheet # add multiple at once
npx shadcn@latest diff # check for component updates

Critical Rules

  • Never install as a package — components are meant to be copied into the project; importing from node_modules defeats the model
  • Always use `cn()` for merging classNames — direct concatenation causes Tailwind class conflicts
  • Customize in `components/ui/` — that is the intended extension point; no need to wrap or fork
  • Check `components.json` before adding — it defines path aliases (@/components/ui) that must be respected
  • `asChild` for polymorphism — when a button needs to render as a <Link>, use asChild not a wrapper div

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dev-toolbelt/dev-team-agents/shadcn/badge)](https://verified-skill.com/skills/dev-toolbelt/dev-team-agents/shadcn)

Something wrong with this skill or its page? Tell us.