Extract and consolidate reusable components, design tokens, and patterns into your design system. Identifies opportunities for systematic reuse and enriches your component library.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Extract and consolidate reusable components, design tokens, and patterns into your design system. Identifies opportunities for systematic reuse and enriches your component library.
user-invokable
true
argument-hint
["TARGET=<value>"]
Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse.
Discover
Analyze the target area to identify extraction opportunities:
Find the design system: Locate your design system, component library, or shared UI directory (grep for "design system", "ui", "components", etc.). Understand its structure:
Component organization and naming conventions
Design token structure (if any)
Documentation patterns
Import/export conventions
CRITICAL: If no design system exists, ask before creating one. Understand the preferred location and structure first.
Identify patterns: Look for:
Repeated components: Similar UI patterns used multiple times (buttons, cards, inputs, etc.)
Hard-coded values: Colors, spacing, typography, shadows that should be tokens
Inconsistent variations: Multiple implementations of the same concept (3 different button styles)