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)