← All skills
shadcn
80 / 100 · Low risk
Fine to try.
By openai/plugins (GitHub) · design · 7,836 stars · scanned at commit d420d13
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
Works with any agent that supports SKILL.md skills.
What this skill can do
Downloads and installs other software
The author does not mention this.
Found in 73 places.
Show 17 more
- plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 22
1. **Use existing components first.** Use `npx shadcn@latest search` to check registries before writing custom UI. Check community registries too. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 53
- **Use `asChild` (radix) or `render` (base) for custom triggers.** Check `base` field from `npx shadcn@latest info`. → [base-vs-radix.md](./rules/base-vs-radix - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 78
- **Never decode or fetch preset codes manually.** Pass them directly to `npx shadcn@latest init --preset <code>`. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 156
Run `npx shadcn@latest docs <component>` to get the URLs for a component's documentation, examples, and API reference. Fetch these URLs to get the actual conten - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 159
npx shadcn@latest docs button dialog select - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 162
**When creating, fixing, debugging, or using a component, always run `npx shadcn@latest docs` and fetch the URLs first.** This ensures you're working with the c - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 166
1. **Get project context** — already injected above. Run `npx shadcn@latest info` again if you need to refresh. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 168
3. **Find components** — `npx shadcn@latest search`. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 169
4. **Get docs and examples** — run `npx shadcn@latest docs <component>` to get URLs, then fetch them. Use `npx shadcn@latest view` to browse registry items you - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 170
5. **Install or update** — `npx shadcn@latest add`. When updating existing components, use `--dry-run` and `--diff` to preview changes first (see [Updating Comp - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 171
6. **Fix imports in third-party components** — After adding components from community registries (e.g. `@bundui`, `@magicui`), check the added non-UI files for - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 175
- **Reinstall**: `npx shadcn@latest init --preset <code> --force --reinstall`. Overwrites all components. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 176
- **Merge**: `npx shadcn@latest init --preset <code> --force --no-reinstall`, then run `npx shadcn@latest info` to list installed components, then for each inst - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 177
- **Skip**: `npx shadcn@latest init --preset <code> --force --no-reinstall`. Only updates config and CSS, leaves components as-is. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 184
1. Run `npx shadcn@latest add <component> --dry-run` to see all files that would be affected. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 185
2. For each file, run `npx shadcn@latest add <component> --diff <file>` to see what changed upstream vs local. - plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md, line 196
npx shadcn@latest init --name my-app --preset base-nova
and 53 more places
Runs commands on your computer
The author does not mention this.
Found in 2 places.
Other copies in this repository
openai/plugins has 1 more folder with a skill named shadcn. This page shows the lowest-scoring copy.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'shadcn' ] || [ -L ~/.agents/skills/'shadcn' ]; then echo 'A skill folder named shadcn already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/openai/plugins' "$d" && git -C "$d" checkout --quiet 'd420d13051bffe4543ed39e30fa46b87148e47dd' -- 'plugins/build-web-apps/skills/shadcn-best-practices' && mkdir -p ~/.agents/skills && cp -R "$d"/'plugins/build-web-apps/skills/shadcn-best-practices' ~/.agents/skills/'shadcn' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'shadcn' ~/.claude/skills/'shadcn' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for openai/plugins shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/openai/plugins/)
Score history
| Date | Version | Score |
|---|
| 2026-11-07 | d420d13 | 80 |
Also found in
Identical copies of this skill exist at:
- zhongjingyun/codex-plugins/plugins/build-web-apps/skills/shadcn-best-practices