shadcn/ui Component Skill
Drives the shadcn/ui CLI and enforces shadcn-specific code rules when adding, fixing, styling, or composing components.
Dev & CodingIntermediate★ 130⑂ 7AI score 9/10Last updated: Aug 26, 2026
What it does
- Injects live project context via
npx shadcn@latest info --json(aliases, Tailwind version, isRSC, iconLibrary, base vs radix) so generated code matches your setup. - Enforces a workflow:
searchregistries →docs <component>and fetch URLs →add→ re-read and verify the added files. - Blocks classic shadcn mistakes:
gap-*instead ofspace-y-*,size-*instead ofw-10 h-10,FieldGroup+Fieldfor forms,data-iconfor button icons, semantic tokens only (bg-primary,text-muted-foreground). - Documents safe update flows:
--dry-run/--diffmerges that preserve local edits, and a reinstall / merge / skip decision tree for switching--presetcodes.
Who it's for
- React, Next.js, Vite, Astro, or React Router developers using shadcn/ui.
- Anyone pulling blocks from third-party registries (@shadcn, @magicui, @tailark) who has to fix import aliases and icon libraries by hand.
- Team leads who want consistent, accessible component composition.
Examples
- "Build a settings page" → composes Tabs + Card + FieldGroup using your real alias and icon library rather than guessing.
- "Add the shimmer button from @magicui" → confirms the registry, installs, then rewrites hardcoded
@/components/ui/...imports to your project's alias. - "Update the button component from upstream" → runs
add button --dry-run, inspects--diffper file, and merges upstream changes while keeping your customizations.
· · · 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/shadcn⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/molefrog/moi.git /tmp/moi - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the whole skill folder (including
rules/andcli.md):cp -r /tmp/moi/.agents/skills/shadcn ~/.claude/skills/shadcn - Verify that
~/.claude/skills/shadcn/SKILL.mdand therules/directory exist. - Make sure Node.js with npm/pnpm/bun is installed and that your target project has a
components.jsonfile. - Restart Claude Code; any shadcn-related request (e.g. "build a login form with shadcn") will trigger the skill automatically.
View source on GitHub ↗License: NOASSERTION