speccrew 0.7.61 → 0.7.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/.speccrew/agents/speccrew-feature-designer.md +5 -5
  2. package/.speccrew/agents/speccrew-product-manager.md +9 -9
  3. package/.speccrew/agents/speccrew-system-designer.md +45 -933
  4. package/.speccrew/agents/speccrew-task-worker.md +15 -15
  5. package/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +7 -7
  6. package/.speccrew/skills/speccrew-deploy-build/SKILL.md +2 -2
  7. package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +2 -2
  8. package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +2 -2
  9. package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +2 -2
  10. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +2 -2
  11. package/.speccrew/skills/speccrew-dev-desktop-electron/SKILL.md +2 -2
  12. package/.speccrew/skills/speccrew-dev-desktop-tauri/SKILL.md +2 -2
  13. package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +2 -2
  14. package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +2 -2
  15. package/.speccrew/skills/speccrew-dev-review-backend/SKILL.md +2 -2
  16. package/.speccrew/skills/speccrew-dev-review-desktop/SKILL.md +2 -2
  17. package/.speccrew/skills/speccrew-dev-review-frontend/SKILL.md +2 -2
  18. package/.speccrew/skills/speccrew-dev-review-mobile/SKILL.md +2 -2
  19. package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +2 -2
  20. package/.speccrew/skills/speccrew-fd-feature-analyze/SKILL.md +2 -2
  21. package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +2 -2
  22. package/.speccrew/skills/speccrew-feature-designer-orchestration/SKILL.md +2 -2
  23. package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +2 -2
  24. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +2 -2
  25. package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/SKILL.md +2 -2
  26. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +2 -2
  27. package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/SKILL.md +2 -2
  28. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +2 -2
  29. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +2 -2
  30. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +2 -2
  31. package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/SKILL.md +2 -2
  32. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +2 -2
  33. package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +2 -2
  34. package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +2 -2
  35. package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +2 -2
  36. package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +2 -2
  37. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +2 -2
  38. package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +2 -2
  39. package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +2 -2
  40. package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/SKILL.md +2 -2
  41. package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +2 -2
  42. package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +2 -2
  43. package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +2 -2
  44. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +2 -2
  45. package/.speccrew/skills/speccrew-pm-knowledge-detector/SKILL.md +2 -2
  46. package/.speccrew/skills/speccrew-pm-module-initializer/SKILL.md +2 -2
  47. package/.speccrew/skills/speccrew-pm-module-matcher/SKILL.md +2 -2
  48. package/.speccrew/skills/speccrew-pm-phase0-init/SKILL.md +2 -2
  49. package/.speccrew/skills/speccrew-pm-phase1-knowledge-check/SKILL.md +2 -2
  50. package/.speccrew/skills/speccrew-pm-phase2-complexity-assess/SKILL.md +2 -2
  51. package/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/SKILL.md +8 -8
  52. package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/SKILL.md +2 -2
  53. package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +2 -2
  54. package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +2 -2
  55. package/.speccrew/skills/speccrew-pm-requirement-clarify/SKILL.md +2 -2
  56. package/.speccrew/skills/speccrew-pm-requirement-model/SKILL.md +2 -2
  57. package/.speccrew/skills/speccrew-pm-requirement-simple/SKILL.md +2 -2
  58. package/.speccrew/skills/speccrew-pm-sub-prd-generate/SKILL.md +2 -2
  59. package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +2 -2
  60. package/.speccrew/skills/speccrew-sd-backend/SKILL.md +5 -376
  61. package/.speccrew/skills/speccrew-sd-backend/SKILL.xml +542 -0
  62. package/.speccrew/skills/speccrew-sd-design-overview-generate/SKILL.md +2 -2
  63. package/.speccrew/skills/speccrew-sd-desktop/SKILL.md +2 -2
  64. package/.speccrew/skills/speccrew-sd-framework-evaluate/SKILL.md +2 -2
  65. package/.speccrew/skills/speccrew-sd-frontend/SKILL.md +3 -340
  66. package/.speccrew/skills/speccrew-sd-frontend/SKILL.xml +504 -0
  67. package/.speccrew/skills/speccrew-sd-mobile/SKILL.md +3 -338
  68. package/.speccrew/skills/speccrew-sd-mobile/SKILL.xml +563 -0
  69. package/.speccrew/skills/speccrew-system-deployer-orchestration/SKILL.md +2 -2
  70. package/.speccrew/skills/speccrew-system-designer-orchestration/SKILL.md +4 -4
  71. package/.speccrew/skills/speccrew-system-developer-orchestration/SKILL.md +2 -2
  72. package/.speccrew/skills/speccrew-task-worker-execution/SKILL.md +2 -2
  73. package/.speccrew/skills/speccrew-team-leader-routing/SKILL.md +2 -2
  74. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +2 -2
  75. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +2 -2
  76. package/.speccrew/skills/speccrew-test-manager-orchestration/SKILL.md +2 -2
  77. package/.speccrew/skills/speccrew-test-reporter/SKILL.md +2 -2
  78. package/.speccrew/skills/speccrew-test-runner/SKILL.md +2 -2
  79. package/package.json +1 -1
  80. package/.speccrew/skills/speccrew-sd-backend/workflow.agentflow.xml +0 -264
  81. package/.speccrew/skills/speccrew-sd-frontend/workflow.agentflow.xml +0 -299
  82. package/.speccrew/skills/speccrew-sd-mobile/workflow.agentflow.xml +0 -301
  83. /package/.speccrew/skills/speccrew-agentflow-manager/{workflow.agentflow.xml → SKILL.xml} +0 -0
  84. /package/.speccrew/skills/speccrew-deploy-build/{workflow.agentflow.xml → SKILL.xml} +0 -0
  85. /package/.speccrew/skills/speccrew-deploy-migrate/{workflow.agentflow.xml → SKILL.xml} +0 -0
  86. /package/.speccrew/skills/speccrew-deploy-smoke-test/{workflow.agentflow.xml → SKILL.xml} +0 -0
  87. /package/.speccrew/skills/speccrew-deploy-startup/{workflow.agentflow.xml → SKILL.xml} +0 -0
  88. /package/.speccrew/skills/speccrew-dev-backend/{workflow.agentflow.xml → SKILL.xml} +0 -0
  89. /package/.speccrew/skills/speccrew-dev-desktop-electron/{workflow.agentflow.xml → SKILL.xml} +0 -0
  90. /package/.speccrew/skills/speccrew-dev-desktop-tauri/{workflow.agentflow.xml → SKILL.xml} +0 -0
  91. /package/.speccrew/skills/speccrew-dev-frontend/{workflow.agentflow.xml → SKILL.xml} +0 -0
  92. /package/.speccrew/skills/speccrew-dev-mobile/{workflow.agentflow.xml → SKILL.xml} +0 -0
  93. /package/.speccrew/skills/speccrew-dev-review-backend/{workflow.agentflow.xml → SKILL.xml} +0 -0
  94. /package/.speccrew/skills/speccrew-dev-review-desktop/{workflow.agentflow.xml → SKILL.xml} +0 -0
  95. /package/.speccrew/skills/speccrew-dev-review-frontend/{workflow.agentflow.xml → SKILL.xml} +0 -0
  96. /package/.speccrew/skills/speccrew-dev-review-mobile/{workflow.agentflow.xml → SKILL.xml} +0 -0
  97. /package/.speccrew/skills/speccrew-fd-api-contract/{workflow.agentflow.xml → SKILL.xml} +0 -0
  98. /package/.speccrew/skills/speccrew-fd-feature-analyze/{workflow.agentflow.xml → SKILL.xml} +0 -0
  99. /package/.speccrew/skills/speccrew-fd-feature-design/{workflow.agentflow.xml → SKILL.xml} +0 -0
  100. /package/.speccrew/skills/speccrew-feature-designer-orchestration/{workflow.agentflow.xml → SKILL.xml} +0 -0
  101. /package/.speccrew/skills/speccrew-get-timestamp/{workflow.agentflow.xml → SKILL.xml} +0 -0
  102. /package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/{workflow.agentflow.xml → SKILL.xml} +0 -0
  103. /package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/{workflow.agentflow.xml → SKILL.xml} +0 -0
  104. /package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/{workflow.agentflow.xml → SKILL.xml} +0 -0
  105. /package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/{workflow.agentflow.xml → SKILL.xml} +0 -0
  106. /package/.speccrew/skills/speccrew-knowledge-bizs-init-features/{workflow.agentflow.xml → SKILL.xml} +0 -0
  107. /package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/{workflow.agentflow.xml → SKILL.xml} +0 -0
  108. /package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/{workflow.agentflow.xml → SKILL.xml} +0 -0
  109. /package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/{workflow.agentflow.xml → SKILL.xml} +0 -0
  110. /package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/{workflow.agentflow.xml → SKILL.xml} +0 -0
  111. /package/.speccrew/skills/speccrew-knowledge-graph-query/{workflow.agentflow.xml → SKILL.xml} +0 -0
  112. /package/.speccrew/skills/speccrew-knowledge-graph-write/{workflow.agentflow.xml → SKILL.xml} +0 -0
  113. /package/.speccrew/skills/speccrew-knowledge-module-summarize/{workflow.agentflow.xml → SKILL.xml} +0 -0
  114. /package/.speccrew/skills/speccrew-knowledge-system-summarize/{workflow.agentflow.xml → SKILL.xml} +0 -0
  115. /package/.speccrew/skills/speccrew-knowledge-techs-dispatch/{workflow.agentflow.xml → SKILL.xml} +0 -0
  116. /package/.speccrew/skills/speccrew-knowledge-techs-generate/{workflow.agentflow.xml → SKILL.xml} +0 -0
  117. /package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/{workflow.agentflow.xml → SKILL.xml} +0 -0
  118. /package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/{workflow.agentflow.xml → SKILL.xml} +0 -0
  119. /package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/{workflow.agentflow.xml → SKILL.xml} +0 -0
  120. /package/.speccrew/skills/speccrew-knowledge-techs-index/{workflow.agentflow.xml → SKILL.xml} +0 -0
  121. /package/.speccrew/skills/speccrew-knowledge-techs-init/{workflow.agentflow.xml → SKILL.xml} +0 -0
  122. /package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/{workflow.agentflow.xml → SKILL.xml} +0 -0
  123. /package/.speccrew/skills/speccrew-pm-knowledge-detector/{workflow.agentflow.xml → SKILL.xml} +0 -0
  124. /package/.speccrew/skills/speccrew-pm-module-initializer/{workflow.agentflow.xml → SKILL.xml} +0 -0
  125. /package/.speccrew/skills/speccrew-pm-module-matcher/{workflow.agentflow.xml → SKILL.xml} +0 -0
  126. /package/.speccrew/skills/speccrew-pm-phase0-init/{workflow.agentflow.xml → SKILL.xml} +0 -0
  127. /package/.speccrew/skills/speccrew-pm-phase1-knowledge-check/{workflow.agentflow.xml → SKILL.xml} +0 -0
  128. /package/.speccrew/skills/speccrew-pm-phase2-complexity-assess/{workflow.agentflow.xml → SKILL.xml} +0 -0
  129. /package/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/{workflow.agentflow.xml → SKILL.xml} +0 -0
  130. /package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/{workflow.agentflow.xml → SKILL.xml} +0 -0
  131. /package/.speccrew/skills/speccrew-pm-requirement-analysis/{workflow.agentflow.xml → SKILL.xml} +0 -0
  132. /package/.speccrew/skills/speccrew-pm-requirement-assess/{workflow.agentflow.xml → SKILL.xml} +0 -0
  133. /package/.speccrew/skills/speccrew-pm-requirement-clarify/{workflow.agentflow.xml → SKILL.xml} +0 -0
  134. /package/.speccrew/skills/speccrew-pm-requirement-model/{workflow.agentflow.xml → SKILL.xml} +0 -0
  135. /package/.speccrew/skills/speccrew-pm-requirement-simple/{workflow.agentflow.xml → SKILL.xml} +0 -0
  136. /package/.speccrew/skills/speccrew-pm-sub-prd-generate/{workflow.agentflow.xml → SKILL.xml} +0 -0
  137. /package/.speccrew/skills/speccrew-product-manager-orchestration/{workflow.agentflow.xml → SKILL.xml} +0 -0
  138. /package/.speccrew/skills/speccrew-sd-design-overview-generate/{workflow.agentflow.xml → SKILL.xml} +0 -0
  139. /package/.speccrew/skills/speccrew-sd-desktop/{workflow.agentflow.xml → SKILL.xml} +0 -0
  140. /package/.speccrew/skills/speccrew-sd-framework-evaluate/{workflow.agentflow.xml → SKILL.xml} +0 -0
  141. /package/.speccrew/skills/speccrew-system-deployer-orchestration/{workflow.agentflow.xml → SKILL.xml} +0 -0
  142. /package/.speccrew/skills/speccrew-system-designer-orchestration/{workflow.agentflow.xml → SKILL.xml} +0 -0
  143. /package/.speccrew/skills/speccrew-system-developer-orchestration/{workflow.agentflow.xml → SKILL.xml} +0 -0
  144. /package/.speccrew/skills/speccrew-task-worker-execution/{workflow.agentflow.xml → SKILL.xml} +0 -0
  145. /package/.speccrew/skills/speccrew-team-leader-routing/{workflow.agentflow.xml → SKILL.xml} +0 -0
  146. /package/.speccrew/skills/speccrew-test-case-design/{workflow.agentflow.xml → SKILL.xml} +0 -0
  147. /package/.speccrew/skills/speccrew-test-code-gen/{workflow.agentflow.xml → SKILL.xml} +0 -0
  148. /package/.speccrew/skills/speccrew-test-manager-orchestration/{workflow.agentflow.xml → SKILL.xml} +0 -0
  149. /package/.speccrew/skills/speccrew-test-reporter/{workflow.agentflow.xml → SKILL.xml} +0 -0
  150. /package/.speccrew/skills/speccrew-test-runner/{workflow.agentflow.xml → SKILL.xml} +0 -0
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  name: speccrew-team-leader-routing
3
3
  version: 1.0.0
