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

[](https://zalavijaysinh.github.io/skilltrust/repos/moi-computer/moi/)
Score history
| Date | Version | Score |
|---|
| 2026-11-10 | 9ca7910 | 80 |
Also found in
Identical copies of this skill exist at:
- molefrog/moi/.agents/skills/shadcn