From interface-design
Extracts design patterns from UI code by analyzing repeated spacing, radius, button, card, and depth values, then generates a system.md design system file.
How this command is triggered — by the user, by Claude, or both
Slash command
/interface-design:extractcommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
# interface-design extract Extract design patterns from existing code to create a system. ## Usage ## What to Extract **Scan UI files (tsx, jsx, vue, svelte) for:** 1. **Repeated spacing values** 2. **Repeated radius values** 3. **Button patterns** 4. **Card patterns** 5. **Depth strategy** **Then prompt:** ## Implementation 1. Glob for UI files 2. Parse for repeated values 3. Identify common patterns 4. Suggest system based on frequency 5. Offer to create system.md 6. Let user customize before saving
Extract design patterns from existing code to create a system.
/extract # Extract from common UI paths
/extract <path> # Extract from specific directory
Scan UI files (tsx, jsx, vue, svelte) for:
Repeated spacing values
Found: 4px (12x), 8px (23x), 12px (18x), 16px (31x), 24px (8x)
→ Suggests: Base 4px, Scale: 4, 8, 12, 16, 24
Repeated radius values
Found: 6px (28x), 8px (5x)
→ Suggests: Radius scale: 6px, 8px
Button patterns
Found 8 buttons:
- Height: 36px (7/8), 40px (1/8)
- Padding: 12px 16px (6/8), 16px (2/8)
→ Suggests: Button pattern: 36px h, 12px 16px padding
Card patterns
Found 12 cards:
- Border: 1px solid (10/12), none (2/12)
- Padding: 16px (9/12), 20px (3/12)
→ Suggests: Card pattern: 1px border, 16px padding
Depth strategy
box-shadow found: 2x
border found: 34x
→ Suggests: Borders-only depth
Then prompt:
Extracted patterns:
Spacing:
Base: 4px
Scale: 4, 8, 12, 16, 24, 32
Depth: Borders-only (34 borders, 2 shadows)
Patterns:
Button: 36px h, 12px 16px pad, 6px radius
Card: 1px border, 16px pad
Create .interface-design/system.md with these? (y/n/customize)
npx claudepluginhub ciso-99/interface-design --plugin interface-design10plugins reuse this command
First indexed Jan 20, 2026
Showing the 6 earliest of 10 plugins
/extractExtracts repeated Tailwind class combos and markup into reusable components, and lifts magic values into CSS design tokens. Accepts a file or component path.
/save-patternsAnalyzes recent code changes and design decisions, suggesting reusable patterns to preserve as design intent with documentation locations for review.
/style-extractExtracts style variables (colors, typography, spacing, border-radius, shadows) from Vue components, CSS/SCSS files, or design images. Outputs JSON or CSS variables and optionally compares against an existing style spec.
/design-reviewReviews existing UI code for design issues, usability problems, and improvement opportunities. Provides actionable recommendations with interactive configuration and state tracking.
/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.