From Frontend
Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse.
How this command is triggered — by the user, by Claude, or both
Slash command
/frontend:extractimpeccable/reference/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Extract Flow Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse. ## Step 1: Discover the Design System Find the design system, component library, or shared UI directory. Understand its structure: component organization, naming conventions, design token structure, import/export conventions. **CRITICAL**: If no design system exists, STOP and call the AskUserQuestion tool to clarify. before creating one. Understand the preferred location and structure first. ## Step 2: Identify Patterns Look for extra...
Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse.
Find the design system, component library, or shared UI directory. Understand its structure: component organization, naming conventions, design token structure, import/export conventions.
CRITICAL: If no design system exists, STOP and call the AskUserQuestion tool to clarify. before creating one. Understand the preferred location and structure first.
Look for extraction opportunities in the target area:
Assess value: only extract things used 3+ times with the same intent. Premature abstraction is worse than duplication.
Create a systematic plan:
IMPORTANT: Design systems grow incrementally. Extract what is clearly reusable now, not everything that might someday be reusable.
Build improved, reusable versions:
Replace existing uses with the new shared versions:
Update design system documentation:
NEVER:
Remember: A good design system is a living system. Extract patterns as they emerge, enrich them thoughtfully, and maintain them consistently.
npx claudepluginhub est7/dotclaude --plugin frontend/extractReverse-engineers design systems or products from codebases or live sites — extracts design tokens, components, architecture metadata, and product requirements.
/extractExtracts a function, component, module, hook, or class method from existing code into a separate unit, preserving behavior and updating all call sites.
/extractExtracts repeated Tailwind class combos and markup into reusable components, and lifts magic values into CSS design tokens. Accepts a file or component path.
/extractExtracts text from PDF files or directories to Markdown (or TXT) using a multi-backend system with CLI options like --backends and --format.