Design System Management

SkillMedia

Design system management: W3C Design Tokens (DTCG), component catalog, themes. Actions: create, update, sync, validate, export, discover design system. Topics: tokens, themes, component catalog, brand identity, visual consistency.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Design System Management skill

What this skill tells your AI

The instructions your AI receives, as published by typv/nest-turbo-starter in .claude/skills/design-system/SKILL.md and read by ahel’s review.

Create and maintain design systems with W3C Design Tokens (DTCG), component catalogs, and multi-theme configurations.

Default (No Arguments)

If invoked without arguments, use AskUserQuestion to present available operations:

OperationDescription
createInitialize design system — scaffold tokens, catalog, themes
updateAdd or modify tokens, components, or themes
syncSync tokens from Figma variables (requires Figma MCP)
validateCheck W3C DTCG compliance and detect issues
exportConvert tokens.json to target format (CSS vars, Tailwind, etc.)
discoverScan codebase for existing design patterns → suggest tokens

Present as options via AskUserQuestion with header "Design System", question "What would you like to do?".

Prerequisites

MANDATORY: Activate ui-ux-pro-max skill FIRST for actions: create, update, discover. This provides palette, typography, and style intelligence for design decisions.

Activation: Skill(skill: "ui-ux-pro-max")

Routing

Parse $ARGUMENTS first word:

ActionActivate ui-ux-pro-maxLoad ReferenceWorkflow
createYesAll 3 referencesInteractive discovery → scaffold docs/design-system/
updateYesreferences/token-schema.mdRead existing tokens → modify → validate → write
syncNoreferences/token-schema.mdCheck Figma MCP → get_variable_defs → merge tokens.json
validateNoreferences/token-schema.mdRun scripts/validate-tokens.py → report results
exportNoreferences/token-schema.mdRun scripts/export-tokens.py → output converted tokens
discoverYesreferences/component-catalog.md + references/token-schema.mdScan codebase → suggest tokens + components
emptyAskUserQuestion (see Default)

Subcommands

SubcommandReferencePurpose
Token schema & validationreferences/token-schema.mdW3C DTCG spec, types, naming, validation rules
Component catalogreferences/component-catalog.mdLightweight catalog template and discovery
Theme configurationreferences/theme-config.mdMulti-theme structure (base + light/dark overrides)

Output Structure

All output files go to docs/design-system/:

docs/design-system/
├── design-principles.md     # Visual principles, do's/don'ts, rationale (prose)
├── tokens.json              # W3C DTCG source of truth (base tokens)
├── component-catalog.md     # Component inventory (name, description, status, path)
└── themes/
    ├── light.json           # Light theme token overrides
    └── dark.json            # Dark theme token overrides

Create Workflow

  1. Activate ui-ux-pro-max
  2. Ask user about project type, brand colors, typography preferences via AskUserQuestion
  3. Use ui-ux-pro-max intelligence to recommend palette, font pairings, spacing scale
  4. Scaffold docs/design-system/ directory
  5. Write tokens.json with base tokens (color, dimension, fontFamily, fontWeight, shadow)
  6. Write themes/light.json and themes/dark.json with semantic overrides
  7. Run discover to scan codebase → populate component-catalog.md
  8. Run validate to confirm schema compliance

Figma Sync (Optional)

For sync action — requires Figma MCP plugin:

  1. Check if Figma MCP is available (test with get_variable_defs)
  2. If available: extract variables → map to W3C DTCG types → merge into tokens.json
  3. If unavailable: notify user, suggest manual token definition via create or update
  4. Never block on Figma — all actions work without it

Validation & Security

Load references/token-schema.md for full rules. Key checks:

  • Schema: Required fields per token type ($type, $value)
  • Naming: kebab-case, dot-separated groups (color.primary.500)
  • Security: Reject values containing url(), expression(), @import, <script>, javascript:
  • Consistency: Same keys must exist across base and all theme files
  • Duplicates: No duplicate token names within same group

Export

Read tokens.json → convert to requested format:

TargetOutput
CSS Custom Properties:root { --color-primary-500: #xxx; }
Tailwind Configtheme.extend object (use JSON.stringify for safety)
JSON (flat)Flattened key-value pairs

Export is extensible — add formats as needed without changing core skill.

Scripts

Deterministic operations use Python scripts (stdlib only, no pip deps):

Validate

python .claude/skills/design-system/scripts/validate-tokens.py [tokens-dir]
# Default tokens-dir: docs/design-system/
# Exit 0 = valid, Exit 1 = errors found

Export

python .claude/skills/design-system/scripts/export-tokens.py [tokens-dir] --format css|tailwind|json-flat [--theme light|dark] [--output file]

Signals

GitHub stars
224
Forks
47
Last commit
Aug 2026

ahel review

  • K6low
    bundled executables the agent is told to run

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
design-system-typv
Source
github.com/typv/nest-turbo-starter