← All skills
shadcn
80 / 100 · Low risk
Fine to try.
By onfire7777/universal-ai-skills-library (GitHub) · design · 17 stars · scanned at commit 2a76bf4
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
- skills/shadcn/SKILL.md, line 25
1. **Use existing components first.** Use `npx shadcn@latest search` to check registries before writing custom UI. Check community registries too. - skills/shadcn/SKILL.md, line 56
- **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 - skills/shadcn/SKILL.md, line 81
- **Never decode or fetch preset codes manually.** Pass them directly to `npx shadcn@latest init --preset <code>`. - skills/shadcn/SKILL.md, line 159
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 - skills/shadcn/SKILL.md, line 162
npx shadcn@latest docs button dialog select - skills/shadcn/SKILL.md, line 165
**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 - skills/shadcn/SKILL.md, line 169
1. **Get project context** — already injected above. Run `npx shadcn@latest info` again if you need to refresh. - skills/shadcn/SKILL.md, line 171
3. **Find components** — `npx shadcn@latest search`. - skills/shadcn/SKILL.md, line 172
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 - skills/shadcn/SKILL.md, line 173
5. **Install or update** — `npx shadcn@latest add`. When updating existing components, use `--dry-run` and `--diff` to preview changes first (see [Updating Comp - skills/shadcn/SKILL.md, line 174
6. **Fix imports in third-party components** — After adding components from community registries (e.g. `@bundui`, `@magicui`), check the added non-UI files for - skills/shadcn/SKILL.md, line 178
- **Reinstall**: `npx shadcn@latest init --preset <code> --force --reinstall`. Overwrites all components. - skills/shadcn/SKILL.md, line 179
- **Merge**: `npx shadcn@latest init --preset <code> --force --no-reinstall`, then run `npx shadcn@latest info` to list installed components, then for each inst - skills/shadcn/SKILL.md, line 180
- **Skip**: `npx shadcn@latest init --preset <code> --force --no-reinstall`. Only updates config and CSS, leaves components as-is. - skills/shadcn/SKILL.md, line 187
1. Run `npx shadcn@latest add <component> --dry-run` to see all files that would be affected. - skills/shadcn/SKILL.md, line 188
2. For each file, run `npx shadcn@latest add <component> --diff <file>` to see what changed upstream vs local. - skills/shadcn/SKILL.md, line 199
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.
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/onfire7777/universal-ai-skills-library' "$d" && git -C "$d" checkout --quiet '2a76bf42ce5c860adf8d0f3fcf3f6804109ac65b' -- 'skills/shadcn' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/shadcn' ~/.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 onfire7777/universal-ai-skills-library shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/onfire7777/universal-ai-skills-library/)
Score history
| Date | Version | Score |
|---|
| 2026-11-08 | 2a76bf4 | 80 |