| name | extract |
| description | Pull reusable patterns from the codebase into a design system. Identifies shared tokens, repeated components, and common patterns. |
| user-invokable | true |
/extract — Design System Extraction
Analyze the codebase for reusable patterns:
- Extract shared color values into tokens
- Identify repeated spacing values for the scale
- Find common typography patterns
- Detect repeated component structures
- Suggest a token file and component library structure
This is the reverse of /tokens — instead of generating a system, it discovers one from existing code.