extract-design-system
Skill8 starsChanged 3 months agoMITView on GitHub
Reverse-engineer a project's real, shipped design language into a reusable design skill, so any agent can build or restyle pages that match it. Use when the user says 'create a design skill from this project', 'make a design skill from the current project', 'extract the design system', 'capture this app's design as a skill', 'codify our design language', or 'reverse-engineer the design system into a SKILL.md'.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- idexal/idexal-skillstheir own version, first seen Aug 26, 2026
- pmatos/skillstheir own version, first seen Jul 2, 2026
- nathanonn/agent-skillstheir own version, first seen Jun 5, 2026
- thedesignproject/agent-skillstheir own version, first seen Jun 4, 2026
- zaka33333-hash/claude-skillstheir own version, first seen May 14, 2026
- arvindrk/extract-design-systemtheir own version, first seen Apr 3, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- arvindrk/extract-design-system★ 232same name
- thedesignproject/agent-skills★ 91same name
- nathanonn/agent-skills★ 19same name
- idexal/idexal-skills★ 13same name
- pmatos/skills★ 2same name
- zaka33333-hash/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 repository16 other files it gives its agents.
- autonomous-maintainerSkill
- commitSkill
- competitive-ads-extractorSkill
- compress-skillsSkill
- fix-ciSkill
- flesch-kincaid-proofreaderSkill
- frontendSkill
- get-pr-commentsSkill
- gogSkill
- posthogSkill
- shipSkill
- signoz-investigating-alertsSkill
- teachSkill
- thermo-nuclear-code-quality-reviewSkill
- update-agents-mdSkill
- visualizeSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
See it, don't just read it: Run the app (or open Storybook / existing screenshots) and look at 2–3 real screens in both themes.
- Very specific: line 42
Write the skill: Create skills/<name>-design/SKILL.md following the skeleton below, named after the product or aesthetic.
- Very specific: line 45
Validate and dogfood: Run npm run check, then apply the new skill to restyle one small component and screenshot it in both themes — it …
- Distinctive: line 82
Grounded only: Never document a token, class, or component you haven't found in the tree and confirmed on screen.
- Very specific: line 90
Leave committing to the commit / ship skills.
“Common” is measured: kept by at least 6 in 10 of the 6 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
Extract Design System
Turn a codebase's actual, shipped design language into a reusable skill. The output is a
new SKILL.md — a tight rules + workflow + pitfalls guide — that lets any agent restyle or
build pages that look like they belong in this app. Ground everything in the real code
and the rendered UI. Never invent tokens; a design system you can't point to in the tree is
a guess.
This is the generator that produces a design skill. It is not frontend (which invents a
new aesthetic) — here the aesthetic already exists and your job is to codify it faithfully.
Steps
- Read the tokens — don't guess. Find where design decisions actually live:
- Config tokens: Tailwind config (
theme.extend— colors,fontFamily,borderRadius,boxShadow, spacing), CSS custom properties (:root,@theme,data-theme), SCSS/LESS variables, or atokens.*/theme.*file. - Typography: font loading (
next/font,@font-face,<link>), families, weights, the type scale, and any display/accent face used differently from body. - Color & theming: the palette and the semantic names layered on it (
background,surface,muted,accent,border), plus the dark-mode strategy (class vsprefers-color-scheme) and how token pairs flip. - Scales: the real radius, spacing, shadow, and border values in use — and which size maps to which kind of element (control vs card vs sheet).
- Components: open the base primitives (
Button,Card,Input, layout shell). Note default radii, whether surfaces use borders / shadows / tone, and the variant set. - Motion & atmosphere: transition durations/easings, hover/active patterns,
prefers-reduced-motionhandling, and any grain, gradient, glow, or background wash.
- Config tokens: Tailwind config (
- See it, don't just read it. Run the app (or open Storybook / existing screenshots) and look at 2–3 real screens in both themes. Code lies — dead tokens, inline overrides, one-off styles. Trust what renders; reconcile it with the tokens.
- Derive the rules, not the inventory. A design system is the handful of non-obvious constraints that make pages look right — what defines a surface, what never gets a border, the radius scale, how sections are separated, the one signature move. Aim for 6–9 load-bearing rules, each citing real class/token names. A dump of every variable is not a design system.
- Write the skill. Create
skills/<name>-design/SKILL.mdfollowing the skeleton below, named after the product or aesthetic. Put copy-paste token values and 2–4 real code snippets from the app in a siblingREFERENCE.mdif they run long; keepSKILL.mddense. - Validate and dogfood. Run
npm run check, then apply the new skill to restyle one small component and screenshot it in both themes — it should be indistinguishable from the source app. If it isn't, a rule is wrong or missing.
Output skeleton (the design skill you generate)
---
name: <product>-design
description: Apply the <product> "<aesthetic name>" design system — <3-5 word essence>. Use
when building or restyling pages/components in <product>, or when the user mentions
"<signature terms>" or asks to make a page match <product>.
---
# <Product> Design System
<one-paragraph thesis: the single mental model that explains the whole design>
## The N rules
1. **<Grammar rule>.** <real token values and the class names that carry them>
… (6–9 rules)
## Workflow for a new page
1. … the order you actually build a screen in this system
## Pitfalls (each shipped as a bug once)
- <concrete failure mode observed in the code/UI> → <the fix>
## Tokens / reference
<the token table, or a link to REFERENCE.md>Model the density and voice on the project's own well-written docs — every line should save the next agent a lookup.
Guardrails
- Grounded only. Never document a token, class, or component you haven't found in the tree and confirmed on screen.
- Rules over inventory. 6–9 constraints that carry the look beat a wall of variables.
- Portability. An extracted design skill is usually product-specific (brand colors,
product name, private aesthetic). Keep it local unless it's genuinely generic and meant
to be shared — add
skills/<name>-design/to.gitignoreso brand-specific design skills never publish by accident. Strip any secret, internal URL, or machine-specific path from the output. - Leave committing to the
commit/shipskills.
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.

