What problem does it solve?
Identifies duplicated UI implementations, hard-coded styling values, and inconsistent component variations, then consolidates them into reusable components, design tokens, and documented patterns to reduce maintenance, improve consistency, and speed up development.
Core Features & Use Cases
- Pattern discovery: Scan code and design artifacts to locate repeated components, layout patterns, and hard-coded values that should become tokens.
- Extraction & refinement: Define component APIs, accessible behavior, sensible defaults, and semantic design tokens for color, spacing, and typography.
- Migration planning: Produce a prioritized migration path with search-and-replace guidance, tests to validate parity, and documentation updates for the shared library.
- Use Case: Consolidate three variations of a button and global color values into a single button component with semantic tokens and update pages to consume the shared implementation.
Quick Start
Run the extract skill on the target UI directory (for example, src/components) and return a prioritized list of components to create, tokens to extract, and a step-by-step migration plan.