design-system-extraction
Skill1 starsChanged 26 days agoMITView on GitHub
Identify design tokens and recurring visual patterns from mockups or screenshots, extract candidate colors, typography, spacing, radii, and shadows, and map them to the host project's existing design system.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- maiconlara/design-system-extractiontheir own version, first seen Jul 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- maiconlara/design-system-extraction★ 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 repository7 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- accessibility-performance-auditSkill
- browser-visual-qaSkill
- frontend-implementationSkill
- visual-reconstructionSkill
- visual-refinement-loopSkill
- visual-regression-triageSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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 9
Use this skill to extract reusable design tokens and recurring UI patterns from visual references, and harmonize them with the target …
- Distinctive: line 15
Sprawl Prevention: Avoid generating one-off arbitrary values or duplicate variables.
- Distinctive: line 23
Run the token discovery script to locate Tailwind configs and CSS variables:
- Distinctive: line 29
Follow the Token Mapping Guide:
- Very specific: line 36
If Tailwind CSS is present: Map colors to Tailwind classes (e.g.
- Very specific: line 37
If CSS Variables are present: Map properties to var(--primary), var(--background), var(--radius).
- Distinctive: line 38
If no system exists: Define a consolidated set of CSS variables in the project's root stylesheet.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design System Extraction Skill
Use this skill to extract reusable design tokens and recurring UI patterns from visual references, and harmonize them with the target codebase's existing styling system.
Core Responsibilities
- Token Discovery: Extract candidate colors, spacing, typography scales, radii, and shadows.
- System Harmonization: Inspect the host repository using inspect-tokens.js to reuse existing Tailwind configurations or CSS custom properties.
- Sprawl Prevention: Avoid generating one-off arbitrary values or duplicate variables.
- Structured Token Spec: Output tokens adhering to token-schema.json.
Step-by-Step Procedure
1. Scan Host Codebase for Existing Tokens
Run the token discovery script to locate Tailwind configs and CSS variables:
node skills/design-system-extraction/scripts/inspect-tokens.js [path-to-workspace]2. Extract Candidate Tokens
Follow the Token Mapping Guide:
- Colors: Isolate primary brand, secondary, neutral surfaces, text contrasts, borders, and status cues.
- Spacing: Align observed paddings and margins to a 4px or 8px grid (
4, 8, 12, 16, 24, 32, 48px). - Typography: Record font families, size ladder, line heights, and weights.
- Radii & Shadows: Record surface corner roundings and elevation depths.
3. Reconcile with Host Design System
- If Tailwind CSS is present: Map colors to Tailwind classes (e.g.
bg-slate-900,text-blue-600) or extendtailwind.config.jstheme tokens cleanly. - If CSS Variables are present: Map properties to
var(--primary),var(--background),var(--radius). - If no system exists: Define a consolidated set of CSS variables in the project's root stylesheet.
4. Output Design Token Specification
Format the extracted tokens into a clear specification matching token-schema.json for consumption by frontend-implementation.
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.

