Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

shadcn/ui Component Skill

Drives the shadcn/ui CLI and enforces shadcn-specific code rules when adding, fixing, styling, or composing components.

Dev & CodingIntermediate1307AI 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: search registries → docs <component> and fetch URLs → add → re-read and verify the added files.
  • Blocks classic shadcn mistakes: gap-* instead of space-y-*, size-* instead of w-10 h-10, FieldGroup + Field for forms, data-icon for button icons, semantic tokens only (bg-primary, text-muted-foreground).
  • Documents safe update flows: --dry-run / --diff merges that preserve local edits, and a reinstall / merge / skip decision tree for switching --preset codes.

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

  1. "Build a settings page" → composes Tabs + Card + FieldGroup using your real alias and icon library rather than guessing.
  2. "Add the shimmer button from @magicui" → confirms the registry, installs, then rewrites hardcoded @/components/ui/... imports to your project's alias.
  3. "Update the button component from upstream" → runs add button --dry-run, inspects --diff per 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/molefrog/moi.git /tmp/moi
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the whole skill folder (including rules/ and cli.md): cp -r /tmp/moi/.agents/skills/shadcn ~/.claude/skills/shadcn
  5. Verify that ~/.claude/skills/shadcn/SKILL.md and the rules/ directory exist.
  6. Make sure Node.js with npm/pnpm/bun is installed and that your target project has a components.json file.
  7. Restart Claude Code; any shadcn-related request (e.g. "build a login form with shadcn") will trigger the skill automatically.
View source on GitHubLicense: NOASSERTION