What problem does it solve?
Consolidates duplicated UI code, hard-coded styling, and inconsistent component variants into a coherent design system so teams can reliably reuse components and tokens instead of reimplementing patterns across a codebase.
Core Features & Use Cases
- Discovery & Analysis: Scan component trees and UI directories to identify repeated components, hard-coded values, and inconsistent variants worth extracting.
- Extraction & Enrichment: Propose reusable components with clear props, accessible defaults, and semantic design tokens for colors, spacing, and typography.
- Migration & Documentation: Provide a prioritized migration plan, replacement strategy, and documentation examples to safely refactor existing uses.
- Use Case: Consolidate three different button implementations into a single accessible Button component with tokenized colors and spacing, and update usages across the app.
Quick Start
Run the extract skill on the project's components directory to produce a prioritized extraction plan with suggested components, tokens, and migration steps.