design-system
Skill0 starsChanged 4 months agoMITView on GitHub
This skill should be used to define or evolve a project's visual system: "create design tokens", "define the visual direction", "set up typography/color/spacing system", "document the design system", "make the UI consistent". Produces the direction contract, token set and DESIGN-SYSTEM.md. Usually invoked by the lexia-design orchestrator; also directly useful on its own.
108 other projects use a version of this.
Adopted by
Most recently taken up by
- nextlevelbuilder/ui-ux-pro-max-skilltheir own version, first seen Nov 18, 2026
- ekajaya740/skillstheir own version, first seen Oct 6, 2026
- BUGLAN/skillstheir own version, first seen Oct 6, 2026
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- Littlpinguin/marketing-cockpit-templatetheir own version, first seen Oct 5, 2026
Used with
Projects with it also use setup-engine, playtest-report 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.
CoralGameSkillsetup-engine
Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.
Also in 7 projects that use this
CoralGameSkillplaytest-report
Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.
Also in 6 projects that use this
cenconq25Skillasset-spec
Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.
Also in 5 projects that use this
cenconq25Skillcreate-control-manifest
Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.
Also in 5 projects that use this
- +3 more from CoralGame
- +5 more from cenconq25
Other versions108 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 108
- nextlevelbuilder/ui-ux-pro-max-skill★ 156ksame name
- getsentry/sentry★ 45ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- microsoft/power-platform-skills★ 961same name
- Archive228/loopkit★ 756same name
- pixel-cellar/Claude-Code-Game-Studios★ 338same name
- loulanyue/awesome-claude-notes★ 272same name
- genkovich/sdd★ 170same name
- cdavid817/vanehub-ai★ 116same name
98 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 repository4 other files it gives its agents.
- design-auditSkill
- lexia-designSkill
- motion-designSkill
- updateSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 98 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
Every visual value in components resolves to a token.
- Distinctive: line 95
Never ship a component kit's default tokens [system/stock-kit-tokens class of failure]: overwrite them with the project's system before any …
- Distinctive: line 98
No raw black/white in app surfaces [system/raw-black-white]: they carry no theme scale and go invisible in one of the two themes.
- Distinctive: line 116
Not everything that looks like duplication is debt: audit INTENT before consolidating.
- Very specific: line 123
Write/update .lexia-design/DESIGN-SYSTEM.md from the template (${CLAUDE_PLUGIN_ROOT}/templates/DESIGN-SYSTEM.md): contract, tokens, …
- Very specific: line 129
AFTER the first build passes review, from the built reality.
- Distinctive: line 135
When touching an existing system: diff proposed changes against the current DESIGN-SYSTEM.md.
“Common” is measured: kept by at least 6 in 10 of the 98 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
Turn a completed brief into a coherent, documented visual system. Input:
.lexia-design/DESIGN-BRIEF.md (if absent, run the direction protocol
first: ${CLAUDE_PLUGIN_ROOT}/references/visual-directions/direction-protocol.md).
Order of definition
- Direction contract. From the chosen direction
(
${CLAUDE_PLUGIN_ROOT}/references/visual-directions/directions.md): thesis (2 sentences), tension (1), differentiator (1), signature move (1), breaks-if list (5-8 falsifiable items), non-resources list. This contract is auditable text: vague entries are defects. - Typography. Families (with license status noted), scale (name the
ratio or the hand-tuned steps), weights used, leading per size band,
tracking per size band, measure limits, tabular-numeral contexts.
Reflex-face check against
${CLAUDE_PLUGIN_ROOT}/references/anti-slop/model-priors.md. - Color. Derive from the direction's color logic: field(s), ink
hierarchy (hue-tinted, never generic gray on color), ONE accent +
lock, full semantic set (success/warning/danger/info), both themes
composed separately (dark is not inverted light). Record measured
contrast for every text/surface pair
(
${CLAUDE_PLUGIN_ROOT}/references/accessibility/wcag-checklist.md). Token quality is measured, not eyeballed: same-role tokens need real deltas (two grays a few RGB points apart render as one level: [system/near-duplicate-tokens]); record contrast(accent, ink) as a ratio: under ~2:1 the accent is functionally ink and every accent moment disappears [system/accent-ink-indistinct]. Shadows are themed tokens tinted toward the canvas hue, never hardcoded black rgba() [system/hardcoded-shadow-color]. Token syntax fails silently, so verify it before redesigning anything: a color declared as an opaque color function breaks every opacity modifier (the utility compiles to nothing), which surfaces as three unrelated "design bugs" — invisible text, a missing overlay, dividers at the wrong weight. Declare the alpha slot in every color token before any /opacity utility exists [system/alpha-value-missing]. Same class of failure: arbitraryvar()classes do not compile in current majors, so consume the generated utilities instead. Theming mechanics: if the app toggles theme via [data-theme] or a class, re-key the framework's dark variant to that mechanism (Tailwind 4:@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));), or every dark: utility renders wrong whenever app theme != OS theme [system/dark-variant-desync]. - Spacing and rhythm. Base unit (4 or 8), scale, section rhythm, container widths, VISUAL_DENSITY dial applied here; more space above headings than below.
- Geometry. Radius tokens (concentric: child <= parent), border weights, shadow system (offset + blur from one light source, or none), z-elevation map.
- Interaction language. Focus ring spec, hover/active/selected/disabled
treatments, motion tokens (durations + easings from
${CLAUDE_PLUGIN_ROOT}/references/motion/principles.md) even if MOTION_INTENSITY is low: instant is also a spec. Kill the de-facto second motion system: set the framework's DEFAULT transition duration/easing to your tokens (Tailwind 4: --default-transition-duration, --default-transition-timing-function) so bare transition utilities inherit the system. - Density and breakpoints. Breakpoint set, density shifts per breakpoint, touch-target floors per pointer type.
Token discipline
- Emit tokens in the project's native mechanism (CSS custom properties, Tailwind theme, styled tokens file): never a parallel system.
- Every visual value in components resolves to a token; off-token values found later are audit findings [system/hardcoded-colors].
- Name tokens by role (--surface-raised, --ink-muted), not by value (--gray-300 as a role name is debt).
- ONE canonical content-width token, consumed by header, footer, floating chrome and every section wrapper. A second max-width nested inside the layout container is a defect [system/container-width-drift]: mixed widths read as misalignment at section boundaries and turn a global width change into a multi-file edit.
- Freeze SEMANTICS, not only values: each accent maps to exactly one meaning across the whole product (e.g. one accent = "AI-generated", nothing else); one radius for controls; full-round reserved for pills and toggles. Token semantics live in exactly ONE file; the other documents link to it. Without frozen semantics every new screen re-invents what a color means.
- Never ship a component kit's default tokens [system/stock-kit-tokens class of failure]: overwrite them with the project's system before any screen is built, or four clients' products become the same product.
- No raw black/white in app surfaces [system/raw-black-white]: they carry no theme scale and go invisible in one of the two themes.
Primitive discipline
- One primitive per concept: one Button, one CTA band, one page hero, one icon module per glyph, one card type per entity. Duplicated glyphs and copy-pasted section bands are the main source of drift [system/duplicate-primitive].
- The app layer consumes primitives. Native selects, inputs, textareas and inline tables in application screens inherit no tokens, focus rings, density or states [system/native-control-in-app-layer, system/hand-rolled-table].
- Grep the consumers BEFORE investing in a primitive: hardening a component with zero consumers reaches no user while screens hand-roll their own version [system/orphan-primitive]. Enumerate consumers before changing anything shared, and state the expected visual effect on each.
- Not everything that looks like duplication is debt: audit INTENT before consolidating. An animated hero tile and a data-density card can share a name and serve different purposes; forcing the merge degrades both. Duplicate findings are questions, not verdicts.
Documentation
Write/update .lexia-design/DESIGN-SYSTEM.md from the template
(${CLAUDE_PLUGIN_ROOT}/templates/DESIGN-SYSTEM.md): contract, tokens,
component inventory with states, external components registry (origin,
license, modifications:
${CLAUDE_PLUGIN_ROOT}/references/component-libraries/policy.md),
exceptions with reasons. On NEW visual worlds, write the full document
AFTER the first build passes review, from the built reality; update
incrementally thereafter. Keep decisions and their why in
.lexia-design/decisions.jsonl.
Consistency maintenance
When touching an existing system: diff proposed changes against the current DESIGN-SYSTEM.md; classify each divergence as error / inconsistency / debt / deliberate exception; never flatten a deliberate exception without asking; log everything.
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.

