bmad-method 6.0.0-alpha.3 → 6.0.0-alpha.4

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 (495) hide show
  1. package/.claude/commands/bmad/bmm/agents/analyst.md +67 -0
  2. package/.claude/commands/bmad/bmm/agents/architect.md +73 -0
  3. package/.claude/commands/bmad/bmm/agents/dev.md +69 -0
  4. package/.claude/commands/bmad/bmm/agents/paige.md +82 -0
  5. package/.claude/commands/bmad/bmm/agents/pm.md +76 -0
  6. package/.claude/commands/bmad/bmm/agents/sm.md +85 -0
  7. package/.claude/commands/bmad/bmm/agents/tea.md +72 -0
  8. package/.claude/commands/bmad/bmm/agents/ux-designer.md +71 -0
  9. package/.claude/commands/bmad/bmm/workflows/README.md +132 -0
  10. package/.claude/commands/bmad/bmm/workflows/architecture.md +15 -0
  11. package/.claude/commands/bmad/bmm/workflows/brainstorm-project.md +15 -0
  12. package/.claude/commands/bmad/bmm/workflows/code-review.md +15 -0
  13. package/.claude/commands/bmad/bmm/workflows/correct-course.md +15 -0
  14. package/.claude/commands/bmad/bmm/workflows/create-epics-and-stories.md +15 -0
  15. package/.claude/commands/bmad/bmm/workflows/create-story.md +15 -0
  16. package/.claude/commands/bmad/bmm/workflows/create-ux-design.md +15 -0
  17. package/.claude/commands/bmad/bmm/workflows/dev-story.md +15 -0
  18. package/.claude/commands/bmad/bmm/workflows/document-project.md +15 -0
  19. package/.claude/commands/bmad/bmm/workflows/narrative.md +15 -0
  20. package/.claude/commands/bmad/bmm/workflows/prd.md +15 -0
  21. package/.claude/commands/bmad/bmm/workflows/product-brief.md +15 -0
  22. package/.claude/commands/bmad/bmm/workflows/research.md +15 -0
  23. package/.claude/commands/bmad/bmm/workflows/retrospective.md +15 -0
  24. package/.claude/commands/bmad/bmm/workflows/solutioning-gate-check.md +15 -0
  25. package/.claude/commands/bmad/bmm/workflows/sprint-planning.md +15 -0
  26. package/.claude/commands/bmad/bmm/workflows/story-context.md +15 -0
  27. package/.claude/commands/bmad/bmm/workflows/story-done.md +15 -0
  28. package/.claude/commands/bmad/bmm/workflows/story-ready.md +15 -0
  29. package/.claude/commands/bmad/bmm/workflows/tech-spec-sm.md +15 -0
  30. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +15 -0
  31. package/.claude/commands/bmad/bmm/workflows/workflow-init.md +15 -0
  32. package/.claude/commands/bmad/bmm/workflows/workflow-status.md +15 -0
  33. package/.claude/commands/bmad/cis/agents/README.md +104 -0
  34. package/.claude/commands/bmad/cis/agents/brainstorming-coach.md +62 -0
  35. package/.claude/commands/bmad/cis/agents/creative-problem-solver.md +62 -0
  36. package/.claude/commands/bmad/cis/agents/design-thinking-coach.md +62 -0
  37. package/.claude/commands/bmad/cis/agents/innovation-strategist.md +62 -0
  38. package/.claude/commands/bmad/cis/agents/storyteller.md +59 -0
  39. package/.claude/commands/bmad/cis/workflows/README.md +37 -0
  40. package/.claude/commands/bmad/cis/workflows/design-thinking.md +15 -0
  41. package/.claude/commands/bmad/cis/workflows/innovation-strategy.md +15 -0
  42. package/.claude/commands/bmad/cis/workflows/problem-solving.md +15 -0
  43. package/.claude/commands/bmad/cis/workflows/storytelling.md +15 -0
  44. package/.claude/settings.local.json +10 -41
  45. package/CHANGELOG.md +239 -0
  46. package/README.md +219 -103
  47. package/bmad/_cfg/agent-manifest.csv +13 -4
  48. package/bmad/_cfg/agents/bmm-dev.customize.yaml +42 -0
  49. package/bmad/_cfg/agents/bmm-paige.customize.yaml +42 -0
  50. package/bmad/_cfg/agents/bmm-pm.customize.yaml +42 -0
  51. package/bmad/_cfg/agents/bmm-sm.customize.yaml +42 -0
  52. package/bmad/_cfg/agents/bmm-tea.customize.yaml +42 -0
  53. package/bmad/_cfg/agents/bmm-ux-designer.customize.yaml +42 -0
  54. package/bmad/_cfg/agents/cis-brainstorming-coach.customize.yaml +42 -0
  55. package/bmad/_cfg/agents/cis-creative-problem-solver.customize.yaml +42 -0
  56. package/bmad/_cfg/agents/cis-design-thinking-coach.customize.yaml +42 -0
  57. package/bmad/_cfg/agents/cis-innovation-strategist.customize.yaml +42 -0
  58. package/bmad/_cfg/agents/cis-storyteller.customize.yaml +42 -0
  59. package/bmad/_cfg/files-manifest.csv +289 -22
  60. package/bmad/_cfg/ides/claude-code.yaml +6 -0
  61. package/bmad/_cfg/manifest.yaml +5 -6
  62. package/bmad/_cfg/task-manifest.csv +2 -0
  63. package/bmad/_cfg/workflow-manifest.csv +35 -2
  64. package/bmad/bmb/README.md +135 -73
  65. package/bmad/bmb/agents/bmad-builder.md.bak +70 -0
  66. package/bmad/bmb/config.yaml +2 -2
  67. package/bmad/bmb/workflows/audit-workflow/workflow.yaml.bak +3 -1
  68. package/bmad/bmb/workflows/create-agent/README.md +126 -243
  69. package/bmad/bmb/workflows/create-agent/instructions.md +25 -12
  70. package/bmad/bmb/workflows/create-module/README.md +163 -154
  71. package/bmad/bmb/workflows/create-module/workflow.yaml.bak +2 -0
  72. package/bmad/bmb/workflows/create-workflow/instructions.md +16 -8
  73. package/bmad/bmb/workflows/create-workflow/workflow-creation-guide.md +158 -0
  74. package/bmad/bmb/workflows/create-workflow/workflow.yaml.bak +2 -0
  75. package/bmad/bmb/workflows/edit-agent/workflow.yaml.bak +33 -0
  76. package/bmad/bmb/workflows/edit-module/workflow.yaml.bak +34 -0
  77. package/bmad/bmb/workflows/edit-workflow/workflow.yaml.bak +2 -0
  78. package/bmad/bmb/workflows/module-brief/workflow.yaml.bak +2 -0
  79. package/bmad/bmb/workflows/redoc/workflow.yaml.bak +1 -0
  80. package/bmad/bmm/README.md +169 -0
  81. package/bmad/bmm/agents/analyst.md +67 -0
  82. package/bmad/bmm/agents/architect.md +73 -0
  83. package/bmad/bmm/agents/dev.md +69 -0
  84. package/bmad/bmm/agents/paige.md +82 -0
  85. package/bmad/bmm/agents/pm.md +76 -0
  86. package/bmad/bmm/agents/sm.md +85 -0
  87. package/bmad/bmm/agents/tea.md +72 -0
  88. package/bmad/bmm/agents/ux-designer.md +71 -0
  89. package/bmad/bmm/config.yaml +17 -0
  90. package/bmad/bmm/docs/quick-spec-flow.md +645 -0
  91. package/bmad/bmm/docs/scale-adaptive-system.md +1045 -0
  92. package/bmad/bmm/tasks/daily-standup.xml +85 -0
  93. package/bmad/bmm/teams/team-fullstack.yaml +11 -0
  94. package/bmad/bmm/teams/team-gamedev.yaml +14 -0
  95. package/bmad/bmm/testarch/knowledge/ci-burn-in.md +675 -0
  96. package/bmad/bmm/testarch/knowledge/component-tdd.md +486 -0
  97. package/bmad/bmm/testarch/knowledge/contract-testing.md +957 -0
  98. package/bmad/bmm/testarch/knowledge/data-factories.md +500 -0
  99. package/bmad/bmm/testarch/knowledge/email-auth.md +721 -0
  100. package/bmad/bmm/testarch/knowledge/error-handling.md +725 -0
  101. package/bmad/bmm/testarch/knowledge/feature-flags.md +750 -0
  102. package/bmad/bmm/testarch/knowledge/fixture-architecture.md +401 -0
  103. package/bmad/bmm/testarch/knowledge/network-first.md +486 -0
  104. package/bmad/bmm/testarch/knowledge/nfr-criteria.md +670 -0
  105. package/bmad/bmm/testarch/knowledge/playwright-config.md +730 -0
  106. package/bmad/bmm/testarch/knowledge/probability-impact.md +601 -0
  107. package/bmad/bmm/testarch/knowledge/risk-governance.md +615 -0
  108. package/bmad/bmm/testarch/knowledge/selective-testing.md +732 -0
  109. package/bmad/bmm/testarch/knowledge/selector-resilience.md +527 -0
  110. package/bmad/bmm/testarch/knowledge/test-healing-patterns.md +644 -0
  111. package/bmad/bmm/testarch/knowledge/test-levels-framework.md +473 -0
  112. package/bmad/bmm/testarch/knowledge/test-priorities-matrix.md +373 -0
  113. package/bmad/bmm/testarch/knowledge/test-quality.md +664 -0
  114. package/bmad/bmm/testarch/knowledge/timing-debugging.md +372 -0
  115. package/bmad/bmm/testarch/knowledge/visual-debugging.md +524 -0
  116. package/bmad/bmm/testarch/tea-index.csv +22 -0
  117. package/bmad/bmm/workflows/1-analysis/brainstorm-project/instructions.md +110 -0
  118. package/bmad/bmm/workflows/1-analysis/brainstorm-project/project-context.md +25 -0
  119. package/bmad/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +26 -0
  120. package/bmad/bmm/workflows/1-analysis/domain-research/instructions.md +423 -0
  121. package/bmad/bmm/workflows/1-analysis/domain-research/template.md +180 -0
  122. package/bmad/bmm/workflows/1-analysis/domain-research/workflow.yaml +36 -0
  123. package/bmad/bmm/workflows/1-analysis/product-brief/checklist.md +115 -0
  124. package/bmad/bmm/workflows/1-analysis/product-brief/instructions.md +524 -0
  125. package/bmad/bmm/workflows/1-analysis/product-brief/template.md +181 -0
  126. package/bmad/bmm/workflows/1-analysis/product-brief/workflow.yaml +45 -0
  127. package/bmad/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +144 -0
  128. package/bmad/bmm/workflows/1-analysis/research/checklist-technical.md +249 -0
  129. package/bmad/bmm/workflows/1-analysis/research/checklist.md +299 -0
  130. package/bmad/bmm/workflows/1-analysis/research/claude-code/injections.yaml +114 -0
  131. package/bmad/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +439 -0
  132. package/bmad/bmm/workflows/1-analysis/research/instructions-market.md +679 -0
  133. package/bmad/bmm/workflows/1-analysis/research/instructions-router.md +133 -0
  134. package/bmad/bmm/workflows/1-analysis/research/instructions-technical.md +538 -0
  135. package/bmad/bmm/workflows/1-analysis/research/template-deep-prompt.md +94 -0
  136. package/bmad/bmm/workflows/1-analysis/research/template-market.md +347 -0
  137. package/bmad/bmm/workflows/1-analysis/research/template-technical.md +245 -0
  138. package/bmad/bmm/workflows/1-analysis/research/workflow.yaml +44 -0
  139. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +310 -0
  140. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1319 -0
  141. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +145 -0
  142. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +64 -0
  143. package/bmad/bmm/workflows/2-plan-workflows/narrative/checklist.md +139 -0
  144. package/bmad/bmm/workflows/2-plan-workflows/narrative/instructions-narrative.md +608 -0
  145. package/bmad/bmm/workflows/2-plan-workflows/narrative/narrative-template.md +195 -0
  146. package/bmad/bmm/workflows/2-plan-workflows/narrative/workflow.yaml +29 -0
  147. package/bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +349 -0
  148. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +395 -0
  149. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +33 -0
  150. package/bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  151. package/bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +423 -0
  152. package/bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +237 -0
  153. package/bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  154. package/bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +46 -0
  155. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +214 -0
  156. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +58 -0
  157. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +200 -0
  158. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +451 -0
  159. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1133 -0
  160. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +181 -0
  161. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +87 -0
  162. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +60 -0
  163. package/bmad/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +347 -0
  164. package/bmad/bmm/workflows/3-solutioning/architecture/architecture-template.md +103 -0
  165. package/bmad/bmm/workflows/3-solutioning/architecture/checklist.md +244 -0
  166. package/bmad/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +222 -0
  167. package/bmad/bmm/workflows/3-solutioning/architecture/instructions.md +715 -0
  168. package/bmad/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +13 -0
  169. package/bmad/bmm/workflows/3-solutioning/architecture/workflow.yaml +67 -0
  170. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +175 -0
  171. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +322 -0
  172. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/template.md +146 -0
  173. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +189 -0
  174. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +64 -0
  175. package/bmad/bmm/workflows/4-implementation/code-review/backlog_template.md +12 -0
  176. package/bmad/bmm/workflows/4-implementation/code-review/checklist.md +22 -0
  177. package/bmad/bmm/workflows/4-implementation/code-review/instructions.md +420 -0
  178. package/bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +74 -0
  179. package/bmad/bmm/workflows/4-implementation/correct-course/checklist.md +279 -0
  180. package/bmad/bmm/workflows/4-implementation/correct-course/instructions.md +201 -0
  181. package/bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +43 -0
  182. package/bmad/bmm/workflows/4-implementation/create-story/checklist.md +240 -0
  183. package/bmad/bmm/workflows/4-implementation/create-story/instructions.md +283 -0
  184. package/bmad/bmm/workflows/4-implementation/create-story/template.md +51 -0
  185. package/bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +74 -0
  186. package/bmad/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +367 -0
  187. package/bmad/bmm/workflows/4-implementation/dev-story/checklist.md +38 -0
  188. package/bmad/bmm/workflows/4-implementation/dev-story/instructions.md +262 -0
  189. package/bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +26 -0
  190. package/bmad/bmm/workflows/4-implementation/epic-tech-context/checklist.md +17 -0
  191. package/bmad/bmm/workflows/4-implementation/epic-tech-context/instructions.md +189 -0
  192. package/bmad/bmm/workflows/4-implementation/epic-tech-context/template.md +76 -0
  193. package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +58 -0
  194. package/bmad/bmm/workflows/4-implementation/retrospective/instructions.md +1460 -0
  195. package/bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +71 -0
  196. package/bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  197. package/bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +238 -0
  198. package/bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
  199. package/bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +47 -0
  200. package/bmad/bmm/workflows/4-implementation/story-context/checklist.md +16 -0
  201. package/bmad/bmm/workflows/4-implementation/story-context/context-template.xml +34 -0
  202. package/bmad/bmm/workflows/4-implementation/story-context/instructions.md +234 -0
  203. package/bmad/bmm/workflows/4-implementation/story-context/workflow.yaml +57 -0
  204. package/bmad/bmm/workflows/4-implementation/story-done/instructions.md +111 -0
  205. package/bmad/bmm/workflows/4-implementation/story-done/workflow.yaml +25 -0
  206. package/bmad/bmm/workflows/4-implementation/story-ready/instructions.md +117 -0
  207. package/bmad/bmm/workflows/4-implementation/story-ready/workflow.yaml +25 -0
  208. package/{src/modules → bmad}/bmm/workflows/README.md +41 -0
  209. package/bmad/bmm/workflows/document-project/checklist.md +245 -0
  210. package/bmad/bmm/workflows/document-project/documentation-requirements.csv +12 -0
  211. package/bmad/bmm/workflows/document-project/instructions.md +222 -0
  212. package/bmad/bmm/workflows/document-project/templates/deep-dive-template.md +345 -0
  213. package/bmad/bmm/workflows/document-project/templates/index-template.md +169 -0
  214. package/bmad/bmm/workflows/document-project/templates/project-overview-template.md +103 -0
  215. package/bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  216. package/bmad/bmm/workflows/document-project/templates/source-tree-template.md +135 -0
  217. package/bmad/bmm/workflows/document-project/workflow.yaml +34 -0
  218. package/bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  219. package/bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -0
  220. package/bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  221. package/bmad/bmm/workflows/document-project/workflows/full-scan.yaml +31 -0
  222. package/bmad/bmm/workflows/techdoc/documentation-standards.md +238 -0
  223. package/bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  224. package/bmad/bmm/workflows/testarch/atdd/checklist.md +373 -0
  225. package/bmad/bmm/workflows/testarch/atdd/instructions.md +785 -0
  226. package/bmad/bmm/workflows/testarch/atdd/workflow.yaml +52 -0
  227. package/bmad/bmm/workflows/testarch/automate/checklist.md +580 -0
  228. package/bmad/bmm/workflows/testarch/automate/instructions.md +1303 -0
  229. package/bmad/bmm/workflows/testarch/automate/workflow.yaml +61 -0
  230. package/bmad/bmm/workflows/testarch/ci/checklist.md +246 -0
  231. package/bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +165 -0
  232. package/bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +128 -0
  233. package/bmad/bmm/workflows/testarch/ci/instructions.md +517 -0
  234. package/bmad/bmm/workflows/testarch/ci/workflow.yaml +53 -0
  235. package/bmad/bmm/workflows/testarch/framework/checklist.md +321 -0
  236. package/bmad/bmm/workflows/testarch/framework/instructions.md +455 -0
  237. package/bmad/bmm/workflows/testarch/framework/workflow.yaml +53 -0
  238. package/bmad/bmm/workflows/testarch/nfr-assess/checklist.md +405 -0
  239. package/bmad/bmm/workflows/testarch/nfr-assess/instructions.md +722 -0
  240. package/bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +443 -0
  241. package/bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +56 -0
  242. package/bmad/bmm/workflows/testarch/test-design/checklist.md +234 -0
  243. package/bmad/bmm/workflows/testarch/test-design/instructions.md +621 -0
  244. package/bmad/bmm/workflows/testarch/test-design/test-design-template.md +285 -0
  245. package/bmad/bmm/workflows/testarch/test-design/workflow.yaml +52 -0
  246. package/bmad/bmm/workflows/testarch/test-review/checklist.md +470 -0
  247. package/bmad/bmm/workflows/testarch/test-review/instructions.md +608 -0
  248. package/bmad/bmm/workflows/testarch/test-review/test-review-template.md +388 -0
  249. package/bmad/bmm/workflows/testarch/test-review/workflow.yaml +53 -0
  250. package/bmad/bmm/workflows/testarch/trace/checklist.md +654 -0
  251. package/bmad/bmm/workflows/testarch/trace/instructions.md +1045 -0
  252. package/bmad/bmm/workflows/testarch/trace/trace-template.md +673 -0
  253. package/bmad/bmm/workflows/testarch/trace/workflow.yaml +66 -0
  254. package/bmad/bmm/workflows/workflow-status/init/instructions.md +390 -0
  255. package/bmad/bmm/workflows/workflow-status/init/workflow.yaml +27 -0
  256. package/bmad/bmm/workflows/workflow-status/instructions.md +386 -0
  257. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +54 -0
  258. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml +58 -0
  259. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +76 -0
  260. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml +95 -0
  261. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +88 -0
  262. package/bmad/bmm/workflows/workflow-status/paths/game-design.yaml +75 -0
  263. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +45 -0
  264. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-1.yaml +49 -0
  265. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml +78 -0
  266. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +73 -0
  267. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +75 -0
  268. package/bmad/bmm/workflows/workflow-status/project-levels.yaml +59 -0
  269. package/bmad/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +49 -0
  270. package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +31 -0
  271. package/bmad/bmm/workflows/workflow-status/workflow.yaml +28 -0
  272. package/bmad/cis/README.md +153 -0
  273. package/bmad/cis/agents/README.md +104 -0
  274. package/bmad/cis/agents/brainstorming-coach.md +62 -0
  275. package/bmad/cis/agents/creative-problem-solver.md +62 -0
  276. package/bmad/cis/agents/design-thinking-coach.md +62 -0
  277. package/bmad/cis/agents/innovation-strategist.md +62 -0
  278. package/bmad/cis/agents/storyteller.md +59 -0
  279. package/bmad/{bmd → cis}/config.yaml +3 -3
  280. package/bmad/cis/teams/creative-squad.yaml +6 -0
  281. package/bmad/cis/workflows/README.md +139 -0
  282. package/bmad/cis/workflows/design-thinking/README.md +56 -0
  283. package/bmad/cis/workflows/design-thinking/design-methods.csv +31 -0
  284. package/bmad/cis/workflows/design-thinking/instructions.md +200 -0
  285. package/bmad/cis/workflows/design-thinking/template.md +111 -0
  286. package/bmad/cis/workflows/design-thinking/workflow.yaml +32 -0
  287. package/bmad/cis/workflows/innovation-strategy/README.md +56 -0
  288. package/bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +31 -0
  289. package/bmad/cis/workflows/innovation-strategy/instructions.md +274 -0
  290. package/bmad/cis/workflows/innovation-strategy/template.md +189 -0
  291. package/bmad/cis/workflows/innovation-strategy/workflow.yaml +32 -0
  292. package/bmad/cis/workflows/problem-solving/README.md +56 -0
  293. package/bmad/cis/workflows/problem-solving/instructions.md +250 -0
  294. package/bmad/cis/workflows/problem-solving/solving-methods.csv +31 -0
  295. package/bmad/cis/workflows/problem-solving/template.md +165 -0
  296. package/bmad/cis/workflows/problem-solving/workflow.yaml +32 -0
  297. package/bmad/cis/workflows/storytelling/README.md +58 -0
  298. package/bmad/cis/workflows/storytelling/instructions.md +291 -0
  299. package/bmad/cis/workflows/storytelling/story-types.csv +26 -0
  300. package/bmad/cis/workflows/storytelling/template.md +113 -0
  301. package/bmad/cis/workflows/storytelling/workflow.yaml +32 -0
  302. package/bmad/core/agents/bmad-master.md.bak +69 -0
  303. package/bmad/core/config.yaml +2 -2
  304. package/bmad/core/tasks/workflow.xml +0 -8
  305. package/bmad/core/tools/shard-doc.xml +8 -43
  306. package/docs/document-sharding-guide.md +447 -0
  307. package/docs/index.md +37 -41
  308. package/package.json +1 -1
  309. package/src/core/tools/shard-doc.xml +8 -43
  310. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +158 -0
  311. package/src/modules/bmm/README.md +79 -95
  312. package/src/modules/bmm/agents/game-designer.agent.yaml +2 -2
  313. package/src/modules/bmm/agents/paige.agent.yaml +69 -0
  314. package/src/modules/bmm/agents/pm.agent.yaml +11 -1
  315. package/src/modules/bmm/docs/README.md +235 -0
  316. package/src/modules/bmm/docs/agents-guide.md +1109 -0
  317. package/src/modules/bmm/docs/brownfield-guide.md +638 -0
  318. package/src/modules/bmm/docs/brownfield-guide.md.backup +1324 -0
  319. package/src/modules/bmm/docs/enterprise-agentic-development.md +1040 -0
  320. package/src/modules/bmm/docs/faq.md +589 -0
  321. package/src/modules/bmm/docs/glossary.md +327 -0
  322. package/src/modules/bmm/docs/party-mode.md +1236 -0
  323. package/src/modules/bmm/docs/quick-spec-flow.md +652 -0
  324. package/src/modules/bmm/docs/quick-start.md +366 -0
  325. package/src/modules/bmm/docs/scale-adaptive-system.md +749 -0
  326. package/src/modules/bmm/docs/troubleshooting.md +680 -0
  327. package/src/modules/bmm/docs/workflow-architecture-reference.md +371 -0
  328. package/src/modules/bmm/docs/workflow-document-project-reference.md +487 -0
  329. package/src/modules/bmm/docs/workflows-analysis.md +670 -0
  330. package/src/modules/bmm/docs/workflows-implementation.md +1759 -0
  331. package/src/modules/bmm/docs/workflows-planning.md +1086 -0
  332. package/src/modules/bmm/docs/workflows-solutioning.md +726 -0
  333. package/src/modules/bmm/docs/workflows-testing.md +1572 -0
  334. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +423 -0
  335. package/src/modules/bmm/workflows/1-analysis/domain-research/template.md +180 -0
  336. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +36 -0
  337. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +405 -213
  338. package/src/modules/bmm/workflows/1-analysis/product-brief/template.md +93 -77
  339. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +14 -0
  340. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +144 -0
  341. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +249 -0
  342. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +154 -57
  343. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +45 -29
  344. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +181 -104
  345. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +24 -32
  346. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +94 -46
  347. package/src/modules/bmm/workflows/1-analysis/research/template-market.md +37 -1
  348. package/src/modules/bmm/workflows/1-analysis/research/template-technical.md +36 -1
  349. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +13 -0
  350. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +18 -0
  351. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +22 -0
  352. package/src/modules/bmm/workflows/2-plan-workflows/gdd/instructions-gdd.md +18 -0
  353. package/src/modules/bmm/workflows/2-plan-workflows/gdd/workflow.yaml +14 -0
  354. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +295 -63
  355. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +63 -0
  356. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +395 -0
  357. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +43 -0
  358. package/src/modules/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  359. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +283 -291
  360. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +198 -23
  361. package/src/modules/bmm/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  362. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +24 -6
  363. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +138 -31
  364. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +51 -4
  365. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +50 -17
  366. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +199 -26
  367. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +988 -108
  368. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +132 -6
  369. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +36 -5
  370. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +21 -0
  371. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-template.md +1 -1
  372. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +51 -32
  373. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +17 -4
  374. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +18 -0
  375. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +26 -0
  376. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +29 -0
  377. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +20 -0
  378. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +29 -0
  379. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +27 -0
  380. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +29 -0
  381. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +31 -5
  382. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +1222 -241
  383. package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +28 -0
  384. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +17 -0
  385. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +8 -0
  386. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +31 -1
  387. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +27 -0
  388. package/src/modules/bmm/workflows/techdoc/documentation-standards.md +239 -0
  389. package/tools/cli/commands/install.js +1 -1
  390. package/.claude/commands/bmad/bmd/agents/cli-chief.md +0 -108
  391. package/.claude/commands/bmad/bmd/agents/doc-keeper.md +0 -115
  392. package/.claude/commands/bmad/bmd/agents/release-chief.md +0 -109
  393. package/.claude/hooks/bmad-tts-injector.sh +0 -415
  394. package/.claude/hooks/bmad-voice-manager.sh +0 -511
  395. package/.claude/hooks/check-output-style.sh +0 -112
  396. package/.claude/hooks/download-extra-voices.sh +0 -244
  397. package/.claude/hooks/github-star-reminder.sh +0 -154
  398. package/.claude/hooks/language-manager.sh +0 -392
  399. package/.claude/hooks/learn-manager.sh +0 -475
  400. package/.claude/hooks/personality-manager.sh +0 -438
  401. package/.claude/hooks/piper-download-voices.sh +0 -165
  402. package/.claude/hooks/piper-installer.sh +0 -178
  403. package/.claude/hooks/piper-multispeaker-registry.sh +0 -165
  404. package/.claude/hooks/piper-voice-manager.sh +0 -293
  405. package/.claude/hooks/play-tts-elevenlabs.sh +0 -404
  406. package/.claude/hooks/play-tts-piper.sh +0 -338
  407. package/.claude/hooks/play-tts.sh +0 -100
  408. package/.claude/hooks/provider-commands.sh +0 -540
  409. package/.claude/hooks/provider-manager.sh +0 -298
  410. package/.claude/hooks/replay-target-audio.sh +0 -95
  411. package/.claude/hooks/sentiment-manager.sh +0 -201
  412. package/.claude/hooks/speed-manager.sh +0 -291
  413. package/.claude/hooks/voice-manager.sh +0 -594
  414. package/.claude/hooks/voices-config.sh +0 -70
  415. package/bmad/_cfg/agents/bmd-cli-chief.customize.yaml +0 -32
  416. package/bmad/bmb/workflows/create-agent/agent-architecture.md.bak +0 -412
  417. package/bmad/bmb/workflows/create-agent/agent-command-patterns.md.bak +0 -759
  418. package/bmad/bmb/workflows/create-module/README.md.bak +0 -218
  419. package/bmad/bmb/workflows/create-module/checklist.md.bak +0 -245
  420. package/bmad/bmb/workflows/create-module/installer-templates/installer.js.bak +0 -231
  421. package/bmad/bmb/workflows/create-module/instructions.md.bak +0 -521
  422. package/bmad/bmb/workflows/create-module/module-structure.md.bak +0 -310
  423. package/bmad/bmd/README.md +0 -193
  424. package/bmad/bmd/README.md.bak +0 -193
  425. package/bmad/bmd/agents/cli-chief-sidecar/instructions.md +0 -102
  426. package/bmad/bmd/agents/cli-chief-sidecar/instructions.md.bak +0 -102
  427. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/README.md +0 -68
  428. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/README.md.bak +0 -68
  429. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/cli-reference.md +0 -123
  430. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/cli-reference.md.bak +0 -123
  431. package/bmad/bmd/agents/cli-chief-sidecar/memories.md +0 -53
  432. package/bmad/bmd/agents/cli-chief-sidecar/memories.md.bak +0 -53
  433. package/bmad/bmd/agents/cli-chief.md +0 -108
  434. package/bmad/bmd/agents/cli-chief.md.bak +0 -108
  435. package/bmad/bmd/agents/doc-keeper-sidecar/instructions.md +0 -177
  436. package/bmad/bmd/agents/doc-keeper-sidecar/instructions.md.bak +0 -177
  437. package/bmad/bmd/agents/doc-keeper-sidecar/knowledge/README.md +0 -81
  438. package/bmad/bmd/agents/doc-keeper-sidecar/knowledge/README.md.bak +0 -81
  439. package/bmad/bmd/agents/doc-keeper-sidecar/memories.md +0 -88
  440. package/bmad/bmd/agents/doc-keeper-sidecar/memories.md.bak +0 -88
  441. package/bmad/bmd/agents/doc-keeper.md +0 -115
  442. package/bmad/bmd/agents/doc-keeper.md.bak +0 -115
  443. package/bmad/bmd/agents/release-chief-sidecar/instructions.md +0 -164
  444. package/bmad/bmd/agents/release-chief-sidecar/instructions.md.bak +0 -164
  445. package/bmad/bmd/agents/release-chief-sidecar/knowledge/README.md +0 -82
  446. package/bmad/bmd/agents/release-chief-sidecar/knowledge/README.md.bak +0 -82
  447. package/bmad/bmd/agents/release-chief-sidecar/memories.md +0 -73
  448. package/bmad/bmd/agents/release-chief-sidecar/memories.md.bak +0 -73
  449. package/bmad/bmd/agents/release-chief.md +0 -109
  450. package/bmad/bmd/agents/release-chief.md.bak +0 -109
  451. package/bmad/docs/codex-instructions.md +0 -21
  452. package/docs/conversion-report-shard-doc-2025-10-26.md +0 -188
  453. package/src/modules/bmm/workflows/1-analysis/brainstorm-game/README.md +0 -38
  454. package/src/modules/bmm/workflows/1-analysis/game-brief/README.md +0 -221
  455. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-competitor-analyzer.md +0 -259
  456. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-data-analyst.md +0 -190
  457. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-market-researcher.md +0 -337
  458. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-trend-spotter.md +0 -107
  459. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-user-researcher.md +0 -329
  460. package/src/modules/bmm/workflows/2-plan-workflows/gdd/README.md +0 -222
  461. /package/bmad/_cfg/agents/{bmd-doc-keeper.customize.yaml → bmm-analyst.customize.yaml} +0 -0
  462. /package/bmad/_cfg/agents/{bmd-release-chief.customize.yaml → bmm-architect.customize.yaml} +0 -0
  463. /package/{docs/bmad-brownfield-guide.md → bmad/bmm/docs/brownfield-guide.md} +0 -0
  464. /package/{docs/BMad-Method-V6-Quick-Start.md → bmad/bmm/docs/quick-start.md} +0 -0
  465. /package/{src/modules → bmad}/bmm/tasks/retrospective.xml +0 -0
  466. /package/{src/modules → bmad}/bmm/testarch/README.md +0 -0
  467. /package/{src/modules → bmad}/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -0
  468. /package/{src/modules → bmad}/bmm/workflows/1-analysis/product-brief/README.md +0 -0
  469. /package/{src/modules → bmad}/bmm/workflows/1-analysis/research/README.md +0 -0
  470. /package/{src/modules → bmad}/bmm/workflows/2-plan-workflows/README.md +0 -0
  471. /package/{src/modules/bmm/workflows/2-plan-workflows/prd → bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories}/epics-template.md +0 -0
  472. /package/{src/modules → bmad}/bmm/workflows/3-solutioning/README.md +0 -0
  473. /package/{src/modules → bmad}/bmm/workflows/3-solutioning/architecture/README.md +0 -0
  474. /package/{src/modules → bmad}/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -0
  475. /package/{src/modules → bmad}/bmm/workflows/4-implementation/README.md +0 -0
  476. /package/{src/modules → bmad}/bmm/workflows/4-implementation/code-review/README.md +0 -0
  477. /package/{src/modules → bmad}/bmm/workflows/4-implementation/correct-course/README.md +0 -0
  478. /package/{src/modules → bmad}/bmm/workflows/4-implementation/create-story/README.md +0 -0
  479. /package/{src/modules → bmad}/bmm/workflows/4-implementation/dev-story/README.md +0 -0
  480. /package/{src/modules → bmad}/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -0
  481. /package/{src/modules → bmad}/bmm/workflows/4-implementation/retrospective/README.md +0 -0
  482. /package/{src/modules → bmad}/bmm/workflows/4-implementation/sprint-planning/README.md +0 -0
  483. /package/{src/modules → bmad}/bmm/workflows/4-implementation/story-context/README.md +0 -0
  484. /package/{src/modules → bmad}/bmm/workflows/document-project/README.md +0 -0
  485. /package/{src/modules → bmad}/bmm/workflows/document-project/templates/README.md +0 -0
  486. /package/{src/modules → bmad}/bmm/workflows/testarch/README.md +0 -0
  487. /package/{src/modules → bmad}/bmm/workflows/testarch/atdd/README.md +0 -0
  488. /package/{src/modules → bmad}/bmm/workflows/testarch/automate/README.md +0 -0
  489. /package/{src/modules → bmad}/bmm/workflows/testarch/ci/README.md +0 -0
  490. /package/{src/modules → bmad}/bmm/workflows/testarch/framework/README.md +0 -0
  491. /package/{src/modules → bmad}/bmm/workflows/testarch/nfr-assess/README.md +0 -0
  492. /package/{src/modules → bmad}/bmm/workflows/testarch/test-design/README.md +0 -0
  493. /package/{src/modules → bmad}/bmm/workflows/testarch/test-review/README.md +0 -0
  494. /package/{src/modules → bmad}/bmm/workflows/testarch/trace/README.md +0 -0
  495. /package/{src/modules → bmad}/bmm/workflows/workflow-status/README.md +0 -0
