bmad-method 6.0.0-alpha.11 → 6.0.0-alpha.13

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 (491) hide show
  1. package/.github/workflows/bundle-latest.yaml +79 -27
  2. package/CHANGELOG.md +167 -1
  3. package/README.md +3 -1
  4. package/custom/src/agents/commit-poet/commit-poet.agent.yaml +129 -0
  5. package/custom/src/agents/commit-poet/installation-guide.md +36 -0
  6. package/custom/src/agents/toolsmith/installation-guide.md +36 -0
  7. package/custom/src/agents/toolsmith/toolsmith-sidecar/instructions.md +70 -0
  8. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +111 -0
  9. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +70 -0
  10. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +114 -0
  11. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +134 -0
  12. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +161 -0
  13. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +103 -0
  14. package/custom/src/agents/toolsmith/toolsmith-sidecar/memories.md +17 -0
  15. package/custom/src/agents/toolsmith/toolsmith.agent.yaml +108 -0
  16. package/docs/custom-agent-installation.md +31 -17
  17. package/docs/ide-info/rovo-dev.md +388 -0
  18. package/docs/index.md +6 -81
  19. package/docs/installers-bundlers/installers-modules-platforms-reference.md +1 -1
  20. package/package.json +3 -2
  21. package/src/core/agents/bmad-master.agent.yaml +1 -1
  22. package/src/core/agents/bmad-web-orchestrator.agent.xml +1 -1
  23. package/src/core/tasks/advanced-elicitation-methods.csv +51 -21
  24. package/src/core/tasks/advanced-elicitation.xml +18 -8
  25. package/src/core/tasks/workflow.xml +36 -71
  26. package/src/core/workflows/brainstorming/brain-methods.csv +62 -36
  27. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +196 -0
  28. package/src/core/workflows/brainstorming/steps/step-01b-continue.md +121 -0
  29. package/src/core/workflows/brainstorming/steps/step-02a-user-selected.md +224 -0
  30. package/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +236 -0
  31. package/src/core/workflows/brainstorming/steps/step-02c-random-selection.md +208 -0
  32. package/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +263 -0
  33. package/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +339 -0
  34. package/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +302 -0
  35. package/src/core/workflows/brainstorming/template.md +13 -104
  36. package/src/core/workflows/brainstorming/workflow.md +51 -0
  37. package/src/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
  38. package/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +203 -0
  39. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +159 -0
  40. package/src/core/workflows/party-mode/workflow.md +207 -0
  41. package/src/modules/bmb/README.md +153 -86
  42. package/src/modules/bmb/_module-installer/install-config.yaml +3 -3
  43. package/src/modules/bmb/agents/bmad-builder.agent.yaml +45 -31
  44. package/src/modules/bmb/docs/{agent-menu-patterns.md → agents/agent-menu-patterns.md} +1 -1
  45. package/src/modules/bmb/docs/agents/kb.csv +0 -0
  46. package/src/modules/bmb/docs/{module-agent-architecture.md → agents/module-agent-architecture.md} +1 -1
  47. package/src/modules/bmb/docs/{simple-agent-architecture.md → agents/simple-agent-architecture.md} +1 -1
  48. package/src/modules/bmb/docs/workflows/architecture.md +220 -0
  49. package/src/modules/bmb/docs/workflows/common-workflow-tools.csv +19 -0
  50. package/src/modules/bmb/docs/workflows/csv-data-file-standards.md +206 -0
  51. package/src/modules/bmb/docs/workflows/index.md +45 -0
  52. package/src/modules/bmb/docs/workflows/intent-vs-prescriptive-spectrum.md +220 -0
  53. package/src/modules/bmb/docs/workflows/kb.csv +0 -0
  54. package/src/modules/bmb/docs/workflows/step-template.md +283 -0
  55. package/src/modules/bmb/docs/workflows/terms.md +97 -0
  56. package/src/modules/bmb/docs/workflows/workflow-template.md +152 -0
  57. package/src/modules/bmb/reference/agents/module-examples/README.md +1 -1
  58. package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +2 -2
  59. package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +1 -1
  60. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  61. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  62. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  63. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  64. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  65. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  66. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  67. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  68. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  69. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  70. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  71. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  72. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  73. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  74. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  75. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  76. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  77. package/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md +17 -0
  78. package/src/modules/bmb/workflows/create-agent/data/reference/README.md +3 -0
  79. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +242 -0
  80. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
  81. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
  82. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
  83. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
  84. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
  85. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md +50 -0
  86. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
  87. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
  88. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +223 -0
  89. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
  90. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  91. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  92. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  93. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  94. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  95. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  96. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  97. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  98. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  99. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  100. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  101. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  102. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  103. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  104. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  105. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  106. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  107. package/src/modules/bmb/workflows/create-agent/data/validation-complete.md +305 -0
  108. package/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +145 -0
  109. package/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +210 -0
  110. package/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +260 -0
  111. package/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +237 -0
  112. package/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +231 -0
  113. package/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +224 -0
  114. package/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +234 -0
  115. package/src/modules/bmb/workflows/create-agent/steps/step-08-setup.md +179 -0
  116. package/src/modules/bmb/workflows/create-agent/steps/step-09-customize.md +197 -0
  117. package/src/modules/bmb/workflows/create-agent/steps/step-10-build-tools.md +180 -0
  118. package/src/modules/bmb/workflows/create-agent/steps/step-11-celebrate.md +222 -0
  119. package/src/modules/bmb/workflows/create-agent/templates/agent_commands.md +21 -0
  120. package/src/modules/bmb/workflows/create-agent/templates/agent_persona.md +25 -0
  121. package/src/modules/bmb/workflows/create-agent/templates/agent_purpose_and_type.md +23 -0
  122. package/src/modules/bmb/workflows/create-agent/workflow.md +91 -0
  123. package/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +168 -0
  124. package/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +233 -0
  125. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-overview.md +127 -0
  126. package/src/modules/bmb/workflows/create-workflow/steps/step-04-core-tools.md +145 -0
  127. package/src/modules/bmb/workflows/create-workflow/steps/step-05-memory-requirements.md +136 -0
  128. package/src/modules/bmb/workflows/create-workflow/steps/step-06-external-tools.md +154 -0
  129. package/src/modules/bmb/workflows/create-workflow/steps/step-07-installation-guidance.md +159 -0
  130. package/src/modules/bmb/workflows/create-workflow/steps/step-08-tools-summary.md +167 -0
  131. package/src/modules/bmb/workflows/create-workflow/steps/step-09-design.md +239 -0
  132. package/src/modules/bmb/workflows/create-workflow/steps/step-10-plan-review.md +215 -0
  133. package/src/modules/bmb/workflows/create-workflow/steps/step-11-build.md +262 -0
  134. package/src/modules/bmb/workflows/create-workflow/steps/step-12-review.md +270 -0
  135. package/src/modules/bmb/workflows/create-workflow/templates/build-summary.md +36 -0
  136. package/src/modules/bmb/workflows/create-workflow/templates/completion-section.md +39 -0
  137. package/src/modules/bmb/workflows/create-workflow/templates/content-template.md +21 -0
  138. package/src/modules/bmb/workflows/create-workflow/templates/design-section.md +53 -0
  139. package/src/modules/bmb/workflows/create-workflow/templates/project-info.md +18 -0
  140. package/src/modules/bmb/workflows/create-workflow/templates/requirements-section.md +47 -0
  141. package/src/modules/bmb/workflows/create-workflow/templates/review-section.md +56 -0
  142. package/src/modules/bmb/workflows/create-workflow/templates/step-file.md +139 -0
  143. package/src/modules/bmb/workflows/create-workflow/templates/workflow-plan.md +54 -0
  144. package/src/modules/bmb/workflows/create-workflow/templates/workflow.md +58 -0
  145. package/src/modules/bmb/workflows/create-workflow/workflow.md +58 -0
  146. package/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +134 -0
  147. package/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +202 -0
  148. package/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +157 -0
  149. package/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +150 -0
  150. package/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +150 -0
  151. package/src/modules/bmb/workflows/edit-agent/workflow.md +58 -0
  152. package/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +221 -0
  153. package/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md +253 -0
  154. package/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +217 -0
  155. package/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +193 -0
  156. package/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md +245 -0
  157. package/src/modules/bmb/workflows/edit-workflow/templates/completion-summary.md +75 -0
  158. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-goals.md +68 -0
  159. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-log.md +40 -0
  160. package/src/modules/bmb/workflows/edit-workflow/templates/validation-results.md +51 -0
  161. package/src/modules/bmb/workflows/edit-workflow/templates/workflow-analysis.md +56 -0
  162. package/src/modules/bmb/workflows/edit-workflow/workflow.md +58 -0
  163. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +152 -0
  164. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +243 -0
  165. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +274 -0
  166. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +295 -0
  167. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +264 -0
  168. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +360 -0
  169. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +258 -0
  170. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +301 -0
  171. package/src/modules/bmb/workflows/workflow-compliance-check/templates/compliance-report.md +140 -0
  172. package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +58 -0
  173. package/src/modules/bmgd/agents/game-architect.agent.yaml +1 -1
  174. package/src/modules/bmgd/agents/game-designer.agent.yaml +1 -1
  175. package/src/modules/bmgd/agents/game-dev.agent.yaml +1 -1
  176. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +1 -1
  177. package/src/modules/bmm/_module-installer/install-config.yaml +9 -15
  178. package/src/modules/bmm/agents/analyst.agent.yaml +14 -14
  179. package/src/modules/bmm/agents/architect.agent.yaml +12 -10
  180. package/src/modules/bmm/agents/dev.agent.yaml +20 -16
  181. package/src/modules/bmm/agents/pm.agent.yaml +13 -31
  182. package/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml +36 -0
  183. package/src/modules/bmm/agents/sm.agent.yaml +13 -31
  184. package/src/modules/bmm/agents/tea.agent.yaml +10 -7
  185. package/src/modules/bmm/agents/tech-writer.agent.yaml +7 -20
  186. package/src/modules/bmm/agents/ux-designer.agent.yaml +12 -10
  187. package/src/modules/bmm/data/README.md +29 -0
  188. package/src/modules/bmm/data/project-context-template.md +40 -0
  189. package/src/modules/bmm/docs/README.md +21 -9
  190. package/src/modules/bmm/docs/agents-guide.md +69 -23
  191. package/src/modules/bmm/docs/bmad-quick-flow.md +528 -0
  192. package/src/modules/bmm/docs/brownfield-guide.md +9 -10
  193. package/src/modules/bmm/docs/enterprise-agentic-development.md +1 -1
  194. package/src/modules/bmm/docs/glossary.md +5 -5
  195. package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +909 -1654
  196. package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +2 -2
  197. package/src/modules/bmm/docs/quick-flow-solo-dev.md +337 -0
  198. package/src/modules/bmm/docs/scale-adaptive-system.md +5 -5
  199. package/src/modules/bmm/docs/test-architecture.md +84 -18
  200. package/src/modules/bmm/docs/workflows-analysis.md +36 -140
  201. package/src/modules/bmm/docs/workflows-implementation.md +32 -157
  202. package/src/modules/bmm/docs/workflows-planning.md +51 -212
  203. package/src/modules/bmm/docs/workflows-solutioning.md +24 -69
  204. package/src/modules/bmm/teams/default-party.csv +15 -14
  205. package/src/modules/bmm/teams/team-fullstack.yaml +0 -1
  206. package/src/modules/bmm/testarch/knowledge/api-request.md +303 -0
  207. package/src/modules/bmm/testarch/knowledge/auth-session.md +356 -0
  208. package/src/modules/bmm/testarch/knowledge/burn-in.md +273 -0
  209. package/src/modules/bmm/testarch/knowledge/file-utils.md +260 -0
  210. package/src/modules/bmm/testarch/knowledge/fixtures-composition.md +382 -0
  211. package/src/modules/bmm/testarch/knowledge/intercept-network-call.md +280 -0
  212. package/src/modules/bmm/testarch/knowledge/log.md +294 -0
  213. package/src/modules/bmm/testarch/knowledge/network-error-monitor.md +272 -0
  214. package/src/modules/bmm/testarch/knowledge/network-recorder.md +265 -0
  215. package/src/modules/bmm/testarch/knowledge/overview.md +284 -0
  216. package/src/modules/bmm/testarch/knowledge/recurse.md +296 -0
  217. package/src/modules/bmm/testarch/tea-index.csv +11 -0
  218. package/src/modules/bmm/workflows/1-analysis/product-brief/product-brief.template.md +8 -0
  219. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01-init.md +192 -0
  220. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01b-continue.md +167 -0
  221. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-02-vision.md +203 -0
  222. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-03-users.md +206 -0
  223. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-04-metrics.md +209 -0
  224. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-05-scope.md +223 -0
  225. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-06-complete.md +199 -0
  226. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.md +58 -0
  227. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +136 -0
  228. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +228 -0
  229. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +237 -0
  230. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +205 -0
  231. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +233 -0
  232. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
  233. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
  234. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +235 -0
  235. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +198 -0
  236. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +247 -0
  237. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +257 -0
  238. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +175 -0
  239. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
  240. package/src/modules/bmm/workflows/1-analysis/research/research.template.md +16 -0
  241. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +136 -0
  242. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +237 -0
  243. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +246 -0
  244. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +200 -0
  245. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +237 -0
  246. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
  247. package/src/modules/bmm/workflows/1-analysis/research/workflow.md +198 -0
  248. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +159 -0
  249. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +126 -0
  250. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +209 -0
  251. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +215 -0
  252. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +218 -0
  253. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +233 -0
  254. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +251 -0
  255. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +253 -0
  256. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +223 -0
  257. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +223 -0
  258. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +240 -0
  259. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +247 -0
  260. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +236 -0
  261. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +263 -0
  262. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +226 -0
  263. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +6 -138
  264. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +53 -0
  265. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +5 -200
  266. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +161 -0
  267. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +123 -0
  268. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +275 -0
  269. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +271 -0
  270. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +272 -0
  271. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +249 -0
  272. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +240 -0
  273. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +236 -0
  274. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +280 -0
  275. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +251 -0
  276. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +275 -0
  277. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +210 -0
  278. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +61 -0
  279. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-decision-template.md +13 -0
  280. package/src/modules/bmm/workflows/3-solutioning/architecture/data/domain-complexity.csv +11 -0
  281. package/src/modules/bmm/workflows/3-solutioning/architecture/data/project-types.csv +7 -0
  282. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01-init.md +194 -0
  283. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01b-continue.md +163 -0
  284. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-02-context.md +223 -0
  285. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-03-starter.md +330 -0
  286. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-04-decisions.md +317 -0
  287. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-05-patterns.md +358 -0
  288. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-06-structure.md +378 -0
  289. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-07-validation.md +358 -0
  290. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-08-complete.md +351 -0
  291. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.md +48 -0
  292. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/instructions.md +247 -476
  293. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +8 -18
  294. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +176 -0
  295. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +4 -11
  296. package/src/modules/bmm/workflows/4-implementation/create-story/checklist.md +332 -214
  297. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +324 -0
  298. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +21 -34
  299. package/src/modules/bmm/workflows/4-implementation/dev-story/checklist.md +65 -23
  300. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.xml +406 -0
  301. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +6 -37
  302. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +4 -3
  303. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +2 -0
  304. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/instructions.md +115 -0
  305. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +26 -0
  306. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/checklist.md +25 -0
  307. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +105 -0
  308. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +29 -0
  309. package/src/modules/bmm/workflows/generate-project-context/project-context-template.md +20 -0
  310. package/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md +193 -0
  311. package/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md +317 -0
  312. package/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md +277 -0
  313. package/src/modules/bmm/workflows/generate-project-context/workflow.md +48 -0
  314. package/src/modules/bmm/workflows/testarch/atdd/instructions.md +23 -3
  315. package/src/modules/bmm/workflows/testarch/automate/instructions.md +23 -2
  316. package/src/modules/bmm/workflows/testarch/ci/instructions.md +18 -1
  317. package/src/modules/bmm/workflows/testarch/framework/instructions.md +27 -1
  318. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +8 -2
  319. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +28 -8
  320. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +66 -54
  321. package/src/modules/bmm/workflows/workflow-status/instructions.md +11 -4
  322. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +3 -2
  323. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +3 -2
  324. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +3 -2
  325. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +3 -2
  326. package/src/modules/cis/agents/README.md +1 -1
  327. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +3 -2
  328. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +2 -1
  329. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +2 -1
  330. package/src/modules/cis/agents/innovation-strategist.agent.yaml +2 -1
  331. package/src/modules/cis/agents/presentation-master.agent.yaml +3 -2
  332. package/src/modules/cis/agents/storyteller.agent.yaml +2 -1
  333. package/src/modules/cis/teams/default-party.csv +6 -5
  334. package/src/utility/models/agent-activation-ide.xml +4 -4
  335. package/src/utility/models/agent-activation-web.xml +1 -11
  336. package/src/utility/models/fragments/activation-rules.xml +5 -6
  337. package/src/utility/models/fragments/handler-exec.xml +6 -5
  338. package/src/utility/models/fragments/handler-multi.xml +14 -0
  339. package/test/README.md +1 -1
  340. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +1 -3
  341. package/tools/cli/README.md +1 -0
  342. package/tools/cli/bundlers/web-bundler.js +3 -14
  343. package/tools/cli/commands/agent-install.js +8 -8
  344. package/tools/cli/commands/cleanup.js +141 -0
  345. package/tools/cli/commands/install.js +48 -3
  346. package/tools/cli/installers/lib/core/config-collector.js +24 -0
  347. package/tools/cli/installers/lib/core/installer.js +612 -43
  348. package/tools/cli/installers/lib/ide/antigravity.js +51 -7
  349. package/tools/cli/installers/lib/ide/auggie.js +53 -0
  350. package/tools/cli/installers/lib/ide/claude-code.js +1 -6
  351. package/tools/cli/installers/lib/ide/cline.js +49 -0
  352. package/tools/cli/installers/lib/ide/codex.js +2 -2
  353. package/tools/cli/installers/lib/ide/crush.js +47 -0
  354. package/tools/cli/installers/lib/ide/gemini.js +47 -0
  355. package/tools/cli/installers/lib/ide/github-copilot.js +59 -48
  356. package/tools/cli/installers/lib/ide/iflow.js +47 -0
  357. package/tools/cli/installers/lib/ide/kilo.js +74 -0
  358. package/tools/cli/installers/lib/ide/qwen.js +54 -0
  359. package/tools/cli/installers/lib/ide/roo.js +71 -0
  360. package/tools/cli/installers/lib/ide/rovo-dev.js +290 -0
  361. package/tools/cli/installers/lib/ide/trae.js +47 -0
  362. package/tools/cli/lib/agent/compiler.js +156 -22
  363. package/tools/cli/lib/agent/installer.js +13 -3
  364. package/tools/cli/lib/agent-analyzer.js +46 -18
  365. package/tools/cli/lib/ui.js +204 -9
  366. package/tools/cli/lib/yaml-xml-builder.js +123 -24
  367. package/tools/platform-codes.yaml +12 -0
  368. package/tools/schema/agent.js +169 -20
  369. package/src/core/tasks/adv-elicit-methods.csv +0 -39
  370. package/src/core/workflows/brainstorming/README.md +0 -261
  371. package/src/core/workflows/brainstorming/instructions.md +0 -315
  372. package/src/core/workflows/brainstorming/workflow.yaml +0 -38
  373. package/src/core/workflows/party-mode/instructions.md +0 -183
  374. package/src/core/workflows/party-mode/workflow.yaml +0 -28
  375. package/src/modules/bmb/workflows/audit-workflow/checklist.md +0 -142
  376. package/src/modules/bmb/workflows/audit-workflow/instructions.md +0 -341
  377. package/src/modules/bmb/workflows/audit-workflow/template.md +0 -118
  378. package/src/modules/bmb/workflows/audit-workflow/workflow.yaml +0 -25
  379. package/src/modules/bmb/workflows/convert-legacy/README.md +0 -262
  380. package/src/modules/bmb/workflows/convert-legacy/checklist.md +0 -205
  381. package/src/modules/bmb/workflows/convert-legacy/instructions.md +0 -377
  382. package/src/modules/bmb/workflows/convert-legacy/workflow.yaml +0 -30
  383. package/src/modules/bmb/workflows/create-agent/instructions.md +0 -519
  384. package/src/modules/bmb/workflows/create-agent/workflow.yaml +0 -55
  385. package/src/modules/bmb/workflows/create-workflow/README.md +0 -277
  386. package/src/modules/bmb/workflows/create-workflow/brainstorm-context.md +0 -197
  387. package/src/modules/bmb/workflows/create-workflow/checklist.md +0 -94
  388. package/src/modules/bmb/workflows/create-workflow/instructions.md +0 -725
  389. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -1327
  390. package/src/modules/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -24
  391. package/src/modules/bmb/workflows/create-workflow/workflow-template/instructions.md +0 -15
  392. package/src/modules/bmb/workflows/create-workflow/workflow-template/template.md +0 -9
  393. package/src/modules/bmb/workflows/create-workflow/workflow-template/workflow.yaml +0 -61
  394. package/src/modules/bmb/workflows/create-workflow/workflow.yaml +0 -41
  395. package/src/modules/bmb/workflows/edit-agent/README.md +0 -239
  396. package/src/modules/bmb/workflows/edit-agent/instructions.md +0 -654
  397. package/src/modules/bmb/workflows/edit-agent/workflow.yaml +0 -49
  398. package/src/modules/bmb/workflows/edit-workflow/README.md +0 -119
  399. package/src/modules/bmb/workflows/edit-workflow/checklist.md +0 -70
  400. package/src/modules/bmb/workflows/edit-workflow/instructions.md +0 -342
  401. package/src/modules/bmb/workflows/edit-workflow/workflow.yaml +0 -27
  402. package/src/modules/bmm/_module-installer/assets/bmm-kb.md +0 -1
  403. package/src/modules/bmm/_module-installer/assets/technical-decisions.md +0 -30
  404. package/src/modules/bmm/docs/quick-spec-flow.md +0 -652
  405. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -112
  406. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
  407. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -39
  408. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +0 -425
  409. package/src/modules/bmm/workflows/1-analysis/domain-research/template.md +0 -180
  410. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -56
  411. package/src/modules/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
  412. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
  413. package/src/modules/bmm/workflows/1-analysis/product-brief/template.md +0 -181
  414. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -61
  415. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
  416. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
  417. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +0 -299
  418. package/src/modules/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
  419. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -438
  420. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +0 -675
  421. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +0 -134
  422. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +0 -534
  423. package/src/modules/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
  424. package/src/modules/bmm/workflows/1-analysis/research/template-market.md +0 -347
  425. package/src/modules/bmm/workflows/1-analysis/research/template-technical.md +0 -245
  426. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +0 -62
  427. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
  428. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1308
  429. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -93
  430. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -346
  431. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -703
  432. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -78
  433. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -217
  434. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -74
  435. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +0 -436
  436. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -980
  437. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
  438. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
  439. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -60
  440. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -321
  441. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
  442. package/src/modules/bmm/workflows/3-solutioning/architecture/checklist.md +0 -240
  443. package/src/modules/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
  444. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +0 -768
  445. package/src/modules/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
  446. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -100
  447. package/src/modules/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
  448. package/src/modules/bmm/workflows/4-implementation/code-review/checklist.md +0 -22
  449. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +0 -398
  450. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +0 -256
  451. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +0 -267
  452. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
  453. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -164
  454. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
  455. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -58
  456. package/src/modules/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
  457. package/src/modules/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
  458. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +0 -209
  459. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -63
  460. package/src/modules/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
  461. package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -28
  462. package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
  463. package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -25
  464. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
  465. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
  466. /package/src/modules/bmb/docs/{agent-compilation.md → agents/agent-compilation.md} +0 -0
  467. /package/src/modules/bmb/docs/{expert-agent-architecture.md → agents/expert-agent-architecture.md} +0 -0
  468. /package/src/modules/bmb/docs/{index.md → agents/index.md} +0 -0
  469. /package/src/modules/bmb/docs/{understanding-agent-types.md → agents/understanding-agent-types.md} +0 -0
  470. /package/src/modules/bmb/reference/{readme.md → README.md} +0 -0
  471. /package/src/modules/bmb/workflows/create-agent/{agent-validation-checklist.md → data/agent-validation-checklist.md} +0 -0
  472. /package/src/modules/bmb/workflows/create-agent/{brainstorm-context.md → data/brainstorm-context.md} +0 -0
  473. /package/src/modules/bmb/workflows/create-agent/{communication-presets.csv → data/communication-presets.csv} +0 -0
  474. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/README.md +0 -0
  475. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/brainstorm-context.md +0 -0
  476. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/checklist.md +0 -0
  477. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/installer-templates/install-config.yaml +0 -0
  478. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/installer-templates/installer.js +0 -0
  479. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/instructions.md +0 -0
  480. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/module-structure.md +0 -0
  481. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/workflow.yaml +0 -0
  482. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/README.md +0 -0
  483. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/checklist.md +0 -0
  484. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/instructions.md +0 -0
  485. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/workflow.yaml +0 -0
  486. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/README.md +0 -0
  487. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/checklist.md +0 -0
  488. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/instructions.md +0 -0
  489. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/template.md +0 -0
  490. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/workflow.yaml +0 -0
  491. /package/src/modules/bmm/{workflows/techdoc → data}/documentation-standards.md +0 -0