4
4
  description: Team Leader 的意图识别与路由调度技能,负责识别用户意图并路由到对应 Skill/Agent。处理项目初始化、知识库同步、工作流诊断等基础设施请求。
@@ -66,7 +66,7 @@ Team Leader 的核心路由调度技能,负责:
66
66
 
67
67
  ## AgentFlow Definition
68
68
 
69
- <!-- @agentflow: workflow.agentflow.xml -->
69
+ <!-- @agentflow: SKILL.xml -->
70
70
 
71
71
  ---
72
72
 
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  name: speccrew-test-case-design
3
3
  description: Designs structured test cases from Feature Spec and API Contract documents. Focuses on comprehensive test scenario analysis, test case matrix generation, and coverage traceability without involving any code implementation.
4
4
  tools: Read, Write, Glob, Grep
@@ -12,7 +12,7 @@ tools: Read, Write, Glob, Grep
12
12
 
13
13
  ## AgentFlow Definition
14
14
 
15
- <!-- @agentflow: workflow.agentflow.xml -->
15
+ <!-- @agentflow: SKILL.xml -->
16
16
 
17
17
  > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
18
18
 
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  name: speccrew-test-code-gen
3
3
  description: Generates executable test code from confirmed test case documents. Reads test case matrix, platform technical conventions, and system design to produce well-structured test files with full traceability to test case IDs.
