extract-design-system
Installation
SKILL.md
Extract Design System — Tokenization Mastery
Mandatory Pre-Flight Context Inspection
Before extracting design systems or tokenizing CSS variables, you MUST inspect:
- 3+ Repetition Frequency Rule (Section 15) → Only tokenize values that recur 3+ times across components to prevent variable bloat
- Semantic Naming Convention (Section 17) → Use functional/semantic names (
--color-primary) rather than literal colors (--red-500) - Accessibility Token Contract (Section 110) → Ensure extracted text and surface tokens satisfy a min 4.5:1 WCAG AA contrast ratio
Activation Boundaries
- Activate when: Operating in tasks requiring Design system extraction and tokenization mastery. Identifying repeated HTML/CSS patterns, extracting CSS variables, generating design tokens (colors, spacing, typography), building reusable component schemas, and standardizing ad-hoc styles into cohesive global systems. Use when refactoring messy CSS into a unified design system..
- DO NOT activate when: The task falls strictly outside extract-design-system domain or belongs to a different dedicated specialist.