一键导入
workflow-design
Convert discussion output into a validated design — reads captured requirements and presents architecture for iterative approval.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert discussion output into a validated design — reads captured requirements and presents architecture for iterative approval.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | workflow-design |
| description | Convert discussion output into a validated design — reads captured requirements and presents architecture for iterative approval. |
Transform the discussion output into a validated high-level design.
The user invokes this as /workflow-design {slug}.
$ARGUMENTS is empty, scan .workflow/*/ directories and list available workspaces — ask which one.workflow/*/ for a folder matching the slug $ARGUMENTSSTATUS.yaml — phase must be discussion-complete. If not, tell the user which phase to complete first..workflow/{type}/{slug}/DISCUSSION.md existsphase: design, updated: {ISO timestamp}writing-plans (superpowers) — Use this to structure the design approach before presenting to the user.Read the ## Applicable Skills section from DISCUSSION.md. For each listed skill, invoke it and use its patterns to inform the design:
Project skills:
page-building → Use its page type taxonomy (listing / detail / browse) and step-by-step architecture to structure the Component Breakdown section.component-architecture → Use its file organization rules, composition patterns, and splitting decisions to inform the Architecture section.data-fetching → Use its pipeline (client → function → query options → Query wrapper) to inform the Data Flow section.styling-design → Use its color system, animation patterns, and responsive approach to inform any visual design decisions.query-autonomy → If refactoring prop passthrough, use its select-based pattern for the data flow design.Plugin skills/tools:
frontend-design (plugin) → If the work involves significant new UI, invoke for visual direction. Use its aesthetic thinking process (Purpose → Tone → Differentiation) to inform the Visual Design section.feature-dev:code-architect (agent) → Spawn this agent to produce a comprehensive architecture blueprint. It analyzes existing patterns, makes decisive choices, and provides file-level implementation maps.context7 (MCP tools) → CRITICAL: Verify all library APIs before committing to a design. Use resolve-library-id + query-docs to look up current API signatures for any library where the design depends on specific behavior (e.g., TanStack Query select option, nuqs parsers, Radix component APIs).When presenting design sections, cite which skill informed the decision — e.g., "Per the data-fetching skill, each section will own its query rather than receiving props from a parent."
Read these files from the workspace:
DISCUSSION.md — decisions, scope, relevant code, applicable skillsASSUMPTIONS.md — if it existsSTATUS.yaml — workspace metadataBased on the discussion and applicable skills, propose 2-3 different approaches with trade-offs:
Ask the user which approach to proceed with.
Once an approach is chosen, present the design in sections of 200-300 words. After each section, ask: "Does this look right?"
Sections to cover (adapt based on work type):
component-architecture)data-fetching)page-building)styling-design, if applicable)After all sections are validated, write .workflow/{type}/{slug}/DESIGN.md:
# Design: {slug}
## Overview
{2-3 sentence summary of what this design achieves}
## Approach
{Which approach was chosen and why}
## Architecture
{How components/modules relate}
## Data Flow
{How data moves through the system}
## Component Breakdown
| Component | Type | Purpose |
|-----------|------|---------|
| ... | create/modify | ... |
## File Changes
### New files
- `path/to/file.ts` — Purpose
### Modified files
- `path/to/file.ts` — What changes and why
### Reference files
- `path/to/file.ts` — Pattern to follow
## Edge Cases
- {Edge case and how it's handled}
## Integration Points
- {How this connects to existing code}
## Design Decisions
- **Decision**: {What} — **Rationale**: {Why}
## Applicable Skills
Carried forward from DISCUSSION.md, refined with implementation-specific detail:
- `code-style` — Always (all tasks)
- `component-architecture` — {Which tasks and why}
- `data-fetching` — {Which tasks and why}
- `styling-design` — {Which tasks and why}
- (only list skills relevant to this work)
/workflow-plan {slug}?"phase: design-completeAbort a workflow — cleans up worktrees and branches, marks the workspace as aborted.
Finalize the workflow — squash commits into one clean commit, remove worktrees, and close the workspace.
Execute all planned tasks — creates per-task git worktrees, spawns implementer and reviewer agents in dependency order, aggregates results.
Break an approved design into atomic implementation tasks — creates dependency-ordered task specs ready for parallel agent execution.
Review completed implementation — runs final verification across all changes and presents results for user sign-off.
Kick off a new workflow by discussing requirements — asks clarifying questions, explores trade-offs, and captures decisions in a structured format.