What problem does it solve?
This Skill helps you consistently create and update shadcn/ui components by providing the exact workflow and composition/styling rules so you stop guessing APIs, fixing broken imports, and reworking invalid layouts.
Core Features & Use Cases
- End-to-end shadcn workflows: initialize projects, add components, search registries, view file contents, and fetch official docs/examples before implementing changes.
- Project-aware guardrails: uses project context (aliases, base vs radix, Tailwind v3 vs v4, icon library, RSC requirements) to ensure the generated guidance matches your actual setup.
- Correct-by-construction rules: enforces shadcn-specific patterns for forms, overlays, spacing, semantic colors, icon usage, and composition (e.g., FieldGroup/Field, gap-* spacing, AvatarFallback, Dialog/Sheet/Drawer titles).
- Safe updating: provides a smart merge workflow using dry-run/diff to preserve local changes while updating upstream components.
- Presets & registries handling: guides preset switching (reinstall/merge/skip) without decoding preset codes and requires explicit registry selection when adding third-party blocks.
Quick Start
Ask the AI: "I’m working in my shadcn/ui project—run shadcn info, then help me add a Button and a Dialog using the correct composition and styling rules."