shadcn-ui
Skill59 starsChanged 2 months agoMITView on GitHub
Work with shadcn/ui components and the Radix primitives under them — components are copied into the repo and are your source, so customize them in place, know that re-running the generator overwrites local edits, and know which accessibility behaviour Radix gives you and which it does not. Fires when adding, customizing or debugging a component in a repo with components.json and a vendored UI directory. Not for choosing a component library, not for general component structure, and not an accessibility audit.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- delorenj/skillstheir own version, first seen Oct 2, 2026
- diodeme/Gold-Bandtheir own version, first seen Sep 30, 2026
- RootCX/RootCXtheir own version, first seen Sep 18, 2026
- QuantumNous/new-apitheir own version, first seen Sep 18, 2026
- SkotAlexsander/skillstheir own version, first seen Sep 16, 2026
- idexal/idexal-skillstheir own version, first seen Aug 26, 2026
Used with
Projects with it also use figma-create-new-file, api-design-principles and 9 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.
OpenAISkillfigma-create-new-file
Create a new blank Figma file. Use when the user wants to create a new Figma design or FigJam file, or when you need a new file before calling use_figma. Handles plan resolution via whoami if needed. Usage — /figma-create-new-file [editorType] [fileName] (e.g. /figma-create-new-file figjam My Whiteboard)
Also in 3 projects that use this
nilecuiSkillapi-design-principles
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
Also in 4 projects that use this
OpenAISkillfigma-use
**MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `use_figma` tool call. NEVER call `use_figma` directly without loading this skill first. Skipping it causes common, hard-to-debug failures. Trigger whenever the user wants to perform a write action or a unique read action that requires JavaScript execution in the Figma file context — e.g. create/edit/delete nodes, set up variables or tokens, build components and variants, modify auto-layout or fills, bind variables to properties, or inspect file structure programmatically.
Also in 3 projects that use this
xfstudioSkilltailwind-design-system
Build scalable design systems with Tailwind CSS, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.
Also in 3 projects that use this
anasahmed07Skillbetter-auth-best-practices
Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.
Also in 3 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 7 projects that use this
- +2 more from openai
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- QuantumNous/new-api★ 49ksame name
- shep-ai/shep★ 262same name
- diodeme/Gold-Band★ 143same name
- jh941213/my-cc-harness★ 126same name
- RootCX/RootCX★ 49same name
- faqndo97/ai-skills★ 33same name
- HiAi-gg/hiai-opencode★ 18same name
- delorenj/skills★ 15same name
- idexal/idexal-skills★ 13same name
- wpank/ai★ 11same name
12 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 repository79 other files it gives its agents.
- agent-dispatcherSkill
- agent-designSkill
- agent-evalsSkill
- context-engineeringSkill
- llm-observabilitySkill
- mcp-designSkill
- memory-designSkill
- model-routingSkill
- prompt-engineeringSkill
- prompt-injection-defenseSkill
- retrieval-ragSkill
- structured-outputSkill
- tool-designSkill
- api-contract-verificationSkill
- api-designSkill
- authenticationSkill
- authorizationSkill
- background-jobsSkill
- cachingSkill
- idempotency-and-retriesSkill
- webhooksSkill
- database-migration-verificationSkill
- data-integritySkill
- data-pipelinesSkill
- data-qualitySkill
- migrationsSkill
- postgresSkill
- query-optimizationSkill
- schema-designSkill
- accessibilitySkill
- accessibility-verificationSkill
- design-systemsSkill
- design-to-codeSkill
- frontend-designSkill
- motion-designSkill
- responsive-designSkill
- ui-auditSkill
- ux-writingSkill
- ci-cdSkill
- deploymentSkill
- dockerSkill
- github-actionsSkill
- incident-responseSkill
- observabilitySkill
- release-verificationSkill
- rollbackSkill
- component-architectureSkill
- frontend-performanceSkill
- stack-detectionSkill
- tailwindSkill
- visual-verificationSkill
- competitive-analysisSkill
- copywritingSkill
- data-analysisSkill
- deep-researchSkill
- documentation-verificationSkill
- positioningSkill
- seoSkill
- source-evaluationSkill
- technical-writingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Check whether the component already exists in the repo: before adding it. Re-running the generator for a component that is already there …
“Common” is measured: kept by at least 6 in 10 of the 20 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
shadcn/ui and Radix primitives
These components are not a dependency. The generator copied source into the repository, and from that moment it is ordinary project code that nobody upstream will patch for you.
When this fires
Adding, customizing or debugging a shadcn/ui component in a project that has components.json and
a vendored UI directory. It does not fire for choosing a component library, for a project using a
conventional installed component package, or for a full accessibility audit.
Procedure
- Confirm the model before assuming it.
components.json, a UI directory of component source, and@radix-ui/*entries inpackage.jsontogether mean copy-in. Readcomponents.jsonfor the path aliases and conventions the generator will use — it decides where files land. - Check whether the component already exists in the repo before adding it. Re-running the generator for a component that is already there overwrites the file, including every local change. If the file exists and has been customized, adding it again is destructive — stop and ask rather than regenerating over someone's work.
- Add via the project's own generator invocation. Take the exact command from the project's README or scripts; the CLI's package name and flags have changed across versions, so do not type one from memory. If the generator cannot be run here, copy the upstream component source into the same directory by hand and add the Radix dependency it imports — do not hand-roll a substitute primitive, and do not silently skip the dependency.
- Customize in place. That is the model, not a workaround. Editing the vendored file is the
intended way to change these components. Prefer the two low-damage forms: add a variant to the
component's existing variant definition, and change appearance through the theme tokens rather
than by rewriting markup (see
tailwind). - Wrap instead of edit when the change is product-specific. A project-specific composition (your form field, your confirm dialog) belongs in a wrapper around the primitive, leaving the vendored file close to upstream and re-addable. Deep edits to the vendored file are fine, but they are the file you can no longer regenerate cheaply.
- Record which vendored files carry local edits. A comment at the top of the file, or a line in the project's own notes — whichever the project already does. Without it, the next person regenerates and loses the change silently.
- Keep the component's class-merge path intact. These components merge an incoming
classNamewith their own classes through a merge helper; if you rewrite that, caller overrides stop working in ways that look like a styling bug. - Use
asChildcorrectly when composing triggers. It renders the primitive's behaviour onto your child element instead of its own: the child must be a single element that forwards props and ref. A fragment, two children, or a component that drops props produces a control that looks right and does nothing. - Know what Radix gives you and what it does not. Free from the primitive: keyboard interaction and focus management for the pattern, focus trapping and restoration in overlays, dismissal behaviour, correct roles and state attributes, and the internal wiring between a trigger and its content. Not free: an accessible name for an icon-only trigger, a label associated with your own input, error text wired to the field it describes, colour contrast, heading order, honouring reduced-motion, and a visible focus indicator if you removed the ring. Those are yours every time.
- Verify with the keyboard and the accessibility tree, not a screenshot — tab to the control,
operate it, Escape out of it, and check the name it exposes. Rendered verification is
browser-verification.
Checklist
components.jsonread; the component's target path known- Existing file checked before any generator run, and overwrite consent obtained if needed
- Generator command taken from the project, not from memory
- Customization done in place, preferring variants and theme tokens
- Product-specific behaviour put in a wrapper, not baked into the primitive
- Local edits to vendored files recorded
classNamemerge path intact; caller overrides still apply- Every
asChildusage has exactly one prop-and-ref-forwarding child - Icon-only controls have accessible names; inputs have associated labels
- Focus visible, keyboard path walked, Escape/dismiss checked
Failure handling
- A caller's
classNamedoes nothing — the merge helper was bypassed or the class conflicts with the component's own. Fix the merge, not with!important. - A trigger renders but does not open — suspect
asChildwith a child that swallows props or ref, or two children where one is required. - The component switches between controlled and uncontrolled — a value prop that starts
undefinedand later becomes defined. Pick one mode and keep it. - "Upgrade shadcn" is asked for — there is no upgrade command for code you own. Diff the current upstream source against each vendored file and apply changes deliberately, file by file, keeping local edits. Say which files you did not touch.
- The generator is unavailable or offline — say so, copy the source manually or stop; do not invent an approximation of a primitive and present it as the component.
- Accessibility looks handled because Radix is present — it is not a conclusion you can draw from the import. The list in step 9 is checked by hand or reported as unchecked.
Evidence to report
Which components were added or edited and at what paths; whether each vendored file now carries local changes; how customization was done (variant, token, wrapper, direct edit); the keyboard and accessibility-tree checks you actually performed and what they showed; and anything from the step-9 list you did not check.
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.

