bmad-odoo 1.0.0

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 (282) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/LICENSE +21 -0
  3. package/README.md +317 -0
  4. package/_config/agent-manifest.csv +10 -0
  5. package/_config/manifest.yaml +10 -0
  6. package/_config/workflow-manifest.csv +10 -0
  7. package/bmm/agents/analyst.md +93 -0
  8. package/bmm/agents/architect.md +72 -0
  9. package/bmm/agents/dev.md +85 -0
  10. package/bmm/agents/pm.md +61 -0
  11. package/bmm/agents/quick-flow-solo-dev.md +58 -0
  12. package/bmm/agents/sm.md +56 -0
  13. package/bmm/agents/tea.md +57 -0
  14. package/bmm/agents/tech-writer.md +56 -0
  15. package/bmm/agents/ux-designer.md +56 -0
  16. package/bmm/config.yaml +27 -0
  17. package/bmm/data/odoo-knowledge-base.md +90 -0
  18. package/bmm/teams/default-team.md +17 -0
  19. package/bmm/testarch/odoo-test-design/steps/step-01-init.md +44 -0
  20. package/bmm/testarch/odoo-test-design/steps/step-02-test-cases.md +82 -0
  21. package/bmm/testarch/odoo-test-design/steps/step-03-complete.md +69 -0
  22. package/bmm/testarch/odoo-test-design/workflow.md +30 -0
  23. package/bmm/testarch/odoo-testing-guide.md +30 -0
  24. package/bmm/workflows/1-analysis/analyze-process/process-analysis.template.md +80 -0
  25. package/bmm/workflows/1-analysis/analyze-process/steps/step-01-init.md +44 -0
  26. package/bmm/workflows/1-analysis/analyze-process/steps/step-02-current-state.md +55 -0
  27. package/bmm/workflows/1-analysis/analyze-process/steps/step-03-pain-points.md +67 -0
  28. package/bmm/workflows/1-analysis/analyze-process/steps/step-04-odoo-mapping.md +67 -0
  29. package/bmm/workflows/1-analysis/analyze-process/steps/step-05-recommendations.md +99 -0
  30. package/bmm/workflows/1-analysis/analyze-process/steps/step-06-complete.md +62 -0
  31. package/bmm/workflows/1-analysis/analyze-process/workflow.md +60 -0
  32. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-01-init.md +45 -0
  33. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-02-users-stakeholders.md +46 -0
  34. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-03-odoo-modules.md +59 -0
  35. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-04-scope-timeline.md +64 -0
  36. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-05-complete.md +32 -0
  37. package/bmm/workflows/1-analysis/create-odoo-product-brief/workflow.md +35 -0
  38. package/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +10 -0
  39. package/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +182 -0
  40. package/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +166 -0
  41. package/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +204 -0
  42. package/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +207 -0
  43. package/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +210 -0
  44. package/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +224 -0
  45. package/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +199 -0
  46. package/bmm/workflows/1-analysis/create-product-brief/workflow.md +58 -0
  47. package/bmm/workflows/1-analysis/gap-analysis/steps/step-01-init.md +45 -0
  48. package/bmm/workflows/1-analysis/gap-analysis/steps/step-02-odoo-capabilities.md +36 -0
  49. package/bmm/workflows/1-analysis/gap-analysis/steps/step-03-gap-matrix.md +51 -0
  50. package/bmm/workflows/1-analysis/gap-analysis/workflow.md +45 -0
  51. package/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +137 -0
  52. package/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +229 -0
  53. package/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +238 -0
  54. package/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +206 -0
  55. package/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +234 -0
  56. package/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
  57. package/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
  58. package/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +237 -0
  59. package/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +200 -0
  60. package/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +249 -0
  61. package/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +259 -0
  62. package/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +177 -0
  63. package/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
  64. package/bmm/workflows/1-analysis/research/research.template.md +29 -0
  65. package/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +137 -0
  66. package/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +239 -0
  67. package/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +248 -0
  68. package/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +202 -0
  69. package/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +239 -0
  70. package/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
  71. package/bmm/workflows/1-analysis/research/workflow.md +173 -0
  72. package/bmm/workflows/2-plan-workflows/create-odoo-addon/steps/step-01-init.md +48 -0
  73. package/bmm/workflows/2-plan-workflows/create-odoo-addon/steps/step-02-technical-design.md +82 -0
  74. package/bmm/workflows/2-plan-workflows/create-odoo-addon/steps/step-03-generate.md +86 -0
  75. package/bmm/workflows/2-plan-workflows/create-odoo-addon/workflow.md +39 -0
  76. package/bmm/workflows/2-plan-workflows/create-odoo-epic/steps/step-01-init.md +55 -0
  77. package/bmm/workflows/2-plan-workflows/create-odoo-epic/steps/step-02-stories.md +53 -0
  78. package/bmm/workflows/2-plan-workflows/create-odoo-epic/steps/step-03-complete.md +39 -0
  79. package/bmm/workflows/2-plan-workflows/create-odoo-epic/workflow.md +35 -0
  80. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-01-init.md +46 -0
  81. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-02-functional-requirements.md +56 -0
  82. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-03-technical-requirements.md +45 -0
  83. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-04-complete.md +40 -0
  84. package/bmm/workflows/2-plan-workflows/create-odoo-prd/workflow.md +29 -0
  85. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-01-init.md +52 -0
  86. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-02-form-design.md +78 -0
  87. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-03-tree-design.md +84 -0
  88. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-04-complete.md +55 -0
  89. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/workflow.md +30 -0
  90. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +135 -0
  91. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +127 -0
  92. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +190 -0
  93. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +216 -0
  94. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +219 -0
  95. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +234 -0
  96. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +252 -0
  97. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +254 -0
  98. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +224 -0
  99. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +224 -0
  100. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +241 -0
  101. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +248 -0
  102. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +237 -0
  103. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +264 -0
  104. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +228 -0
  105. package/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +13 -0
  106. package/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +43 -0
  107. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/steps/step-01-init.md +49 -0
  108. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/steps/step-02-risk-assessment.md +51 -0
  109. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/steps/step-03-roadmap.md +58 -0
  110. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/workflow.md +29 -0
  111. package/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  112. package/bmm/workflows/2-plan-workflows/prd/prd-template.md +11 -0
  113. package/bmm/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  114. package/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +197 -0
  115. package/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +166 -0
  116. package/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +421 -0
  117. package/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +290 -0
  118. package/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +291 -0
  119. package/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +271 -0
  120. package/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +262 -0
  121. package/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +258 -0
  122. package/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +299 -0
  123. package/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +270 -0
  124. package/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +294 -0
  125. package/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +186 -0
  126. package/bmm/workflows/2-plan-workflows/prd/workflow.md +63 -0
  127. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +190 -0
  128. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +178 -0
  129. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +179 -0
  130. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +139 -0
  131. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +252 -0
  132. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +133 -0
  133. package/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +4 -0
  134. package/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +55 -0
  135. package/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +12 -0
  136. package/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +11 -0
  137. package/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +7 -0
  138. package/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +153 -0
  139. package/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +164 -0
  140. package/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +224 -0
  141. package/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +331 -0
  142. package/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +318 -0
  143. package/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +359 -0
  144. package/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +379 -0
  145. package/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +359 -0
  146. package/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +352 -0
  147. package/bmm/workflows/3-solutioning/create-architecture/workflow.md +50 -0
  148. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +259 -0
  149. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +233 -0
  150. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +272 -0
  151. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +145 -0
  152. package/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -0
  153. package/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +59 -0
  154. package/bmm/workflows/3-solutioning/enhance-existing-system/steps/step-01-init.md +44 -0
  155. package/bmm/workflows/3-solutioning/enhance-existing-system/steps/step-02-inheritance-strategy.md +75 -0
  156. package/bmm/workflows/3-solutioning/enhance-existing-system/steps/step-03-implementation.md +64 -0
  157. package/bmm/workflows/3-solutioning/enhance-existing-system/workflow.md +30 -0
  158. package/bmm/workflows/3-solutioning/quick-addon/workflow.md +23 -0
  159. package/bmm/workflows/4-implementation/code-review/checklist.md +23 -0
  160. package/bmm/workflows/4-implementation/code-review/instructions.xml +225 -0
  161. package/bmm/workflows/4-implementation/code-review/workflow.yaml +50 -0
  162. package/bmm/workflows/4-implementation/correct-course/checklist.md +279 -0
  163. package/bmm/workflows/4-implementation/correct-course/instructions.md +206 -0
  164. package/bmm/workflows/4-implementation/correct-course/workflow.yaml +58 -0
  165. package/bmm/workflows/4-implementation/create-next-story/steps/step-01-init.md +53 -0
  166. package/bmm/workflows/4-implementation/create-next-story/steps/step-02-acceptance-criteria.md +63 -0
  167. package/bmm/workflows/4-implementation/create-next-story/steps/step-03-tasks.md +68 -0
  168. package/bmm/workflows/4-implementation/create-next-story/steps/step-04-complete.md +70 -0
  169. package/bmm/workflows/4-implementation/create-next-story/workflow.md +30 -0
  170. package/bmm/workflows/4-implementation/dev-story/checklist.md +80 -0
  171. package/bmm/workflows/4-implementation/dev-story/instructions.xml +409 -0
  172. package/bmm/workflows/4-implementation/dev-story/workflow.yaml +25 -0
  173. package/bmm/workflows/4-implementation/rapid-brownfield/steps/step-01-quick-story.md +79 -0
  174. package/bmm/workflows/4-implementation/rapid-brownfield/workflow.md +29 -0
  175. package/bmm/workflows/4-implementation/retrospective/instructions.md +1443 -0
  176. package/bmm/workflows/4-implementation/retrospective/workflow.yaml +57 -0
  177. package/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  178. package/bmm/workflows/4-implementation/sprint-planning/instructions.md +225 -0
  179. package/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
  180. package/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +52 -0
  181. package/bmm/workflows/4-implementation/sprint-status/instructions.md +229 -0
  182. package/bmm/workflows/4-implementation/sprint-status/workflow.yaml +35 -0
  183. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md +189 -0
  184. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-02-investigate.md +144 -0
  185. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-03-generate.md +128 -0
  186. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md +173 -0
  187. package/bmm/workflows/bmad-quick-flow/create-tech-spec/tech-spec-template.md +74 -0
  188. package/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.md +79 -0
  189. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +156 -0
  190. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +120 -0
  191. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +113 -0
  192. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +113 -0
  193. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +106 -0
  194. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +140 -0
  195. package/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +52 -0
  196. package/bmm/workflows/document-odoo/steps/step-01-init.md +43 -0
  197. package/bmm/workflows/document-odoo/steps/step-02-readme.md +98 -0
  198. package/bmm/workflows/document-odoo/steps/step-03-user-guide.md +76 -0
  199. package/bmm/workflows/document-odoo/steps/step-04-complete.md +58 -0
  200. package/bmm/workflows/document-odoo/workflow.md +30 -0
  201. package/bmm/workflows/document-project/checklist.md +245 -0
  202. package/bmm/workflows/document-project/documentation-requirements.csv +12 -0
  203. package/bmm/workflows/document-project/instructions.md +221 -0
  204. package/bmm/workflows/document-project/templates/deep-dive-template.md +345 -0
  205. package/bmm/workflows/document-project/templates/index-template.md +169 -0
  206. package/bmm/workflows/document-project/templates/project-overview-template.md +103 -0
  207. package/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  208. package/bmm/workflows/document-project/templates/source-tree-template.md +135 -0
  209. package/bmm/workflows/document-project/workflow.yaml +28 -0
  210. package/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  211. package/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -0
  212. package/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  213. package/bmm/workflows/document-project/workflows/full-scan.yaml +31 -0
  214. package/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-library.json +90 -0
  215. package/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-templates.yaml +127 -0
  216. package/bmm/workflows/excalidraw-diagrams/create-dataflow/checklist.md +39 -0
  217. package/bmm/workflows/excalidraw-diagrams/create-dataflow/instructions.md +130 -0
  218. package/bmm/workflows/excalidraw-diagrams/create-dataflow/workflow.yaml +26 -0
  219. package/bmm/workflows/excalidraw-diagrams/create-diagram/checklist.md +43 -0
  220. package/bmm/workflows/excalidraw-diagrams/create-diagram/instructions.md +141 -0
  221. package/bmm/workflows/excalidraw-diagrams/create-diagram/workflow.yaml +26 -0
  222. package/bmm/workflows/excalidraw-diagrams/create-flowchart/checklist.md +49 -0
  223. package/bmm/workflows/excalidraw-diagrams/create-flowchart/instructions.md +241 -0
  224. package/bmm/workflows/excalidraw-diagrams/create-flowchart/workflow.yaml +26 -0
  225. package/bmm/workflows/excalidraw-diagrams/create-wireframe/checklist.md +38 -0
  226. package/bmm/workflows/excalidraw-diagrams/create-wireframe/instructions.md +133 -0
  227. package/bmm/workflows/excalidraw-diagrams/create-wireframe/workflow.yaml +26 -0
  228. package/bmm/workflows/generate-project-context/project-context-template.md +21 -0
  229. package/bmm/workflows/generate-project-context/steps/step-01-discover.md +184 -0
  230. package/bmm/workflows/generate-project-context/steps/step-02-generate.md +318 -0
  231. package/bmm/workflows/generate-project-context/steps/step-03-complete.md +278 -0
  232. package/bmm/workflows/generate-project-context/workflow.md +49 -0
  233. package/bmm/workflows/testarch/atdd/atdd-checklist-template.md +364 -0
  234. package/bmm/workflows/testarch/atdd/checklist.md +374 -0
  235. package/bmm/workflows/testarch/atdd/instructions.md +806 -0
  236. package/bmm/workflows/testarch/atdd/workflow.yaml +45 -0
  237. package/bmm/workflows/testarch/automate/checklist.md +582 -0
  238. package/bmm/workflows/testarch/automate/instructions.md +1324 -0
  239. package/bmm/workflows/testarch/automate/workflow.yaml +52 -0
  240. package/bmm/workflows/testarch/ci/checklist.md +248 -0
  241. package/bmm/workflows/testarch/ci/github-actions-template.yaml +198 -0
  242. package/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +149 -0
  243. package/bmm/workflows/testarch/ci/instructions.md +536 -0
  244. package/bmm/workflows/testarch/ci/workflow.yaml +45 -0
  245. package/bmm/workflows/testarch/framework/checklist.md +321 -0
  246. package/bmm/workflows/testarch/framework/instructions.md +481 -0
  247. package/bmm/workflows/testarch/framework/workflow.yaml +47 -0
  248. package/bmm/workflows/testarch/nfr-assess/checklist.md +407 -0
  249. package/bmm/workflows/testarch/nfr-assess/instructions.md +722 -0
  250. package/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +445 -0
  251. package/bmm/workflows/testarch/nfr-assess/workflow.yaml +47 -0
  252. package/bmm/workflows/testarch/test-design/checklist.md +235 -0
  253. package/bmm/workflows/testarch/test-design/instructions.md +788 -0
  254. package/bmm/workflows/testarch/test-design/test-design-template.md +294 -0
  255. package/bmm/workflows/testarch/test-design/workflow.yaml +54 -0
  256. package/bmm/workflows/testarch/test-review/checklist.md +472 -0
  257. package/bmm/workflows/testarch/test-review/instructions.md +628 -0
  258. package/bmm/workflows/testarch/test-review/test-review-template.md +390 -0
  259. package/bmm/workflows/testarch/test-review/workflow.yaml +46 -0
  260. package/bmm/workflows/testarch/trace/checklist.md +655 -0
  261. package/bmm/workflows/testarch/trace/instructions.md +1047 -0
  262. package/bmm/workflows/testarch/trace/trace-template.md +675 -0
  263. package/bmm/workflows/testarch/trace/workflow.yaml +55 -0
  264. package/bmm/workflows/workflow-status/init/instructions.md +346 -0
  265. package/bmm/workflows/workflow-status/init/workflow.yaml +29 -0
  266. package/bmm/workflows/workflow-status/instructions.md +395 -0
  267. package/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +103 -0
  268. package/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +100 -0
  269. package/bmm/workflows/workflow-status/paths/method-brownfield.yaml +103 -0
  270. package/bmm/workflows/workflow-status/paths/method-greenfield.yaml +100 -0
  271. package/bmm/workflows/workflow-status/project-levels.yaml +59 -0
  272. package/bmm/workflows/workflow-status/workflow-status-template.yaml +24 -0
  273. package/bmm/workflows/workflow-status/workflow.yaml +30 -0
  274. package/core/agents/bmad-odoo-master.md +61 -0
  275. package/core/config.yaml +7 -0
  276. package/core/resources/README.md +5 -0
  277. package/core/tasks/README.md +7 -0
  278. package/core/workflows/README.md +8 -0
  279. package/index.js +84 -0
  280. package/package.json +48 -0
  281. package/scripts/postinstall.js +447 -0
  282. package/scripts/setup-cli.js +17 -0
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: check-implementation-readiness
3
+ description: 'Critical validation workflow that assesses PRD, Architecture, and Epics & Stories for completeness and alignment before implementation. Uses adversarial review approach to find gaps and issues.'
4
+ web_bundle: false
5
+ ---
6
+
7
+ # Implementation Readiness
8
+
9
+ **Goal:** Validate that PRD, Architecture, Epics and Stories are complete and aligned before Phase 4 implementation starts, with a focus on ensuring epics and stories are logical and have accounted for all requirements and planning.
10
+
11
+ **Your Role:** You are an expert Product Manager and Scrum Master, renowned and respected in the field of requirements traceability and spotting gaps in planning. Your success is measured in spotting the failures others have made in planning or preparation of epics and stories to produce the users product vision.
12
+
13
+ ## WORKFLOW ARCHITECTURE
14
+
15
+ ### Core Principles
16
+
17
+ - **Micro-file Design**: Each step of the overall goal is a self contained instruction file that you will adhere too 1 file as directed at a time
18
+ - **Just-In-Time Loading**: Only 1 current step file will be loaded, read, and executed to completion - never load future step files until told to do so
19
+ - **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed
20
+ - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document
21
+ - **Append-Only Building**: Build documents by appending content as directed to the output file
22
+
23
+ ### Step Processing Rules
24
+
25
+ 1. **READ COMPLETELY**: Always read the entire step file before taking any action
26
+ 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
27
+ 3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
28
+ 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
29
+ 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
30
+ 6. **LOAD NEXT**: When directed, load, read entire file, then execute the next step file
31
+
32
+ ### Critical Rules (NO EXCEPTIONS)
33
+
34
+ - 🛑 **NEVER** load multiple step files simultaneously
35
+ - 📖 **ALWAYS** read entire step file before execution
36
+ - 🚫 **NEVER** skip steps or optimize the sequence
37
+ - 💾 **ALWAYS** update frontmatter of output files when writing the final output for a specific step
38
+ - 🎯 **ALWAYS** follow the exact instructions in the step file
39
+ - ⏸️ **ALWAYS** halt at menus and wait for user input
40
+ - 📋 **NEVER** create mental todo lists from future steps
41
+
42
+ ---
43
+
44
+ ## INITIALIZATION SEQUENCE
45
+
46
+ ### 1. Module Configuration Loading
47
+
48
+ Load and read full config from {project-root}/_bmad/bmm/config.yaml and resolve:
49
+
50
+ - `project_name`, `output_folder`, `planning_artifacts`, `user_name`, `communication_language`, `document_output_language`
51
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
52
+
53
+ ### 2. First Step EXECUTION
54
+
55
+ Load, read the full file and then execute `{workflow_path}/steps/step-01-document-discovery.md` to begin the workflow.
@@ -0,0 +1,12 @@
1
+ ---
2
+ stepsCompleted: []
3
+ inputDocuments: []
4
+ workflowType: 'architecture'
5
+ project_name: '{{project_name}}'
6
+ user_name: '{{user_name}}'
7
+ date: '{{date}}'
8
+ ---
9
+
10
+ # Architecture Decision Document
11
+
12
+ _This document builds collaboratively through step-by-step discovery. Sections are appended as we work through each architectural decision together._
@@ -0,0 +1,11 @@
1
+ domain,signals,complexity_level,suggested_workflow,web_searches
2
+ e_commerce,"shopping,cart,checkout,payment,products,store",medium,standard,"ecommerce architecture patterns, payment processing, inventory management"
3
+ fintech,"banking,payment,trading,finance,money,investment",high,enhanced,"financial security, PCI compliance, trading algorithms, fraud detection"
4
+ healthcare,"medical,diagnostic,clinical,patient,hospital,health",high,enhanced,"HIPAA compliance, medical data security, FDA regulations, health tech"
5
+ social,"social network,community,users,friends,posts,sharing",high,advanced,"social graph algorithms, feed ranking, notification systems, privacy"
6
+ education,"learning,course,student,teacher,training,academic",medium,standard,"LMS architecture, progress tracking, assessment systems, video streaming"
7
+ productivity,"productivity,workflow,tasks,management,business,tools",medium,standard,"collaboration patterns, real-time editing, notification systems, integration"
8
+ media,"content,media,video,audio,streaming,broadcast",high,advanced,"CDN architecture, video encoding, streaming protocols, content delivery"
9
+ iot,"IoT,sensors,devices,embedded,smart,connected",high,advanced,"device communication, real-time data processing, edge computing, security"
10
+ government,"government,civic,public,admin,policy,regulation",high,enhanced,"accessibility standards, security clearance, data privacy, audit trails"
11
+ gaming,"game,gaming,multiplayer,real-time,interactive,entertainment",high,advanced,"real-time multiplayer, game engine architecture, matchmaking, leaderboards"
@@ -0,0 +1,7 @@
1
+ project_type,detection_signals,description,typical_starters
2
+ web_app,"website,web application,browser,frontend,UI,interface",Web-based applications running in browsers,Next.js, Vite, Remix
3
+ mobile_app,"mobile,iOS,Android,app,smartphone,tablet",Native mobile applications,React Native, Expo, Flutter
4
+ api_backend,"API,REST,GraphQL,backend,service,microservice",Backend services and APIs,NestJS, Express, Fastify
5
+ full_stack,"full-stack,complete,web+mobile,frontend+backend",Applications with both frontend and backend,T3 App, RedwoodJS, Blitz
6
+ cli_tool,"CLI,command line,terminal,console,tool",Command-line interface tools,oclif, Commander, Caporal
7
+ desktop_app,"desktop,Electron,Tauri,native app,macOS,Windows",Desktop applications,Electron, Tauri, Flutter Desktop
@@ -0,0 +1,153 @@
1
+ # Step 1: Architecture Workflow Initialization
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - 🛑 NEVER generate content without user input
6
+ - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
7
+ - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
8
+ - ✅ ALWAYS treat this as collaborative discovery between architectural peers
9
+ - 📋 YOU ARE A FACILITATOR, not a content generator
10
+ - 💬 FOCUS on initialization and setup only - don't look ahead to future steps
11
+ - 🚪 DETECT existing workflow state and handle continuation properly
12
+ - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
13
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
14
+
15
+ ## EXECUTION PROTOCOLS:
16
+
17
+ - 🎯 Show your analysis before taking any action
18
+ - 💾 Initialize document and update frontmatter
19
+ - 📖 Set up frontmatter `stepsCompleted: [1]` before loading next step
20
+ - 🚫 FORBIDDEN to load next step until setup is complete
21
+
22
+ ## CONTEXT BOUNDARIES:
23
+
24
+ - Variables from workflow.md are available in memory
25
+ - Previous context = what's in output document + frontmatter
26
+ - Don't assume knowledge from other steps
27
+ - Input document discovery happens in this step
28
+
29
+ ## YOUR TASK:
30
+
31
+ Initialize the Architecture workflow by detecting continuation state, discovering input documents, and setting up the document for collaborative architectural decision making.
32
+
33
+ ## INITIALIZATION SEQUENCE:
34
+
35
+ ### 1. Check for Existing Workflow
36
+
37
+ First, check if the output document already exists:
38
+
39
+ - Look for existing {planning_artifacts}/`*architecture*.md`
40
+ - If exists, read the complete file(s) including frontmatter
41
+ - If not exists, this is a fresh workflow
42
+
43
+ ### 2. Handle Continuation (If Document Exists)
44
+
45
+ If the document exists and has frontmatter with `stepsCompleted`:
46
+
47
+ - **STOP here** and load `./step-01b-continue.md` immediately
48
+ - Do not proceed with any initialization tasks
49
+ - Let step-01b handle the continuation logic
50
+
51
+ ### 3. Fresh Workflow Setup (If No Document)
52
+
53
+ If no document exists or no `stepsCompleted` in frontmatter:
54
+
55
+ #### A. Input Document Discovery
56
+
57
+ Discover and load context documents using smart discovery. Documents can be in the following locations:
58
+ - {planning_artifacts}/**
59
+ - {output_folder}/**
60
+ - {product_knowledge}/**
61
+ - docs/**
62
+
63
+ Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for `*foo*.md` and not found, also search for a folder called *foo*/index.md (which indicates sharded content)
64
+
65
+ Try to discover the following:
66
+ - Product Brief (`*brief*.md`)
67
+ - Product Requirements Document (`*prd*.md`)
68
+ - UX Design (`*ux-design*.md`) and other
69
+ - Research Documents (`*research*.md`)
70
+ - Project Documentation (generally multiple documents might be found for this in the `{product_knowledge}` or `docs` folder.)
71
+ - Project Context (`**/project-context.md`)
72
+
73
+ <critical>Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules</critical>
74
+
75
+ **Loading Rules:**
76
+
77
+ - Load ALL discovered files completely that the user confirmed or provided (no offset/limit)
78
+ - If there is a project context, whatever is relevant should try to be biased in the remainder of this whole workflow process
79
+ - For sharded folders, load ALL files to get complete picture, using the index first to potentially know the potential of each document
80
+ - index.md is a guide to what's relevant whenever available
81
+ - Track all successfully loaded files in frontmatter `inputDocuments` array
82
+
83
+ #### B. Validate Required Inputs
84
+
85
+ Before proceeding, verify we have the essential inputs:
86
+
87
+ **PRD Validation:**
88
+
89
+ - If no PRD found: "Architecture requires a PRD to work from. Please run the PRD workflow first or provide the PRD file path."
90
+ - Do NOT proceed without PRD
91
+
92
+ **Other Input that might exist:**
93
+
94
+ - UX Spec: "Provides UI/UX architectural requirements"
95
+
96
+ #### C. Create Initial Document
97
+
98
+ Copy the template from `{installed_path}/architecture-decision-template.md` to `{planning_artifacts}/architecture.md`
99
+
100
+ #### D. Complete Initialization and Report
101
+
102
+ Complete setup and report to user:
103
+
104
+ **Document Setup:**
105
+
106
+ - Created: `{planning_artifacts}/architecture.md` from template
107
+ - Initialized frontmatter with workflow state
108
+
109
+ **Input Documents Discovered:**
110
+ Report what was found:
111
+ "Welcome {{user_name}}! I've set up your Architecture workspace for {{project_name}}.
112
+
113
+ **Documents Found:**
114
+
115
+ - PRD: {number of PRD files loaded or "None found - REQUIRED"}
116
+ - UX Design: {number of UX files loaded or "None found"}
117
+ - Research: {number of research files loaded or "None found"}
118
+ - Project docs: {number of project files loaded or "None found"}
119
+ - Project context: {project_context_rules count of rules for AI agents found}
120
+
121
+ **Files loaded:** {list of specific file names or "No additional documents found"}
122
+
123
+ Ready to begin architectural decision making. Do you have any other documents you'd like me to include?
124
+
125
+ [C] Continue to project context analysis
126
+
127
+ ## SUCCESS METRICS:
128
+
129
+ ✅ Existing workflow detected and handed off to step-01b correctly
130
+ ✅ Fresh workflow initialized with template and frontmatter
131
+ ✅ Input documents discovered and loaded using sharded-first logic
132
+ ✅ All discovered files tracked in frontmatter `inputDocuments`
133
+ ✅ PRD requirement validated and communicated
134
+ ✅ User confirmed document setup and can proceed
135
+
136
+ ## FAILURE MODES:
137
+
138
+ ❌ Proceeding with fresh initialization when existing workflow exists
139
+ ❌ Not updating frontmatter with discovered input documents
140
+ ❌ Creating document without proper template
141
+ ❌ Not checking sharded folders first before whole files
142
+ ❌ Not reporting what documents were found to user
143
+ ❌ Proceeding without validating PRD requirement
144
+
145
+ ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
146
+ ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
147
+ ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
148
+
149
+ ## NEXT STEP:
150
+
151
+ After user selects [C] to continue, only after ensuring all the template output has been created, then load `./step-02-context.md` to analyze the project context and begin architectural decision making.
152
+
153
+ Remember: Do NOT proceed to step-02 until user explicitly selects [C] from the menu and setup is confirmed!
@@ -0,0 +1,164 @@
1
+ # Step 1b: Workflow Continuation Handler
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - 🛑 NEVER generate content without user input
6
+
7
+ - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
8
+ - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
9
+ - ✅ ALWAYS treat this as collaborative discovery between architectural peers
10
+ - 📋 YOU ARE A FACILITATOR, not a content generator
11
+ - 💬 FOCUS on understanding current state and getting user confirmation
12
+ - 🚪 HANDLE workflow resumption smoothly and transparently
13
+ - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
14
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
15
+
16
+ ## EXECUTION PROTOCOLS:
17
+
18
+ - 🎯 Show your analysis before taking any action
19
+ - 📖 Read existing document completely to understand current state
20
+ - 💾 Update frontmatter to reflect continuation
21
+ - 🚫 FORBIDDEN to proceed to next step without user confirmation
22
+
23
+ ## CONTEXT BOUNDARIES:
24
+
25
+ - Existing document and frontmatter are available
26
+ - Input documents already loaded should be in frontmatter `inputDocuments`
27
+ - Steps already completed are in `stepsCompleted` array
28
+ - Focus on understanding where we left off
29
+
30
+ ## YOUR TASK:
31
+
32
+ Handle workflow continuation by analyzing existing work and guiding the user to resume at the appropriate step.
33
+
34
+ ## CONTINUATION SEQUENCE:
35
+
36
+ ### 1. Analyze Current Document State
37
+
38
+ Read the existing architecture document completely and analyze:
39
+
40
+ **Frontmatter Analysis:**
41
+
42
+ - `stepsCompleted`: What steps have been done
43
+ - `inputDocuments`: What documents were loaded
44
+ - `lastStep`: Last step that was executed
45
+ - `project_name`, `user_name`, `date`: Basic context
46
+
47
+ **Content Analysis:**
48
+
49
+ - What sections exist in the document
50
+ - What architectural decisions have been made
51
+ - What appears incomplete or in progress
52
+ - Any TODOs or placeholders remaining
53
+
54
+ ### 2. Present Continuation Summary
55
+
56
+ Show the user their current progress:
57
+
58
+ "Welcome back {{user_name}}! I found your Architecture work for {{project_name}}.
59
+
60
+ **Current Progress:**
61
+
62
+ - Steps completed: {{stepsCompleted list}}
63
+ - Last step worked on: Step {{lastStep}}
64
+ - Input documents loaded: {{number of inputDocuments}} files
65
+
66
+ **Document Sections Found:**
67
+ {list all H2/H3 sections found in the document}
68
+
69
+ {if_incomplete_sections}
70
+ **Incomplete Areas:**
71
+
72
+ - {areas that appear incomplete or have placeholders}
73
+ {/if_incomplete_sections}
74
+
75
+ **What would you like to do?**
76
+ [R] Resume from where we left off
77
+ [C] Continue to next logical step
78
+ [O] Overview of all remaining steps
79
+ [X] Start over (will overwrite existing work)
80
+ "
81
+
82
+ ### 3. Handle User Choice
83
+
84
+ #### If 'R' (Resume from where we left off):
85
+
86
+ - Identify the next step based on `stepsCompleted`
87
+ - Load the appropriate step file to continue
88
+ - Example: If `stepsCompleted: [1, 2, 3]`, load `step-04-decisions.md`
89
+
90
+ #### If 'C' (Continue to next logical step):
91
+
92
+ - Analyze the document content to determine logical next step
93
+ - May need to review content quality and completeness
94
+ - If content seems complete for current step, advance to next
95
+ - If content seems incomplete, suggest staying on current step
96
+
97
+ #### If 'O' (Overview of all remaining steps):
98
+
99
+ - Provide brief description of all remaining steps
100
+ - Let user choose which step to work on
101
+ - Don't assume sequential progression is always best
102
+
103
+ #### If 'X' (Start over):
104
+
105
+ - Confirm: "This will delete all existing architectural decisions. Are you sure? (y/n)"
106
+ - If confirmed: Delete existing document and return to step-01-init.md
107
+ - If not confirmed: Return to continuation menu
108
+
109
+ ### 4. Navigate to Selected Step
110
+
111
+ After user makes choice:
112
+
113
+ **Load the selected step file:**
114
+
115
+ - Update frontmatter `lastStep` to reflect current navigation
116
+ - Execute the selected step file
117
+ - Let that step handle the detailed continuation logic
118
+
119
+ **State Preservation:**
120
+
121
+ - Maintain all existing content in the document
122
+ - Keep `stepsCompleted` accurate
123
+ - Track the resumption in workflow status
124
+
125
+ ### 5. Special Continuation Cases
126
+
127
+ #### If `stepsCompleted` is empty but document has content:
128
+
129
+ - This suggests an interrupted workflow
130
+ - Ask user: "I see the document has content but no steps are marked as complete. Should I analyze what's here and set the appropriate step status?"
131
+
132
+ #### If document appears corrupted or incomplete:
133
+
134
+ - Ask user: "The document seems incomplete. Would you like me to try to recover what's here, or would you prefer to start fresh?"
135
+
136
+ #### If document is complete but workflow not marked as done:
137
+
138
+ - Ask user: "The architecture looks complete! Should I mark this workflow as finished, or is there more you'd like to work on?"
139
+
140
+ ## SUCCESS METRICS:
141
+
142
+ ✅ Existing document state properly analyzed and understood
143
+ ✅ User presented with clear continuation options
144
+ ✅ User choice handled appropriately and transparently
145
+ ✅ Workflow state preserved and updated correctly
146
+ ✅ Navigation to appropriate step handled smoothly
147
+
148
+ ## FAILURE MODES:
149
+
150
+ ❌ Not reading the complete existing document before making suggestions
151
+ ❌ Losing track of what steps were actually completed
152
+ ❌ Automatically proceeding without user confirmation of next steps
153
+ ❌ Not checking for incomplete or placeholder content
154
+ ❌ Losing existing document content during resumption
155
+
156
+ ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
157
+ ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
158
+ ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
159
+
160
+ ## NEXT STEP:
161
+
162
+ After user selects their continuation option, load the appropriate step file based on their choice. The step file will handle the detailed work from that point forward.
163
+
164
+ Remember: The goal is smooth, transparent resumption that respects the work already done while giving the user control over how to proceed.
@@ -0,0 +1,224 @@
1
+ # Step 2: Project Context Analysis
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - 🛑 NEVER generate content without user input
6
+
7
+ - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
8
+ - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
9
+ - ✅ ALWAYS treat this as collaborative discovery between architectural peers
10
+ - 📋 YOU ARE A FACILITATOR, not a content generator
11
+ - 💬 FOCUS on understanding project scope and requirements for architecture
12
+ - 🎯 ANALYZE loaded documents, don't assume or generate requirements
13
+ - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
14
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
15
+
16
+ ## EXECUTION PROTOCOLS:
17
+
18
+ - 🎯 Show your analysis before taking any action
19
+ - ⚠️ Present A/P/C menu after generating project context analysis
20
+ - 💾 ONLY save when user chooses C (Continue)
21
+ - 📖 Update frontmatter `stepsCompleted: [1, 2]` before loading next step
22
+ - 🚫 FORBIDDEN to load next step until C is selected
23
+
24
+ ## COLLABORATION MENUS (A/P/C):
25
+
26
+ This step will generate content and present choices:
27
+
28
+ - **A (Advanced Elicitation)**: Use discovery protocols to develop deeper insights about project context and architectural implications
29
+ - **P (Party Mode)**: Bring multiple perspectives to analyze project requirements from different architectural angles
30
+ - **C (Continue)**: Save the content to the document and proceed to next step
31
+
32
+ ## PROTOCOL INTEGRATION:
33
+
34
+ - When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml
35
+ - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md
36
+ - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
37
+ - User accepts/rejects protocol changes before proceeding
38
+
39
+ ## CONTEXT BOUNDARIES:
40
+
41
+ - Current document and frontmatter from step 1 are available
42
+ - Input documents already loaded are in memory (PRD, epics, UX spec, etc.)
43
+ - Focus on architectural implications of requirements
44
+ - No technology decisions yet - pure analysis phase
45
+
46
+ ## YOUR TASK:
47
+
48
+ Fully read and Analyze the loaded project documents to understand architectural scope, requirements, and constraints before beginning decision making.
49
+
50
+ ## CONTEXT ANALYSIS SEQUENCE:
51
+
52
+ ### 1. Review Project Requirements
53
+
54
+ **From PRD Analysis:**
55
+
56
+ - Extract and analyze Functional Requirements (FRs)
57
+ - Identify Non-Functional Requirements (NFRs) like performance, security, compliance
58
+ - Note any technical constraints or dependencies mentioned
59
+ - Count and categorize requirements to understand project scale
60
+
61
+ **From Epics/Stories (if available):**
62
+
63
+ - Map epic structure and user stories to architectural components
64
+ - Extract acceptance criteria for technical implications
65
+ - Identify cross-cutting concerns that span multiple epics
66
+ - Estimate story complexity for architectural planning
67
+
68
+ **From UX Design (if available):**
69
+
70
+ - Extract architectural implications from UX requirements:
71
+ - Component complexity (simple forms vs rich interactions)
72
+ - Animation/transition requirements
73
+ - Real-time update needs (live data, collaborative features)
74
+ - Platform-specific UI requirements
75
+ - Accessibility standards (WCAG compliance level)
76
+ - Responsive design breakpoints
77
+ - Offline capability requirements
78
+ - Performance expectations (load times, interaction responsiveness)
79
+
80
+ ### 2. Project Scale Assessment
81
+
82
+ Calculate and present project complexity:
83
+
84
+ **Complexity Indicators:**
85
+
86
+ - Real-time features requirements
87
+ - Multi-tenancy needs
88
+ - Regulatory compliance requirements
89
+ - Integration complexity
90
+ - User interaction complexity
91
+ - Data complexity and volume
92
+
93
+ ### 3. Reflect Understanding
94
+
95
+ Present your analysis back to user for validation:
96
+
97
+ "I'm reviewing your project documentation for {{project_name}}.
98
+
99
+ {if_epics_loaded}I see {{epic_count}} epics with {{story_count}} total stories.{/if_epics_loaded}
100
+ {if_no_epics}I found {{fr_count}} functional requirements organized into {{fr_category_list}}.{/if_no_epics}
101
+ {if_ux_loaded}I also found your UX specification which defines the user experience requirements.{/if_ux_loaded}
102
+
103
+ **Key architectural aspects I notice:**
104
+
105
+ - [Summarize core functionality from FRs]
106
+ - [Note critical NFRs that will shape architecture]
107
+ - {if_ux_loaded}[Note UX complexity and technical requirements]{/if_ux_loaded}
108
+ - [Identify unique technical challenges or constraints]
109
+ - [Highlight any regulatory or compliance requirements]
110
+
111
+ **Scale indicators:**
112
+
113
+ - Project complexity appears to be: [low/medium/high/enterprise]
114
+ - Primary technical domain: [web/mobile/api/backend/full-stack/etc]
115
+ - Cross-cutting concerns identified: [list major ones]
116
+
117
+ This analysis will help me guide you through the architectural decisions needed to ensure AI agents implement this consistently.
118
+
119
+ Does this match your understanding of the project scope and requirements?"
120
+
121
+ ### 4. Generate Project Context Content
122
+
123
+ Prepare the content to append to the document:
124
+
125
+ #### Content Structure:
126
+
127
+ ```markdown
128
+ ## Project Context Analysis
129
+
130
+ ### Requirements Overview
131
+
132
+ **Functional Requirements:**
133
+ {{analysis of FRs and what they mean architecturally}}
134
+
135
+ **Non-Functional Requirements:**
136
+ {{NFRs that will drive architectural decisions}}
137
+
138
+ **Scale & Complexity:**
139
+ {{project_scale_assessment}}
140
+
141
+ - Primary domain: {{technical_domain}}
142
+ - Complexity level: {{complexity_level}}
143
+ - Estimated architectural components: {{component_count}}
144
+
145
+ ### Technical Constraints & Dependencies
146
+
147
+ {{known_constraints_dependencies}}
148
+
149
+ ### Cross-Cutting Concerns Identified
150
+
151
+ {{concerns_that_will_affect_multiple_components}}
152
+ ```
153
+
154
+ ### 5. Present Content and Menu
155
+
156
+ Show the generated content and present choices:
157
+
158
+ "I've drafted the Project Context Analysis based on your requirements. This sets the foundation for our architectural decisions.
159
+
160
+ **Here's what I'll add to the document:**
161
+
162
+ [Show the complete markdown content from step 4]
163
+
164
+ **What would you like to do?**
165
+ [A] Advanced Elicitation - Let's dive deeper into architectural implications
166
+ [P] Party Mode - Bring different perspectives to analyze requirements
167
+ [C] Continue - Save this analysis and begin architectural decisions"
168
+
169
+ ### 6. Handle Menu Selection
170
+
171
+ #### If 'A' (Advanced Elicitation):
172
+
173
+ - Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current context analysis
174
+ - Process the enhanced architectural insights that come back
175
+ - Ask user: "Accept these enhancements to the project context analysis? (y/n)"
176
+ - If yes: Update content with improvements, then return to A/P/C menu
177
+ - If no: Keep original content, then return to A/P/C menu
178
+
179
+ #### If 'P' (Party Mode):
180
+
181
+ - Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md with the current project context
182
+ - Process the collaborative improvements to architectural understanding
183
+ - Ask user: "Accept these changes to the project context analysis? (y/n)"
184
+ - If yes: Update content with improvements, then return to A/P/C menu
185
+ - If no: Keep original content, then return to A/P/C menu
186
+
187
+ #### If 'C' (Continue):
188
+
189
+ - Append the final content to `{planning_artifacts}/architecture.md`
190
+ - Update frontmatter: `stepsCompleted: [1, 2]`
191
+ - Load `./step-03-starter.md`
192
+
193
+ ## APPEND TO DOCUMENT:
194
+
195
+ When user selects 'C', append the content directly to the document using the structure from step 4.
196
+
197
+ ## SUCCESS METRICS:
198
+
199
+ ✅ All input documents thoroughly analyzed for architectural implications
200
+ ✅ Project scope and complexity clearly assessed and validated
201
+ ✅ Technical constraints and dependencies identified
202
+ ✅ Cross-cutting concerns mapped for architectural planning
203
+ ✅ User confirmation of project understanding
204
+ ✅ A/P/C menu presented and handled correctly
205
+ ✅ Content properly appended to document when C selected
206
+
207
+ ## FAILURE MODES:
208
+
209
+ ❌ Skimming documents without deep architectural analysis
210
+ ❌ Missing or misinterpreting critical NFRs
211
+ ❌ Not validating project understanding with user
212
+ ❌ Underestimating complexity indicators
213
+ ❌ Generating content without real analysis of loaded documents
214
+ ❌ Not presenting A/P/C menu after content generation
215
+
216
+ ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
217
+ ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
218
+ ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
219
+
220
+ ## NEXT STEP:
221
+
222
+ After user selects 'C' and content is saved to document, load `./step-03-starter.md` to evaluate starter template options.
223
+
224
+ Remember: Do NOT proceed to step-03 until user explicitly selects 'C' from the A/P/C menu and content is saved!