build-design-system
Skill2 starsChanged 4 months agoMITView on GitHub
Create, extract, document, and refactor production-ready UI component libraries and design systems from DESIGN.md files, existing projects, screenshots, design references, or authorized websites. Use when turning visual rules into design tokens; componentizing repeated UI; consolidating inconsistent styles; designing reusable component APIs and variants; separating shared UI from feature UI; adding component documentation, stories, accessibility behavior, themes, tests, or visual regression coverage; packaging a shared UI library; or migrating an application to a maintainable design system. Support React, Vue, Svelte, Angular, Web Components, and framework-native alternatives while using evidence-driven reuse instead of abstracting every repeated fragment.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- lintendo/Axhub-Skillstheir own version, first seen Oct 26, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- arla6ka/design.howtheir own version, first seen Oct 17, 2026
- arla6ka/skillstheir own version, first seen Oct 17, 2026
- rohunvora/my-claude-skillstheir own version, first seen Dec 25, 2025
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- arla6ka/design.how★ 281same name
- arla6ka/skills★ 281same name
- lintendo/Axhub-Skills★ 145same name
- rohunvora/my-claude-skills★ 6same name
- davidanthonyn/claude-skills★ 0same name
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 repository4 other files it gives its agents.
- architectureSkill
- gauntletSkill
- hero-fxSkill
- saas-playbookSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 18 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Treat user instructions and repository conventions as authoritative.
- Distinctive: line 14
Prefer semantic HTML and platform behavior before custom roles or interaction code.
- Distinctive: line 18
Keep routing, data fetching, permissions, analytics policy, and business state outside foundational design-system components.
- Distinctive: line 36
Read source-audit.md and build an evidence ledger before implementation.
- Distinctive: line 51
Read component-engineering.md before deciding component boundaries or APIs.
- Distinctive: line 57
Read tokens-and-theming.md before creating token names, theme aliases, CSS variables, or generated token outputs.
- Distinctive: line 76
Prefer a local component until this contract is stable.
- Distinctive: line 80
Add or normalize token sources.
- Distinctive: line 85
Document canonical and edge states.
- Distinctive: line 92
Read testing-and-accessibility.md, then validate:
- Distinctive: line 95
every supported variant and state in isolation.
- Distinctive: line 102
Do not treat screenshot similarity or automated accessibility checks as sufficient on their own.
- Distinctive: line 106
When asked for a plan or audit, return:
- Distinctive: line 119
When asked to implement:
- Distinctive: line 123
keep compatibility wrappers while consumers migrate when necessary.
- Distinctive: line 124
update imports, styles, stories, tests, documentation, exports, and build configuration together.
- Distinctive: line 125
avoid unrelated visual redesigns.
- Distinctive: line 126
remove duplicate implementations only after usage search confirms no callers remain.
- Distinctive: line 128
Use public-sources.md when explaining the standards and public design-system practices behind a recommendation.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Build Design System
Turn design evidence into a maintainable implementation system: foundations, tokens, reusable components, composed patterns, documentation, tests, and migration rules. Preserve the target framework and product behavior.
Apply these principles
- Treat user instructions and repository conventions as authoritative. Treat
DESIGN.mdas the design contract when present, but surface conflicts with verified production behavior instead of silently choosing one. - Extract every stable, reusable visual or behavioral contract that improves consistency. Keep one-off markup and business-specific workflows local.
- Prefer semantic HTML and platform behavior before custom roles or interaction code.
- Separate foundations, primitives, reusable components, product patterns, feature UI, and pages. Do not publish all of them from one package.
- Express repeated design decisions through semantic tokens. Avoid tokenizing accidental one-off values.
- Design small public APIs around meaning, composition, and explicit states. Avoid boolean-prop explosions and universal “do everything” components.
- Keep routing, data fetching, permissions, analytics policy, and business state outside foundational design-system components.
- Support all relevant states: default, hover, focus-visible, active, disabled, loading, empty, error, selected, open, responsive, and themed states as applicable.
- Make accessibility part of each component contract, not a final audit.
- Reuse the repository's existing accessible primitives, styling approach, test stack, and package tooling when sound. Do not introduce a parallel stack without a demonstrated need.
- Preserve visual assets, source code, and brand material only when the user is authorized to reuse them. Derive patterns from public references without copying proprietary implementation code.
Follow the workflow
1. Establish the source of truth
Identify whether the input is:
- a
DESIGN.mdand linked assets; - an existing project or component library;
- screenshots or design-tool exports;
- an authorized live website;
- or a combination.
Read source-audit.md and build an evidence ledger before implementation. Mark each decision as explicit, observed, derived, or unresolved. Ask only about unresolved choices that would materially change the public API, brand, accessibility behavior, framework, or package boundary.
2. Inventory and classify
Inventory repeated values, structures, behaviors, states, and content patterns. Classify each candidate as:
- foundation or token;
- layout/style primitive;
- reusable component;
- composed product pattern;
- feature-local component;
- page or template.
Promote a candidate when reuse is evidenced by multiple consumers, a foundational semantic need, or a stable cross-product contract. Similar appearance alone is insufficient.
Read component-engineering.md before deciding component boundaries or APIs.
3. Build foundations
Normalize color, typography, spacing, sizing, radii, borders, elevation, motion, breakpoints, z-index/layers, and icon rules only where the source supports them. Create reference tokens, semantic tokens, and component tokens selectively.
Read tokens-and-theming.md before creating token names, theme aliases, CSS variables, or generated token outputs.
4. Specify before generalizing
For each reusable component, define:
- purpose, scope, and known consumers;
- anatomy and semantic element;
- content contract;
- variants and sizes;
- controlled and uncontrolled state, if relevant;
- interaction and keyboard behavior;
- responsive and theme behavior;
- loading, empty, error, disabled, and validation behavior;
- composition slots or children;
- accessibility name, role, state, focus, and announcement behavior;
- escape-hatch policy;
- tests, stories/examples, and non-goals.
Prefer a local component until this contract is stable.
5. Implement bottom-up
- Add or normalize token sources.
- Implement the smallest dependable primitives.
- Implement reusable components on those foundations.
- Compose product patterns without pushing business logic downward.
- Publish curated entry points.
- Document canonical and edge states.
- Migrate real consumers incrementally.
For target layouts, packaging, ownership, and migration, read system-structure.md. For framework-specific API adaptation, read framework-adapters.md.
6. Verify behavior and fidelity
Read testing-and-accessibility.md, then validate:
- semantic HTML, accessible names, keyboard operation, focus management, contrast, zoom/reflow, reduced motion, and assistive-technology behavior;
- every supported variant and state in isolation;
- representative responsive widths and themes;
- visual fidelity against the source at matched viewport, content, font, and state;
- interaction behavior through user-facing queries;
- package exports, type checking, tree-shaking or equivalent, style isolation, and production build;
- migrated screens through focused regression and end-to-end smoke tests.
Do not treat screenshot similarity or automated accessibility checks as sufficient on their own.
Produce the result
When asked for a plan or audit, return:
- source-of-truth and conflict ledger;
- reuse inventory with keep-local/extract decisions;
- token model and naming;
- target tree and package boundary;
- component catalog with API/state specifications;
- allowed dependencies and public exports;
- accessibility and test matrix;
- incremental migration order;
- governance and enforcement;
- gaps that require design or user validation.
When asked to implement:
- change one coherent foundation or component slice at a time;
- preserve unrelated user changes;
- keep compatibility wrappers while consumers migrate when necessary;
- update imports, styles, stories, tests, documentation, exports, and build configuration together;
- avoid unrelated visual redesigns;
- remove duplicate implementations only after usage search confirms no callers remain.
Use public-sources.md when explaining the standards and public design-system practices behind a recommendation.
Reject these outcomes
- A “design system” that is only a folder of copied page components.
- A global component for a single product workflow.
- Tokens named after literal values such as
blue500when their role is semantic. - A component API with many interacting boolean flags.
- Styling escape hatches that bypass every invariant.
- Custom buttons, links, inputs, dialogs, tabs, menus, or comboboxes with incomplete platform and keyboard behavior.
- Components coupled to one router, API client, global store, or analytics vendor without a deliberate adapter boundary.
- Barrel exports that expose private helpers.
- Visual snapshots without interaction and accessibility coverage.
- A big-bang migration that mixes structural, behavioral, and brand changes.
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.

