SkillAgentSearch skills...

design-system-extract

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

Install / Use

npx skills add Trystan-SA/product-engineer-skills --skill design-system-extract

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

81/100

Category

Design

Supported Platforms

Universal

Our assessment of design-system-extract

design-system-extract scores 81/100 on our quality scale, 231st of 273 Design skills we index.

Its SKILL.md is 3.6 KB long, split into 6 sections and no code examples: a solid amount of guidance for an agent.

With 2,066 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
11/20
Description
15/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 4 days ago, so design-system-extract is actively maintained.
  • Our last check on 2026-11-28 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-11-28. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

design-system-extract compared with similar skills

All 4 of these similar skills score higher than design-system-extract; compare them before choosing.

SkillScoreStarsUpdatedFormat
design-system-extract (this skill)by Trystan-SA812.1k4d agoSKILL.md
taste-skillby Leonxlnx100122.3k1d agoCLAUDE.md
archifyby tt-a1i100101.0ktodayCLAUDE.md
hyperframesby heygen-com10091.5ktodayCLAUDE.md
rufloby ruvnet10082.6ktodayCLAUDE.md

Frequently asked questions

How do I install design-system-extract?
Run npx skills add Trystan-SA/product-engineer-skills --skill design-system-extract. The install tabs above show the steps for each supported agent.
Which AI agents does design-system-extract work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is design-system-extract safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is design-system-extract still maintained?
The repository was last updated 4 days ago, so design-system-extract is actively maintained.

name: design-system-extract description: 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.

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 @theme block in CSS. Tailwind v3 — theme.extend in 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"] or prefers-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.

Related Skills

View on GitHub
GitHub Stars2.1k
CategoryDesign
Updated4d ago
Forks245

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions
design-system-extract — Universal Skill: Install & Safety Check | SkillAgent