shadcn
Skill40 starsChanged 8 months agoMITView on GitHub
Install, customize, and compose shadcn/ui components with design-system awareness. Covers CLI v4, custom registries, Tailwind v4 OKLCH theming, components.json, presets, and monorepo setup. Pairs with minoan-frontend-design for creative direction. Triggers on shadcn, install component, shadcn theme, OKLCH colors, custom registry.
84 other projects use a version of this.
Adopted by
Most recently taken up by
- r2hu1/openbotstheir own version, first seen Oct 4, 2026
- molefrog/moitheir own version, first seen Oct 2, 2026
- willdady/platypustheir own version, first seen Oct 2, 2026
- marcellocurto/skillstheir own version, first seen Oct 2, 2026
- compozy/compozytheir own version, first seen Oct 1, 2026
- laguagu/claude-code-nextjs-skillstheir own version, first seen Sep 30, 2026
Used with
Projects with it also use tanstack, app-renderer-systems and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
barisariburnuSkilltanstack
Expert assistance for TanStack Router, Query (v5), and Table (v8). Use when users need help with file-based routing, type-safe navigation, data loading, search params, queries, mutations, optimistic updates, infinite queries, table state management, or debugging TanStack libraries.
Also in 4 projects that use this
pedronauckSkillapp-renderer-systems
Create, extend, or debug frontend domain modules organized under systems/. Covers adapters, Query hooks, local state, and public exports; excludes generic components and backend implementation.
Also in 3 projects that use this
pedronauckSkillrefactoring-analysis
Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/_refacs/. Excludes formatting, performance, and security audits.
Also in 3 projects that use this
txn2Skillmigrate-radix-to-base
Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.
Also in 3 projects that use this
anasahmed07Skillbetter-auth-best-practices
Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.
Also in 9 projects that use this
dbDev-codeSkilltauri-v2
Tauri v2+ cross-platform app development with Rust backend. Use when configuring tauri.conf.json, implementing Rust commands (#[tauri::command]), setting up IPC patterns (invoke, emit, channels), configuring permissions/capabilities, troubleshooting build issues, or deploying desktop/mobile apps. Triggers on Tauri, src-tauri, invoke, emit, capabilities.json.
Also in 5 projects that use this
- +1 more from pedronauck
Other versions84 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 84
- vercel-labs/json-render★ 18ksame name
- openai/plugins★ 7.3ksame name
- bergside/awesome-design-skills★ 3.1ksame name
- compozy/compozy★ 2.8ksame name
- jakemor/kanna★ 702same name
- pedronauck/skills★ 633same name
- Sayhi-bzb/Agent-HTML★ 539same name
- syahiidkamil/Software-Engineer-AI-Agent-Atlas★ 397same name
- stephengpope/shockwave★ 213same name
- oasm-platform/open-asm★ 204same name
74 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository99 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agents-md-managerSkill
- architecture-md-builderSkill
- autoresearchSkill
- claude-agent-sdkSkill
- claude-md-managerSkill
- claude-usageSkill
- dag-typesafeSkill
- fableSkill
- glossarySkill
- openrouter-usageSkill
- react-best-practicesSkill
- skill-optimizerSkill
- stop-slopSkill
- tamarruSkill
- test-harness-auditorSkill
- user-model-builderSkill
- atmosphere-shaderSkill
- component-gallerySkill
- conductor-motionSkill
- design-auditSkill
- design-critiqueSkill
- design-mdSkill
- design-polishSkill
- gemini-claude-resonanceSkill
- gemini-forgeSkill
- gpt-atelierSkill
- grainientSkill
- image-forgeSkill
- image-wellSkill
- meshySkill
- mindnode-uiSkill
- minoan-frontend-designSkill
- nano-banana-proSkill
- overwatch-slidedeckSkill
- paper-designSkill
- particle-swarm-simSkill
- pellicolaSkill
- photo-to-slack-emojiSkill
- pretextSkill
- recordlySkill
- rocaille-shaderSkill
- scroll-cinemaSkill
- shapeSkill
- smolvlmSkill
- speak-responseSkill
- sprite-forgeSkill
- threejs-particle-canvasSkill
- vellum-editorialSkill
- webgpu-threejs-tslSkill
- agent-browserSkill
- beautiful-mermaidSkill
- classical-887Skill
- claude-peersSkill
- cloudflareSkill
- codex-ctoSkill
- codex-orchestratorSkill
- disc-forgeSkill
- figma-mcpSkill
- linkedin-exportSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 83 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Every shadcn interaction follows four steps: Orient, Install, Refine, Verify.
- Very specific: line 20
Read project state before any CLI operation.
- Distinctive: line 24
Add components via CLI, never by copying from docs manually.
- Very specific: line 32
Before re-adding an existing component, run npx shadcn@latest diff <name> to see upstream changes.
- Distinctive: line 43
Composition: Create wrapper components that compose shadcn primitives.
- Very specific: line 45
When minoan-frontend-design is active, translate its creative direction into shadcn theme variables and component customizations.
- Very specific: line 66
Leave tailwind.config blank in components.json for v4 projects.
- Very specific: line 79
Use cn() (clsx + tailwind-merge) for all class name composition.
“Common” is measured: kept by at least 6 in 10 of the 83 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Install, customize, and compose shadcn/ui components with design-system awareness. shadcn is a code distribution system — components are source files you own, not packages.
Workflow
Every shadcn interaction follows four steps: Orient, Install, Refine, Verify.
1. Orient
Read project state before any CLI operation. Run npx shadcn@latest info to get framework, installed components, aliases, icon library, and base library. Read components.json directly for theme config. Never guess configuration.
2. Install
Add components via CLI, never by copying from docs manually.
npx shadcn@latest add button card dialog # Multiple at once
npx shadcn@latest add @namespace/component # From custom registry
npx shadcn@latest add --dry-run button # Preview before writingBefore re-adding an existing component, run npx shadcn@latest diff <name> to see upstream changes. Commit local customizations first — add overwrites files.
3. Refine
This is where craft lives. After every add, audit the component against the project's design system:
- Typography: Does it use the project's font variables and scale? Replace any hardcoded font sizes.
- Color tokens: Does it reference the project's CSS custom properties? Convert any raw color values to semantic tokens.
- Spacing rhythm: Does it follow the project's spacing scale? Harmonize padding and margins.
- Border radius: Does it use
--radiusfrom the theme? Shadcn sets this globally. - Animation: Does it use
tw-animate-cssclasses, nottailwindcss-animate? - Composition: Create wrapper components that compose shadcn primitives. Edit base components only for structural changes.
When minoan-frontend-design is active, translate its creative direction into shadcn theme variables and component customizations.
4. Verify
Build the project to catch type errors. Visually inspect the component in context. Check dark mode. Check mobile.
Tailwind v4 Contract
shadcn v4 uses OKLCH color space with @theme inline — not HSL, not tailwind.config.ts.
:root {
--primary: oklch(0.205 0.03 264.05);
--primary-foreground: oklch(0.985 0 0);
}
@theme inline {
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
}Leave tailwind.config blank in components.json for v4 projects. Use data-slot attributes for targeted styling. Use React.ComponentProps<> — forwardRef is removed.
Theming
Colors follow background + foreground pairs. The background suffix is omitted for the primary role:
--primary (background), --primary-foreground (text on that background).
Extend with custom semantic tokens by adding both the CSS variable and the @theme inline mapping:
:root { --warning: oklch(0.84 0.16 84); --warning-foreground: oklch(0.14 0.04 84); }
@theme inline { --color-warning: var(--warning); --color-warning-foreground: var(--warning-foreground); }Use cn() (clsx + tailwind-merge) for all class name composition.
References
Consult references/ on demand:
cli-v4-reference.md— Full command reference, flags, monorepo patterns. Read for any CLI operation.components-json-schema.md— Configuration schema with all fields. Read when initializing or reconfiguring.theming-oklch.md— OKLCH color system, CSS variable conventions, dark mode, custom colors. Read when theming.registry-authoring.md— Custom registry creation, namespacing, auth, item types. Read when building registries.tailwind-v4-migration.md— Breaking changes, upgrade path, tw-animate-css, data-slot. Read when migrating or troubleshooting.component-inventory.md— 59 components by category. Read when choosing what to install.customization-patterns.md— Wrapper composition, data-slot styling, diff tracking. Read when customizing components.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