4
4
  tools: Read, Write, Glob, Grep
@@ -12,7 +12,7 @@ tools: Read, Write, Glob, Grep
12
12
 
13
13
  ## AgentFlow Definition
14
14
 
15
- <!-- @agentflow: workflow.agentflow.xml -->
15
+ <!-- @agentflow: SKILL.xml -->
16
16
 
17
17
  > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
18
18
 
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  name: speccrew-test-manager-orchestration
3
3
  version: 1.0.0
4
4
  description: Test Manager 的编排调度技能,负责执行三阶段测试工作流:测试用例设计 → 测试代码生成 → 测试执行与报告。支持单平台直接调用和多平台 Worker 并行调度。
@@ -74,7 +74,7 @@ Test Manager 的核心编排技能,负责:
74
74
 
75
75
  ## AgentFlow Definition
76
76
 
77
- <!-- @agentflow: workflow.agentflow.xml -->
77
+ <!-- @agentflow: SKILL.xml -->
78
78
 
79
79
  ---
80
80
 
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  name: speccrew-test-reporter
3
3
  description: "SpecCrew Test Reporter. Generates comprehensive test reports and individual bug reports from test execution results. Performs root cause analysis and severity classification."
4
4
  tools: Read, Write, Glob, Grep
@@ -27,7 +27,7 @@ tools: Read, Write, Glob, Grep
27
27
 
