What problem does it solve? Working with shadcn/ui involves many CLI commands, registry addresses, preset codes, and strict composition rules that are easy to get wrong. This Skill guides the AI to use the shadcn CLI correctly, follow enforced styling and composition rules, and avoid common mistakes like raw color values, missing DialogTitle, or incorrect base-vs-radix APIs. ## Core Features & Use Cases - Component lifecycle management: Search registries, preview with --dry-run/--diff, add components, and smart-merge upstream updates while preserving local changes. - Preset and theme workflows: Initialize projects with named presets or codes, apply presets with overwrite/partial/merge/skip strategies, and customize CSS variables for Tailwind v3 or v4. - Enforced code-quality rules: Critical rules for forms (FieldGroup/Field), composition (Groups, Card, overlays), icons (data-icon), and styling (semantic tokens, gap-*, cn()). - Use Case: When asked to build a settings form in a Next.js project, the Skill checks project context via npx shadcn@latest info, fetches component docs, and generates code using FieldGroup, ToggleGroup, and data-invalid validation states instead of ad-hoc markup. ## Quick Start Ask the AI to add a shadcn/ui component such as a dialog or build a settings form in your project, and it will use the shadcn CLI and enforced rules to produce correct code.