shadcn/ui Component Expert
Enforces the correct shadcn CLI workflow and code conventions when adding, fixing, or styling shadcn/ui components.
Design & UIIntermediate★ 183⑂ 13AI score 9/10Last updated: Oct 9, 2026
What it does
- Drives all component work through the
shadcnCLI (info,search,docs,add,view,init --preset) using the project's own package runner. - Injects and uses project context (
aliases,isRSC,tailwindVersion,base,iconLibrary,resolvedPaths) so imports,"use client"directives, and icon libraries are correct. - Enforces concrete do/don't rules: no
space-x-*/space-y-*(useflex gap-*),size-10overw-10 h-10, forms viaFieldGroup+Field, button icons viadata-icon, semantic color tokens only, no manual z-index on overlays. - Provides safe update and preset-switch workflows using
--dry-run,--diff, and explicit user confirmation before--overwrite.
Who it's for
- Frontend developers using shadcn/ui on Next.js, Vite, React Router, Astro, or Laravel.
- Teams tired of AI-generated UI that ignores shadcn composition and Tailwind conventions.
- Anyone pulling blocks from community registries and fixing mismatched import aliases.
Example uses
- "Build a settings page" → composes Tabs + Card + FieldGroup, checks installed components before running
add. - "Update my Button component from upstream" →
add button --dry-run, then per-file--diffmerge that preserves local edits. - "Switch to --preset a2r6bw" → asks reinstall vs merge vs skip, then runs the matching init command inside the project.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/molefrog/moi/HEAD/.agents/skills/shadcn/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .agents/skills/shadcn folder from the GitHub repo molefrog/moi into my ~/.claude/skills/shadcn/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/molefrog/moi.git /tmp/moi && mkdir -p ~/.claude/skills && cp -r /tmp/moi/.agents/skills/shadcn ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/molefrog/moi.git /tmp/moi - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/moi/.agents/skills/shadcn ~/.claude/skills/ - Verify
~/.claude/skills/shadcncontainsSKILL.mdplusrules/,cli.md, andcustomization.md. - Run Claude Code inside a project that has
components.jsonand ask something like "add a dialog component" to trigger the skill. - Make sure Node.js and npx (or pnpm/bun) are installed so the CLI commands work.
View source on GitHub ↗License: NOASSERTION