@@ -0,0 +1,715 @@
1
+ # Decision Architecture Workflow Instructions
2
+
3
+ <workflow name="architecture">
4
+
5
+ <critical>The workflow execution engine is governed by: {project-root}/bmad/core/tasks/workflow.xml</critical>
6
+ <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
7
+ <critical>This workflow uses ADAPTIVE FACILITATION - adjust your communication style based on {user_skill_level}</critical>
8
+ <critical>The goal is ARCHITECTURAL DECISIONS that prevent AI agent conflicts, not detailed implementation specs</critical>
9
+ <critical>Communicate all responses in {communication_language} and tailor to {user_skill_level}</critical>
10
+ <critical>Generate all documents in {document_output_language}</critical>
11
+ <critical>This workflow replaces architecture with a conversation-driven approach</critical>
12
+
13
+ ## 📚 Input Document Discovery
14
+
15
+ This workflow requires: PRD and epics/stories, and may reference UX design specifications or brownfield project documentation.
16
+
17
+ **Discovery Process** (execute for each referenced document):
18
+
19
+ 1. **Search for whole document first** - Use fuzzy file matching to find the complete document
20
+ 2. **Check for sharded version** - If whole document not found, look for `{doc-name}/index.md`
21
+ 3. **If sharded version found**:
22
+ - Read `index.md` to understand the document structure
23
+ - Read ALL section files listed in the index
24
+ - Treat the combined content as if it were a single document
25
+ 4. **Brownfield projects**: The `document-project` workflow always creates `{output_folder}/docs/index.md`
26
+
27
+ **Priority**: If both whole and sharded versions exist, use the whole document.
28
+
29
+ **Fuzzy matching**: Be flexible with document names - users may use variations in naming conventions.
30
+
31
+ <step n="0" goal="Validate workflow readiness" tag="workflow-status">
32
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
33
+
34
+ <check if="status file not found">
35
+ <output>No workflow status file found. Decision Architecture can run standalone or as part of BMM workflow path.</output>
36
+ <output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
37
+ <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
38
+ <check if="continue">
39
+ <action>Set standalone_mode = true</action>
40
+ </check>
41
+ <check if="exit">
42
+ <action>Exit workflow</action>
43
+ </check>
44
+ </check>
45
+
46
+ <check if="status file found">
47
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
48
+ <action>Parse workflow_status section</action>
49
+ <action>Check status of "create-architecture" workflow</action>
50
+ <action>Get project_level from YAML metadata</action>
51
+ <action>Find first non-completed workflow (next expected workflow)</action>
52
+
53
+ <check if="project_level < 3">
54
+ <output>**Note: Level {{project_level}} Project**
55
+
56
+ The Detailed Architecture is typically for Level 3-4 projects, but can be used for any project that needs architectural planning.
57
+
58
+ For Level {{project_level}}, we'll keep the architecture appropriately scoped.
59
+ </output>
60
+ </check>
61
+
62
+ <check if="create-architecture status is file path (already completed)">
63
+ <output>⚠️ Architecture already completed: {{create-architecture status}}</output>
64
+ <ask>Re-running will overwrite the existing architecture. Continue? (y/n)</ask>
65
+ <check if="n">
66
+ <output>Exiting. Use workflow-status to see your next step.</output>
67
+ <action>Exit workflow</action>
68
+ </check>
69
+ </check>
70
+
71
+ <check if="create-architecture is not the next expected workflow">
72
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Architecture is out of sequence.</output>
73
+ <ask>Continue with Architecture anyway? (y/n)</ask>
74
+ <check if="n">
75
+ <output>Exiting. Run {{next_workflow}} instead.</output>
76
+ <action>Exit workflow</action>
77
+ </check>
78
+ </check>
79
+
80
+ <action>Set standalone_mode = false</action>
81
+ </check>
82
+
83
+ <action>Check for existing PRD and epics files using fuzzy matching</action>
84
+
85
+ <action>Fuzzy match PRD file: {prd_file}</action>
86
+ <check if="PRD_not_found">
87
+ <output>**PRD Not Found**
88
+
89
+ Decision Architecture works from your Product Requirements Document (PRD).
90
+
91
+ Looking for: _PRD_, PRD.md, or prd/index.md + files in {output_folder}
92
+
93
+ Please run the PRD workflow first to define your requirements.
94
+
95
+ Architect: `create-prd`
96
+ </output>
97
+ <action>Exit workflow - PRD required</action>
98
+ </check>
99
+
100
+ </step>
101
+
102
+ <step n="1" goal="Load and understand project context">
103
+ <action>Load the PRD using fuzzy matching: {prd_file}, if the PRD is mulitple files in a folder, load the index file and all files associated with the PRD</action>
104
+ <action>Load epics file using fuzzy matching: {epics_file}</action>
105
+
106
+ <action>Check for UX specification using fuzzy matching:
107
+ <action>Attempt to locate: {ux_spec_file}</action>
108
+ <check if="ux_spec_found">
109
+ <action>Load UX spec and extract architectural implications: - Component complexity (simple forms vs rich interactions) - Animation/transition requirements - Real-time update needs (live data, collaborative features) - Platform-specific UI requirements - Accessibility standards (WCAG compliance level) - Responsive design breakpoints - Offline capability requirements - Performance expectations (load times, interaction responsiveness)
110
+ </action>
111
+ </check>
112
+ </action>
113
+
114
+ <action>Extract and understand from PRD: - Functional Requirements (what it must do) - Non-Functional Requirements (performance, security, compliance, etc.) - Epic structure and user stories - Acceptance criteria - Any technical constraints mentioned
115
+ </action>
116
+
117
+ <action>Count and assess project scale: - Number of epics: {{epic_count}} - Number of stories: {{story_count}} - Complexity indicators (real-time, multi-tenant, regulated, etc.) - UX complexity level (if UX spec exists) - Novel features
118
+ </action>
119
+
120
+ <action>Reflect understanding back to {user_name}:
121
+ "I'm reviewing your project documentation for {{project_name}}.
122
+ I see {{epic_count}} epics with {{story_count}} total stories.
123
+ {{if_ux_spec}}I also found your UX specification which defines the user experience requirements.{{/if_ux_spec}}
124
+
125
+ Key aspects I notice:
126
+ - [Summarize core functionality]
127
+ - [Note critical NFRs]
128
+ {{if_ux_spec}}- [Note UX complexity and requirements]{{/if_ux_spec}}
129
+ - [Identify unique challenges]
130
+
131
+ This will help me guide you through the architectural decisions needed
132
+ to ensure AI agents implement this consistently."
133
+
134
+ </action>
135
+
136
+ <ask>Does this match your understanding of the project?</ask>
137
+ <template-output>project_context_understanding</template-output>
138
+ </step>
139
+
140
+ <step n="2" goal="Discover and evaluate starter templates">
141
+ <critical>Modern starter templates make many good architectural decisions by default</critical>
142
+
143
+ <action>Based on PRD analysis, identify the primary technology domain: - Web application → Look for Next.js, Vite, Remix starters - Mobile app → Look for React Native, Expo, Flutter starters - API/Backend → Look for NestJS, Express, Fastify starters - CLI tool → Look for CLI framework starters - Full-stack → Look for T3, RedwoodJS, Blitz starters
144
+ </action>
145
+
146
+ <check if="ux_spec_loaded">
147
+ <action>Consider UX requirements when selecting starter:
148
+ - Rich animations → Framer Motion compatible starter
149
+ - Complex forms → React Hook Form included starter
150
+ - Real-time features → Socket.io or WebSocket ready starter
151
+ - Accessibility focus → WCAG-compliant component library starter
152
+ - Design system → Storybook-enabled starter
153
+ </action>
154
+ </check>
155
+
156
+ <action>Search for relevant starter templates with websearch, examples:
157
+ <WebSearch>{{primary_technology}} starter template CLI create command latest {date}</WebSearch>
158
+ <WebSearch>{{primary_technology}} boilerplate generator latest options</WebSearch>
159
+ </action>
160
+
161
+ <check if="starter_templates_found">
162
+ <action>Investigate what each starter provides:
163
+ <WebSearch>{{starter_name}} default setup technologies included latest</WebSearch>
164
+ <WebSearch>{{starter_name}} project structure file organization</WebSearch>
165
+ </action>
166
+
167
+ <check if="{user_skill_level} == 'expert'">
168
+ <action>Present starter options concisely:
169
+ "Found {{starter_name}} which provides:
170
+ {{quick_decision_list}}
171
+
172
+ This would establish our base architecture. Use it?"
173
+ </action>
174
+ </check>
175
+
176
+ <check if="{user_skill_level} == 'beginner'">
177
+ <action>Explain starter benefits:
178
+ "I found {{starter_name}}, which is like a pre-built foundation for your project.
179
+
180
+ Think of it like buying a prefab house frame instead of cutting each board yourself.
181
+
182
+ It makes these decisions for you:
183
+ {{friendly_decision_list}}
184
+
185
+ This is a great starting point that follows best practices. Should we use it?"
186
+ </action>
187
+ </check>
188
+
189
+ <ask>Use {{starter_name}} as the foundation? (recommended) [y/n]</ask>
190
+
191
+ <check if="user_accepts_starter">
192
+ <action>Get current starter command and options:
193
+ <WebSearch>{{starter_name}} CLI command options flags latest 2024</WebSearch>
194
+ </action>
195
+
196
+ <action>Document the initialization command:
197
+ Store command: {{full_starter_command_with_options}}
198
+ Example: "npx create-next-app@latest my-app --typescript --tailwind --app"
199
+ </action>
200
+
201
+ <action>Extract and document starter-provided decisions:
202
+ Starter provides these architectural decisions:
203
+ - Language/TypeScript: {{provided_or_not}}
204
+ - Styling solution: {{provided_or_not}}
205
+ - Testing framework: {{provided_or_not}}
206
+ - Linting/Formatting: {{provided_or_not}}
207
+ - Build tooling: {{provided_or_not}}
208
+ - Project structure: {{provided_pattern}}
209
+ </action>
210
+
211
+ <action>Mark these decisions as "PROVIDED BY STARTER" in our decision tracking</action>
212
+
213
+ <action>Note for first implementation story:
214
+ "Project initialization using {{starter_command}} should be the first implementation story"
215
+ </action>
216
+ </check>
217
+
218
+ <check if="user_rejects_starter">
219
+ <ask>Any specific reason to avoid the starter? (helps me understand constraints)</ask>
220
+ <action>Note: Manual setup required, all decisions need to be made explicitly</action>
221
+ </check>
222
+
223
+ </check>
224
+
225
+ <check if="no_starter_found_or_applicable">
226
+ <action>Note: No standard starter template found for this project type.
227
+ We will make all architectural decisions explicitly.</action>
228
+ </check>
229
+
230
+ <template-output>starter_template_decision</template-output>
231
+ </step>
232
+
233
+ <step n="3" goal="Adapt facilitation style and identify remaining decisions">
234
+ <action>Based on {user_skill_level} from config, set facilitation approach:
235
+
236
+ <check if="{user_skill_level} == 'expert'">
237
+ Set mode: EXPERT
238
+ - Use technical terminology freely
239
+ - Move quickly through decisions
240
+ - Assume familiarity with patterns and tools
241
+ - Focus on edge cases and advanced concerns
242
+ </check>
243
+
244
+ <check if="{user_skill_level} == 'intermediate'">
245
+ Set mode: INTERMEDIATE
246
+ - Balance technical accuracy with clarity
247
+ - Explain complex patterns briefly
248
+ - Confirm understanding at key points
249
+ - Provide context for non-obvious choices
250
+ </check>
251
+
252
+ <check if="{user_skill_level} == 'beginner'">
253
+ Set mode: BEGINNER
254
+ - Use analogies and real-world examples
255
+ - Explain technical concepts in simple terms
256
+ - Provide education about why decisions matter
257
+ - Protect from complexity overload
258
+ </check>
259
+ </action>
260
+
261
+ <action>Load decision catalog: {decision_catalog}</action>
262
+ <action>Load architecture patterns: {architecture_patterns}</action>
263
+
264
+ <action>Analyze PRD against patterns to identify needed decisions: - Match functional requirements to known patterns - Identify which categories of decisions are needed - Flag any novel/unique aspects requiring special attention - Consider which decisions the starter template already made (if applicable)
265
+ </action>
266
+
267
+ <action>Create decision priority list:
268
+ CRITICAL (blocks everything): - {{list_of_critical_decisions}}
269
+
270
+ IMPORTANT (shapes architecture):
271
+ - {{list_of_important_decisions}}
272
+
273
+ NICE-TO-HAVE (can defer):
274
+ - {{list_of_optional_decisions}}
275
+
276
+ </action>
277
+
278
+ <action>Announce plan to {user_name} based on mode:
279
+ <check if="mode == 'EXPERT'">
280
+ "Based on your PRD, we need to make {{total_decision_count}} architectural decisions.
281
+ {{starter_covered_count}} are covered by the starter template.
282
+ Let's work through the remaining {{remaining_count}} decisions."
283
+ </check>
284
+
285
+ <check if="mode == 'BEGINNER'">
286
+ "Great! I've analyzed your requirements and found {{total_decision_count}} technical
287
+ choices we need to make. Don't worry - I'll guide you through each one and explain
288
+ why it matters. {{if_starter}}The starter template handles {{starter_covered_count}}
289
+ of these automatically.{{/if_starter}}"
290
+ </check>
291
+
292
+ </action>
293
+
294
+ <template-output>decision_identification</template-output>
295
+ </step>
296
+
297
+ <step n="4" goal="Facilitate collaborative decision making" repeat="for-each-decision">
298
+ <critical>Each decision must be made WITH the user, not FOR them</critical>
299
+ <critical>ALWAYS verify current versions using WebSearch - NEVER trust hardcoded versions</critical>
300
+
301
+ <action>For each decision in priority order:</action>
302
+
303
+ <action>Present the decision based on mode:
304
+ <check if="mode == 'EXPERT'">
305
+ "{{Decision_Category}}: {{Specific_Decision}}
306
+
307
+ Options: {{concise_option_list_with_tradeoffs}}
308
+
309
+ Recommendation: {{recommendation}} for {{reason}}"
310
+
311
+ </check>
312
+
313
+ <check if="mode == 'INTERMEDIATE'">
314
+ "Next decision: {{Human_Friendly_Category}}
315
+
316
+ We need to choose {{Specific_Decision}}.
317
+
318
+ Common options:
319
+ {{option_list_with_brief_explanations}}
320
+
321
+ For your project, {{recommendation}} would work well because {{reason}}."
322
+
323
+ </check>
324
+
325
+ <check if="mode == 'BEGINNER'">
326
+ "Let's talk about {{Human_Friendly_Category}}.
327
+
328
+ {{Educational_Context_About_Why_This_Matters}}
329
+
330
+ Think of it like {{real_world_analogy}}.
331
+
332
+ Your main options:
333
+ {{friendly_options_with_pros_cons}}
334
+
335
+ My suggestion: {{recommendation}}
336
+ This is good for you because {{beginner_friendly_reason}}."
337
+
338
+ </check>
339
+
340
+ </action>
341
+
342
+ <check if="decision_involves_specific_technology">
343
+ <action>Verify current stable version:
344
+ <WebSearch>{{technology}} latest stable version 2024</WebSearch>
345
+ <WebSearch>{{technology}} current LTS version</WebSearch>
346
+ </action>
347
+
348
+ <action>Update decision record with verified version:
349
+ Technology: {{technology}}
350
+ Verified Version: {{version_from_search}}
351
+ Verification Date: {{today}}
352
+ </action>
353
+
354
+ </check>
355
+
356
+ <ask>What's your preference? (or 'explain more' for details)</ask>
357
+
358
+ <check if="user_wants_more_info">
359
+ <action>Provide deeper explanation appropriate to skill level</action>
360
+ <check if="complex_tradeoffs">
361
+ <action>Consider using advanced elicitation:
362
+ "Would you like to explore innovative approaches to this decision?
363
+ I can help brainstorm unconventional solutions if you have specific goals."
364
+ </action>
365
+ </check>
366
+ </check>
367
+
368
+ <action>Record decision:
369
+ Category: {{category}}
370
+ Decision: {{user_choice}}
371
+ Version: {{verified_version_if_applicable}}
372
+ Affects Epics: {{list_of_affected_epics}}
373
+ Rationale: {{user_reasoning_or_default}}
374
+ Provided by Starter: {{yes_if_from_starter}}
375
+ </action>
376
+
377
+ <action>Check for cascading implications:
378
+ "This choice means we'll also need to {{related_decisions}}"
379
+ </action>
380
+
381
+ <template-output>decision_record</template-output>
382
+ </step>
383
+
384
+ <step n="5" goal="Address cross-cutting concerns">
385
+ <critical>These decisions affect EVERY epic and story</critical>
386
+
387
+ <action>Facilitate decisions for consistency patterns: - Error handling strategy (How will all agents handle errors?) - Logging approach (Structured? Format? Levels?) - Date/time handling (Timezone? Format? Library?) - Authentication pattern (Where? How? Token format?) - API response format (Structure? Status codes? Errors?) - Testing strategy (Unit? Integration? E2E?)
388
+ </action>
389
+
390
+ <check if="{user_skill_level} == 'beginner'">
391
+ <action>Explain why these matter why its critical to go through and decide these things now.</action>
392
+ </check>
393
+
394
+ <template-output>cross_cutting_decisions</template-output>
395
+ </step>
396
+
397
+ <step n="6" goal="Define project structure and boundaries">
398
+ <action>Based on all decisions made, define the project structure</action>
399
+
400
+ <action>Create comprehensive source tree: - Root configuration files - Source code organization - Test file locations - Build/dist directories - Documentation structure
401
+ </action>
402
+
403
+ <action>Map epics to architectural boundaries:
404
+ "Epic: {{epic_name}} → Lives in {{module/directory/service}}"
405
+ </action>
406
+
407
+ <action>Define integration points: - Where do components communicate? - What are the API boundaries? - How do services interact?
408
+ </action>
409
+
410
+ <template-output>project_structure</template-output>
411
+ </step>
412
+
413
+ <step n="7" goal="Design novel architectural patterns" optional="true">
414
+ <critical>Some projects require INVENTING new patterns, not just choosing existing ones</critical>
415
+
416
+ <action>Scan PRD for concepts that don't have standard solutions: - Novel interaction patterns (e.g., "swipe to match" before Tinder existed) - Unique multi-component workflows (e.g., "viral invitation system") - New data relationships (e.g., "social graph" before Facebook) - Unprecedented user experiences (e.g., "ephemeral messages" before Snapchat) - Complex state machines crossing multiple epics
417
+ </action>
418
+
419
+ <check if="novel_patterns_detected">
420
+ <action>For each novel pattern identified:</action>
421
+
422
+ <action>Engage user in design collaboration:
423
+ <check if="{user_skill_level} == 'expert'">
424
+ "The {{pattern_name}} concept requires architectural innovation.
425
+
426
+ Core challenge: {{challenge_description}}
427
+
428
+ Let's design the component interaction model:"
429
+ </check>
430
+
431
+ <check if="{user_skill_level} == 'beginner'">
432
+ "Your idea about {{pattern_name}} is unique - there isn't a standard way to build this yet!
433
+
434
+ This is exciting - we get to invent the architecture together.
435
+
436
+ Let me help you think through how this should work:"
437
+ </check>
438
+ </action>
439
+
440
+ <action>Facilitate pattern design:
441
+ 1. Identify core components involved
442
+ 2. Map data flow between components
443
+ 3. Design state management approach
444
+ 4. Create sequence diagrams for complex flows
445
+ 5. Define API contracts for the pattern
446
+ 6. Consider edge cases and failure modes
447
+ </action>
448
+
449
+ <action>Use advanced elicitation for innovation:
450
+ "What if we approached this differently?
451
+ - What would the ideal user experience look like?
452
+ - Are there analogies from other domains we could apply?
453
+ - What constraints can we challenge?"
454
+ </action>
455
+
456
+ <action>Document the novel pattern:
457
+ Pattern Name: {{pattern_name}}
458
+ Purpose: {{what_problem_it_solves}}
459
+ Components:
460
+ {{component_list_with_responsibilities}}
461
+ Data Flow:
462
+ {{sequence_description_or_diagram}}
463
+ Implementation Guide:
464
+ {{how_agents_should_build_this}}
465
+ Affects Epics:
466
+ {{epics_that_use_this_pattern}}
467
+ </action>
468
+
469
+ <action>Validate pattern completeness:
470
+ "Does this {{pattern_name}} design cover all the use cases in your epics?
471
+ - {{use_case_1}}: ✓ Handled by {{component}}
472
+ - {{use_case_2}}: ✓ Handled by {{component}}
473
+ ..."
474
+ </action>
475
+
476
+ </check>
477
+
478
+ <check if="no_novel_patterns">
479
+ <action>Note: All patterns in this project have established solutions.
480
+ Proceeding with standard architectural patterns.</action>
481
+ </check>
482
+
483
+ <template-output>novel_pattern_designs</template-output>
484
+ </step>
485
+
486
+ <step n="8" goal="Define implementation patterns to prevent agent conflicts">
487
+ <critical>These patterns ensure multiple AI agents write compatible code</critical>
488
+ <critical>Focus on what agents could decide DIFFERENTLY if not specified</critical>
489
+
490
+ <action>Load pattern categories: {pattern_categories}</action>
491
+
492
+ <action>Based on chosen technologies, identify potential conflict points:
493
+ "Given that we're using {{tech_stack}}, agents need consistency rules for:"
494
+ </action>
495
+
496
+ <action>For each relevant pattern category, facilitate decisions:
497
+
498
+ NAMING PATTERNS (How things are named):
499
+ <check if="has_api">
500
+ - REST endpoint naming: /users or /user? Plural or singular?
501
+ - Route parameter format: :id or {id}?
502
+ </check>
503
+ <check if="has_database">
504
+ - Table naming: users or Users or user?
505
+ - Column naming: user_id or userId?
506
+ - Foreign key format: user_id or fk_user?
507
+ </check>
508
+ <check if="has_frontend">
509
+ - Component naming: UserCard or user-card?
510
+ - File naming: UserCard.tsx or user-card.tsx?
511
+ </check>
512
+
513
+ STRUCTURE PATTERNS (How things are organized):
514
+ - Where do tests live? __tests__/ or *.test.ts co-located?
515
+ - How are components organized? By feature or by type?
516
+ - Where do shared utilities go?
517
+
518
+ FORMAT PATTERNS (Data exchange formats):
519
+ <check if="has_api">
520
+ - API response wrapper? {data: ..., error: ...} or direct response?
521
+ - Error format? {message, code} or {error: {type, detail}}?
522
+ - Date format in JSON? ISO strings or timestamps?
523
+ </check>
524
+
525
+ COMMUNICATION PATTERNS (How components interact):
526
+ <check if="has_events">
527
+ - Event naming convention?
528
+ - Event payload structure?
529
+ </check>
530
+ <check if="has_state_management">
531
+ - State update pattern?
532
+ - Action naming convention?
533
+ </check>
534
+
535
+ LIFECYCLE PATTERNS (State and flow):
536
+ - How are loading states handled?
537
+ - What's the error recovery pattern?
538
+ - How are retries implemented?
539
+
540
+ LOCATION PATTERNS (Where things go):
541
+ - API route structure?
542
+ - Static asset organization?
543
+ - Config file locations?
544
+
545
+ CONSISTENCY PATTERNS (Cross-cutting):
546
+ - How are dates formatted in the UI?
547
+ - What's the logging format?
548
+ - How are user-facing errors written?
549
+
550
+ </action>
551
+
552
+ <check if="{user_skill_level} == 'expert'">
553
+ <action>Rapid-fire through patterns:
554
+ "Quick decisions on implementation patterns:
555
+ - {{pattern}}: {{suggested_convention}} OK? [y/n/specify]"
556
+ </action>
557
+ </check>
558
+
559
+ <check if="{user_skill_level} == 'beginner'">
560
+ <action>Explain each pattern's importance:
561
+ "Let me explain why this matters:
562
+ If one AI agent names database tables 'users' and another names them 'Users',
563
+ your app will crash. We need to pick one style and make sure everyone follows it."
564
+ </action>
565
+ </check>
566
+
567
+ <action>Document implementation patterns:
568
+ Category: {{pattern_category}}
569
+ Pattern: {{specific_pattern}}
570
+ Convention: {{decided_convention}}
571
+ Example: {{concrete_example}}
572
+ Enforcement: "All agents MUST follow this pattern"
573
+ </action>
574
+
575
+ <template-output>implementation_patterns</template-output>
576
+ </step>
577
+
578
+ <step n="9" goal="Validate architectural coherence">
579
+ <action>Run coherence checks:</action>
580
+
581
+ <action>Check decision compatibility: - Do all decisions work together? - Are there any conflicting choices? - Do the versions align properly?
582
+ </action>
583
+
584
+ <action>Verify epic coverage: - Does every epic have architectural support? - Are all user stories implementable with these decisions? - Are there any gaps?
585
+ </action>
586
+
587
+ <action>Validate pattern completeness: - Are there any patterns we missed that agents would need? - Do novel patterns integrate with standard architecture? - Are implementation patterns comprehensive enough?
588
+ </action>
589
+
590
+ <check if="issues_found">
591
+ <action>Address issues with {user_name}:
592
+ "I notice {{issue_description}}.
593
+ We should {{suggested_resolution}}."
594
+ </action>
595
+ <ask>How would you like to resolve this?</ask>
596
+ <action>Update decisions based on resolution</action>
597
+ </check>
598
+
599
+ <template-output>coherence_validation</template-output>
600
+ </step>
601
+
602
+ <step n="10" goal="Generate decision architecture document">
603
+ <critical>The document must be complete, specific, and validation-ready</critical>
604
+ <critical>This is the consistency contract for all AI agents</critical>
605
+
606
+ <action>Load template: {architecture_template}</action>
607
+
608
+ <action>Generate sections: 1. Executive Summary (2-3 sentences about the architecture approach) 2. Project Initialization (starter command if applicable) 3. Decision Summary Table (with verified versions and epic mapping) 4. Complete Project Structure (full tree, no placeholders) 5. Epic to Architecture Mapping (every epic placed) 6. Technology Stack Details (versions, configurations) 7. Integration Points (how components connect) 8. Novel Pattern Designs (if any were created) 9. Implementation Patterns (all consistency rules) 10. Consistency Rules (naming, organization, formats) 11. Data Architecture (models and relationships) 12. API Contracts (request/response formats) 13. Security Architecture (auth, authorization, data protection) 14. Performance Considerations (from NFRs) 15. Deployment Architecture (where and how) 16. Development Environment (setup and prerequisites) 17. Architecture Decision Records (key decisions with rationale)
609
+ </action>
610
+
611
+ <action>Fill template with all collected decisions and patterns</action>
612
+
613
+ <action>Ensure starter command is first implementation story:
614
+ <check if="using_starter_template">
615
+ "## Project Initialization
616
+
617
+ First implementation story should execute:
618
+ ```bash
619
+ {{starter_command_with_options}}
620
+ ```
621
+
622
+ This establishes the base architecture with these decisions:
623
+ {{starter_provided_decisions}}"
624
+ </check>
625
+
626
+ </action>
627
+
628
+ <template-output>architecture_document</template-output>
629
+ </step>
630
+
631
+ <step n="11" goal="Validate document completeness">
632
+ <action>Load validation checklist: {installed_path}/checklist.md</action>
633
+
634
+ <action>Run validation checklist from {installed_path}/checklist.md</action>
635
+
636
+ <action>Verify MANDATORY items:
637
+ □ Decision table has Version column with specific versions
638
+ □ Every epic is mapped to architecture components
639
+ □ Source tree is complete, not generic
640
+ □ No placeholder text remains
641
+ □ All FRs from PRD have architectural support
642
+ □ All NFRs from PRD are addressed
643
+ □ Implementation patterns cover all potential conflicts
644
+ □ Novel patterns are fully documented (if applicable)
645
+ </action>
646
+
647
+ <check if="validation_failed">
648
+ <action>Fix missing items automatically</action>
649
+ <goto step="10">Regenerate document section</goto>
650
+ </check>
651
+
652
+ <template-output>validation_results</template-output>
653
+ </step>
654
+
655
+ <step n="12" goal="Final review and update workflow status">
656
+ <action>Present completion summary:</action>
657
+
658
+ <check if="{user_skill_level} == 'expert'">
659
+ "Architecture complete. {{decision_count}} decisions documented.
660
+ Ready for implementation phase."
661
+ </check>
662
+
663
+ <check if="{user_skill_level} == 'beginner'">
664
+ "Excellent! Your architecture is complete. You made {{decision_count}} important
665
+ decisions that will keep AI agents consistent as they build your app.
666
+
667
+ What happens next:
668
+ 1. AI agents will read this architecture before implementing each story
669
+ 2. They'll follow your technical choices exactly
670
+ 3. Your app will be built with consistent patterns throughout
671
+
672
+ You're ready to move to the implementation phase!"
673
+
674
+ </check>
675
+
676
+ <action>Save document to {output_folder}/architecture.md</action>
677
+
678
+ <check if="standalone_mode != true">
679
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
680
+ <action>Find workflow_status key "create-architecture"</action>
681
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
682
+ <action>Update workflow_status["create-architecture"] = "{output_folder}/bmm-architecture-{{date}}.md"</action>
683
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
684
+
685
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
686
+ <action>Determine next agent from path file based on next workflow</action>
687
+
688
+ </check>
689
+
690
+ <output>✅ Decision Architecture workflow complete!</output>
691
+
692
+ <output>**Deliverables Created:**
693
+
694
+ - ✅ architecture.md - Complete architectural decisions document
695
+ {{if_novel_patterns}}
696
+ - ✅ Novel pattern designs for unique concepts
697
+ {{/if_novel_patterns}}
698
+ {{if_starter_template}}
699
+ - ✅ Project initialization command documented
700
+ {{/if_starter_template}}
701
+
702
+ The architecture is ready to guide AI agents through consistent implementation.
703
+
704
+ **Next Steps:**
705
+
706
+ - **Next required:** {{next_workflow}} ({{next_agent}} agent)
707
+ - Review the architecture.md document before proceeding
708
+
709
+ Check status anytime with: `workflow-status`
710
+ </output>
711
+
712
+ <template-output>completion_summary</template-output>
713
+ </step>
714
+
715
+ </workflow>