9thlevelsoftware/legion/design-workflows
- community
Checking that the SKILL.md file is still in the repository.
Design system creation, UX research workflows, and three-lens design review cycles for design-focused phases
Install
npx vskill@latest install 9thlevelsoftware/legion/design-workflowsSKILL.md
Design Workflows
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:
- State File Locations from
workflow-common.md(state paths, degradation pattern) - Design Workflow Conventions from
workflow-common.md(lifecycle, paths, wave pattern) - Design Sprint team assembly from
agent-registry.mdSection 4 (Research + Architecture + Visual Design + Brand Review + Feedback) - Phase decomposition from
phase-decomposer.md(design domain detection trigger) /legion:planinplan.md(design questioning and document generation entry point)/legion:buildinbuild.md(design wave execution with research-to-design handoff)
Section 1: Principles & Design Domain Detection
Core rules governing design workflows and the detection heuristic that determines when design-specific decomposition activates.
Principles
- Research-informed design -- design decisions should be grounded in user research when available. Wave 1 (research) produces insights that inform Wave 2 (creation). When research is unavailable or out of scope, designers proceed using established heuristics and domain expertise.
- Human-readable artifacts -- design documents follow the same structured markdown convention as all other Legion state files. No JSON, no binary, no databases. Design tokens and component specs are documented in markdown tables, not design tool files.
- Graceful degradation -- every consumer checks for design phase signals before applying design patterns. Non-design phases see zero impact. Design documents are never required for non-design workflow completion.
- Discipline-driven team assembly -- the project's design scope drives which agents are assigned. Not all 6 design agents are needed for every project. A brand refresh may need 2-3 agents; a full design system may need 5-6.
- Three-lens review -- design review uses three specialized lenses (brand, accessibility, usability) running in parallel, not a single generic reviewer. Each lens has specific criteria and a dedicated agent.
- Specifications, not mockups -- design documents specify structure, tokens, components, and guidelines. Actual visual creation happens during execution, not during planning.
When Design Workflows Apply
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):
- At least one phase requirement ID matches the regex
^DSN-\d+in ROADMAP.md or REQUIREMENTS.md - The phase's CONTEXT.md YAML frontmatter declares
workflow_type: design - The user passed
--domain=designto/legion:plan
Single 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):
- If the phase has explicit
workflow_typefrontmatter: that wins over requirement-ID detection. - If
--domain=was passed: that wins over frontmatter and requirement IDs. - If both
^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.
Constants
Discipline-Agent Mapping
| 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 |
Graceful Degradation
- If
.planning/designs/directory does not exist: create it when the first design document is generated - If no design document exists for a phase: standard decomposition, no design enrichment
- If design-workflows skill is referenced but phase is not design: skip silently
- Never error, never block, never require design documents for non-design workflow completion
Section 2: Design System Workflow (DSN-01)
Structured 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.
2.1: Design Brief Questioning
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):
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.
2.2: Design System Document Generation
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:
- Design Principles: from project context + brand guidelines
- Token Taxonomy: from Q2 scope + Q5 accessibility + Q4 platforms
- Component Architecture: from Q2 scope level (foundation only, core components, or full system)
- Platform Targets: from Q4
- Accessibility Standard: from Q5
- Agent Assignments: from discipline selection + agent-registry Section 4 Design Sprint team
2.3: Design Team Assembly
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):
- Map each relevant discipline to its primary agent using the Discipline-Agent Mapping table (Section 1)
- If a discipline's primary agent is already assigned as Design Lead or Research Lead, no duplicate -- the agent covers both roles
- Each discipline specialist owns deliverables for their area
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 |
2.4: Token Taxonomy
Design tokens follow a three-tier hierarchy: Global --> Semantic --> Component.
2.5: Component Architecture (Atomic Design)
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 |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design-workflows/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 7
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/9thlevelsoftware/legion/design-workflows)