shadcn: Add, find, fix and compose shadcn/ui components

By shadcn-ui/uishadcn-ui/uiskills.sh

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.

Developmentskills.sh
Total installs
162K
skills.sh
Last 7 days
7.8K
▼ 1.6% vs the week before
Best 100 rank
—
Not in Best 100
GitHub stars
129.2K
Pushed 2026-11-26

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 shadcn

The whole repository

npx skills add https://github.com/shadcn-ui/ui

Trend

Growth slowing
05K10K15K7.8K09/1110/0911/0611/27
Daily installs, last 30 days
1,201
Daily installs, last 30 days vs the 30 days before
-25.5%

How this skill works

  1. 1Reads the project context from `npx shadcn@latest info --json`, including aliases, base, icon library and resolved paths.
  2. 2Checks installed components and searches registries with `npx shadcn@latest search` before writing custom UI.
  3. 3Fetches component docs and example URLs with `npx shadcn@latest docs <component>` before writing code.
  4. 4Adds components with `npx shadcn@latest add`, using `--dry-run` and `--diff` first when it updates existing files.
  5. 5Reviews added files against the critical rules for styling, forms, composition, icons and chat.
  6. 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

Best Skills

The badge updates every day and links back to this page.

[![Best Skills](https://linkly.ai/skills/badge/shadcn-ui/ui/shadcn.svg)](https://linkly.ai/skills/s/shadcn-ui/ui/shadcn)
Linkly AI

Maintained by Linkly AI

Linkly AI is the knowledge brain for AI agents. It automatically parses the notes, study materials, bookmarks, knowledge bases, voice memos, meetings, videos and ideas on your computer, so your agent can search and read everything you have.

Download Linkly AI
Or send this line to your agent and it will help you install and connect.

Set up https://linkly.ai/docs/en/agent-setup.md