From 51b1eb5da639304af37732e5719db970944a06cb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 20 Nov 2025 05:45:41 +0000 Subject: [PATCH] fix: correct Mermaid parallelogram syntax for command nodes Fixed lexical error in Mermaid diagram where nodes starting with [/workflow: were not properly closed. Changed to use correct parallelogram syntax [/ text /] to resolve "Unrecognized text" error. Affected nodes: - BrainIdea, BrainDesign (brainstorm commands) - UIImitate, UIExplore, UISync (UI design commands) - LitePlanE, LitePlanNormal, LiteAgent (lite workflow commands) - Verify, Execute variants (verification/execution commands) - TDD, TestGen, TestCycle (testing commands) - SecurityReview, ArchReview, QualityReview, GeneralReview (review commands) --- WORKFLOW_DECISION_GUIDE.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/WORKFLOW_DECISION_GUIDE.md b/WORKFLOW_DECISION_GUIDE.md index f8516ea3..b813381a 100644 --- a/WORKFLOW_DECISION_GUIDE.md +++ b/WORKFLOW_DECISION_GUIDE.md @@ -13,23 +13,23 @@ flowchart TD Q1 -->|不知道| Ideation[💡 构思阶段
需求探索] Q1 -->|知道| Q2{知道怎么做吗?} - Ideation --> BrainIdea[/workflow:brainstorm:auto-parallel
探索产品方向和功能定位] + Ideation --> BrainIdea[/ /workflow:brainstorm:auto-parallel
探索产品方向和功能定位 /] BrainIdea --> Q2 Q2 -->|不知道| Design[🏗️ 设计探索阶段
架构方案探索] Q2 -->|知道| Q3{需要UI设计吗?} - Design --> BrainDesign[/workflow:brainstorm:auto-parallel
探索技术方案和架构] + Design --> BrainDesign[/ /workflow:brainstorm:auto-parallel
探索技术方案和架构 /] BrainDesign --> Q3 Q3 -->|需要| UIDesign[🎨 UI设计阶段] Q3 -->|不需要| Q4{任务复杂度?} UIDesign --> Q3a{有参考设计吗?} - Q3a -->|有| UIImitate[/workflow:ui-design:imitate-auto
--input 参考URL] - Q3a -->|无| UIExplore[/workflow:ui-design:explore-auto
--prompt 设计描述] + Q3a -->|有| UIImitate[/ /workflow:ui-design:imitate-auto
--input 参考URL /] + Q3a -->|无| UIExplore[/ /workflow:ui-design:explore-auto
--prompt 设计描述 /] - UIImitate --> UISync[/workflow:ui-design:design-sync
同步设计系统] + UIImitate --> UISync[/ /workflow:ui-design:design-sync
同步设计系统 /] UIExplore --> UISync UISync --> Q4 @@ -37,19 +37,19 @@ flowchart TD Q4 -->|复杂完整| FullPlan[📋 完整规划
/workflow:plan] LitePlan --> Q5{需要代码探索?} - Q5 -->|需要| LitePlanE[/workflow:lite-plan -e
任务描述] - Q5 -->|不需要| LitePlanNormal[/workflow:lite-plan
任务描述] + Q5 -->|需要| LitePlanE[/ /workflow:lite-plan -e
任务描述 /] + Q5 -->|不需要| LitePlanNormal[/ /workflow:lite-plan
任务描述 /] LitePlanE --> LiteConfirm[三维确认:
1️⃣ 任务批准
2️⃣ 执行方式
3️⃣ 代码审查] LitePlanNormal --> LiteConfirm LiteConfirm --> Q6{选择执行方式} - Q6 -->|Agent| LiteAgent[/workflow:lite-execute
使用@code-developer] + Q6 -->|Agent| LiteAgent[/ /workflow:lite-execute
使用@code-developer /] Q6 -->|CLI工具| LiteCLI[CLI执行
Gemini/Qwen/Codex] Q6 -->|仅计划| UserImpl[用户手动实现] FullPlan --> PlanVerify{验证计划质量?} - PlanVerify -->|是| Verify[/workflow:action-plan-verify] + PlanVerify -->|是| Verify[/ /workflow:action-plan-verify /] PlanVerify -->|否| Execute Verify --> Q7{验证通过?} Q7 -->|否| FixPlan[修复计划问题] @@ -63,16 +63,16 @@ flowchart TD Execute --> TestDecision TestDecision{需要测试吗?} - TestDecision -->|TDD模式| TDD[/workflow:tdd-plan
测试驱动开发] - TestDecision -->|后置测试| TestGen[/workflow:test-gen
生成测试] - TestDecision -->|已有测试| TestCycle[/workflow:test-cycle-execute
测试修复循环] + TestDecision -->|TDD模式| TDD[/ /workflow:tdd-plan
测试驱动开发 /] + TestDecision -->|后置测试| TestGen[/ /workflow:test-gen
生成测试 /] + TestDecision -->|已有测试| TestCycle[/ /workflow:test-cycle-execute
测试修复循环 /] TestDecision -->|不需要| Review - TDD --> TDDExecute[/workflow:execute
Red-Green-Refactor] - TDDExecute --> TDDVerify[/workflow:tdd-verify
验证TDD合规] + TDD --> TDDExecute[/ /workflow:execute
Red-Green-Refactor /] + TDDExecute --> TDDVerify[/ /workflow:tdd-verify
验证TDD合规 /] TDDVerify --> Review - TestGen --> TestExecute[/workflow:execute
执行测试任务] + TestGen --> TestExecute[/ /workflow:execute
执行测试任务 /] TestExecute --> TestResult{测试通过?} TestResult -->|否| TestCycle TestResult -->|是| Review @@ -83,10 +83,10 @@ flowchart TD Review[📝 审查阶段] Review --> Q8{需要专项审查?} - Q8 -->|安全| SecurityReview[/workflow:review
--type security] - Q8 -->|架构| ArchReview[/workflow:review
--type architecture] - Q8 -->|质量| QualityReview[/workflow:review
--type quality] - Q8 -->|综合| GeneralReview[/workflow:review
综合审查] + Q8 -->|安全| SecurityReview[/ /workflow:review
--type security /] + Q8 -->|架构| ArchReview[/ /workflow:review
--type architecture /] + Q8 -->|质量| QualityReview[/ /workflow:review
--type quality /] + Q8 -->|综合| GeneralReview[/ /workflow:review
综合审查 /] Q8 -->|不需要| Complete SecurityReview --> Complete