design-system-extract
Skill2.1k starsChanged 11 days agoMITView on GitHub
Extract design tokens — color, typography, spacing, radii, shadows, motion, breakpoints — from a codebase, brand guide or screenshots into a tokens file in the project's own format (CSS variables, Tailwind theme, TypeScript or DTCG JSON), and report where the product disagrees with itself. Use when a project has no tokens yet, when asked to "extract tokens" or "build a design system from the code", or before measuring design-system adoption.
2 other projects use a version of this.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- Onevium/awesome-claude-skillstheir own version, first seen Sep 4, 2026
- Onevium/skillstheir own version, first seen Sep 4, 2026
Who's talking about Trystan-SA/product-engineer-skills
- sudosubin/agents.nix“codex-marketplaces.github.trystan-sa.product-engineer-skills: init at 0-unstable-2026-07-06”GitHub · Nov 28, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.trystan-sa.product-engineer-skills: init at 0-unstable-2026-07-06”GitHub · Nov 26, 2026
- tekvisions/prompt-index“fix: retain 4 reviewed references that left discovery (Nov 25)”GitHub · Nov 25, 2026
- xiaolai/nlpm“Audit candidate: Trystan-SA/product-engineer-skills”GitHub · Nov 23, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Onevium/awesome-claude-skills★ 1same name
- Onevium/skills★ 1same 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 repository14 other files it gives its agents.
- ab-test-designSkill
- accessibility-auditSkill
- adoption-planSkill
- design-system-adoptionSkill
- experiment-readoutSkill
- feature-briefSkill
- flow-testSkill
- happy-path-auditSkill
- instrument-featureSkill
- launch-reviewSkill
- unhappy-pathsSkill
- usability-test-planSkill
- user-interviewsSkill
- ux-reviewSkill
The file
Files
Design System Extract
Most products already have a design system, scattered across dozens of files as hex codes and pixel values. This skill collects what's actually in use, names it, writes it to a tokens file, and shows where the product is inconsistent. The result is the baseline that design-system-adoption measures against.
Phase 1: Identify sources
In a codebase, read the theme files (theme.ts, tokens.*, _variables.scss, tailwind.config.*, CSS @theme blocks, :root custom properties), the component library, and the global stylesheet. Then sample real usage: search the components for color literals (hex, rgb, hsl, oklch) and px/rem values, and rank them by frequency.
Other sources: a brand guide, screenshots, a design-tool export. If none is available and the codebase has no styling to extract from, ask — invented tokens defeat the purpose.
Phase 2: Extract by category
Capture concrete values with their usage counts. Frequency tells you which value is canonical and which is drift.
- Color — brand (primary, accent), semantic (success, warning, error, info), neutral scale, surfaces (background, surface, border, overlay), text colors, and dark-mode values when present.
- Typography — families with fallback stacks, the size scale actually used, loaded weights, line heights, letter spacing for labels, and named text styles if they exist.
- Spacing — the scale in use, usually on a 4 px or 8 px base.
- Radii, shadows, borders — the distinct values and where they're used.
- Motion — durations and easing curves.
- Layout — breakpoints, container widths, z-index layers.
Phase 3: Consolidate
Group near-duplicates: #2563EB, #2564EB and #2463EA are one blue; 15 px and 16 px margins are probably one step. For each group, propose the canonical value — usually the most used, or the one already in the theme — and keep the variants as a finding. Don't merge silently: the inconsistency is information the team needs.
Name tokens by role, not value: --color-text-muted, not --gray-500-ish. Keep two layers — primitives (--blue-600) and semantic tokens (--color-action-primary: var(--blue-600)) — when the product has themes or dark mode.
Phase 4: Write the tokens file
Match the project's stack and conventions:
- Tailwind v4 — an
@themeblock in CSS. Tailwind v3 —theme.extendin the config. - CSS-in-JS or TypeScript — a typed
tokens.ts. - Plain CSS — custom properties on
:root, with a dark block under[data-theme="dark"]orprefers-color-scheme. - Several platforms — DTCG JSON (
$value,$type) for a build tool such as Style Dictionary.
Group by category and comment where a value came from when it isn't obvious. Don't wire the tokens into components unless asked: that migration is what design-system-adoption plans.
Phase 5: Report
Summarize: sources used, tokens per category, inconsistencies (with counts and the proposed canonical value), gaps — categories the product doesn't define, which are decisions for the team rather than values to invent — and the next step, usually design-system-adoption to measure how much of the codebase uses these tokens.
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.