@@ -1,768 +0,0 @@
1
- # Decision Architecture Workflow Instructions
2
-
3
- <workflow name="architecture">
4
-
5
- <critical>The workflow execution engine is governed by: {project-root}/{bmad_folder}/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
- <critical>Input documents specified in workflow.yaml input_file_patterns - workflow engine handles fuzzy matching, whole vs sharded document discovery automatically</critical>
13
- <critical>ELICITATION POINTS: After completing each major architectural decision area (identified by template-output tags for decision_record, project_structure, novel_pattern_designs, implementation_patterns, and architecture_document), invoke advanced elicitation to refine decisions before proceeding</critical>
14
- <critical>⚠️ ABSOLUTELY NO TIME ESTIMATES - NEVER mention hours, days, weeks, months, or ANY time-based predictions. AI has fundamentally changed development speed - what once took teams weeks/months can now be done by one person in hours. DO NOT give ANY time estimates whatsoever.</critical>
15
- <critical>⚠️ CHECKPOINT PROTOCOL: After EVERY <template-output> tag, you MUST follow workflow.xml substep 2c: SAVE content to file immediately → SHOW checkpoint separator (━━━━━━━━━━━━━━━━━━━━━━━) → DISPLAY generated content → PRESENT options [a]Advanced Elicitation/[c]Continue/[p]Party-Mode/[y]YOLO → WAIT for user response. Never batch saves or skip checkpoints.</critical>
16
-
17
- <step n="0" goal="Validate workflow readiness" tag="workflow-status">
18
- <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
19
-
20
- <check if="status file not found">
21
- <output>No workflow status file found. Create Architecture can run standalone or as part of BMM workflow path.</output>
22
- <output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
23
- <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
24
- <check if="continue">
25
- <action>Set standalone_mode = true</action>
26
- </check>
27
- <check if="exit">
28
- <action>Exit workflow</action>
29
- </check>
30
- </check>
31
-
32
- <check if="status file found">
33
- <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
34
- <action>Parse workflow_status section</action>
35
- <action>Check status of "create-architecture" workflow</action>
36
- <action>Get project_level from YAML metadata</action>
37
- <action>Find first non-completed workflow (next expected workflow)</action>
38
- </check>
39
-
40
- <check if="create-architecture status is indicates already completed">
41
- <output>⚠️ Architecture already completed: {{create-architecture status}}</output>
42
- <ask>Re-running will overwrite the existing architecture. Continue? (y/n)</ask>
43
- <check if="n">
44
- <output>Exiting. Use workflow-status to see your next step.</output>
45
- <action>Exit workflow</action>
46
- </check>
47
- </check>
48
-
49
- <check if="create-architecture is not the next expected workflow">
50
- <output>⚠️ Next expected workflow: {{next_workflow}}. Architecture is out of sequence.</output>
51
- <ask>Continue with Architecture anyway? (y/n)</ask>
52
- <check if="n">
53
- <output>Exiting. Run {{next_workflow}} instead.</output>
54
- <action>Exit workflow</action>
55
- </check>
56
- </check>
57
-
58
- <action>Set standalone_mode = false</action>
59
-
60
- <action>Check for existing PRD file using fuzzy matching</action>
61
-
62
- <action>Fuzzy match PRD file: {prd_file}</action>
63
- <check if="PRD_not_found">
64
- <output>**PRD Not Found**
65
-
66
- Creation of an Architecture works from your Product Requirements Document (PRD), along with an optional UX Design and other assets.
67
-
68
- Looking for: _prd_.md, or prd/\* + files in {output_folder}
69
-
70
- Please talk to the PM Agent to run the Create PRD workflow first to define your requirements, or if I am mistaken and it does exist, provide the file now.
71
- </output>
72
- <ask>Would you like to exit, or can you provide a PRD?
73
- <action if='yes to exit'>Exit workflow - PRD required</action>
74
- <action if='prd provided'>Proceed to Step 1</action>
75
- </ask>
76
- </check>
77
-
78
- </step>
79
-
80
- <step n="0.5" goal="Discover and load input documents">
81
- <invoke-protocol name="discover_inputs" />
82
- <note>After discovery, these content variables are available: {prd_content}, {epics_content}, {ux_design_content}, {document_project_content}</note>
83
- </step>
84
-
85
- <step n="1" goal="Load and understand project context">
86
- <action>Review loaded PRD: {prd_content} (auto-loaded in Step 0.5 - handles both whole and sharded documents)</action>
87
-
88
- <check if="{epics_content} is not empty">
89
- <action>Review loaded epics: {epics_content}</action>
90
- </check>
91
-
92
- <action>Check for UX specification:
93
- <check if="{ux_design_content} is not empty">
94
- <action>Extract architectural implications from {ux_design_content}: - 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)
95
- </action>
96
- </check>
97
- </action>
98
-
99
- <action>Extract and understand from {prd_content}:
100
-
101
- - Functional Requirements (FRs) - the complete list of capabilities
102
- - Non-Functional Requirements (performance, security, compliance, etc.)
103
- - Any technical constraints mentioned
104
- </action>
105
-
106
- <check if="{epics_content} is not empty">
107
- <action>Extract from {epics_content}:
108
- - Epic structure and user stories
109
- - Acceptance criteria
110
- </action>
111
- </check>
112
-
113
- <action>Count and assess project scale:
114
- <check if="{epics_content} is not empty">
115
-
116
- - Number of epics: {{epic_count}}
117
- - Number of stories: {{story_count}}
118
- </check>
119
- <check if="{epics_content} is empty">
120
- - Number of functional requirements: {{fr_count}} (from PRD)
121
- - FR categories: {{fr_category_list}} (capability groups from PRD)
122
- </check>
123
- - Complexity indicators (real-time, multi-tenant, regulated, etc.)
124
- - UX complexity level (if UX spec exists)
125
- - Novel features
126
- </action>
127
-
128
- <action>Reflect understanding back to {user_name}:
129
- "I'm reviewing your project documentation for {{project_name}}.
130
- <check if="{epics_content} is not empty">
131
- I see {{epic_count}} epics with {{story_count}} total stories.
132
- </check>
133
- <check if="{epics_content} is empty">
134
- I found {{fr_count}} functional requirements organized into {{fr_category_list}}.
135
- </check>
136
- {{if_ux_spec}}I also found your UX specification which defines the user experience requirements.{{/if_ux_spec}}
137
-
138
- Key aspects I notice:
139
- - [Summarize core functionality]
140
- - [Note critical NFRs]
141
- {{if_ux_spec}}- [Note UX complexity and requirements]{{/if_ux_spec}}
142
- - [Identify unique challenges]
143
-
144
- This will help me guide you through the architectural decisions needed
145
- to ensure AI agents implement this consistently."
146
-
147
- </action>
148
-
149
- <ask>Does this match your understanding of the project?</ask>
150
- <template-output>project_context_understanding</template-output>
151
- </step>
152
-
153
- <step n="2" goal="Discover and evaluate starter templates">
154
- <critical>Modern starter templates make many good architectural decisions by default</critical>
155
-
156
- <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
157
- </action>
158
-
159
- <check if="ux_spec_loaded">
160
- <action>Consider UX requirements when selecting starter:
161
- - Rich animations → Framer Motion compatible starter
162
- - Complex forms → React Hook Form included starter
163
- - Real-time features → Socket.io or WebSocket ready starter
164
- - Accessibility focus → WCAG-compliant component library starter
165
- - Design system → Storybook-enabled starter
166
- </action>
167
- </check>
168
-
169
- <action>Search for relevant starter templates with websearch, examples:
170
- <WebSearch>{{primary_technology}} starter template CLI create command latest {date}</WebSearch>
171
- <WebSearch>{{primary_technology}} boilerplate generator latest options</WebSearch>
172
- </action>
173
-
174
- <check if="starter_templates_found">
175
- <action>Investigate what each starter provides:
176
- <WebSearch>{{starter_name}} default setup technologies included latest</WebSearch>
177
- <WebSearch>{{starter_name}} project structure file organization</WebSearch>
178
- </action>
179
-
180
- <check if="{user_skill_level} == 'expert'">
181
- <action>Present starter options concisely:
182
- "Found {{starter_name}} which provides:
183
- {{quick_decision_list}}
184
-
185
- This would establish our base architecture. Use it?"
186
- </action>
187
- </check>
188
-
189
- <check if="{user_skill_level} == 'beginner'">
190
- <action>Explain starter benefits:
191
- "I found {{starter_name}}, which is like a pre-built foundation for your project.
192
-
193
- Think of it like buying a prefab house frame instead of cutting each board yourself.
194
-
195
- It makes these decisions for you:
196
- {{friendly_decision_list}}
197
-
198
- This is a great starting point that follows best practices. Should we use it?"
199
- </action>
200
- </check>
201
-
202
- <ask>Use {{starter_name}} as the foundation? (recommended) [y/n]</ask>
203
-
204
- <check if="user_accepts_starter">
205
- <action>Get current starter command and options:
206
- <WebSearch>{{starter_name}} CLI command options flags latest 2024</WebSearch>
207
- </action>
208
-
209
- <action>Document the initialization command:
210
- Store command: {{full_starter_command_with_options}}
211
- Example: "npx create-next-app@latest my-app --typescript --tailwind --app"
212
- </action>
213
-
214
- <action>Extract and document starter-provided decisions:
215
- Starter provides these architectural decisions:
216
- - Language/TypeScript: {{provided_or_not}}
217
- - Styling solution: {{provided_or_not}}
218
- - Testing framework: {{provided_or_not}}
219
- - Linting/Formatting: {{provided_or_not}}
220
- - Build tooling: {{provided_or_not}}
221
- - Project structure: {{provided_pattern}}
222
- </action>
223
-
224
- <action>Mark these decisions as "PROVIDED BY STARTER" in our decision tracking</action>
225
-
226
- <action>Note for first implementation story:
227
- "Project initialization using {{starter_command}} should be the first implementation story"
228
- </action>
229
- </check>
230
-
231
- <check if="user_rejects_starter">
232
- <ask>Any specific reason to avoid the starter? (helps me understand constraints)</ask>
233
- <action>Note: Manual setup required, all decisions need to be made explicitly</action>
234
- </check>
235
-
236
- </check>
237
-
238
- <check if="no_starter_found_or_applicable">
239
- <action>Note: No standard starter template found for this project type.
240
- We will make all architectural decisions explicitly.</action>
241
- </check>
242
-
243
- <template-output>starter_template_decision</template-output>
244
- </step>
245
-
246
- <step n="3" goal="Adapt facilitation style and identify remaining decisions">
247
- <action>Based on {user_skill_level} from config, set facilitation approach:
248
-
249
- <check if="{user_skill_level} == 'expert'">
250
- Set mode: EXPERT
251
- - Use technical terminology freely
252
- - Move quickly through decisions
253
- - Assume familiarity with patterns and tools
254
- - Focus on edge cases and advanced concerns
255
- </check>
256
-
257
- <check if="{user_skill_level} == 'intermediate'">
258
- Set mode: INTERMEDIATE
259
- - Balance technical accuracy with clarity
260
- - Explain complex patterns briefly
261
- - Confirm understanding at key points
262
- - Provide context for non-obvious choices
263
- </check>
264
-
265
- <check if="{user_skill_level} == 'beginner'">
266
- Set mode: BEGINNER
267
- - Use analogies and real-world examples
268
- - Explain technical concepts in simple terms
269
- - Provide education about why decisions matter
270
- - Protect from complexity overload
271
- </check>
272
- </action>
273
-
274
- <action>Load decision catalog: {decision_catalog}</action>
275
- <action>Load architecture patterns: {architecture_patterns}</action>
276
-
277
- <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)
278
- </action>
279
-
280
- <action>Create decision priority list:
281
- CRITICAL (blocks everything): - {{list_of_critical_decisions}}
282
-
283
- IMPORTANT (shapes architecture):
284
- - {{list_of_important_decisions}}
285
-
286
- NICE-TO-HAVE (can defer):
287
- - {{list_of_optional_decisions}}
288
-
289
- </action>
290
-
291
- <action>Announce plan to {user_name} based on mode:
292
- <check if="mode == 'EXPERT'">
293
- "Based on your PRD, we need to make {{total_decision_count}} architectural decisions.
294
- {{starter_covered_count}} are covered by the starter template.
295
- Let's work through the remaining {{remaining_count}} decisions."
296
- </check>
297
-
298
- <check if="mode == 'BEGINNER'">
299
- "Great! I've analyzed your requirements and found {{total_decision_count}} technical
300
- choices we need to make. Don't worry - I'll guide you through each one and explain
301
- why it matters. {{if_starter}}The starter template handles {{starter_covered_count}}
302
- of these automatically.{{/if_starter}}"
303
- </check>
304
-
305
- </action>
306
-
307
- <template-output>decision_identification</template-output>
308
- </step>
309
-
310
- <step n="4" goal="Facilitate collaborative decision making" repeat="for-each-decision">
311
- <critical>Each decision must be made WITH the user, not FOR them</critical>
312
- <critical>ALWAYS verify current versions using WebSearch - NEVER trust hardcoded versions</critical>
313
-
314
- <action>For each decision in priority order:</action>
315
-
316
- <action>Present the decision based on mode:
317
- <check if="mode == 'EXPERT'">
318
- "{{Decision_Category}}: {{Specific_Decision}}
319
-
320
- Options: {{concise_option_list_with_tradeoffs}}
321
-
322
- Recommendation: {{recommendation}} for {{reason}}"
323
-
324
- </check>
325
-
326
- <check if="mode == 'INTERMEDIATE'">
327
- "Next decision: {{Human_Friendly_Category}}
328
-
329
- We need to choose {{Specific_Decision}}.
330
-
331
- Common options:
332
- {{option_list_with_brief_explanations}}
333
-
334
- For your project, {{recommendation}} would work well because {{reason}}."
335
-
336
- </check>
337
-
338
- <check if="mode == 'BEGINNER'">
339
- "Let's talk about {{Human_Friendly_Category}}.
340
-
341
- {{Educational_Context_About_Why_This_Matters}}
342
-
343
- Think of it like {{real_world_analogy}}.
344
-
345
- Your main options:
346
- {{friendly_options_with_pros_cons}}
347
-
348
- My suggestion: {{recommendation}}
349
- This is good for you because {{beginner_friendly_reason}}."
350
-
351
- </check>
352
-
353
- </action>
354
-
355
- <check if="decision_involves_specific_technology">
356
- <action>Verify current stable version:
357
- <WebSearch>{{technology}} latest stable version 2024</WebSearch>
358
- <WebSearch>{{technology}} current LTS version</WebSearch>
359
- </action>
360
-
361
- <action>Update decision record with verified version:
362
- Technology: {{technology}}
363
- Verified Version: {{version_from_search}}
364
- Verification Date: {{today}}
365
- </action>
366
-
367
- </check>
368
-
369
- <ask>What's your preference? (or 'explain more' for details)</ask>
370
-
371
- <check if="user_wants_more_info">
372
- <action>Provide deeper explanation appropriate to skill level</action>
373
- <check if="complex_tradeoffs">
374
- <action>Consider using advanced elicitation:
375
- "Would you like to explore innovative approaches to this decision?
376
- I can help brainstorm unconventional solutions if you have specific goals."
377
- </action>
378
- </check>
379
- </check>
380
-
381
- <action>Record decision:
382
- Category: {{category}}
383
- Decision: {{user_choice}}
384
- Version: {{verified_version_if_applicable}}
385
- <check if="{epics_content} is not empty">
386
- Affects Epics: {{list_of_affected_epics}}
387
- </check>
388
- <check if="{epics_content} is empty">
389
- Affects FR Categories: {{list_of_affected_fr_categories}}
390
- </check>
391
- Rationale: {{user_reasoning_or_default}}
392
- Provided by Starter: {{yes_if_from_starter}}
393
- </action>
394
-
395
- <action>Check for cascading implications:
396
- "This choice means we'll also need to {{related_decisions}}"
397
- </action>
398
-
399
- <template-output>decision_record</template-output>
400
- </step>
401
-
402
- <step n="5" goal="Address cross-cutting concerns">
403
- <critical>These decisions affect EVERY epic and story</critical>
404
-
405
- <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?)
406
- </action>
407
-
408
- <check if="{user_skill_level} == 'beginner'">
409
- <action>Explain why these matter why its critical to go through and decide these things now.</action>
410
- </check>
411
-
412
- <template-output>cross_cutting_decisions</template-output>
413
- </step>
414
-
415
- <step n="6" goal="Define project structure and boundaries">
416
- <action>Based on all decisions made, define the project structure</action>
417
-
418
- <action>Create comprehensive source tree: - Root configuration files - Source code organization - Test file locations - Build/dist directories - Documentation structure
419
- </action>
420
-
421
- <check if="{epics_content} is not empty">
422
- <action>Map epics to architectural boundaries:
423
- "Epic: {{epic_name}} → Lives in {{module/directory/service}}"
424
- </action>
425
- </check>
426
- <check if="{epics_content} is empty">
427
- <action>Map FR categories to architectural boundaries:
428
- "FR Category: {{fr_category_name}} → Lives in {{module/directory/service}}"
429
- </action>
430
- </check>
431
-
432
- <action>Define integration points: - Where do components communicate? - What are the API boundaries? - How do services interact?
433
- </action>
434
-
435
- <template-output>project_structure</template-output>
436
- </step>
437
-
438
- <step n="7" goal="Design novel architectural patterns" optional="true">
439
- <critical>Some projects require INVENTING new patterns, not just choosing existing ones</critical>
440
-
441
- <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)
442
- <check if="{epics_content} is not empty">
443
-
444
- - Complex state machines crossing multiple epics
445
- </check>
446
- <check if="{epics_content} is empty">
447
- - Complex state machines crossing multiple FR categories
448
- </check>
449
- </action>
450
-
451
- <check if="novel_patterns_detected">
452
- <action>For each novel pattern identified:</action>
453
-
454
- <action>Engage user in design collaboration:
455
- <check if="{user_skill_level} == 'expert'">
456
- "The {{pattern_name}} concept requires architectural innovation.
457
-
458
- Core challenge: {{challenge_description}}
459
-
460
- Let's design the component interaction model:"
461
- </check>
462
-
463
- <check if="{user_skill_level} == 'beginner'">
464
- "Your idea about {{pattern_name}} is unique - there isn't a standard way to build this yet!
465
-
466
- This is exciting - we get to invent the architecture together.
467
-
468
- Let me help you think through how this should work:"
469
- </check>
470
-
471
- </action>
472
-
473
- <action>Facilitate pattern design: 1. Identify core components involved 2. Map data flow between components 3. Design state management approach 4. Create sequence diagrams for complex flows 5. Define API contracts for the pattern 6. Consider edge cases and failure modes
474
- </action>
475
-
476
- <action>Use advanced elicitation for innovation:
477
- "What if we approached this differently? - What would the ideal user experience look like? - Are there analogies from other domains we could apply? - What constraints can we challenge?"
478
- </action>
479
-
480
- <action>Document the novel pattern:
481
- Pattern Name: {{pattern_name}}
482
- Purpose: {{what_problem_it_solves}}
483
- Components:
484
- {{component_list_with_responsibilities}}
485
- Data Flow:
486
- {{sequence_description_or_diagram}}
487
- Implementation Guide:
488
- {{how_agents_should_build_this}}
489
-
490
- <check if="{epics_content} is not empty">
491
- Affects Epics:
492
- {{epics_that_use_this_pattern}}
493
- </check>
494
- <check if="{epics_content} is empty">
495
- Affects FR Categories:
496
- {{fr_categories_that_use_this_pattern}}
497
- </check>
498
- </action>
499
-
500
- <action>Validate pattern completeness:
501
-
502
- <check if="{epics_content} is not empty">
503
- "Does this {{pattern_name}} design cover all the use cases in your epics?
504
- </check>
505
- <check if="{epics_content} is empty">
506
- "Does this {{pattern_name}} design cover all the use cases in your requirements?
507
- </check>
508
- - {{use_case_1}}: ✓ Handled by {{component}}
509
- - {{use_case_2}}: ✓ Handled by {{component}}
510
- ..."
511
- </action>
512
-
513
- </check>
514
-
515
- <check if="no_novel_patterns">
516
- <action>Note: All patterns in this project have established solutions.
517
- Proceeding with standard architectural patterns.</action>
518
- </check>
519
-
520
- <template-output>novel_pattern_designs</template-output>
521
- </step>
522
-
523
- <step n="8" goal="Define implementation patterns to prevent agent conflicts">
524
- <critical>These patterns ensure multiple AI agents write compatible code</critical>
525
- <critical>Focus on what agents could decide DIFFERENTLY if not specified</critical>
526
-
527
- <action>Load pattern categories: {pattern_categories}</action>
528
-
529
- <action>Based on chosen technologies, identify potential conflict points:
530
- "Given that we're using {{tech_stack}}, agents need consistency rules for:"
531
- </action>
532
-
533
- <action>For each relevant pattern category, facilitate decisions:
534
-
535
- NAMING PATTERNS (How things are named):
536
- <check if="has_api">
537
- - REST endpoint naming: /users or /user? Plural or singular?
538
- - Route parameter format: :id or {id}?
539
- </check>
540
- <check if="has_database">
541
- - Table naming: users or Users or user?
542
- - Column naming: user_id or userId?
543
- - Foreign key format: user_id or fk_user?
544
- </check>
545
- <check if="has_frontend">
546
- - Component naming: UserCard or user-card?
547
- - File naming: UserCard.tsx or user-card.tsx?
548
- </check>
549
-
550
- STRUCTURE PATTERNS (How things are organized):
551
- - Where do tests live? __tests__/ or *.test.ts co-located?
552
- - How are components organized? By feature or by type?
553
- - Where do shared utilities go?
554
-
555
- FORMAT PATTERNS (Data exchange formats):
556
- <check if="has_api">
557
- - API response wrapper? {data: ..., error: ...} or direct response?
558
- - Error format? {message, code} or {error: {type, detail}}?
559
- - Date format in JSON? ISO strings or timestamps?
560
- </check>
561
-
562
- COMMUNICATION PATTERNS (How components interact):
563
- <check if="has_events">
564
- - Event naming convention?
565
- - Event payload structure?
566
- </check>
567
- <check if="has_state_management">
568
- - State update pattern?
569
- - Action naming convention?
570
- </check>
571
-
572
- LIFECYCLE PATTERNS (State and flow):
573
- - How are loading states handled?
574
- - What's the error recovery pattern?
575
- - How are retries implemented?
576
-
577
- LOCATION PATTERNS (Where things go):
578
- - API route structure?
579
- - Static asset organization?
580
- - Config file locations?
581
-
582
- CONSISTENCY PATTERNS (Cross-cutting):
583
- - How are dates formatted in the UI?
584
- - What's the logging format?
585
- - How are user-facing errors written?
586
-
587
- </action>
588
-
589
- <check if="{user_skill_level} == 'expert'">
590
- <action>Rapid-fire through patterns:
591
- "Quick decisions on implementation patterns:
592
- - {{pattern}}: {{suggested_convention}} OK? [y/n/specify]"
593
- </action>
594
- </check>
595
-
596
- <check if="{user_skill_level} == 'beginner'">
597
- <action>Explain each pattern's importance:
598
- "Let me explain why this matters:
599
- If one AI agent names database tables 'users' and another names them 'Users',
600
- your app will crash. We need to pick one style and make sure everyone follows it."
601
- </action>
602
- </check>
603
-
604
- <action>Document implementation patterns:
605
- Category: {{pattern_category}}
606
- Pattern: {{specific_pattern}}
607
- Convention: {{decided_convention}}
608
- Example: {{concrete_example}}
609
- Enforcement: "All agents MUST follow this pattern"
610
- </action>
611
-
612
- <template-output>implementation_patterns</template-output>
613
- </step>
614
-
615
- <step n="9" goal="Validate architectural coherence">
616
- <action>Run coherence checks:</action>
617
-
618
- <action>Check decision compatibility: - Do all decisions work together? - Are there any conflicting choices? - Do the versions align properly?
619
- </action>
620
-
621
- <check if="{epics_content} is not empty">
622
- <action>Verify epic coverage: - Does every epic have architectural support? - Are all user stories implementable with these decisions? - Are there any gaps?
623
- </action>
624
- </check>
625
- <check if="{epics_content} is empty">
626
- <action>Verify FR coverage: - Does every functional requirement have architectural support? - Are all capabilities implementable with these decisions? - Are there any gaps?
627
- </action>
628
- </check>
629
-
630
- <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?
631
- </action>
632
-
633
- <check if="issues_found">
634
- <action>Address issues with {user_name}:
635
- "I notice {{issue_description}}.
636
- We should {{suggested_resolution}}."
637
- </action>
638
- <ask>How would you like to resolve this?</ask>
639
- <action>Update decisions based on resolution</action>
640
- </check>
641
-
642
- <template-output>coherence_validation</template-output>
643
- </step>
644
-
645
- <step n="10" goal="Generate decision architecture document">
646
- <critical>The document must be complete, specific, and validation-ready</critical>
647
- <critical>This is the consistency contract for all AI agents</critical>
648
-
649
- <action>Load template: {architecture_template}</action>
650
-
651
- <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 coverage mapping) 4. Complete Project Structure (full tree, no placeholders)
652
- <check if="{epics_content} is not empty"> 5. Epic to Architecture Mapping (every epic placed)
653
- </check>
654
- <check if="{epics_content} is empty"> 5. FR Category to Architecture Mapping (every FR category placed)
655
- </check> 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)
656
- </action>
657
-
658
- <action>Fill template with all collected decisions and patterns</action>
659
-
660
- <action>Ensure starter command is first implementation story:
661
- <check if="using_starter_template">
662
- "## Project Initialization
663
-
664
- First implementation story should execute:
665
- ```bash
666
- {{starter_command_with_options}}
667
- ```
668
-
669
- This establishes the base architecture with these decisions:
670
- {{starter_provided_decisions}}"
671
- </check>
672
-
673
- </action>
674
-
675
- <template-output>architecture_document</template-output>
676
- </step>
677
-
678
- <step n="11" goal="Validate document completeness">
679
- <action>Load validation checklist: {installed_path}/checklist.md</action>
680
-
681
- <action>Run validation checklist from {installed_path}/checklist.md</action>
682
-
683
- <action>Verify MANDATORY items:
684
-
685
- - [] Decision table has Version column with specific versions
686
- <check if="{epics_content} is not empty">
687
- - [] Every epic is mapped to architecture components
688
- </check>
689
- <check if="{epics_content} is empty">
690
- - [] Every FR category is mapped to architecture components
691
- </check>
692
- - [] Source tree is complete, not generic
693
- - [] No placeholder text remains
694
- - [] All FRs from PRD have architectural support
695
- - [] All NFRs from PRD are addressed
696
- - [] Implementation patterns cover all potential conflicts
697
- - [] Novel patterns are fully documented (if applicable)
698
- </action>
699
-
700
- <check if="validation_failed">
701
- <action>Fix missing items automatically</action>
702
- <goto step="10">Regenerate document section</goto>
703
- </check>
704
-
705
- <template-output>validation_results</template-output>
706
- </step>
707
-
708
- <step n="12" goal="Final review and update workflow status">
709
- <action>Present completion summary:</action>
710
-
711
- <check if="{user_skill_level} == 'expert'">
712
- "Architecture complete. {{decision_count}} decisions documented.
713
- Ready for implementation phase."
714
- </check>
715
-
716
- <check if="{user_skill_level} == 'beginner'">
717
- "Excellent! Your architecture is complete. You made {{decision_count}} important
718
- decisions that will keep AI agents consistent as they build your app.
719
-
720
- What happens next:
721
- 1. AI agents will read this architecture before implementing each story
722
- 2. They'll follow your technical choices exactly
723
- 3. Your app will be built with consistent patterns throughout
724
-
725
- You're ready to move to the implementation phase!"
726
-
727
- </check>
728
-
729
- <action>Save document to {output_folder}/architecture.md</action>
730
-
731
- <check if="standalone_mode != true">
732
- <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
733
- <action>Find workflow_status key "create-architecture"</action>
734
- <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
735
- <action>Update workflow_status["create-architecture"] = "{output_folder}/bmm-architecture-{{date}}.md"</action>
736
- <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
737
-
738
- <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
739
- <action>Determine next agent from path file based on next workflow</action>
740
-
741
- </check>
742
-
743
- <output>✅ Decision Architecture workflow complete!</output>
744
-
745
- <output>**Deliverables Created:**
746
-
747
- - ✅ architecture.md - Complete architectural decisions document
748
- {{if_novel_patterns}}
749
- - ✅ Novel pattern designs for unique concepts
750
- {{/if_novel_patterns}}
751
- {{if_starter_template}}
752
- - ✅ Project initialization command documented
753
- {{/if_starter_template}}
754
-
755
- The architecture is ready to guide AI agents through consistent implementation.
756
-
757
- **Next Steps:**
758
-
759
- - **Next required:** {{next_workflow}} ({{next_agent}} agent)
760
- - Review the architecture.md document before proceeding
761
-
762
- Check status anytime with: `workflow-status`
763
- </output>
764
-
765
- <template-output>completion_summary</template-output>
766
- </step>
767
-
768
- </workflow>