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,299 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <workflow id="sd-frontend-main" status="pending" version="1.0" desc="Frontend 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., frontend-vue, frontend-react"/>
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
- <block type="rule" id="R5" level="forbidden" desc="TODO/FIXME placeholders">
40
- <field name="text">Design documents MUST contain complete implementation logic</field>
41
- <field name="text">Do NOT use TODO, FIXME, HACK, or any placeholder comments</field>
42
- </block>
43
-
44
- <!-- ============================================================
45
- Main Processing Sequence
46
- ============================================================ -->
47
- <sequence id="S1" name="Frontend System Design" status="pending" desc="Generate frontend detailed design documents">
48
-
49
- <!-- Step 1: Read Inputs -->
50
- <block type="task" id="B1" action="read-file" desc="Read Feature Spec document">
51
- <field name="path">${iteration_path}/02.feature-design/${feature_id}-${feature_name}-feature-spec.md</field>
52
- <field name="fallback_path">${iteration_path}/02.feature-design/${feature_name}-feature-spec.md</field>
53
- <field name="output" var="feature_spec"/>
54
- </block>
55
-
56
- <block type="task" id="B2" action="read-file" desc="Read API Contract">
57
- <field name="path">${iteration_path}/03.api-contract/${feature_id}-${feature_name}-api-contract.md</field>
58
- <field name="fallback_path">${iteration_path}/03.api-contract/${feature_name}-api-contract.md</field>
59
- <field name="output" var="api_contract"/>
60
- </block>
61
-
62
- <!-- Read Techs Knowledge -->
63
- <block type="task" id="B3" action="read-file" desc="Read tech-stack.md">
64
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/tech-stack.md</field>
65
- <field name="output" var="tech_stack"/>
66
- </block>
67
-
68
- <block type="task" id="B4" action="read-file" desc="Read architecture.md">
69
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/architecture.md</field>
70
- <field name="output" var="architecture"/>
71
- </block>
72
-
73
- <block type="task" id="B5" action="read-file" desc="Read conventions-design.md">
74
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/conventions-design.md</field>
75
- <field name="output" var="conventions_design"/>
76
- </block>
77
-
78
- <block type="task" id="B6" action="read-file" desc="Read conventions-dev.md">
79
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/conventions-dev.md</field>
80
- <field name="output" var="conventions_dev"/>
81
- </block>
82
-
83
- <!-- Optional: Read UI style guide -->
84
- <block type="task" id="B7" action="read-file" desc="Read UI style guide">
85
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/ui-style/ui-style-guide.md</field>
86
- <field name="optional" value="true"/>
87
- <field name="output" var="ui_style_guide"/>
88
- </block>
89
-
90
- <!-- Step 2: Analyze Existing Code Structure -->
91
- <block type="task" id="B8" action="analyze" desc="Analyze frontend codebase structure">
92
- <field name="analysis_targets">
93
- - Component directory: src/components/**/*.{vue,tsx}
94
- - Shared/base components: src/components/base/**/*
95
- - State management: src/stores/**/*.ts or src/store/**/*.ts
96
- - Router configuration: src/router/**/*.ts
97
- - API layer: src/apis/**/*.ts or src/api/**/*.ts
98
- - Naming conventions from existing code
99
- </field>
100
- <field name="output" var="codebase_analysis"/>
101
- </block>
102
-
103
- <!-- Step 3: Extract Functions from Feature Spec -->
104
- <block type="task" id="B9" action="analyze" desc="Extract frontend functions">
105
- <field name="input" value="${feature_spec}">${api_contract}</field>
106
- <field name="extraction_rules">
107
- - Parse Feature Spec Section 2.N pattern
108
- - Extract frontend prototype (ASCII wireframe)
109
- - Extract interaction flow
110
- - Extract backend API calls from API Contract
111
- - Extract data requirements
112
- - Mark components as [EXISTING], [MODIFIED], or [NEW]
113
- </field>
114
- <field name="output" var="extracted_functions"/>
115
- </block>
116
-
117
- <!-- Checkpoint A: Present function extraction summary -->
118
- <block type="event" id="E1" action="confirm" title="Function Extraction Confirmation" type="yesno" desc="Present function extraction summary">
119
- <field name="preview">Frontend Functions Extracted for: ${feature_name}
120
- Platform: ${platform_id}
121
-
122
- Function Extraction Summary:
123
- ${extracted_functions.summary}
124
-
125
- Component Markers:
126
- - [NEW]: ${extracted_functions.new_count} components
127
- - [MODIFIED]: ${extracted_functions.modified_count} components
128
- - [EXISTING]: ${extracted_functions.existing_count} components
129
-
130
- Confirm function extraction before proceeding?</field>
131
- </block>
132
-
133
- <!-- Step 4: Generate Module Design Documents -->
134
- <block type="task" id="B10" action="read-file" desc="Read design template">
135
- <field name="path">speccrew-sd-frontend/templates/SD-FRONTEND-TEMPLATE.md</field>
136
- <field name="output" var="design_template"/>
137
- </block>
138
-
139
- <!-- Loop: Generate design for each function -->
140
- <block type="loop" id="L1" over="${extracted_functions.functions}" as="function" desc="Generate module design documents">
141
- <block type="gateway" id="G1" mode="exclusive" desc="Determine output path">
142
- <branch test="${feature_id} != null" name="With feature_id">
143
- <block type="task" id="B11" action="generate" desc="Copy template and create document">
144
- <field name="template" value="${design_template}"/>
145
- <field name="placeholders">
146
- - {Module Name} → ${function.module_name}
147
- - {Feature Name} → ${feature_name}
148
- - {Platform ID} → ${platform_id}
149
- </field>
150
- <field name="output_path">${iteration_path}/03.system-design/${platform_id}/${feature_id}-${feature_name}-design.md</field>
151
- <field name="output" var="module_doc_created"/>
152
- </block>
153
- </branch>
154
- <branch default="true" name="Without feature_id">
155
- <block type="task" id="B12" action="generate" desc="Copy template and create document">
156
- <field name="template" value="${design_template}"/>
157
- <field name="placeholders">
158
- - {Module Name} → ${function.module_name}
159
- - {Feature Name} → ${feature_name}
160
- - {Platform ID} → ${platform_id}
161
- </field>
162
- <field name="output_path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
163
- <field name="output" var="module_doc_created"/>
164
- </block>
165
- </branch>
166
- </block>
167
-
168
- <block type="task" id="B13" action="edit-file" desc="Fill Component Tree section">
169
- <field name="path">${module_doc_created.path}</field>
170
- <field name="operation">search_replace</field>
171
- <field name="content_source">${feature_spec}${conventions_design}</field>
172
- <field name="section">Component Tree</field>
173
- </block>
174
-
175
- <block type="task" id="B14" action="edit-file" desc="Fill Props/Emits section">
176
- <field name="path">${module_doc_created.path}</field>
177
- <field name="operation">search_replace</field>
178
- <field name="content_source">${conventions_dev}</field>
179
- <field name="section">Props/Emits</field>
180
- </block>
181
-
182
- <block type="task" id="B15" action="edit-file" desc="Fill State Management section">
183
- <field name="path">${module_doc_created.path}</field>
184
- <field name="operation">search_replace</field>
185
- <field name="content_source">${architecture}${conventions_design}</field>
186
- <field name="section">State Management</field>
187
- </block>
188
-
189
- <block type="task" id="B16" action="edit-file" desc="Fill API Layer section">
190
- <field name="path">${module_doc_created.path}</field>
191
- <field name="operation">search_replace</field>
192
- <field name="content_source">${api_contract}${conventions_dev}</field>
193
- <field name="section">API Layer</field>
194
- </block>
195
-
196
- <block type="task" id="B17" action="edit-file" desc="Fill Routing section">
197
- <field name="path">${module_doc_created.path}</field>
198
- <field name="operation">search_replace</field>
199
- <field name="content_source">${conventions_design}</field>
200
- <field name="section">Routing</field>
201
- </block>
202
-
203
- <block type="task" id="B18" action="edit-file" desc="Fill Pseudo-code section">
204
- <field name="path">${module_doc_created.path}</field>
205
- <field name="operation">search_replace</field>
206
- <field name="content_source">${conventions_dev}${function}</field>
207
- <field name="section">Pseudo-code</field>
208
- </block>
209
- </block>
210
-
211
- <!-- Step 5: Generate Platform INDEX.md -->
212
- <block type="task" id="B19" action="read-file" desc="Read index template">
213
- <field name="path">speccrew-sd-frontend/templates/INDEX-TEMPLATE.md</field>
214
- <field name="output" var="index_template"/>
215
- </block>
216
-
217
- <block type="task" id="B20" action="generate" desc="Create INDEX.md from template">
218
- <field name="template" value="${index_template}"/>
219
- <field name="placeholders">
220
- - {Platform Name} → ${platform_id}
221
- - {Feature Name} → ${feature_name}
222
- </field>
223
- <field name="output_path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
224
- </block>
225
-
226
- <block type="task" id="B21" action="edit-file" desc="Fill Tech Stack Summary">
227
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
228
- <field name="operation">search_replace</field>
229
- <field name="content_source">${tech_stack}</field>
230
- <field name="section">Tech Stack Summary</field>
231
- </block>
232
-
233
- <block type="task" id="B22" action="edit-file" desc="Fill Shared Design Decisions">
234
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
235
- <field name="operation">search_replace</field>
236
- <field name="content_source">${architecture}${conventions_design}</field>
237
- <field name="section">Shared Design Decisions</field>
238
- </block>
239
-
240
- <block type="task" id="B23" action="edit-file" desc="Fill Global State Strategy">
241
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
242
- <field name="operation">search_replace</field>
243
- <field name="content_source">${architecture}</field>
244
- <field name="section">Global State Strategy</field>
245
- </block>
246
-
247
- <block type="task" id="B24" action="edit-file" desc="Fill Base Components">
248
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
249
- <field name="operation">search_replace</field>
250
- <field name="content_source">${conventions_design}</field>
251
- <field name="section">Base Components</field>
252
- </block>
253
-
254
- <block type="task" id="B25" action="edit-file" desc="Fill Module List">
255
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
256
- <field name="operation">search_replace</field>
257
- <field name="content_source">${extracted_functions}</field>
258
- <field name="section">Module List</field>
259
- </block>
260
-
261
- <!-- Step 6: Present Summary -->
262
- <block type="event" id="E2" action="log" level="info" desc="Present design summary">
263
- <field name="message">Frontend System Design Summary for: ${feature_name}
264
- Platform: ${platform_id}
265
-
266
- Module Design Documents: ${extracted_functions.design_count}
267
- ${extracted_functions.file_list}
268
-
269
- Key Design Decisions:
270
- - State Management: ${architecture.state_management}
271
- - Component Strategy: ${conventions_design.component_strategy}
272
- - API Layer: ${conventions_dev.api_pattern}
273
-
274
- Please confirm:
275
- 1. Are the component architectures appropriate?
276
- 2. Is the state management strategy correct?
277
- 3. Do the pseudo-code patterns match project conventions?
278
- 4. Are all API calls from API Contract covered?</field>
279
- </block>
280
-
281
- </sequence>
282
-
283
- <!-- ============================================================
284
- Output Results
285
- ============================================================ -->
286
- <block type="output" id="O1" desc="Workflow output results">
287
- <field name="status" value="SUCCESS" type="string" desc="Task completion status"/>
288
- <field name="task_id" from="${task_id}" type="string" desc="Task ID"/>
289
- <field name="platform" value="${platform_id}" type="string" desc="Target platform"/>
290
- <field name="feature_id" from="${feature_id}" type="string" desc="Feature ID"/>
291
- <field name="feature" value="${feature_name}" type="string" desc="Feature name"/>
292
- <field name="output_files" type="array" desc="List of generated files">
293
- <field name="file">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
294
- <field name="files" from="${extracted_functions.output_files}"/>
295
- </field>
296
- <field name="summary" value="Frontend system design completed for ${feature_name} on ${platform_id}" type="string" desc="Completion summary"/>
297
- </block>
298
-
299
- </workflow>
@@ -1,301 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <workflow id="sd-mobile-main" status="pending" version="1.0" desc="Mobile System Design workflow">
3
-
4
- <!-- ============================================================
5
- Input Parameters Definition
6
- ============================================================ -->
7
- <block type="input" id="I1" desc="Workflow input parameters">
8
- <field name="feature_name" required="true" type="string" desc="Feature name"/>
9
- <field name="platform_id" required="true" type="string" desc="Target platform, e.g., mobile-flutter, mobile-react-native"/>
10
- <field name="iteration_path" required="true" type="string" desc="Absolute path to iteration directory"/>
11
- <field name="workspace_path" required="true" type="string" desc="Absolute path to speccrew-workspace"/>
12
- <field name="task_id" required="false" type="string" desc="Task ID from dispatch context"/>
13
- </block>
14
-
15
- <!-- ============================================================
16
- Global Constraints
17
- ============================================================ -->
18
- <block type="rule" id="R1" level="forbidden" desc="Document creation constraints">
19
- <field name="text">NEVER use create_file to write design documents or INDEX directly</field>
20
- <field name="text">MUST create by copying template then filling with search_replace</field>
21
- </block>
22
-
23
- <block type="rule" id="R2" level="forbidden" desc="Full-file rewrite prohibition">
24
- <field name="text">NEVER replace entire document content in single operation</field>
25
- <field name="text">ALWAYS use targeted search_replace on specific sections</field>
26
- </block>
27
-
28
- <block type="rule" id="R3" level="mandatory" desc="Template-first workflow">
29
- <field name="text">Copy template MUST execute before fill sections</field>
30
- <field name="text">Skipping copy and writing content directly is FORBIDDEN</field>
31
- </block>
32
-
33
- <block type="rule" id="R4" level="mandatory" desc="Actual framework syntax">
34
- <field name="text">All pseudo-code MUST use actual framework syntax from techs knowledge</field>
35
- <field name="text">Include actual import statements</field>
36
- </block>
37
-
38
- <block type="rule" id="R5" level="forbidden" desc="TODO/FIXME placeholders">
39
- <field name="text">Design documents MUST contain complete implementation logic</field>
40
- <field name="text">Do NOT use TODO, FIXME, HACK, or any placeholder comments</field>
41
- </block>
42
-
43
- <!-- ============================================================
44
- Main Processing Sequence
45
- ============================================================ -->
46
- <sequence id="S1" name="Mobile System Design" status="pending" desc="Generate mobile detailed design documents">
47
-
48
- <!-- Step 1: Read Inputs -->
49
- <block type="task" id="B1" action="read-file" desc="Read Feature Spec document">
50
- <field name="path">${iteration_path}/02.feature-design/${feature_name}-feature-spec.md</field>
51
- <field name="output" var="feature_spec"/>
52
- </block>
53
-
54
- <block type="task" id="B2" action="read-file" desc="Read API Contract">
55
- <field name="path">${iteration_path}/03.api-contract/${feature_name}-api-contract.md</field>
56
- <field name="output" var="api_contract"/>
57
- </block>
58
-
59
- <!-- Read Techs Knowledge -->
60
- <block type="task" id="B3" action="read-file" desc="Read tech-stack.md">
61
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/tech-stack.md</field>
62
- <field name="output" var="tech_stack"/>
63
- </block>
64
-
65
- <block type="task" id="B4" action="read-file" desc="Read architecture.md">
66
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/architecture.md</field>
67
- <field name="output" var="architecture"/>
68
- </block>
69
-
70
- <block type="task" id="B5" action="read-file" desc="Read conventions-design.md">
71
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/conventions-design.md</field>
72
- <field name="output" var="conventions_design"/>
73
- </block>
74
-
75
- <block type="task" id="B6" action="read-file" desc="Read conventions-dev.md">
76
- <field name="path">${workspace_path}/knowledges/techs/${platform_id}/conventions-dev.md</field>
77
- <field name="output" var="conventions_dev"/>
78
- </block>
79
-
80
- <!-- Step 2: Analyze Existing Code Structure -->
81
- <block type="task" id="B7" action="analyze" desc="Analyze mobile codebase structure">
82
- <field name="analysis_targets">
83
- - Screen/Page directory: lib/screens/**/*.dart or src/screens/**/*.tsx
84
- - Widget/Component directory: lib/widgets/**/*.dart or src/components/**/*
85
- - State management: lib/providers/**/*.dart or src/stores/**/*
86
- - Navigation configuration: lib/router/**/*.dart or src/navigation/**/*
87
- - API layer: lib/api/**/*.dart or src/api/**/*
88
- - Local storage: lib/storage/**/*.dart or src/storage/**/*
89
- - Naming conventions from existing code
90
- </field>
91
- <field name="output" var="codebase_analysis"/>
92
- </block>
93
-
94
- <!-- Step 3: Extract Functions from Feature Spec -->
95
- <block type="task" id="B8" action="analyze" desc="Extract mobile functions">
96
- <field name="input" value="${feature_spec}">${api_contract}</field>
97
- <field name="extraction_rules">
98
- - Parse Feature Spec Section 2.N pattern
99
- - Extract mobile prototype (UI flow description)
100
- - Extract interaction flow
101
- - Extract backend API calls from API Contract
102
- - Extract data requirements
103
- - Extract platform features (camera, GPS, push, biometrics)
104
- - Mark screens/widgets as [EXISTING], [MODIFIED], or [NEW]
105
- </field>
106
- <field name="output" var="extracted_functions"/>
107
- </block>
108
-
109
- <!-- Checkpoint A: Present function extraction summary -->
110
- <block type="event" id="E1" action="confirm" title="Function Extraction Confirmation" type="yesno" desc="Present function extraction summary">
111
- <field name="preview">Mobile Functions Extracted for: ${feature_name}
112
- Platform: ${platform_id}
113
-
114
- Function Extraction Summary:
115
- ${extracted_functions.summary}
116
-
117
- Screen/Widget Markers:
118
- - [NEW]: ${extracted_functions.new_count} screens/widgets
119
- - [MODIFIED]: ${extracted_functions.modified_count} screens/widgets
120
- - [EXISTING]: ${extracted_functions.existing_count} screens/widgets
121
-
122
- Platform Features Required:
123
- ${extracted_functions.platform_features}
124
-
125
- Confirm function extraction before proceeding?</field>
126
- </block>
127
-
128
- <!-- Step 4: Generate Module Design Documents -->
129
- <block type="task" id="B9" action="read-file" desc="Read design template">
130
- <field name="path">speccrew-sd-mobile/templates/SD-MOBILE-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="B10" 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="B11" action="edit-file" desc="Fill Screen/Widget Tree 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">${feature_spec}${conventions_design}</field>
151
- <field name="section">Screen/Widget Tree</field>
152
- </block>
153
-
154
- <block type="task" id="B12" action="edit-file" desc="Fill Props/Parameters 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">${conventions_dev}</field>
158
- <field name="section">Props/Parameters</field>
159
- </block>
160
-
161
- <block type="task" id="B13" action="edit-file" desc="Fill State Management 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">${architecture}${conventions_design}</field>
165
- <field name="section">State Management</field>
166
- </block>
167
-
168
- <block type="task" id="B14" action="edit-file" desc="Fill API Layer 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">${api_contract}${conventions_dev}</field>
172
- <field name="section">API Layer</field>
173
- </block>
174
-
175
- <block type="task" id="B15" action="edit-file" desc="Fill Navigation 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">${conventions_design}</field>
179
- <field name="section">Navigation</field>
180
- </block>
181
-
182
- <block type="task" id="B16" action="edit-file" desc="Fill Local Storage section">
183
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
184
- <field name="operation">search_replace</field>
185
- <field name="content_source">${conventions_dev}</field>
186
- <field name="section">Local Storage</field>
187
- </block>
188
-
189
- <block type="task" id="B17" action="edit-file" desc="Fill Platform Features section">
190
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
191
- <field name="operation">search_replace</field>
192
- <field name="content_source">${function}${tech_stack}</field>
193
- <field name="section">Platform Features</field>
194
- </block>
195
-
196
- <block type="task" id="B18" action="edit-file" desc="Fill Pseudo-code section">
197
- <field name="path">${iteration_path}/03.system-design/${platform_id}/${function.module_name}-design.md</field>
198
- <field name="operation">search_replace</field>
199
- <field name="content_source">${conventions_dev}${function}</field>
200
- <field name="section">Pseudo-code</field>
201
- </block>
202
- </block>
203
-
204
- <!-- Step 5: Generate Platform INDEX.md -->
205
- <block type="task" id="B19" action="read-file" desc="Read index template">
206
- <field name="path">speccrew-sd-mobile/templates/INDEX-TEMPLATE.md</field>
207
- <field name="output" var="index_template"/>
208
- </block>
209
-
210
- <block type="task" id="B20" action="generate" desc="Create INDEX.md from template">
211
- <field name="template" value="${index_template}"/>
212
- <field name="placeholders">
213
- - {Platform Name} → ${platform_id}
214
- - {Feature Name} → ${feature_name}
215
- </field>
216
- <field name="output_path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
217
- </block>
218
-
219
- <block type="task" id="B21" action="edit-file" desc="Fill Tech Stack Summary">
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">${tech_stack}</field>
223
- <field name="section">Tech Stack Summary</field>
224
- </block>
225
-
226
- <block type="task" id="B22" action="edit-file" desc="Fill Target Platforms">
227
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
228
- <field name="operation">search_replace</field>
229
- <field name="content_source">${tech_stack}</field>
230
- <field name="section">Target Platforms</field>
231
- </block>
232
-
233
- <block type="task" id="B23" action="edit-file" desc="Fill State Management Strategy">
234
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
235
- <field name="operation">search_replace</field>
236
- <field name="content_source">${architecture}</field>
237
- <field name="section">State Management Strategy</field>
238
- </block>
239
-
240
- <block type="task" id="B24" action="edit-file" desc="Fill Base Widgets/Components">
241
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
242
- <field name="operation">search_replace</field>
243
- <field name="content_source">${conventions_design}</field>
244
- <field name="section">Base Widgets/Components</field>
245
- </block>
246
-
247
- <block type="task" id="B25" action="edit-file" desc="Fill Module List">
248
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
249
- <field name="operation">search_replace</field>
250
- <field name="content_source">${extracted_functions}</field>
251
- <field name="section">Module List</field>
252
- </block>
253
-
254
- <block type="task" id="B26" action="edit-file" desc="Fill Third-party SDKs">
255
- <field name="path">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
256
- <field name="operation">search_replace</field>
257
- <field name="content_source">${tech_stack}</field>
258
- <field name="section">Third-party SDKs</field>
259
- </block>
260
-
261
- <!-- Step 6: Present Summary -->
262
- <block type="event" id="E2" action="log" level="info" desc="Present design summary">
263
- <field name="message">Mobile System Design Summary for: ${feature_name}
264
- Platform: ${platform_id}
265
-
266
- Module Design Documents: ${extracted_functions.design_count}
267
- ${extracted_functions.file_list}
268
-
269
- Key Design Decisions:
270
- - State Management: ${architecture.state_management}
271
- - Navigation Strategy: ${conventions_design.navigation_pattern}
272
- - API Layer: ${conventions_dev.api_pattern}
273
- - Local Storage: ${conventions_dev.storage_pattern}
274
- - Platform Features: ${extracted_functions.platform_features}
275
-
276
- Please confirm:
277
- 1. Are the screen architectures appropriate?
278
- 2. Is the state management strategy correct?
279
- 3. Do the pseudo-code patterns match project conventions?
280
- 4. Are all API calls from API Contract covered?
281
- 5. Are platform-specific features properly handled?</field>
282
- </block>
283
-
284
- </sequence>
285
-
286
- <!-- ============================================================
287
- Output Results
288
- ============================================================ -->
289
- <block type="output" id="O1" desc="Workflow output results">
290
- <field name="status" value="SUCCESS" type="string" desc="Task completion status"/>
291
- <field name="task_id" from="${task_id}" type="string" desc="Task ID"/>
292
- <field name="platform" value="${platform_id}" type="string" desc="Target platform"/>
293
- <field name="feature" value="${feature_name}" type="string" desc="Feature name"/>
294
- <field name="output_files" type="array" desc="List of generated files">
295
- <field name="file">${iteration_path}/03.system-design/${platform_id}/INDEX.md</field>
296
- <field name="files" from="${extracted_functions.output_files}"/>
297
- </field>
298
- <field name="summary" value="Mobile system design completed for ${feature_name} on ${platform_id}" type="string" desc="Completion summary"/>
299
- </block>
300
-
301
- </workflow>