build-design-system
Skill0 starsChanged 13 days agoMITView on GitHub
Create, extend or audit a design system - tokens (tiers, W3C format, theming, dark mode), accessible component APIs, stories per state, visual regression, versioning, deprecation and design-to-code handoff. Use when defining tokens, adding a component or variant, theming, or finding design/code drift. Not for reviewing finished screens (use `review-ui-ux`) or feature UI (use `build-frontend`).
6 other projects use a version of this.
Adopted by
Most recently taken up by
- arla6ka/skillstheir own version, first seen Nov 16, 2026
- 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
- danecwalker/agentskillstheir own version, first seen Jul 22, 2026
- rohunvora/my-claude-skillstheir own version, first seen Dec 25, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- arla6ka/design.how★ 643same name
- arla6ka/skills★ 643same name
- lintendo/Axhub-Skills★ 145same name
- rohunvora/my-claude-skills★ 6same name
- danecwalker/agentskills★ 2same 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 repository33 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- global/CLAUDE.mdCLAUDE.md
- build-backendSkill
- build-commitsSkill
- build-containersSkill
- build-databaseSkill
- build-frontendSkill
- build-iacSkill
- build-project-setupSkill
- core-documentationSkill
- core-prompt-engineeringSkill
- core-token-efficiencySkill
- create-marketing-copySkill
- create-seo-contentSkill
- operate-incidentSkill
- operate-observabilitySkill
- plan-architectureSkill
- plan-campaignSkill
- plan-codebase-analysisSkill
- plan-test-strategySkill
- plan-threat-modelSkill
- review-pull-requestSkill
- review-seoSkill
- review-ui-uxSkill
- secure-code-reviewSkill
- secure-repo-governanceSkill
- secure-supply-chainSkill
- ship-ci-cdSkill
- ship-github-actionsSkill
- ship-readinessSkill
- ship-releaseSkill
- test-performanceSkill
- test-validationSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
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
- could be automatic: a setting could enforce it
- Very specific: line 32
Every color.text.* on its intended color.bg.* meets 4.5:1 (3:1 for large text, borders, icons, focus) in every theme.
- Distinctive: line 56
Ask before publishing a package version, removing or renaming tokens, props or components, or changing token values used across multiple …
- Distinctive: line 57
Ask before publishing a design-library update or pushing token changes back to the design tool.
- Distinctive: line 58
Ask before bulk-accepting visual regression baselines.
- Distinctive: line 59
Never commit design-tool access tokens or API keys.
“Common” is measured: kept by at least 6 in 10 of the 5 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
Design System
Build tokens and components that are consistent, accessible by default and safe to change.
Procedure
- Inventory first. List existing tokens, components, variants, consumers and the design library. Grep for drift: hard-coded colours (
#[0-9a-fA-F]{3,8}\b,rgba?\(,hsla?\(), rawpx/remspacing and font sizes,z-index:literals, duplicate look-alike components. Reuse or extend before adding. - Tokens. Three tiers; components consume semantic (or component) tokens only. Store as W3C Design Tokens (DTCG) JSON as the single source, transform to CSS custom properties and platform outputs with a build tool. Theme by remapping the semantic tier per theme and mode; primitives stay fixed. Read
references/tokens.mdwhen defining, naming, theming or exporting tokens. - Component API. Design props before code: variants, sizes, states, slots/composition, controlled vs uncontrolled, ref forwarding, prop pass-through. Read
references/components.mdfor API rules, accessibility patterns per widget and the state matrix. - Accessibility built in. Native element first; WAI-ARIA Authoring Practices pattern for composite widgets (keyboard map, roles, states); visible focus from a token; 24x24 CSS px minimum targets (44x44 recommended for touch); labels wired by
id; reduced-motion handled inside the component; contrast verified for every semantic text/background pair in every theme. - Document and test. One story per variant x size x state, plus edge content (long text, RTL, missing icon); interaction tests for keyboard behaviour; automated a11y checks on every story; visual regression on every story in each theme. Read
references/docs-testing-release.mdfor story matrix, visual-test setup, versioning and deprecation. - Handoff parity. Design-tool variable collections map to token tiers and modes map to themes; component and variant names match code exactly. Token changes flow design export -> PR to the tokens source -> CI build -> package release; never hand-edit generated outputs.
- Release. Changelog entry per change, semver from the Rules table, migration notes and codemods for breaking changes, deprecation before removal.
Rules
Token tiers:
| Tier | Example | Who uses it |
| Primitive | color.blue.600, space.4, font.size.300 | Only semantic tokens |
| Semantic | color.text.default, color.bg.danger.subtle, color.border.focus, space.inset.md | Components and app code |
| Component (only when needed) | button.primary.bg.hover | That one component |
- Name by purpose, not value:
color.text.danger, nevercolor.red-textorblue-button. - Order: category.property.variant.state (
color.bg.accent.hover). Same vocabulary across all tokens. - Dark mode is a remapping, not an inversion: raise surface lightness for elevation, reduce saturation of large fills, re-check every contrast pair.
- CSS custom properties cannot be used inside media queries; emit breakpoints as build-time constants (Sass/JS) too.
- Every
color.text.*on its intendedcolor.bg.*meets 4.5:1 (3:1 for large text, borders, icons, focus) in every theme; test this in CI.
Component API:
variantfor mutually exclusive styles (primary | secondary | ghost | danger),sizefor scale (sm | md | lg); booleans only for independent toggles. NoisPrimary/isDangerboolean sets.- More than about 3 optional content props or layouts that vary -> composition (compound components or slots) instead of more props.
- Support controlled and uncontrolled:
value/defaultValue/onChange,open/defaultOpen/onOpenChange. Never switch modes during the component's lifetime. - Forward refs, spread remaining props onto the root element, merge
className/style, keep native attribute names (disabled,type,name). - Same prop names for the same concept across every component.
Semver:
| Change | Bump |
| Remove or rename a component, prop, variant, token or CSS variable; change a default; change DOM structure or keyboard behaviour consumers rely on | MAJOR |
| New component, prop, variant or token; deprecation warning added | MINOR |
| Bug fix, token value tweak inside the same intent, docs | PATCH (announce visible value changes anyway) |
Gotchas:
- A semantic token that aliases another semantic token across themes creates cycles and confusing overrides; alias semantic -> primitive.
- Component tokens for everything multiplies maintenance; add them only when a component needs independent theming.
aria-*sprinkled on adivis not a button; prefer native elements and APG patterns.- Visual regression flakes on fonts, animations and anti-aliasing; render in one pinned browser/OS image with animations off.
- Generated token files and design exports drift if both sides are edited; one direction of truth only.
Safety gates
- Ask before publishing a package version, removing or renaming tokens, props or components, or changing token values used across multiple products.
- Ask before publishing a design-library update or pushing token changes back to the design tool.
- Ask before bulk-accepting visual regression baselines; review each changed snapshot.
- Never commit design-tool access tokens or API keys; read them from the environment or a secret store.
Output
Change: <tokens/components added or changed> Version bump: <MAJOR|MINOR|PATCH + reason>
Tokens: | Name | Tier | Value / alias (light | dark) | Replaces |
Components: <name> - props/variants/states, composition, controlled/uncontrolled, keyboard map
Accessibility: contrast pairs checked (<n> pass / <n> fail), keyboard pattern, focus, target size, AT check
Design <-> code mapping: | Design name | Code name | Status (match / renamed / missing) |
Stories and tests: <stories added>, a11y check result, visual diffs reviewed (<n>)
Drift report: hard-coded values <count + top files>, duplicate components, missing in code/design
Migration notes / deprecations: <old -> new, removal version, codemod>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.

