shadcn: Add, find, fix and compose shadcn/ui components
A skill for working with shadcn/ui in a project. It adds components as source code through the shadcn CLI, searches registries, reads component docs, and applies rules for styling, forms, composition, icons and chat UI. It also covers presets and turning a DESIGN.md brand spec into a themed app.
What problem this skill solves
Working with shadcn/ui means picking components from registries, editing the copied source, and matching the project's aliases, icon library and base primitives. Without clear guidance, code often guesses component APIs, uses raw colors, builds markup by hand instead of using existing components, or overwrites local changes.
With this skill, the agent reads the project context first and checks docs before writing code. It follows the rules for layout, forms, overlays and chat. Updates to existing components go through the dry-run and diff flow, and overwrites need the user's approval.
Good for
- Adding or fixing shadcn/ui components in an existing project
- Applying or switching a preset with apply or init --preset
- Building a chat or messaging UI from the chat primitives
- Turning a DESIGN.md brand spec into a themed shadcn/ui app
Not for
- Projects that do not use shadcn/ui
- Plain React or CSS work that does not touch shadcn components
Install this skill
shadcn only
npx skills add https://github.com/shadcn-ui/ui --skill shadcnThe whole repository
npx skills add https://github.com/shadcn-ui/uiTrend
Growth slowing- Daily installs, last 30 days
- 1,201
- Daily installs, last 30 days vs the 30 days before
- -25.5%
How this skill works
- 1Reads the project context from `npx shadcn@latest info --json`, including aliases, base, icon library and resolved paths.
- 2Checks installed components and searches registries with `npx shadcn@latest search` before writing custom UI.
- 3Fetches component docs and example URLs with `npx shadcn@latest docs <component>` before writing code.
- 4Adds components with `npx shadcn@latest add`, using `--dry-run` and `--diff` first when it updates existing files.
- 5Reviews added files against the critical rules for styling, forms, composition, icons and chat.
- 6For presets, asks whether to overwrite, apply partially, merge or skip, then runs the matching `apply` or `init --preset` command.
Are you the author of this skill? Add its rank to your GitHub repo
The badge updates every day and links back to this page.
[](https://linkly.ai/skills/s/shadcn-ui/ui/shadcn)