一键导入
design-workflows
Design system creation, UX research workflows, and three-lens design review cycles for design-focused phases
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design system creation, UX research workflows, and three-lens design review cycles for design-focused phases
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
DEPRECATED compatibility shim; workflow-common-core is canonical for all conventions referenced here
Interprets --just-* and --skip-* command flags for /legion:build and /legion:review, validates flag combinations against rules, and resolves the matching team template from intent-teams.yaml. Use when the user passes intent flags to build or review commands, asks about flag combinations, or needs to filter agent teams by intent.
Dev-QA loop engine with structured feedback, fix routing, and user escalation for /legion:review
Executes wave-structured plans with personality-injected agents — parallel or sequential per CLI adapter
Maps all 48 Legion agents by division, capability, and task type for intelligent team assembly
Engine for /legion:map. Analyzes an existing codebase, generates CODEBASE.md for backward-compatible architecture context, and writes .planning/codebase/ index artifacts consumed by /legion:start, /plan, /build, /review, /status, and /quick.
| name | design-workflows |
| description | Design system creation, UX research workflows, and three-lens design review cycles for design-focused phases |
| triggers | ["design","ui","ux","brand","visual","component"] |
| token_cost | high |
| summary | Domain-specific workflows for design phases. Covers design system creation, UX research, three-lens review (brand, accessibility, usability). Activates when DSN-* requirements or design keywords detected. |
Structured design workflow engine for Legion. Provides domain-specific decomposition for design-focused phases -- design system creation, UX research planning and synthesis, and three-lens design review (brand, accessibility, usability). All operations produce human-readable markdown artifacts at .planning/designs/.
References:
workflow-common.md (state paths, degradation pattern)workflow-common.md (lifecycle, paths, wave pattern)agent-registry.md Section 4 (Research + Architecture + Visual Design + Brand Review + Feedback)phase-decomposer.md (design domain detection trigger)/legion:plan in plan.md (design questioning and document generation entry point)/legion:build in build.md (design wave execution with research-to-design handoff)Core rules governing design workflows and the detection heuristic that determines when design-specific decomposition activates.
Design-specific decomposition activates when ANY of the canonical triggers below matches — no other triggers. Keyword matches against the phase description are NOT authoritative (they may be used as a non-blocking hint to prompt the user, never as automatic activation).
Canonical triggers (mirror of workflow-common/SKILL.md § Design Phase Detection):
^DSN-\d+ in ROADMAP.md or REQUIREMENTS.mdworkflow_type: design--domain=design to /legion:planSingle source of truth for keywords: .planning/config/intent-teams.yaml under teams.design.keywords[]. Keywords are used only as prompt hints, never for silent activation. When adding a keyword, edit the YAML — do NOT inline keyword lists in this file.
Marketing/design disambiguation (precedence when both triggers fire):
workflow_type frontmatter: that wins over requirement-ID detection.--domain= was passed: that wins over frontmatter and requirement IDs.^MKT-\d+ and ^DSN-\d+ requirement IDs are present in the same phase and no frontmatter/flag overrides: run marketing decomposition — phases with both prefixes are marketing-led, with design as a supporting discipline within the marketing wave.When detected: use design-specific wave patterns (Section 6) and offer design document generation during planning. When not detected: standard phase decomposition applies -- no impact.
DESIGN_DIR = '.planning/designs'
SYSTEM_FILE_PATTERN = '{DESIGN_DIR}/{project-slug}-system.md'
RESEARCH_FILE_PATTERN = '{DESIGN_DIR}/{research-slug}-research.md'
DESIGN_DISCIPLINES = ['design-systems', 'ux-architecture', 'brand-identity',
'user-research', 'visual-storytelling', 'delight-polish']
TOKEN_CATEGORIES = ['color', 'typography', 'spacing', 'elevation', 'border-radius',
'animation', 'breakpoint', 'z-index']
| Design Discipline | Primary Agent | Supporting Agent |
|---|---|---|
| Design Systems | design-ui-designer | design-brand-guardian |
| UX Architecture | design-ux-architect | design-ux-researcher |
| Brand & Identity | design-brand-guardian | design-ui-designer |
| User Research | design-ux-researcher | design-ux-architect |
| Visual Storytelling | design-visual-storyteller | design-brand-guardian |
| Delight & Polish | design-whimsy-injector | design-ui-designer |
.planning/designs/ directory does not exist: create it when the first design document is generatedStructured design system creation with guided questioning, document generation, agent team assembly, token taxonomy, component architecture, and lifecycle management. This section drives the design system flow triggered by /legion:plan when a design phase is detected.
When a design phase is detected during /legion:plan, gather design parameters using AskUserQuestion. This replaces the generic decomposition questioning for design phases.
Key questions (adapt based on responses -- do not ask all if answers imply others):
Q1: "What type of design work does this phase focus on?"
Options:
- "Design system / Component library" -- full system with tokens, components, guidelines
- "UX research / User testing" -- research-focused, insights and recommendations
- "Brand refresh / Visual identity" -- brand-focused, identity system and guidelines
- "UI implementation / Screen design" -- applying an existing system to new screens
Q2: "What's the scope of the design system?" (only if Q1 = design system)
Options:
- "Foundation only (tokens + guidelines)" -- colors, typography, spacing, principles
- "Foundation + Core components" -- plus buttons, inputs, cards, navigation
- "Full system (foundation + components + patterns)" -- plus layouts, flows, page templates
Q3: "Does this project have existing brand guidelines?"
Options:
- "Yes, established brand" -- design must align with existing identity
- "New brand / No guidelines" -- brand development is part of the work
- "Partial / Needs refresh" -- some guidelines exist but need updating
Q4: "What platforms need to be supported?" (multi-select)
Options:
- "Web (responsive)"
- "Mobile (iOS/Android)"
- "Desktop application"
- "Design documentation only"
Q5: "What are the key accessibility requirements?"
Options:
- "WCAG AA (standard)" -- 4.5:1 contrast, keyboard nav, screen reader support
- "WCAG AAA (enhanced)" -- 7:1 contrast, extended requirements
- "Basic compliance" -- minimum viable accessibility
If the user has already provided design details in the phase description or CONTEXT.md, extract answers from existing context rather than re-asking. Only ask for missing parameters.
After brief questioning, generate the design system document at:
{DESIGN_DIR}/{project-slug}-system.md
The slug is derived from the project name: lowercase, spaces to hyphens, strip non-alphanumeric (except hyphens), max 40 characters.
Example: "Dashboard Redesign" becomes dashboard-redesign
Use the format from Section 5.1. Populate all sections from the brief answers:
For design projects, use the agent-registry Section 4 Design Sprint team assembly pattern:
Required roles (always included):
| Role | Agent | Responsibilities |
|---|---|---|
| Design Lead | design-ui-designer | Component library, visual system, design tokens, accessibility compliance, developer handoff |
| Research Lead | design-ux-researcher | User research, usability testing, persona development, journey mapping, design validation |
Discipline-specific roles (based on project scope from Q1-Q3):
Optional roles (add based on project needs):
| Condition | Role | Agent | Division |
|---|---|---|---|
| Project has established brand (Q3 = "Yes") | Brand Alignment | design-brand-guardian | design |
| Project needs CSS/layout foundation | Technical Foundation | design-ux-architect | design |
| Project is visually intensive | Visual Design | design-visual-storyteller | design |
| Project needs micro-interactions (Q1 includes polish) | Delight Design | design-whimsy-injector | design |
| Design-to-code handoff required (Q4 includes web/mobile) | Frontend Dev | engineering-frontend-developer | engineering |
| User feedback integration needed | Feedback Synthesis | product-feedback-synthesizer | product |
Design tokens follow a three-tier hierarchy: Global --> Semantic --> Component.
### Token Structure
| Category | Global Token | Semantic Token | Component Token |
|----------|-------------|----------------|-----------------|
| Color | color-blue-500 | color-primary | button-color-bg |
| Typography | font-size-16 | font-size-body | input-font-size |
| Spacing | spacing-16 | spacing-md | card-padding |
| Elevation | shadow-md | shadow-card | dialog-shadow |
| Border Radius | radius-8 | radius-md | button-radius |
| Animation | duration-200 | duration-fast | tooltip-duration |
| Breakpoint | breakpoint-768 | breakpoint-tablet | -- |
| Z-index | z-50 | z-overlay | modal-z-index |
Naming convention: {category}-{modifier} for global, {category}-{semantic-name} for semantic, {component}-{property} for component.
Components follow atomic design hierarchy: Tokens --> Atoms --> Molecules --> Organisms --> Templates.
| Level | Examples | Defined By |
|---|---|---|
| Tokens | Colors, fonts, spacing, shadows | design-ui-designer |
| Atoms | Button, Input, Label, Icon, Badge | design-ui-designer |
| Molecules | Form Field (label + input + error), Search Bar, Nav Item | design-ui-designer |
| Organisms | Header, Sidebar, Form, Card Grid, Data Table | design-ux-architect |
| Templates | Page layouts, Dashboard layout, Settings page | design-ux-architect |
Each component specification includes:
Unplanned --> Research --> Designing --> Review --> Complete
ResearchDesigningReviewCompleteDesign project status is tracked in the design document header, not in STATE.md.
User research planning, data collection methodology, synthesis into actionable deliverables, and handoff to design agents. This section drives the research flow for design phases that include UX research scope.
When UX research is part of the design phase (Q1 = "UX research" or when research is part of Wave 1), the Research Lead (design-ux-researcher) produces a research plan.
Research plan components:
1. Research Goals -- what questions need answering
2. Methodology Selection -- which methods to use (see Section 3.2)
3. Participant Profile -- who to recruit, how many
4. Data Collection Protocol -- interview guide, test script, survey design
5. Analysis Approach -- how data will be synthesized
6. Timeline -- research phases with milestones
| Method | When to Use | Produces | Agent |
|---|---|---|---|
| User Interviews | Understanding motivations, mental models, pain points | Interview transcripts, thematic analysis | design-ux-researcher |
| Usability Testing | Validating existing designs or prototypes | Task completion rates, error analysis, recommendations | design-ux-researcher |
| Competitive Analysis | Understanding market landscape, identifying opportunities | Competitive matrix, feature gap analysis | design-ux-researcher |
| Card Sorting | Defining information architecture | Category structure, navigation hierarchy | design-ux-researcher |
| Heuristic Evaluation | Quick expert review of existing interfaces | Heuristic findings, severity ratings | design-ux-researcher + design-ux-architect |
| Survey / Questionnaire | Quantitative validation, preference testing | Statistical analysis, preference rankings | design-ux-researcher |
| Analytics Review | Understanding current user behavior | Behavior flows, drop-off analysis, feature usage | design-ux-researcher |
| A/B Testing | Comparing design alternatives | Statistical significance, conversion impact | design-ux-researcher |
After research is complete, synthesize findings into:
User Personas:
| Attribute | Description |
|-----------|-------------|
| Name | {fictional representative name} |
| Role/Context | {who they are, what they do} |
| Goals | {what they want to achieve} |
| Frustrations | {pain points and barriers} |
| Behaviors | {how they currently approach tasks} |
| Quote | {representative verbatim from research} |
User Journey Map:
| Stage | Actions | Thoughts | Emotions | Pain Points | Opportunities |
|-------|---------|----------|----------|-------------|---------------|
| {stage} | {what user does} | {what user thinks} | {emoji: positive/neutral/negative} | {friction} | {design opportunity} |
Research Recommendations:
Each recommendation links back to specific findings and maps to design actions:
| Finding | Impact | Recommendation | Design Action | Priority |
|---------|--------|---------------|--------------|----------|
| {observed behavior/insight} | {who/what it affects} | {what to do about it} | {specific design change} | High/Medium/Low |
After research synthesis, generate the research report at:
{DESIGN_DIR}/{research-slug}-research.md
Use the format from Section 5.2. The Research Lead populates all sections from research activities.
Research findings feed directly into design decisions:
During Wave 2, design agents receive the research report as context: @.planning/designs/{research-slug}-research.md
Three-lens design-specific quality gates that replace single-reviewer design review when design documents exist. Each lens runs in parallel with dedicated criteria and a specialist reviewer agent.
Design phases use three specialized review lenses running in parallel (not sequentially). Each lens has a dedicated reviewer agent and specific criteria.
| Lens | Reviewer | Focus Areas |
|---|---|---|
| Brand | design-brand-guardian | Visual identity compliance, brand voice consistency, color/typography adherence, logo usage, brand personality expression |
| Accessibility | design-ux-architect | WCAG compliance level (AA or AAA per Q5), color contrast ratios, keyboard navigation, screen reader support, focus management, responsive behavior, reduced motion support |
| Usability | design-ux-researcher | Nielsen's 10 heuristics, information architecture clarity, user flow completeness, error prevention and recovery, learnability, consistency with established patterns |
Design review findings use these categories (extending the standard review-loop finding format):
| Category | Severity | Description |
|---|---|---|
| Brand Violation | BLOCKER | Design contradicts established brand guidelines |
| Accessibility Failure | BLOCKER | WCAG compliance violation at the required level |
| Usability Critical | BLOCKER | User cannot complete a primary task |
| Brand Inconsistency | WARNING | Minor brand deviation (e.g., color shade, font weight) |
| Accessibility Gap | WARNING | Accessibility best practice not followed (not a violation) |
| Usability Issue | WARNING | Friction point that degrades but doesn't block user experience |
| Enhancement | INFO | Suggested improvement that would elevate the design |
Brand Review Checklist (design-brand-guardian):
Accessibility Review Checklist (design-ux-architect):
Usability Review Checklist (design-ux-researcher):
When /legion:review runs for a design phase:
.planning/designs/):
a. Use three-lens review instead of the default single-reviewer design mapping
b. Spawn three reviewers in parallel:
Before Wave 2 (design creation) begins, the Design Lead verifies:
During /legion:review for design phases, the review agents check this list against produced artifacts.
Full format specifications for design documents produced at .planning/designs/. These are the canonical output artifacts of design workflows.
# Design System: {Project Name}
**Created:** {YYYY-MM-DD}
**Status:** Research | Designing | Review | Complete
**Scope:** {Foundation | Foundation + Core | Full System}
**Platforms:** {Web, Mobile, Desktop, Documentation}
**Accessibility:** {WCAG AA | WCAG AAA | Basic}
**Owner:** {primary design agent -- typically design-ui-designer}
## Design Principles
1. {Principle name} -- {description and rationale}
2. {Principle name} -- {description and rationale}
3. {Principle name} -- {description and rationale}
## Token Taxonomy
### Color Tokens
| Token | Value | Usage |
|-------|-------|-------|
| color-primary | {value} | Primary actions, links, active states |
| color-secondary | {value} | Secondary actions, accents |
| color-surface | {value} | Background surfaces |
| color-on-surface | {value} | Text on surfaces |
| color-error | {value} | Error states, destructive actions |
| color-success | {value} | Success states, confirmations |
### Typography Tokens
| Token | Value | Usage |
|-------|-------|-------|
| font-family-primary | {value} | Body text, UI elements |
| font-family-heading | {value} | Headings, display text |
| font-size-xs | {value} | Captions, helper text |
| font-size-sm | {value} | Secondary text |
| font-size-md | {value} | Body text |
| font-size-lg | {value} | Subheadings |
| font-size-xl | {value} | Page headings |
### Spacing Tokens
| Token | Value | Usage |
|-------|-------|-------|
| spacing-xs | {value} | Tight spacing (inline elements) |
| spacing-sm | {value} | Compact spacing (form fields) |
| spacing-md | {value} | Standard spacing (sections) |
| spacing-lg | {value} | Generous spacing (page sections) |
| spacing-xl | {value} | Maximum spacing (page margins) |
### Additional Tokens
| Category | Tokens Defined |
|----------|---------------|
| Elevation | {shadow tokens for cards, modals, dropdowns} |
| Border Radius | {radius tokens from sharp to pill} |
| Animation | {duration and easing tokens} |
| Breakpoints | {responsive breakpoint values} |
| Z-index | {layering scale for overlays, modals, tooltips} |
## Component Architecture
### Atoms
| Component | States | Variants | Accessibility |
|-----------|--------|----------|--------------|
| {component} | {states} | {variants} | {ARIA, keyboard} |
### Molecules
| Component | Composed Of | States | Accessibility |
|-----------|------------|--------|--------------|
| {component} | {atom list} | {states} | {ARIA, keyboard} |
### Organisms (if scope includes)
| Component | Composed Of | Responsive Behavior |
|-----------|------------|-------------------|
| {component} | {molecule list} | {breakpoint behavior} |
## Agent Assignments
| Agent | Role | Responsibilities | Deliverables |
|-------|------|-----------------|--------------|
| {agent-id} | {role} | {what they do} | {what they produce} |
## Platform Guidelines
| Platform | Considerations |
|----------|---------------|
| {platform} | {platform-specific notes} |
## Timeline
| Phase | Activities |
|-------|-----------|
| Research | {research activities from Wave 1} |
| Design | {design activities from Wave 2} |
| Review | {review activities} |
| Handoff | {developer handoff} |
# UX Research: {Research Title}
**Created:** {YYYY-MM-DD}
**Status:** Planning | In Progress | Complete
**Methodology:** {methods used}
**Participants:** {count and profile}
**Owner:** {design-ux-researcher}
## Research Goals
1. {Research question 1}
2. {Research question 2}
3. {Research question 3}
## Methodology
| Method | Purpose | Participants | Duration |
|--------|---------|-------------|----------|
| {method} | {what it answers} | {count} | {time} |
## Key Findings
### Finding 1: {title}
- **Observation**: {what was observed}
- **Impact**: {who/what it affects}
- **Evidence**: {supporting data points}
- **Severity**: High | Medium | Low
### Finding 2: {title}
...
## User Personas
### Persona: {Name}
| Attribute | Description |
|-----------|-------------|
| Role/Context | {who they are} |
| Goals | {what they want} |
| Frustrations | {pain points} |
| Behaviors | {how they act} |
| Quote | "{representative quote}" |
## User Journey Map
| Stage | Actions | Thoughts | Emotions | Pain Points | Opportunities |
|-------|---------|----------|----------|-------------|---------------|
| {stage} | {actions} | {thoughts} | {emoji} | {pain} | {opportunity} |
## Recommendations
| Finding | Recommendation | Design Action | Priority |
|---------|---------------|--------------|----------|
| {finding ref} | {what to do} | {specific change} | High/Medium/Low |
## Next Steps
- {action item 1}
- {action item 2}
Design system statuses:
| Status | Meaning | Set When |
|---|---|---|
| Research | UX research and brand audit underway | During Wave 1 execution |
| Designing | Design system creation in progress | During Wave 2 execution |
| Review | Three-lens review cycle active | During /legion:review |
| Complete | Design system documented, handoff ready | After review passes and outcomes recorded |
Research report statuses:
| Status | Meaning | Set When |
|---|---|---|
| Planning | Research plan being defined | During /legion:plan research scoping |
| In Progress | Data collection and analysis underway | During Wave 1 execution |
| Complete | Findings synthesized, recommendations produced | After research synthesis |
A single phase may produce multiple design documents. Each gets its own file:
.planning/designs/dashboard-redesign-system.md.planning/designs/dashboard-user-research.md.planning/designs/mobile-app-system.mdThe phase plan references all design documents in its @context block.
How callers consume this skill. Each integration point follows the same contract: detect design phase, use design patterns if detected, skip silently if not.
In phase-decomposer, after reading ROADMAP phase details:
1. Run Design Domain Detection (Section 1 heuristic)
- Check for DSN-* requirement IDs in the phase
- Check for design keywords in the phase description
- Check if agent-registry recommends majority design agents
2. If design phase detected:
a. Read design-workflows skill for domain-specific patterns
b. Run Design Brief Questioning (Section 2.1) via AskUserQuestion
c. Generate design system document (Section 2.2) at .planning/designs/{slug}-system.md
d. If research is in scope: generate research report template at .planning/designs/{slug}-research.md
e. Use design-specific wave pattern for plan decomposition:
Wave 1: Research & Foundation
Agents: design-ux-researcher (research lead) + design-brand-guardian (brand audit)
Produces: Research brief, user insights, brand foundation, design principles
Wave 2A: Backend Architecture Design (parallel with 2B)
Agents: engineering-backend-architect + design-ux-architect
Input: Wave 1 research + project constraints
Produces: API contract design, data model specifications, error response standards, authentication flows
Note: Only activates if phase scope includes backend/API work. Skip for frontend-only design phases.
Wave 2B: Frontend Design System (parallel with 2A)
Agents: design-ui-designer (design lead) + design-visual-storyteller
Input: Wave 1 research + brand guidelines as context
Produces: Design system document, component specs, visual language, interaction patterns
Wave 3: Integration Design (only if both 2A and 2B ran)
Agents: engineering-senior-developer + design-ux-architect
Input: Wave 2A API contracts + Wave 2B design system
Produces: Frontend-backend contract alignment, state management patterns, API-to-UI data mapping, error state mapping
Note: Skip if only frontend (2B) or only backend (2A) ran. This wave ensures API responses map cleanly to UI states.
Wave 4 (optional -- only if phase scope includes polish/validation):
Agents: design-whimsy-injector + review agents
Input: Wave 2B design system + Wave 3 integration contracts (if present)
Produces: Enhanced specs with delight, audit reports
f. Generate plan files with design-aware task descriptions
g. Reference design documents in plan context: @.planning/designs/{slug}-system.md
3. If not design phase:
Standard decomposition proceeds (no impact from this skill)
During wave-executor for design phases:
1. Wave 1 agents receive design system document as context
- Design doc path: .planning/designs/{slug}-system.md
- Agent personality is injected per standard personality injection pattern
2. Wave 1 output includes:
- Research findings (if UX research was conducted)
- Brand audit results and design principles
- Token definitions and component requirements
- This is the key handoff artifact between Waves 2A/2B
3. Wave 2A agents (backend architecture) receive:
- Wave 1 SUMMARY.md (research findings, project constraints)
- .planning/CODEBASE.md and .planning/codebase/ (if exists -- codebase map API surface)
- Existing API contracts or schema files from project
Only dispatched when phase scope includes backend/API work.
4. Wave 2B agents (frontend design) receive:
- Design system document (from .planning/designs/)
- Wave 1 SUMMARY.md (contains research findings and brand guidelines)
- Their discipline-specific assignments from the design document
- Platform-specific requirements for their target platforms
5. Wave 3 agents (integration) receive:
- Wave 2A SUMMARY.md (API contracts, data models, error responses)
- Wave 2B SUMMARY.md (component specs, interaction patterns, UI states)
- Focus: align API responses to UI states, map error codes to user-facing messages,
define state management patterns for data flow
Only dispatched when both 2A and 2B ran.
6. If Wave 4 exists:
- Polish/validation agents receive all prior summaries
- Focus is on enhancement and validation, not creation
During review-loop for design phases:
.planning/designs/:
Use three-lens review (Section 4.1):
Every command that integrates with design workflows MUST follow this contract:
1. Check if phase is design (Section 1 heuristic)
2. If yes: use design-specific patterns for that operation
3. If no: standard behavior, skip silently
4. Never error, never block, never require design workflows for non-design phases
5. If a design operation fails mid-way: log the error, continue the workflow
6. Design documents are supplementary artifacts -- workflow completion does not depend on them
This is identical to the Marketing, GitHub, Memory, and Codebase Map degradation pattern -- all optional integrations follow the same contract.
Structured design completeness gate that runs during /legion:plan to score design dimensions and remediate gaps before implementation. Inspired by multi-pass design audit methodologies. Only activates when design phase is detected (Section 1 heuristic).
Run the 7-pass review after phase decomposition (Section 6.1 steps 2a-2e) and before plan finalization (step 2f). The review evaluates the plan's design specifications, not implemented code.
If design-workflows is not active (non-design phase): skip this section entirely.
Each pass is rated 0-10. Scores below 7 trigger remediation (the plan is edited to fill gaps). Scores 8+ receive a quick acknowledgment. Agent: design-ui-designer performs the review.
Pass 1: Information Architecture
Pass 2: Interaction State Coverage
Pass 3: User Journey & Emotional Arc
Pass 4: AI Slop Detection Flag generic AI-generated patterns that signal lazy design:
| Anti-Pattern | Why It's Slop | Better Alternative |
|---|---|---|
| Purple/blue gradient backgrounds | Default AI aesthetic, no brand connection | Brand-derived color with intentional use |
| 3-column icon-in-circle feature grid | Most copied AI layout pattern | Layout that matches content hierarchy |
| Centered-everything layout | Avoids layout decisions | Intentional alignment based on reading flow |
| Uniform border-radius on all elements | Ignores component hierarchy | Radius scale (sharp for data, rounded for CTAs) |
| Decorative gradient blobs | Visual filler with no information | Purposeful illustration or whitespace |
| Generic hero with stock photo | No brand differentiation | Product-specific imagery or typography-led hero |
| Emoji as design elements | Substitutes for real iconography | Custom or curated icon set |
Rating criteria: 10 = zero AI slop patterns detected; each pattern found drops 1 point
Pass 5: Design System Alignment
.planning/designs/?Pass 6: Responsive & Accessibility
Pass 7: Unresolved Design Decisions
After all 7 passes, produce a completion summary:
## Design Review Summary
| Pass | Dimension | Pre-Score | Post-Score | Status |
|------|-----------|-----------|------------|--------|
| 1 | Information Architecture | {N}/10 | {N}/10 | {PASS/REMEDIATED} |
| 2 | Interaction State Coverage | {N}/10 | {N}/10 | {PASS/REMEDIATED} |
| 3 | User Journey & Emotional Arc | {N}/10 | {N}/10 | {PASS/REMEDIATED} |
| 4 | AI Slop Detection | {N}/10 | {N}/10 | {PASS/REMEDIATED} |
| 5 | Design System Alignment | {N}/10 | {N}/10 | {PASS/REMEDIATED} |
| 6 | Responsive & Accessibility | {N}/10 | {N}/10 | {PASS/REMEDIATED} |
| 7 | Unresolved Decisions | {N}/10 | {N}/10 | {PASS/DEFERRED} |
**Overall Design Readiness:** {average score}/10
Append this summary to the plan's CONTEXT.md for downstream consumption by build and review agents.
In the plan command, after step 2e (wave pattern) and before step 2f (plan file generation):
If design phase detected AND settings.review.evaluator_depth == "multi-pass":
Run 7-pass design review (Section 7.2)
For each pass scoring < 7:
Edit the plan to address gaps
Re-score the pass
Append review summary to CONTEXT.md
If average score < 5: warn user that design specifications are weak
Proceed to step 2f with enriched plan
Enhanced design brief methodology that goes beyond questioning to provide opinionated design direction proposals. Extends Section 2.1 (Design Brief Questioning) with aesthetic direction, safe-vs-risk framing, and coherence validation. Agent: design-ui-designer with design-brand-guardian for brand alignment.
After the initial design brief questions (Section 2.1, Q1-Q5), propose 3-5 coherent aesthetic directions. Each direction includes rationale tied to the product's users and positioning.
Built-in direction catalog (select 3-5 most relevant to the product type):
| Direction | Character | Best For | Risk Level |
|---|---|---|---|
| Brutally Minimal | Stark, high-contrast, typography-led | Developer tools, productivity apps | Medium -- can feel cold |
| Refined / Luxury | Generous whitespace, serif accents, muted palette | Premium products, financial services | Low -- safe but potentially generic |
| Playful / Friendly | Rounded forms, warm colors, illustrated elements | Consumer apps, onboarding flows | Medium -- can feel unserious |
| Editorial / Content-First | Strong type hierarchy, reading-optimized layouts | Publishing, documentation, blogs | Low -- proven but distinctive |
| Data-Dense / Dashboard | Compact spacing, monospace accents, information-rich | Analytics, admin panels, monitoring | Medium -- can feel overwhelming |
| Bold / Expressive | Large type, strong color, unconventional layout | Marketing sites, creative portfolios | High -- memorable but polarizing |
Present directions via AskUserQuestion:
"Which aesthetic direction best fits your product?"
Options: [3-5 selected directions with descriptions]
For each major design decision (typography, color, layout, motion), frame options as:
SAFE CHOICE: The category baseline -- what users expect from this type of product.
CREATIVE RISK: A deliberate departure from convention with explicit tradeoff.
Present each decision via AskUserQuestion with safe and risk options clearly labeled.
Injected into all design creation and review contexts. These patterns signal generic AI-generated design:
Blacklisted patterns (never use without explicit user override):
When generating or reviewing design specifications, flag any of these patterns and suggest product-specific alternatives.
Contemporary recommendations by role:
| Role | Recommended | Why |
|---|---|---|
| Display / Headings | Satoshi, General Sans, Instrument Serif, Fraunces | Distinctive, well-crafted, underused |
| Body text | DM Sans, Geist, Outfit, Plus Jakarta Sans | Excellent readability, modern, not overused |
| Monospace / Code | JetBrains Mono, Geist Mono, Berkeley Mono | Purpose-built for code, ligature support |
| System fallback | system-ui stack | Zero loading cost, platform-native |
Overused defaults to avoid (not blacklisted, but recommend alternatives): Inter, Roboto, Open Sans, Lato, Montserrat, Poppins
Blacklisted fonts (never use): Papyrus, Comic Sans, Impact, Copperplate, Brush Script
Include font loading strategy in design specifications: prefer font-display: swap with subset preloading for custom fonts.
After all design decisions are made, validate that choices reinforce each other:
Check 1: Aesthetic × Typography
Brutalist direction + decorative serif → WARN: "Mismatch -- brutalist typically uses geometric sans or monospace"
Playful direction + condensed grotesque → WARN: "Mismatch -- playful typically uses rounded, open typefaces"
Check 2: Aesthetic × Motion
Minimal direction + expressive animations → WARN: "Mismatch -- minimal design uses purposeful, restrained motion"
Bold direction + no motion → WARN: "Missed opportunity -- bold direction benefits from intentional motion"
Check 3: Aesthetic × Color
Data-dense direction + limited palette → WARN: "Data visualization may need a wider color range"
Luxury direction + saturated primary colors → WARN: "Luxury typically uses muted, desaturated tones"
Check 4: Spacing × Content Density
Dashboard direction + generous spacing → WARN: "Dashboard users need information density -- consider tighter spacing"
Editorial direction + tight spacing → WARN: "Reading-focused layouts need generous line-height and margins"
Present warnings as gentle suggestions, not blockers. The user has final say on all design decisions.
Design Consultation (Section 8) extends, not replaces, Design Brief Questioning (Section 2.1):
1. Run Design Brief Questions (Section 2.1, Q1-Q5) — gather scope and constraints
2. Run Design Consultation (Section 8) — propose directions and refine choices:
a. Aesthetic Direction Proposals (8.1) — user picks a direction
b. For each major decision: Safe vs. Risk framing (8.2)
c. Apply Anti-Slop Blacklist (8.3) — flag any generic patterns in proposals
d. Font Guidance (8.4) — recommend fonts aligned with chosen direction
e. Coherence Validation (8.5) — check all choices work together
3. Generate Design System Document (Section 2.2) — enriched with consultation outputs
If the user wants a quick design phase without consultation, they can answer Q1 with "UI implementation / Screen design" which signals an existing design system and skips consultation (proceeds directly to Section 2.2).
Design audit pass for /legion:review that evaluates implemented code against design specifications. Complements the three-lens review (Section 4) by checking what was actually built versus what was specified. Agent: design-ui-designer (visual audit) + design-ux-architect (technical audit).
Runs during /legion:review when ALL of these conditions are met:
.planning/designs/settings.review.evaluator_depth == "multi-pass" (standard review mode uses three-lens only)When not all conditions are met: skip silently. Never block review for non-design phases.
Each category contains specific check items. Findings are classified as HIGH (affects usability/accessibility), MEDIUM (visual inconsistency), or LOW (polish opportunity).
Category 1: Visual Hierarchy & Composition (8 items)
Category 2: Typography (10 items)
Category 3: Color & Contrast (8 items)
Category 4: Spacing & Layout (8 items)
Category 5: Interaction States (8 items)
Category 6: Responsive Design (6 items)
Category 7: Motion & Animation (5 items)
prefers-reduced-motion respectedall)Category 8: Content & Microcopy (6 items)
Category 9: AI Slop Detection (10 items)
Category 10: Performance as Design (5 items)
Design Score (A-F): Weighted average across all 10 categories.
AI Slop Score (A-F): Standalone grade from Category 9 only.
When review command runs for a design phase with multi-pass evaluators active:
1. Three-lens review runs first (Section 4 -- brand, accessibility, usability)
2. If multi-pass active: Post-Implementation Design Audit runs as additional pass
a. design-ui-designer performs Categories 1-4, 7-9 (visual audit)
b. design-ux-architect performs Categories 5-6, 10 (technical audit)
c. Findings merged and deduplicated with three-lens findings
d. Scoring computed (Section 9.3)
e. Results appended to REVIEW.md with both scores
3. Findings with severity HIGH are added to the fix cycle (same as review-loop)
4. MEDIUM findings are reported but do not block phase completion
5. LOW findings are logged for future improvement
The design audit (Section 9) and three-lens review (Section 4) are complementary:
| Aspect | Three-Lens (Section 4) | Design Audit (Section 9) |
|---|---|---|
| When | Always on design phases | Only with multi-pass evaluators |
| What | Brand compliance, accessibility compliance, usability heuristics | Implementation fidelity to specs |
| Who | brand-guardian, ux-architect, ux-researcher | ui-designer, ux-architect |
| Depth | Checklist-based (6-8 items per lens) | Deep audit (74 items across 10 categories) |
| Output | Pass/fail findings | Scored letter grades + itemized findings |
Both run in parallel when conditions are met. Findings are merged in the final review output.
This skill is consumed by:
| Consumer | Operation | Section |
|---|---|---|
phase-decomposer.md | Design domain detection, design-aware decomposition | Sections 1, 6.1 |
plan.md | Design brief questioning, consultation, document generation | Sections 2, 6.1, 7, 8 |
build.md | Design wave execution, research-to-design handoff, backend-frontend integration | Sections 3.5, 6.2 |
review.md | Three-lens design review, post-implementation audit | Sections 4, 6.3, 9 |
workflow-common.md | Design Workflow Conventions, design paths | Section 1 (constants) |
agent-registry.md | Design Sprint team assembly pattern | Section 2.3 (team assembly) |
Design document format is defined in Section 5. Design domain detection is defined in Section 1 and must be checked before applying design patterns. Plan-stage design review (Section 7) runs during planning when multi-pass evaluators are active. Design consultation (Section 8) extends the design brief with aesthetic direction and coherence validation. Post-implementation audit (Section 9) runs during review when multi-pass evaluators are active. All consumers should handle non-design phases silently per Section 6.4 caller contract.
This skill completes when ALL conditions are met (for design phases only; non-design phases no-op silently and return immediately):
.planning/designs/{phase-slug}/ directory exists for the target phaseREVIEW.md with a verdict per lens.planning/memory/OUTCOMES.mdSUMMARY.md Files Modified sectionIf ANY condition is unmet, the skill is NOT complete — continue working or escalate via <escalation> block.