design-system
Skill1 starsChanged 59 days agoMITView on GitHub
Build and audit a design system: token architecture and naming, spacing rhythm, stylesheet organisation, Tailwind v4 CSS-first theming, dark mode, and visual-consistency review. Use when you say \"set up design tokens\", \"audit this UI for consistency\", \"there are forty shades of grey in this codebase\", \"migrate us to Tailwind v4 @theme\", or \"which styles in this change bypass our tokens\". Not for choosing the visual direction itself or judging whether a UI looks generic, use `frontend-design`. Not for running a pull request review, use `code-reviewer`, which pulls this skill in for its styling-drift criteria.
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 repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agentic-engineeringSkill
- ai-regression-testingSkill
- angularSkill
- ansibleSkill
- api-designSkill
- architecture-decision-recordsSkill
- ascend-memorySkill
- ascend-web-hunterSkill
- audio-scribeSkill
- automation-inventorySkill
- backend-patternsSkill
- bashSkill
- build-dependency-managementSkill
- code-formatterSkill
- code-reviewerSkill
- coding-standardsSkill
- dart-flutter-patternsSkill
- database-migrationsSkill
- deployment-patternsSkill
- docker-patternsSkill
- e2e-runbooksSkill
- e2e-testingSkill
- embedded-c-arduinoSkill
- frontend-designSkill
- g-code-3d-printingSkill
- github-opsSkill
- git-workflowSkill
- golang-patternsSkill
- hexagonal-architectureSkill
- home-assistantSkill
- java-coding-standardsSkill
- jetbrains-ide-opsSkill
- jira-integrationSkill
- keycloak-patternsSkill
- kicadSkill
- markdown-writerSkill
- mongodb-patternsSkill
- nextjs-app-router-patternsSkill
- node-backend-patternsSkill
- observability-and-loggingSkill
- obsidianSkill
- performance-optimizationSkill
- postgres-patternsSkill
- powershellSkill
- project-trackingSkill
- python-patternsSkill
- pytorch-patternsSkill
- react-patternsSkill
- researchSkill
- review-duplicationSkill
- security-reviewSkill
- seoSkill
- soap-webservicesSkill
- springboot-patternsSkill
- tdd-workflowSkill
- unitySkill
- web-accessibilitySkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 98 edited versions we read keep these.
3
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 115
Every margin, padding, gap, and component height is a multiple of 8px, with 4px available for micro-adjustments such as icon gutters and …
- Distinctive: line 261
No hex value, font stack, radius, shadow, or spacing number appears outside the token files.
- Distinctive: line 262
Every token name describes a role, and no name contains a value or a raw pixel count.
“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
Token architecture, stylesheet structure, and consistency auditing for a codebase's visual layer. This skill decides where a value lives and what it is called, not what the interface should look like.
Baseline: Tailwind CSS v4, which is configured in CSS through @theme and no longer reads tailwind.config.js.
When to activate
- Starting a project that needs a design system.
- Auditing an existing codebase for visual consistency.
- Preparing a redesign and needing an inventory of what is already there.
- Diagnosing a UI that looks wrong without an obvious cause.
- Supplying the styling-drift criteria when a pull request that
code-revieweris reviewing touches styling. - Migrating a Tailwind v3 configuration to the v4 CSS-first setup.
When not to activate
- Choosing the visual direction, composition, typography voice, and motion direction, or judging whether a UI looks
generic. Use
frontend-design. - Running the pull request review itself. Use
code-reviewer, which pulls this skill in for the styling-drift pass. - Contrast ratios, focus indicators, target sizes, and reduced motion. Use
web-accessibility. - React component structure and animation implementation. Use
react-patterns. - Angular component styling and view encapsulation. Use
angular. - Next.js rendering and routing. Use
nextjs-app-router-patterns.
Working modes
This skill runs in one of three modes. Say which one you want, or the intent will be inferred from the request.
Generate builds a system from what the codebase already does. Scan the CSS, Tailwind classes, and styled-components for existing values, extract the colours, type scale, spacing, radii, shadows, and breakpoints actually in use, then propose a consolidated token set with a reason for each decision. The output is a written design document, a token file in both JSON and CSS custom properties, and a self-contained preview page that renders every token so the set can be reviewed without running the application.
Audit scores an existing interface across ten dimensions, each out of ten: colour consistency, type hierarchy, spacing rhythm, component consistency, responsive behaviour, dark mode completeness, purposefulness of animation, accessibility, information density, and polish, meaning hover, transition, loading, and empty states. Every score comes with concrete examples and a fix pinned to a file and line. A score with no file reference is not a finding.
Slop check hunts the token-level tells of a system nobody designed: raw hex values and one-off gradients in component
files, spacing and sizes off the scale, a radius or shadow defined once and never reused, a font stack declared inline
rather than as a token, and near-duplicate colours that should be one token. Report each hit with its location and the
token it bypasses. Whether the interface looks generic, meaning purple-to-blue defaults, glass morphism with no
purpose, or a centred hero over a stock gradient, is a direction question, and frontend-design owns it.
Put every visual value in a token
A hex code inside a component file cannot be themed, cannot be audited, and will be copied slightly wrong the next time someone needs it. Define the value once and reference it everywhere.
/* PASS: tokens/colors.css owns the values */
:root {
--color-primary-500: #2563eb;
--color-surface-default: #ffffff;
--color-text-primary: #111827;
--color-feedback-error: #dc2626;
}// PASS: the component references the token
<Button style={{ background: 'var(--color-primary-500)' }} />
// FAIL: the value is welded into the component
<Button style={{ background: '#2563eb' }} />Name tokens by category, variant, and scale
A token name describes the role, never the value. A name carrying a pixel count or a colour word breaks the moment the value changes, which is the one thing tokens exist to make easy.
/* PASS: role-based names that survive a value change */
--color-primary-500: #2563eb;
--color-surface-default: #ffffff;
--color-text-muted: #6b7280;
--shadow-card-default: 0 1px 3px rgb(0 0 0 / 0.1);
--radius-button-default: 0.5rem;
--spacing-section-gap: 4rem;/* FAIL: the name encodes the value, so it lies after the first change */
--padding-16px: 16px;
--color-blue: #2563eb;
--shadow-light-grey: 0 1px 3px rgb(0 0 0 / 0.1);The shape is --{category}-{variant}-{scale}.
Keep spacing on one rhythm
Every margin, padding, gap, and component height is a multiple of 8px, with 4px available for micro-adjustments such as icon gutters and badge offsets. One rhythm is what makes unrelated components look like they belong together.
/* PASS: on the rhythm */
padding: 16px 24px;
gap: 8px;
height: 48px;/* FAIL: values picked by eye, nothing lines up across components */
padding: 13px 19px;
gap: 6px;
height: 47px;Configure Tailwind v4 in CSS
Tailwind v4 removes tailwind.config.js. Configuration lives in the @theme block, and every token defined there
becomes both a CSS custom property and a Tailwind utility.
/* PASS: styles/main.css, one source for the theme */
@import "tailwindcss";
@theme {
--color-primary: #2563eb;
--color-primary-foreground: #ffffff;
--font-sans: "Inter Variable", sans-serif;
--radius-md: 0.5rem;
--spacing-18: 4.5rem;
}
@layer components {
.btn-primary {
@apply bg-[--color-primary] text-[--color-primary-foreground] rounded-[--radius-md] px-4 py-2;
}
}// FAIL: a v3 config file that Tailwind v4 does not read
module.exports = {
theme: { extend: { colors: { primary: '#2563eb' } } },
}Organise stylesheets with the 7-1 pattern
Seven folders and one entry file, so a reader knows where a rule lives before opening anything.
styles/
├── abstracts/ Variables, functions, mixins, placeholders
├── base/ Reset, typography, base element styles
├── components/ Component styles, BEM named
├── layout/ Grid, header, footer, sidebar
├── pages/ Page-specific overrides
├── themes/ Light and dark token overrides
├── vendors/ Third-party overrides
└── main.scss Imports only, no rules of its own// PASS: abstracts holds logic only, and main.scss only imports
// abstracts/_spacing.scss
@function space($step) { @return $step * 8px; }
// FAIL: abstracts emitting CSS, and a rule written straight into main.scss
// abstracts/_spacing.scss
.container { padding: 16px; }abstracts/ emits no CSS, components/ is never imported into abstracts/, and component classes follow
.block__element--modifier.
Build dark mode on day one
Retrofitting dark mode means auditing every component for hardcoded colour. Building it in means overriding a handful of semantic tokens. Do the second.
/* PASS: semantic tokens, one override block per theme */
:root {
--color-surface-default: #ffffff;
--color-text-primary: #111827;
}
[data-theme="dark"] {
--color-surface-default: #0f172a;
--color-text-primary: #f8fafc;
}// FAIL: an arbitrary value that no theme can override
<div className="bg-[#ffffff] text-[#111827]" />Both themes get exercised before a pull request lands, in a component workbench or the running application.
Write mobile-first media queries
Base styles target the smallest viewport and each query adds to them. Mixing min-width and max-width produces
overlapping ranges and a cascade nobody can predict.
/* PASS: mobile-first, one direction only */
.card { padding: 16px; }
@media (min-width: 768px) { .card { padding: 24px; } }/* FAIL: desktop-first, subtracting styles back out */
.card { padding: 24px; }
@media (max-width: 767px) { .card { padding: 16px; } }Standard breakpoints: sm: 640px, md: 768px, lg: 1024px, xl: 1280px.
Related skills
frontend-designdecides the visual direction the tokens express. Take the direction from there, then encode it here.web-accessibilityowns contrast ratios, focus indicators, target sizes, and reduced motion. A palette that fails contrast is not a finished token set.react-patternsfor the React components consuming these tokens.angularfor the same consumption in an Angular codebase.markdown-writerfor the design document the generate mode produces.code-reviewerruns the pull request review and pulls this skill in for its styling-drift criteria.
Checklist
- No hex value, font stack, radius, shadow, or spacing number appears outside the token files.
- Every token name describes a role, and no name contains a value or a raw pixel count.
- Spacing, sizing, and gaps are multiples of 8px, with 4px reserved for micro-adjustments.
- Tailwind configuration lives in
@theme, and notailwind.config.jsremains. - Stylesheets follow the 7-1 layout,
abstracts/emits no CSS, andmain.scssonly imports. - Dark mode is driven by semantic token overrides, and both themes have been viewed.
- Media queries are
min-widthonly, from one shared breakpoint set. - An audit finding names a file and a line, and a slop-check finding names the token it bypasses.
- Colour choices have been checked against the contrast rules in
web-accessibility.
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.