28
28
  ## AgentFlow Definition
29
29
 
30
- <!-- @agentflow: workflow.agentflow.xml -->
30
+ <!-- @agentflow: SKILL.xml -->
31
31
 
32
32
  > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
33
33
 
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  name: speccrew-test-runner
3
3
  description: "SpecCrew Test Runner. Executes test code, parses results, and detects deviations between expected and actual outcomes. Reads test code files and system design to run platform-specific test suites."
4
4
  tools: Read, Write, Bash, Glob, Grep
@@ -27,7 +27,7 @@ tools: Read, Write, Bash, Glob, Grep
27
27
 
28
28
  ## AgentFlow Definition
29
29
 
30
- <!-- @agentflow: workflow.agentflow.xml -->
30
+ <!-- @agentflow: SKILL.xml -->
31
31
 
32
32
  > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.7.61",
3
+ "version": "0.7.63",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {
@@ -1,264 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <workflow id="sd-backend-main" status="pending" version="1.0" desc="Backend System Design workflow">
3
-
4
- <!-- ============================================================
5
- Input Parameters Definition
6
- ============================================================ -->
7
- <block type="input" id="I1" desc="Workflow input parameters">
8
- <field name="feature_id" required="false" type="string" desc="Feature identifier, e.g., F-CRM-01"/>
9
- <field name="feature_name" required="true" type="string" desc="Feature name, e.g., customer-list"/>
10
- <field name="platform_id" required="true" type="string" desc="Target platform, e.g., backend-spring, backend-nestjs"/>
11
- <field name="iteration_path" required="true" type="string" desc="Absolute path to iteration directory"/>
12
- <field name="workspace_path" required="true" type="string" desc="Absolute path to speccrew-workspace"/>
13
- <field name="task_id" required="false" type="string" desc="Task ID from dispatch context"/>
14
- </block>
15
-
16
- <!-- ============================================================
17
- Global Constraints
18
- ============================================================ -->
19
- <block type="rule" id="R1" level="forbidden" desc="Document creation constraints">
20
- <field name="text">NEVER use create_file to write design documents or INDEX directly</field>
21
- <field name="text">MUST create by copying template then filling with search_replace</field>
22
- </block>
23
-
24
- <block type="rule" id="R2" level="forbidden" desc="Full-file rewrite prohibition">
25
- <field name="text">NEVER replace entire document content in single operation</field>
26
- <field name="text">ALWAYS use targeted search_replace on specific sections</field>
27
- </block>
28
-
29
- <block type="rule" id="R3" level="mandatory" desc="Template-first workflow">
30
- <field name="text">Copy template MUST execute before fill sections</field>
31
- <field name="text">Skipping copy and writing content directly is FORBIDDEN</field>
32
- </block>
33
-
34
- <block type="rule" id="R4" level="mandatory" desc="Actual framework syntax">
35
- <field name="text">All pseudo-code MUST use actual framework/library syntax from techs knowledge</field>
36
- <field name="text">NOT generic pseudo-code</field>
37
- </block>
38
-
39
- <!-- ============================================================
40
- Main Processing Sequence
41
- ============================================================ -->
42
- <sequence id="S1" name="Backend System Design" status="pending" desc="Generate backend detailed design documents">
43
-
44
- <!-- Step 1: Read Inputs -->
45
- <block type="task" id="B1" action="read-file" desc="Read Feature Spec document">
46
- <field name="path">${iteration_path}/02.feature-design/${feature_id}-${feature_name}-feature-spec.md</field>
47
- <field name="fallback_path">${iteration_path}/02.feature-design/${feature_name}-feature-spec.md</field>
48
- <field name="output" var="feature_spec"/>
49
- </block>
50
-
51
- <block type="task" id="B2" action="read-file" desc="Read API Contract">
52
- <field name="path">${iteration_path}/03.api-contract/${feature_id}-${feature_name}-api-contract.md</field>
53
- <field name="fallback_path">${iteration_path}/03.api-contract/${feature_name}-api-contract.md</field>
54
- <field name="output" var="api_contract"/>
55
- </block>
56
-
57
- <!-- Read Techs Knowledge -->
58
- <block type="task" id="B3" action="read-file" desc="Read tech-stack.md">
59
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/tech-stack.md</field>
60
- <field name="output" var="tech_stack"/>
61
- </block>
62
-
63
- <block type="task" id="B4" action="read-file" desc="Read architecture.md">
64
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/architecture.md</field>
65
- <field name="output" var="architecture"/>
66
- </block>
67
-
68
- <block type="task" id="B5" action="read-file" desc="Read conventions-design.md">
69
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/conventions-design.md</field>
70
- <field name="output" var="conventions_design"/>
71
- </block>
72
-
73
- <block type="task" id="B6" action="read-file" desc="Read conventions-dev.md">
74
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/conventions-dev.md</field>
75
- <field name="output" var="conventions_dev"/>
76
- </block>
77
-
78
- <block type="task" id="B7" action="read-file" desc="Read conventions-data.md">
79
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/conventions-data.md</field>
80
- <field name="output" var="conventions_data"/>
81
- </block>
82
-
83
- <!-- Step 2: Analyze Existing Code Structure -->
84
- <block type="task" id="B8" action="analyze" desc="Analyze codebase structure">
85
- <field name="analysis_targets">
86
- - Controller/Router layer structure
87
- - Service layer organization
88
- - Repository/DAO layer patterns
89
- - Entity/Model definitions
90
- - Middleware stack
91
- - Exception handling patterns
92
- - Database migration structure
93
- - Naming conventions
94
- </field>
95
- <field name="output" var="codebase_analysis"/>
96
- </block>
97
-
98
- <!-- Step 3: Extract Functions from Feature Spec -->
99
- <block type="task" id="B9" action="analyze" desc="Extract backend functions">
100
- <field name="input" value="${feature_spec}">${api_contract}</field>
101
- <field name="extraction_rules">
102
- - Parse Feature Spec Section 2.N pattern
103
- - Extract API interfaces from backend part
104
- - Extract data access requirements
105
- - Extract business logic flow
106
- - Extract cross-module dependencies
107
- - Mark each function as [EXISTING], [MODIFIED], or [NEW]
108
- </field>
109
- <field name="output" var="extracted_functions"/>
110
- </block>
111
-
112
- <!-- Checkpoint A: Present function list for confirmation -->
113
- <block type="event" id="E1" action="confirm" title="Function List Confirmation" type="yesno" desc="Present function extraction summary">
114
- <field name="preview">Backend Functions Extracted for: ${feature_name}
115
- Platform: ${platform_id}
116
-
117
- Function List:
118
- ${extracted_functions.summary}
119
-
120
- Markers:
121
- - [NEW]: ${extracted_functions.new_count} modules
122
- - [MODIFIED]: ${extracted_functions.modified_count} modules
123
- - [EXISTING]: ${extracted_functions.existing_count} modules (no design needed)
124
-
125
- Confirm function list before proceeding?</field>
126
- </block>
127
-
128
- <!-- Step 4: Generate Module Design Documents -->
129
- <block type="task" id="B10" action="read-file" desc="Read design template">
130
- <field name="path">speccrew-sd-backend/templates/SD-BACKEND-TEMPLATE.md</field>
131
- <field name="output" var="design_template"/>
132
- </block>
133
-
134
- <!-- Loop: Generate design for each function -->
135
- <block type="loop" id="L1" over="${extracted_functions.functions}" as="function" desc="Generate module design documents">
136
- <block type="task" id="B11" action="generate" desc="Copy template and create document">
137
- <field name="template" value="${design_template}"/>
138
- <field name="placeholders">
139
- - {Module Name} → ${function.module_name}
140
- - {Feature Name} → ${feature_name}
141
- - {Platform ID} → ${platform_id}
142
- </field>
143
- <field name="output_path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
144
- <field name="output" var="module_doc_created"/>
145
- </block>
146
-
147
- <block type="task" id="B12" action="edit-file" desc="Fill Module Structure section">
148
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
149
- <field name="operation">search_replace</field>
150
- <field name="content_source">${tech_stack}${conventions_design}</field>
151
- <field name="section">Module Structure</field>
152
- </block>
153
-
154
- <block type="task" id="B13" action="edit-file" desc="Fill Interface Pseudo-code section">
155
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
156
- <field name="operation">search_replace</field>
157
- <field name="content_source">${api_contract}${conventions_dev}</field>
158
- <field name="section">Interface Pseudo-code</field>
159
- </block>
160
-
161
- <block type="task" id="B14" action="edit-file" desc="Fill Database Design section">
162
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
163
- <field name="operation">search_replace</field>
164
- <field name="content_source">${feature_spec}${conventions_data}</field>
165
- <field name="section">Database Design</field>
166
- </block>
167
-
168
- <block type="task" id="B15" action="edit-file" desc="Fill Transaction Boundaries section">
169
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
170
- <field name="operation">search_replace</field>
171
- <field name="content_source">${conventions_data}</field>
172
- <field name="section">Transaction Boundaries</field>
173
- </block>
174
-
175
- <block type="task" id="B16" action="edit-file" desc="Fill Exception Handling section">
176
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
177
- <field name="operation">search_replace</field>
178
- <field name="content_source">${api_contract}${conventions_dev}</field>
179
- <field name="section">Exception Handling</field>
180
- </block>
181
- </block>
182
-
183
- <!-- Step 5: Generate Platform INDEX.md -->
184
- <block type="task" id="B17" action="read-file" desc="Read index template">
185
- <field name="path">speccrew-sd-backend/templates/INDEX-TEMPLATE.md</field>
186
- <field name="output" var="index_template"/>
187
- </block>
188
-
189
- <block type="task" id="B18" action="generate" desc="Create INDEX.md from template">
190
- <field name="template" value="${index_template}"/>
191
- <field name="placeholders">
192
- - {Platform Name} → ${platform_id}
193
- - {Feature Name} → ${feature_name}
194
- </field>
195
- <field name="output_path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
196
- </block>
197
-
198
- <block type="task" id="B19" action="edit-file" desc="Fill Tech Stack Summary">
199
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
200
- <field name="operation">search_replace</field>
201
- <field name="content_source">${tech_stack}</field>
202
- <field name="section">Tech Stack Summary</field>
203
- </block>
204
-
205
- <block type="task" id="B20" action="edit-file" desc="Fill Shared Design Decisions">
206
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
207
- <field name="operation">search_replace</field>
208
- <field name="content_source">${architecture}${conventions_design}</field>
209
- <field name="section">Shared Design Decisions</field>
210
- </block>
211
-
212
- <block type="task" id="B21" action="edit-file" desc="Fill Module List Table">
213
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
214
- <field name="operation">search_replace</field>
215
- <field name="content_source">${extracted_functions}</field>
216
- <field name="section">Module List Table</field>
217
- </block>
218
-
219
- <block type="task" id="B22" action="edit-file" desc="Fill Database Schema Overview">
220
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
221
- <field name="operation">search_replace</field>
222
- <field name="content_source">${extracted_functions}</field>
223
- <field name="section">Database Schema Overview</field>
224
- </block>
225
-
226
- <!-- Step 6: Present Summary -->
227
- <block type="event" id="E2" action="log" level="info" desc="Present design summary">
228
- <field name="message">Backend System Design Summary for: ${feature_name}
229
- Platform: ${platform_id}
230
-
231
- Module Designs: ${extracted_functions.design_count}
232
- ├── [NEW] ${extracted_functions.new_count} modules
233
- ├── [MODIFIED] ${extracted_functions.modified_count} modules
234
- └── [EXISTING] ${extracted_functions.existing_count} modules (no design needed)
235
-
236
- Database Changes:
237
- ├── New Tables: ${extracted_functions.new_tables_count}
238
- ├── Modified Tables: ${extracted_functions.modified_tables_count}
239
- └── Migration Files: ${extracted_functions.migration_count}
240
-
241
- Files Generated:
242
- - ${iteration_path}/03.system-design/${platform_id}/INDEX.md
243
- ${extracted_functions.file_list}</field>
244
- </block>
245
-
246
- </sequence>
247
-
248
- <!-- ============================================================
249
- Output Results
250
- ============================================================ -->
251
- <block type="output" id="O1" desc="Workflow output results">
252
- <field name="status" value="SUCCESS" type="string" desc="Task completion status"/>
253
- <field name="task_id" from="${task_id}" type="string" desc="Task ID"/>
254
- <field name="platform" value="${platform_id}" type="string" desc="Target platform"/>
255
- <field name="feature_id" from="${feature_id}" type="string" desc="Feature ID"/>
256
- <field name="feature" value="${feature_name}" type="string" desc="Feature name"/>
257
- <field name="output_files" type="array" desc="List of generated files">
258
- <field name="file">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
259
- <field name="files" from="${extracted_functions.output_files}"/>
260
- </field>
261
- <field name="summary" value="Backend system design completed for ${feature_name} on ${platform_id}" type="string" desc="Completion summary"/>
262
- </block>
263
-
264
- </workflow>