building-components
Skill4 starsChanged 5 months agoMITView on GitHub
Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation.
5 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- databricks/devhubedited, first seen Sep 28, 2026
- wdchenxyz/skills-arsenaledited, first seen Aug 12, 2026
- caprica-Six/hyperliquid-insights-webedited, first seen Apr 30, 2026
- FelipeAngeli/skillsedited, first seen Apr 10, 2026
- vercel/components.buildedited, first seen Sep 9, 2025
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- vercel/components.build★ 79821% same
- databricks/devhub★ 2621% same
- FelipeAngeli/skills★ 221% same
- caprica-Six/hyperliquid-insights-web★ 121% same
- wdchenxyz/skills-arsenal★ 021% same
Wrote their own version · 0
None found.
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 repository63 other files it gives its agents.
- .claude/skills/nestjs-best-practices/AGENTS.mdAGENTS.md
- accessibility-a11ySkill
- architecture-blueprint-generatorSkill
- backend-delivery-loopSkill
- backend-designSkill
- backend-dev-guidelinesSkill
- backend-testingSkill
- backend-to-frontend-handoff-docsSkill
- bullmq-specialistSkill
- canvas-designSkill
- code-patternsSkill
- components-composition-patternsSkill
- conventional-commitSkill
- core-web-vitalsSkill
- create-svgSkill
- css-architectureSkill
- cypress-authorSkill
- cypress-docsSkill
- cypress-explainSkill
- delivery-loop-retroSkill
- diagnoseSkill
- fastify-best-practicesSkill
- figma-code-connectSkill
- frontend-delivery-loopSkill
- frontend-fundamentalsSkill
- fullstack-delivery-loopSkill
- grill-meSkill
- hunt-race-conditionSkill
- impeccableSkill
- mermaid-diagramsSkill
- nestjs-best-practicesSkill
- nextjs-best-practicesSkill
- nextjs-performanceSkill
- nodejs-backend-patternsSkill
- owasp-security-reviewSkill
- performance-hunterSkill
- playwright-best-practicesSkill
- postgresql-code-reviewSkill
- postgresql-optimizationSkill
- postmanSkill
- prisma-postgresSkill
- pro-state-machineSkill
- race-conditionSkill
- react-best-practicesSkill
- react-performanceSkill
- react-querySkill
- redis-coreSkill
- redis-query-engineSkill
- redis-securitySkill
- refactorSkill
- review-panelSkill
- run-delivery-chainSkill
- spec-drivenSkill
- sql-optimizationSkill
- system-designSkill
- testing-strategySkill
- tune-skills-and-agentsSkill
- ui-ux-pro-maxSkill
- vercel-react-view-transitionsSkill
- viteSkill
- The first 60 shown.
The file
Files
Building Components
References
Each file is loaded on demand — read one only when the task needs that depth (progressive disclosure).
references/definitions.mdx— artifact taxonomy: primitives, components, blocks, templates and when to use each · read when choosing the right abstraction level for a new component.references/principles.mdx— core component design principles: single responsibility, composition over configuration, minimal API surface · read when designing a new component's API.references/accessibility.mdx— ARIA roles/attributes, keyboard navigation, focus management, WCAG compliance patterns · read when implementing interactive or custom-widget components.references/composition.mdx— slot patterns, render props, controlled/uncontrolled state, compound components · read when designing composable component APIs.references/as-child.mdx— the Radix-styleasChildpattern for element polymorphism without wrapper divs · read when implementingasChildor polymorphic roots.references/polymorphism.mdx—asprop, generic polymorphic components, TypeScript inference for polymorphic types · read when a component must render as different HTML elements.references/types.mdx— TypeScript typing patterns: discriminated unions, generic props,ComponentPropsWithoutRef,forwardRef· read when typing component props or forwarding refs.references/state.mdx— controlled vs uncontrolled state,useControllableState, default value patterns · read when deciding how a component should own or delegate its state.references/data-attributes.mdx— usingdata-*attributes for CSS state, testing hooks, and styling variants · read when styling component states or wiring tests.references/design-tokens.mdx— CSS custom property token systems, theming, dark mode, token naming conventions · read when setting up or extending a design token layer.references/styling.mdx— CSS Modules, Tailwind, CSS-in-JS, class variance authority (CVA), style encapsulation · read when choosing or implementing a component styling approach.references/registry.mdx— shadcn/ui-style registry distribution,components.json, CLI-installable components · read when publishing via a component registry.references/npm.mdx— npm package publishing: entry points, bundling, peer deps, package.json fields · read when shipping a component library to npm.references/marketplaces.mdx— component marketplace distribution (Shadcn registry, v0, etc.) · read when distributing components via a marketplace.references/docs.mdx— writing component documentation: prop tables, usage examples, Storybook stories · read when documenting a component for end users.
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.

