Purpose: Extract, organize, and maintain reusable design components as they're discovered during Phase 4 specification work.
Key Principle: Design system is optional and on-demand. Components are added as they surface, not created upfront.
Triggered from Phase 4:
Not a Separate Phase:
Chosen during Phase 1 (Project Exploration):
../wds-6-asset-generation/workflow-figma.md for complete Figma workflowPage Specification (Logical View)
├── Component references
├── Page-specific content
└── Layout/structure
Design System (Visual/Component Library)
├── Component definitions
├── States & variants
└── Styling/tokens
Functionality/Storyboards (Behavior)
├── Interactions
├── State transitions
└── User flows
Specification = Content (what the component is) Organization = Structure (where it lives) Design System = Optional (chosen in Phase 1)
File: design-system-router.md
Purpose: Identify if component is new, similar, or duplicate
Flow:
Component specified → Router checks design system
├── No similar component → Create new
└── Similar component found → Opportunity/Risk Assessment
Folder: assessment/
Purpose: Help designer make informed decisions about component reuse
7 Micro-Instructions:
Folder: operations/
Purpose: Execute design system actions
4 Operations:
Folder: templates/
Purpose: Consistent design system file structure
3 Templates:
Called from: workflows/wds-4-ux-design/steps-p/step-03-components-objects.md
Integration Point:
For each component:
1. Specify component (Phase 4)
2. Component specification complete
3. → Check: Design system enabled?
4. → YES: Call design-system-router.md
5. → Router extracts component-level info
6. → Router returns reference
7. Update page spec with reference
8. Continue to next component
Result:
Risk: How to recognize "same" vs "similar" vs "different"
Mitigation: Similarity scoring + designer judgment via assessment flow
Risk: Page → Component → Functionality → Component
Mitigation: Clear hierarchy (Page → Component → Functionality)
Risk: Component evolves, references may break
Mitigation: Reference IDs + update notifications
Risk: Icon in button? Nested components?
Mitigation: Designer conversation + guidelines in shared knowledge
Risk: When to initialize design system?
Mitigation: Auto-initialize on first component if enabled
Risk: Component behavior vs page flow
Mitigation: Clear separation guidelines in shared knowledge
Location: data/design-system/
Purpose: Centralized design system principles referenced by all component types
Documents:
token-architecture.md - Structure vs style separationnaming-conventions.md - Token naming rulesstate-management.md - Component statesvalidation-patterns.md - Form validationcomponent-boundaries.md - What's a component?figma-component-structure.md - Figma component organization (Mode B)Usage: Component-type instructions reference these documents as needed
Location: ../wds-6-asset-generation/workflow-figma.md
Purpose: Enable seamless Figma ↔ WDS synchronization for custom design systems
Documents:
figma-designer-guide.md - Step-by-step guide for designersfigma-mcp-integration.md - Technical MCP integration guidefigma-component-structure.md - Component organization in Figma (in data/design-system/)prototype-to-figma-workflow.md - NEW: Extract HTML prototypes to Figma for visual refinementwhen-to-extract-decision-guide.md - NEW: Decision framework for prototype extractionWorkflows:
A. Figma → WDS (Existing):
B. Prototype → Figma → WDS (NEW):
Key Features:
Key Feature: Companies can fork WDS and customize design system standards
Customization Points:
data/design-system/ - Company-specific principlesobject-types/ - Company component patternstemplates/ - Company output formatsResult: Every project automatically uses company standards
D-Design-System/
├── 01-Visual-Design/ [Early design exploration - pre-scenario]
│ ├── mood-boards/ [Visual inspiration, style exploration]
│ ├── design-concepts/ [NanoBanana outputs, design explorations]
│ ├── color-exploration/ [Color palette experiments]
│ └── typography-tests/ [Font pairing and hierarchy tests]
├── 02-Assets/ [Final production assets]
│ ├── logos/ [Brand logos and variations]
│ ├── icons/ [Icon sets]
│ ├── images/ [Photography, illustrations]
│ └── graphics/ [Custom graphics and elements]
├── components/
│ ├── button.md [Component ID: btn-001]
│ ├── input-field.md [Component ID: inp-001]
│ ├── card.md [Component ID: crd-001]
│ └── ...
├── design-tokens.md Colors, spacing, typography
├── component-library-config.md Which library (if Mode C)
└── figma-mappings.md Figma endpoints (if Mode B)
Component File Structure:
# Button Component [btn-001]
**Type:** Interactive
**Library:** shadcn/ui Button (if Mode C)
**Figma:** [Link] (if Mode B)
## Variants
- primary
- secondary
- ghost
## States
- default
- hover
- active
- disabled
## Styling
[Design tokens or Figma reference]
## Used In
- Login page (login button)
- Signup page (create account button)
- Dashboard (action buttons)
design-system-router.md to understand routing logicassessment/ folder for decision-making processoperations/ for available actionsdata/design-system/ for principlestemplates/ for consistent outputThis workflow is called automatically from Phase 4. You don't need to run it manually.