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

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 (335) hide show
  1. package/.github/ISSUE_TEMPLATE/idea_submission.md +1 -1
  2. package/.github/scripts/discord-helpers.sh +15 -0
  3. package/.github/workflows/discord.yaml +278 -8
  4. package/.github/workflows/quality.yaml +19 -0
  5. package/.markdownlint-cli2.yaml +42 -0
  6. package/.prettierignore +3 -0
  7. package/CHANGELOG.md +95 -0
  8. package/CODE_OF_CONDUCT.md +128 -0
  9. package/bmad-method-6.0.0-alpha.14.tgz +0 -0
  10. package/docs/agent-customization-guide.md +2 -2
  11. package/docs/custom-agent-installation.md +56 -102
  12. package/docs/document-sharding-guide.md +1 -1
  13. package/eslint.config.mjs +14 -0
  14. package/example-custom-content/README.md +4 -0
  15. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/instructions.md +4 -4
  16. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/memories.md +1 -1
  17. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith.agent.yaml +17 -16
  18. package/example-custom-content/custom.yaml +3 -0
  19. package/example-custom-content/workflows/quiz-master/steps/step-01-init.md +168 -0
  20. package/example-custom-content/workflows/quiz-master/steps/step-02-q1.md +155 -0
  21. package/example-custom-content/workflows/quiz-master/steps/step-03-q2.md +89 -0
  22. package/example-custom-content/workflows/quiz-master/steps/step-04-q3.md +36 -0
  23. package/example-custom-content/workflows/quiz-master/steps/step-05-q4.md +36 -0
  24. package/example-custom-content/workflows/quiz-master/steps/step-06-q5.md +36 -0
  25. package/example-custom-content/workflows/quiz-master/steps/step-07-q6.md +36 -0
  26. package/example-custom-content/workflows/quiz-master/steps/step-08-q7.md +36 -0
  27. package/example-custom-content/workflows/quiz-master/steps/step-09-q8.md +36 -0
  28. package/example-custom-content/workflows/quiz-master/steps/step-10-q9.md +36 -0
  29. package/example-custom-content/workflows/quiz-master/steps/step-11-q10.md +36 -0
  30. package/example-custom-content/workflows/quiz-master/steps/step-12-results.md +150 -0
  31. package/example-custom-content/workflows/quiz-master/templates/csv-headers.template +1 -0
  32. package/example-custom-content/workflows/quiz-master/workflow-plan-quiz-master.md +269 -0
  33. package/example-custom-content/workflows/quiz-master/workflow.md +54 -0
  34. package/example-custom-content/workflows/wassup/workflow.md +26 -0
  35. package/example-custom-module/mwm/README.md +4 -0
  36. package/example-custom-module/mwm/_module-installer/install-config.yaml +27 -0
  37. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/cognitive-distortions.md +47 -0
  38. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/thought-records.md +17 -0
  39. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach.agent.yaml +150 -0
  40. package/example-custom-module/mwm/agents/crisis-navigator.agent.yaml +137 -0
  41. package/example-custom-module/mwm/agents/meditation-guide.agent.yaml +137 -0
  42. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/insights.md +13 -0
  43. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/instructions.md +30 -0
  44. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/memories.md +13 -0
  45. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/patterns.md +17 -0
  46. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion.agent.yaml +124 -0
  47. package/example-custom-module/mwm/workflows/cbt-thought-record/README.md +31 -0
  48. package/example-custom-module/mwm/workflows/cbt-thought-record/workflow.md +45 -0
  49. package/example-custom-module/mwm/workflows/crisis-support/README.md +31 -0
  50. package/example-custom-module/mwm/workflows/crisis-support/workflow.md +45 -0
  51. package/example-custom-module/mwm/workflows/daily-checkin/README.md +32 -0
  52. package/example-custom-module/mwm/workflows/daily-checkin/workflow.md +45 -0
  53. package/example-custom-module/mwm/workflows/guided-meditation/README.md +31 -0
  54. package/example-custom-module/mwm/workflows/guided-meditation/workflow.md +45 -0
  55. package/example-custom-module/mwm/workflows/wellness-journal/README.md +31 -0
  56. package/example-custom-module/mwm/workflows/wellness-journal/workflow.md +45 -0
  57. package/package.json +9 -4
  58. package/src/core/_module-installer/install-config.yaml +5 -1
  59. package/src/core/resources/excalidraw/library-loader.md +2 -2
  60. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +1 -1
  61. package/src/core/workflows/brainstorming/workflow.md +1 -1
  62. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +0 -1
  63. package/src/core/workflows/party-mode/workflow.md +2 -3
  64. package/src/modules/bmb/README.md +1 -1
  65. package/src/modules/bmb/_module-installer/install-config.yaml +4 -9
  66. package/src/modules/bmb/_module-installer/installer.js +76 -0
  67. package/src/modules/bmb/agents/bmad-builder.agent.yaml +32 -9
  68. package/src/modules/bmb/docs/agents/agent-menu-patterns.md +5 -5
  69. package/src/modules/bmb/docs/agents/expert-agent-architecture.md +20 -20
  70. package/src/modules/bmb/docs/agents/module-agent-architecture.md +45 -45
  71. package/src/modules/bmb/docs/agents/simple-agent-architecture.md +7 -3
  72. package/src/modules/bmb/docs/workflows/architecture.md +1 -1
  73. package/src/modules/bmb/docs/workflows/templates/step-01-init-continuable-template.md +241 -0
  74. package/src/modules/bmb/docs/workflows/templates/step-1b-template.md +223 -0
  75. package/src/modules/bmb/{workflows/create-workflow → docs/workflows}/templates/step-file.md +4 -4
  76. package/src/modules/bmb/docs/workflows/{step-template.md → templates/step-template.md} +40 -33
  77. package/src/modules/bmb/docs/workflows/templates/workflow-template.md +104 -0
  78. package/src/modules/bmb/{workflows/create-workflow → docs/workflows}/templates/workflow.md +1 -1
  79. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/README.md +4 -4
  80. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +8 -8
  81. package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +6 -6
  82. package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +7 -7
  83. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +2 -3
  84. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +10 -40
  85. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +1 -1
  86. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +1 -0
  87. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +2 -2
  88. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +2 -2
  89. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +2 -2
  90. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +2 -2
  91. package/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md +16 -4
  92. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +4 -4
  93. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +7 -7
  94. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +1 -1
  95. package/src/modules/bmb/workflows/create-agent/data/validation-complete.md +3 -3
  96. package/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +3 -3
  97. package/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +3 -3
  98. package/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +3 -3
  99. package/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +6 -6
  100. package/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +2 -2
  101. package/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +3 -3
  102. package/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +3 -3
  103. package/src/modules/bmb/workflows/create-agent/steps/step-08-setup.md +2 -2
  104. package/src/modules/bmb/workflows/create-agent/steps/step-09-customize.md +3 -3
  105. package/src/modules/bmb/workflows/create-agent/steps/step-10-build-tools.md +2 -2
  106. package/src/modules/bmb/workflows/create-agent/steps/step-11-celebrate.md +2 -2
  107. package/src/modules/bmb/workflows/create-agent/workflow.md +11 -11
  108. package/src/modules/bmb/workflows/create-module/steps/step-01-init.md +155 -0
  109. package/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md +169 -0
  110. package/src/modules/bmb/workflows/create-module/steps/step-02-concept.md +217 -0
  111. package/src/modules/bmb/workflows/create-module/steps/step-03-components.md +267 -0
  112. package/src/modules/bmb/workflows/create-module/steps/step-04-structure.md +228 -0
  113. package/src/modules/bmb/workflows/create-module/steps/step-05-config.md +233 -0
  114. package/src/modules/bmb/workflows/create-module/steps/step-06-agents.md +296 -0
  115. package/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md +228 -0
  116. package/src/modules/bmb/workflows/create-module/steps/step-08-installer.md +186 -0
  117. package/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md +308 -0
  118. package/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md +336 -0
  119. package/src/modules/bmb/workflows/create-module/steps/step-11-validate.md +335 -0
  120. package/src/modules/bmb/workflows/create-module/templates/agent.template.md +317 -0
  121. package/src/modules/bmb/workflows/create-module/templates/install-config.template.yaml +53 -0
  122. package/src/modules/bmb/workflows/create-module/templates/installer.template.js +47 -0
  123. package/src/modules/bmb/workflows/create-module/templates/module-plan.template.md +5 -0
  124. package/src/modules/bmb/workflows/create-module/templates/workflow-plan-template.md +23 -0
  125. package/src/modules/bmb/workflows/create-module/validation.md +126 -0
  126. package/src/modules/bmb/workflows/create-module/workflow.md +55 -0
  127. package/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +45 -56
  128. package/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +9 -31
  129. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md +250 -0
  130. package/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md +216 -0
  131. package/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md +289 -0
  132. package/src/modules/bmb/workflows/create-workflow/steps/{step-09-design.md → step-06-design.md} +76 -44
  133. package/src/modules/bmb/workflows/create-workflow/steps/{step-11-build.md → step-07-build.md} +70 -24
  134. package/src/modules/bmb/workflows/create-workflow/steps/{step-12-review.md → step-08-review.md} +30 -16
  135. package/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md +187 -0
  136. package/src/modules/bmb/workflows/create-workflow/workflow.md +2 -2
  137. package/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +2 -2
  138. package/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +14 -14
  139. package/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +4 -4
  140. package/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +2 -2
  141. package/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +4 -4
  142. package/src/modules/bmb/workflows/edit-agent/workflow.md +1 -1
  143. package/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +2 -6
  144. package/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +2 -2
  145. package/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +1 -1
  146. package/src/modules/bmb/workflows/edit-workflow/workflow.md +1 -1
  147. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +2 -2
  148. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +5 -5
  149. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +7 -7
  150. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +3 -3
  151. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +3 -3
  152. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +3 -3
  153. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +3 -3
  154. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +2 -2
  155. package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +1 -1
  156. package/src/modules/bmb/workflows-legacy/edit-module/checklist.md +0 -1
  157. package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +8 -8
  158. package/src/modules/bmm/_module-installer/install-config.yaml +1 -1
  159. package/src/modules/bmm/agents/analyst.agent.yaml +11 -8
  160. package/src/modules/bmm/agents/architect.agent.yaml +1 -5
  161. package/src/modules/bmm/agents/pm.agent.yaml +5 -5
  162. package/src/modules/bmm/docs/README.md +23 -1
  163. package/src/modules/bmm/docs/agents-guide.md +16 -35
  164. package/src/modules/bmm/docs/brownfield-guide.md +17 -30
  165. package/src/modules/bmm/docs/enterprise-agentic-development.md +2 -2
  166. package/src/modules/bmm/docs/faq.md +6 -39
  167. package/src/modules/bmm/docs/glossary.md +11 -24
  168. package/src/modules/bmm/docs/images/README.md +37 -0
  169. package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +62 -202
  170. package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +3 -1
  171. package/src/modules/bmm/docs/quick-spec-flow.md +652 -0
  172. package/src/modules/bmm/docs/quick-start.md +9 -25
  173. package/src/modules/bmm/docs/test-architecture.md +6 -6
  174. package/src/modules/bmm/docs/troubleshooting.md +680 -0
  175. package/src/modules/bmm/docs/workflow-document-project-reference.md +1 -1
  176. package/src/modules/bmm/docs/workflows-implementation.md +143 -3
  177. package/src/modules/bmm/docs/workflows-solutioning.md +2 -2
  178. package/src/modules/bmm/tasks/daily-standup.xml +85 -0
  179. package/src/modules/bmm/testarch/knowledge/ci-burn-in.md +1 -1
  180. package/src/modules/bmm/testarch/knowledge/overview.md +1 -1
  181. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-02-vision.md +2 -2
  182. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-03-users.md +2 -2
  183. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-04-metrics.md +2 -2
  184. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-05-scope.md +2 -2
  185. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.md +1 -1
  186. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +8 -8
  187. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +18 -18
  188. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +18 -18
  189. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +18 -18
  190. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +17 -17
  191. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +35 -36
  192. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +5 -6
  193. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +20 -19
  194. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +21 -20
  195. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +20 -19
  196. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +21 -20
  197. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +16 -15
  198. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +36 -37
  199. package/src/modules/bmm/workflows/1-analysis/research/research.template.md +0 -1
  200. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +8 -8
  201. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +19 -18
  202. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +20 -19
  203. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +21 -20
  204. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +19 -18
  205. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +38 -39
  206. package/src/modules/bmm/workflows/1-analysis/research/workflow.md +14 -8
  207. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +6 -0
  208. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +7 -0
  209. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +138 -56
  210. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +93 -51
  211. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +223 -78
  212. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +20 -2
  213. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +18 -0
  214. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +21 -0
  215. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +21 -0
  216. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +21 -0
  217. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +18 -0
  218. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +18 -0
  219. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +18 -0
  220. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +13 -0
  221. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +2 -2
  222. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-03-starter.md +14 -14
  223. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-04-decisions.md +7 -7
  224. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.md +2 -1
  225. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +258 -0
  226. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +232 -0
  227. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +271 -0
  228. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +144 -0
  229. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -0
  230. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +58 -0
  231. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-01-document-discovery.md +189 -0
  232. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-02-prd-analysis.md +177 -0
  233. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-03-epic-coverage-validation.md +178 -0
  234. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-04-ux-alignment.md +138 -0
  235. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-05-epic-quality-review.md +251 -0
  236. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-06-final-assessment.md +132 -0
  237. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/templates/readiness-report-template.md +4 -0
  238. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/workflow.md +54 -0
  239. package/src/modules/{bmgd/workflows/4-production → bmm/workflows/4-implementation}/code-review/checklist.md +2 -1
  240. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +51 -3
  241. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +1 -1
  242. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +32 -2
  243. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +3 -3
  244. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +19 -21
  245. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +10 -10
  246. package/src/modules/bmm/workflows/4-implementation/sprint-status/instructions.md +174 -0
  247. package/src/modules/bmm/workflows/4-implementation/sprint-status/workflow.yaml +35 -0
  248. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +104 -7
  249. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +4 -0
  250. package/src/modules/bmm/workflows/document-project/instructions.md +1 -1
  251. package/src/modules/bmm/workflows/document-project/workflows/deep-dive-instructions.md +2 -2
  252. package/src/modules/bmm/workflows/generate-project-context/workflow.md +1 -1
  253. package/src/modules/bmm/workflows/testarch/atdd/atdd-checklist-template.md +1 -1
  254. package/src/modules/bmm/workflows/testarch/ci/checklist.md +1 -1
  255. package/src/modules/bmm/workflows/testarch/ci/github-actions-template.yaml +36 -3
  256. package/src/modules/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +25 -4
  257. package/src/modules/bmm/workflows/testarch/ci/instructions.md +2 -2
  258. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +1 -1
  259. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +1 -6
  260. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +1 -6
  261. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +1 -6
  262. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +1 -7
  263. package/tools/cli/README.md +3 -3
  264. package/tools/cli/commands/build.js +9 -184
  265. package/tools/cli/commands/install.js +1 -6
  266. package/tools/cli/installers/lib/core/config-collector.js +70 -10
  267. package/tools/cli/installers/lib/core/installer.js +153 -388
  268. package/tools/cli/installers/lib/core/manifest-generator.js +91 -30
  269. package/tools/cli/installers/lib/core/post-install-sidecar-replacement.js +79 -0
  270. package/tools/cli/installers/lib/custom/handler.js +266 -0
  271. package/tools/cli/installers/lib/ide/_base-ide.js +10 -0
  272. package/tools/cli/installers/lib/ide/auggie.js +19 -7
  273. package/tools/cli/installers/lib/ide/crush.js +19 -6
  274. package/tools/cli/installers/lib/ide/cursor.js +29 -13
  275. package/tools/cli/installers/lib/ide/gemini.js +49 -1
  276. package/tools/cli/installers/lib/ide/iflow.js +20 -1
  277. package/tools/cli/installers/lib/ide/kiro-cli.js +327 -0
  278. package/tools/cli/installers/lib/ide/opencode.js +3 -3
  279. package/tools/cli/installers/lib/ide/roo.js +120 -184
  280. package/tools/cli/installers/lib/ide/rovo-dev.js +1 -1
  281. package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +8 -2
  282. package/tools/cli/installers/lib/ide/shared/bmad-artifacts.js +34 -19
  283. package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +18 -14
  284. package/tools/cli/installers/lib/ide/templates/agent-command-template.md +1 -1
  285. package/tools/cli/installers/lib/ide/templates/workflow-commander.md +5 -0
  286. package/tools/cli/installers/lib/modules/manager.js +486 -53
  287. package/tools/cli/lib/agent/compiler.js +54 -5
  288. package/tools/cli/lib/agent/installer.js +127 -27
  289. package/tools/cli/lib/config.js +2 -1
  290. package/tools/cli/lib/ui.js +65 -4
  291. package/tools/cli/lib/yaml-xml-builder.js +0 -15
  292. package/tools/schema/agent.js +149 -89
  293. package/tools/validate-svg-changes.sh +356 -0
  294. package/custom/src/agents/commit-poet/installation-guide.md +0 -36
  295. package/custom/src/agents/toolsmith/installation-guide.md +0 -36
  296. package/src/modules/bmb/docs/workflows/workflow-template.md +0 -152
  297. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-overview.md +0 -127
  298. package/src/modules/bmb/workflows/create-workflow/steps/step-04-core-tools.md +0 -145
  299. package/src/modules/bmb/workflows/create-workflow/steps/step-05-memory-requirements.md +0 -136
  300. package/src/modules/bmb/workflows/create-workflow/steps/step-06-external-tools.md +0 -154
  301. package/src/modules/bmb/workflows/create-workflow/steps/step-07-installation-guidance.md +0 -159
  302. package/src/modules/bmb/workflows/create-workflow/steps/step-08-tools-summary.md +0 -167
  303. package/src/modules/bmb/workflows/create-workflow/steps/step-10-plan-review.md +0 -215
  304. package/src/modules/bmb/workflows/create-workflow/templates/build-summary.md +0 -36
  305. package/src/modules/bmb/workflows/create-workflow/templates/completion-section.md +0 -39
  306. package/src/modules/bmb/workflows/create-workflow/templates/content-template.md +0 -21
  307. package/src/modules/bmb/workflows/create-workflow/templates/design-section.md +0 -53
  308. package/src/modules/bmb/workflows/create-workflow/templates/project-info.md +0 -18
  309. package/src/modules/bmb/workflows/create-workflow/templates/requirements-section.md +0 -47
  310. package/src/modules/bmb/workflows/create-workflow/templates/review-section.md +0 -56
  311. package/src/modules/bmb/workflows/create-workflow/templates/workflow-plan.md +0 -54
  312. package/src/modules/bmb/workflows-legacy/create-module/README.md +0 -229
  313. package/src/modules/bmb/workflows-legacy/create-module/brainstorm-context.md +0 -137
  314. package/src/modules/bmb/workflows-legacy/create-module/checklist.md +0 -235
  315. package/src/modules/bmb/workflows-legacy/create-module/installer-templates/install-config.yaml +0 -92
  316. package/src/modules/bmb/workflows-legacy/create-module/installer-templates/installer.js +0 -231
  317. package/src/modules/bmb/workflows-legacy/create-module/instructions.md +0 -577
  318. package/src/modules/bmb/workflows-legacy/create-module/module-structure.md +0 -400
  319. package/src/modules/bmb/workflows-legacy/create-module/workflow.yaml +0 -52
  320. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/epics-template.md +0 -80
  321. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/instructions.md +0 -387
  322. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +0 -53
  323. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/checklist.md +0 -169
  324. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/instructions.md +0 -332
  325. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/template.md +0 -146
  326. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/workflow.yaml +0 -64
  327. package/tools/cli/commands/agent-install.js +0 -409
  328. package/tools/cli/commands/cleanup.js +0 -141
  329. /package/{custom/src → example-custom-content}/agents/commit-poet/commit-poet.agent.yaml +0 -0
  330. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +0 -0
  331. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +0 -0
  332. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +0 -0
  333. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +0 -0
  334. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +0 -0
  335. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +0 -0
@@ -0,0 +1,251 @@
1
+ ---
2
+ name: 'step-05-epic-quality-review'
3
+ description: 'Validate epics and stories against create-epics-and-stories best practices'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/{bmad_folder}/bmm/workflows/3-solutioning/implementation-readiness'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-05-epic-quality-review.md'
10
+ nextStepFile: '{workflow_path}/steps/step-06-final-assessment.md'
11
+ workflowFile: '{workflow_path}/workflow.md'
12
+ outputFile: '{output_folder}/implementation-readiness-report-{{date}}.md'
13
+ epicsBestPractices: '{project-root}/{bmad_folder}/bmm/workflows/3-solutioning/create-epics-and-stories'
14
+ ---
15
+
16
+ # Step 5: Epic Quality Review
17
+
18
+ ## STEP GOAL:
19
+
20
+ To validate epics and stories against the best practices defined in create-epics-and-stories workflow, focusing on user value, independence, dependencies, and implementation readiness.
21
+
22
+ ## MANDATORY EXECUTION RULES (READ FIRST):
23
+
24
+ ### Universal Rules:
25
+
26
+ - 🛑 NEVER generate content without user input
27
+ - 📖 CRITICAL: Read the complete step file before taking any action
28
+ - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
29
+ - 📋 YOU ARE A FACILITATOR, not a content generator
30
+
31
+ ### Role Reinforcement:
32
+
33
+ - ✅ You are an EPIC QUALITY ENFORCER
34
+ - ✅ You know what good epics look like - challenge anything deviating
35
+ - ✅ Technical epics are wrong - find them
36
+ - ✅ Forward dependencies are forbidden - catch them
37
+ - ✅ Stories must be independently completable
38
+
39
+ ### Step-Specific Rules:
40
+
41
+ - 🎯 Apply create-epics-and-stories standards rigorously
42
+ - 🚫 Don't accept "technical milestones" as epics
43
+ - 💬 Challenge every dependency on future work
44
+ - 🚪 Verify proper story sizing and structure
45
+
46
+ ## EXECUTION PROTOCOLS:
47
+
48
+ - 🎯 Systematically validate each epic and story
49
+ - 💾 Document all violations of best practices
50
+ - 📖 Check every dependency relationship
51
+ - 🚫 FORBIDDEN to accept structural problems
52
+
53
+ ## EPIC QUALITY REVIEW PROCESS:
54
+
55
+ ### 1. Initialize Best Practices Validation
56
+
57
+ "Beginning **Epic Quality Review** against create-epics-and-stories standards.
58
+
59
+ I will rigorously validate:
60
+
61
+ - Epics deliver user value (not technical milestones)
62
+ - Epic independence (Epic 2 doesn't need Epic 3)
63
+ - Story dependencies (no forward references)
64
+ - Proper story sizing and completeness
65
+
66
+ Any deviation from best practices will be flagged as a defect."
67
+
68
+ ### 2. Epic Structure Validation
69
+
70
+ #### A. User Value Focus Check
71
+
72
+ For each epic:
73
+
74
+ - **Epic Title:** Is it user-centric (what user can do)?
75
+ - **Epic Goal:** Does it describe user outcome?
76
+ - **Value Proposition:** Can users benefit from this epic alone?
77
+
78
+ **Red flags (violations):**
79
+
80
+ - "Setup Database" or "Create Models" - no user value
81
+ - "API Development" - technical milestone
82
+ - "Infrastructure Setup" - not user-facing
83
+ - "Authentication System" - borderline (is it user value?)
84
+
85
+ #### B. Epic Independence Validation
86
+
87
+ Test epic independence:
88
+
89
+ - **Epic 1:** Must stand alone completely
90
+ - **Epic 2:** Can function using only Epic 1 output
91
+ - **Epic 3:** Can function using Epic 1 & 2 outputs
92
+ - **Rule:** Epic N cannot require Epic N+1 to work
93
+
94
+ **Document failures:**
95
+
96
+ - "Epic 2 requires Epic 3 features to function"
97
+ - Stories in Epic 2 referencing Epic 3 components
98
+ - Circular dependencies between epics
99
+
100
+ ### 3. Story Quality Assessment
101
+
102
+ #### A. Story Sizing Validation
103
+
104
+ Check each story:
105
+
106
+ - **Clear User Value:** Does the story deliver something meaningful?
107
+ - **Independent:** Can it be completed without future stories?
108
+
109
+ **Common violations:**
110
+
111
+ - "Setup all models" - not a USER story
112
+ - "Create login UI (depends on Story 1.3)" - forward dependency
113
+
114
+ #### B. Acceptance Criteria Review
115
+
116
+ For each story's ACs:
117
+
118
+ - **Given/When/Then Format:** Proper BDD structure?
119
+ - **Testable:** Each AC can be verified independently?
120
+ - **Complete:** Covers all scenarios including errors?
121
+ - **Specific:** Clear expected outcomes?
122
+
123
+ **Issues to find:**
124
+
125
+ - Vague criteria like "user can login"
126
+ - Missing error conditions
127
+ - Incomplete happy path
128
+ - Non-measurable outcomes
129
+
130
+ ### 4. Dependency Analysis
131
+
132
+ #### A. Within-Epic Dependencies
133
+
134
+ Map story dependencies within each epic:
135
+
136
+ - Story 1.1 must be completable alone
137
+ - Story 1.2 can use Story 1.1 output
138
+ - Story 1.3 can use Story 1.1 & 1.2 outputs
139
+
140
+ **Critical violations:**
141
+
142
+ - "This story depends on Story 1.4"
143
+ - "Wait for future story to work"
144
+ - Stories referencing features not yet implemented
145
+
146
+ #### B. Database/Entity Creation Timing
147
+
148
+ Validate database creation approach:
149
+
150
+ - **Wrong:** Epic 1 Story 1 creates all tables upfront
151
+ - **Right:** Each story creates tables it needs
152
+ - **Check:** Are tables created only when first needed?
153
+
154
+ ### 5. Special Implementation Checks
155
+
156
+ #### A. Starter Template Requirement
157
+
158
+ Check if Architecture specifies starter template:
159
+
160
+ - If YES: Epic 1 Story 1 must be "Set up initial project from starter template"
161
+ - Verify story includes cloning, dependencies, initial configuration
162
+
163
+ #### B. Greenfield vs Brownfield Indicators
164
+
165
+ Greenfield projects should have:
166
+
167
+ - Initial project setup story
168
+ - Development environment configuration
169
+ - CI/CD pipeline setup early
170
+
171
+ Brownfield projects should have:
172
+
173
+ - Integration points with existing systems
174
+ - Migration or compatibility stories
175
+
176
+ ### 6. Best Practices Compliance Checklist
177
+
178
+ For each epic, verify:
179
+
180
+ - [ ] Epic delivers user value
181
+ - [ ] Epic can function independently
182
+ - [ ] Stories appropriately sized
183
+ - [ ] No forward dependencies
184
+ - [ ] Database tables created when needed
185
+ - [ ] Clear acceptance criteria
186
+ - [ ] Traceability to FRs maintained
187
+
188
+ ### 7. Quality Assessment Documentation
189
+
190
+ Document all findings by severity:
191
+
192
+ #### 🔴 Critical Violations
193
+
194
+ - Technical epics with no user value
195
+ - Forward dependencies breaking independence
196
+ - Epic-sized stories that cannot be completed
197
+
198
+ #### 🟠 Major Issues
199
+
200
+ - Vague acceptance criteria
201
+ - Stories requiring future stories
202
+ - Database creation violations
203
+
204
+ #### 🟡 Minor Concerns
205
+
206
+ - Formatting inconsistencies
207
+ - Minor structure deviations
208
+ - Documentation gaps
209
+
210
+ ### 8. Autonomous Review Execution
211
+
212
+ This review runs autonomously to maintain standards:
213
+
214
+ - Apply best practices without compromise
215
+ - Document every violation with specific examples
216
+ - Provide clear remediation guidance
217
+ - Prepare recommendations for each issue
218
+
219
+ ## REVIEW COMPLETION:
220
+
221
+ After completing epic quality review:
222
+
223
+ - Update {outputFile} with all quality findings
224
+ - Document specific best practices violations
225
+ - Provide actionable recommendations
226
+ - Load {nextStepFile} for final readiness assessment
227
+
228
+ ## CRITICAL STEP COMPLETION NOTE
229
+
230
+ This step executes autonomously. Load {nextStepFile} only after complete epic quality review is documented.
231
+
232
+ ---
233
+
234
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
235
+
236
+ ### ✅ SUCCESS:
237
+
238
+ - All epics validated against best practices
239
+ - Every dependency checked and verified
240
+ - Quality violations documented with examples
241
+ - Clear remediation guidance provided
242
+ - No compromise on standards enforcement
243
+
244
+ ### ❌ SYSTEM FAILURE:
245
+
246
+ - Accepting technical epics as valid
247
+ - Ignoring forward dependencies
248
+ - Not verifying story sizing
249
+ - Overlooking obvious violations
250
+
251
+ **Master Rule:** Enforce best practices rigorously. Find all violations.
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: 'step-06-final-assessment'
3
+ description: 'Compile final assessment and polish the readiness report'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/{bmad_folder}/bmm/workflows/3-solutioning/implementation-readiness'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-06-final-assessment.md'
10
+ workflowFile: '{workflow_path}/workflow.md'
11
+ outputFile: '{output_folder}/implementation-readiness-report-{{date}}.md'
12
+ ---
13
+
14
+ # Step 6: Final Assessment
15
+
16
+ ## STEP GOAL:
17
+
18
+ To provide a comprehensive summary of all findings and give the report a final polish, ensuring clear recommendations and overall readiness status.
19
+
20
+ ## MANDATORY EXECUTION RULES (READ FIRST):
21
+
22
+ ### Universal Rules:
23
+
24
+ - 🛑 NEVER generate content without user input
25
+ - 📖 CRITICAL: Read the complete step file before taking any action
26
+ - 📖 You are at the final step - complete the assessment
27
+ - 📋 YOU ARE A FACILITATOR, not a content generator
28
+
29
+ ### Role Reinforcement:
30
+
31
+ - ✅ You are delivering the FINAL ASSESSMENT
32
+ - ✅ Your findings are objective and backed by evidence
33
+ - ✅ Provide clear, actionable recommendations
34
+ - ✅ Success is measured by value of findings
35
+
36
+ ### Step-Specific Rules:
37
+
38
+ - 🎯 Compile and summarize all findings
39
+ - 🚫 Don't soften the message - be direct
40
+ - 💬 Provide specific examples for problems
41
+ - 🚪 Add final section to the report
42
+
43
+ ## EXECUTION PROTOCOLS:
44
+
45
+ - 🎯 Review all findings from previous steps
46
+ - 💾 Add summary and recommendations
47
+ - 📖 Determine overall readiness status
48
+ - 🚫 Complete and present final report
49
+
50
+ ## FINAL ASSESSMENT PROCESS:
51
+
52
+ ### 1. Initialize Final Assessment
53
+
54
+ "Completing **Final Assessment**.
55
+
56
+ I will now:
57
+
58
+ 1. Review all findings from previous steps
59
+ 2. Provide a comprehensive summary
60
+ 3. Add specific recommendations
61
+ 4. Determine overall readiness status"
62
+
63
+ ### 2. Review Previous Findings
64
+
65
+ Check the {outputFile} for sections added by previous steps:
66
+
67
+ - File and FR Validation findings
68
+ - UX Alignment issues
69
+ - Epic Quality violations
70
+
71
+ ### 3. Add Final Assessment Section
72
+
73
+ Append to {outputFile}:
74
+
75
+ ```markdown
76
+ ## Summary and Recommendations
77
+
78
+ ### Overall Readiness Status
79
+
80
+ [READY/NEEDS WORK/NOT READY]
81
+
82
+ ### Critical Issues Requiring Immediate Action
83
+
84
+ [List most critical issues that must be addressed]
85
+
86
+ ### Recommended Next Steps
87
+
88
+ 1. [Specific action item 1]
89
+ 2. [Specific action item 2]
90
+ 3. [Specific action item 3]
91
+
92
+ ### Final Note
93
+
94
+ This assessment identified [X] issues across [Y] categories. Address the critical issues before proceeding to implementation. These findings can be used to improve the artifacts or you may choose to proceed as-is.
95
+ ```
96
+
97
+ ### 4. Complete the Report
98
+
99
+ - Ensure all findings are clearly documented
100
+ - Verify recommendations are actionable
101
+ - Add date and assessor information
102
+ - Save the final report
103
+
104
+ ### 5. Present Completion
105
+
106
+ Display:
107
+ "**Implementation Readiness Assessment Complete**
108
+
109
+ Report generated: {outputFile}
110
+
111
+ The assessment found [number] issues requiring attention. Review the detailed report for specific findings and recommendations."
112
+
113
+ ## WORKFLOW COMPLETE
114
+
115
+ The implementation readiness workflow is now complete. The report contains all findings and recommendations for the user to consider.
116
+
117
+ ---
118
+
119
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
120
+
121
+ ### ✅ SUCCESS:
122
+
123
+ - All findings compiled and summarized
124
+ - Clear recommendations provided
125
+ - Readiness status determined
126
+ - Final report saved
127
+
128
+ ### ❌ SYSTEM FAILURE:
129
+
130
+ - Not reviewing previous findings
131
+ - Incomplete summary
132
+ - No clear recommendations
@@ -0,0 +1,4 @@
1
+ # Implementation Readiness Assessment Report
2
+
3
+ **Date:** {{date}}
4
+ **Project:** {{project_name}}
@@ -0,0 +1,54 @@
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_folder}/bmm/config.yaml and resolve:
49
+
50
+ - `project_name`, `output_folder`, `user_name`, `communication_language`, `document_output_language`
51
+
52
+ ### 2. First Step EXECUTION
53
+
54
+ Load, read the full file and then execute `{workflow_path}/steps/step-01-document-discovery.md` to begin the workflow.
@@ -1,7 +1,7 @@
1
1
  # Senior Developer Review - Validation Checklist
2
2
 
3
3
  - [ ] Story file loaded from `{{story_path}}`
4
- - [ ] Story Status verified as one of: {{allow_status_values}}
4
+ - [ ] Story Status verified as reviewable (review)
5
5
  - [ ] Epic and Story IDs resolved ({{epic_num}}.{{story_num}})
6
6
  - [ ] Story Context located or warning recorded
7
7
  - [ ] Epic Tech Spec located or warning recorded
@@ -17,6 +17,7 @@
17
17
  - [ ] Review notes appended under "Senior Developer Review (AI)"
18
18
  - [ ] Change Log updated with review entry
19
19
  - [ ] Status updated according to settings (if enabled)
20
+ - [ ] Sprint status synced (if sprint tracking enabled)
20
21
  - [ ] Story saved successfully
21
22
 
22
23
  _Reviewer: {{user_name}} on {{date}}_
@@ -16,6 +16,7 @@
16
16
  <step n="1" goal="Load story and discover changes">
17
17
  <action>Use provided {{story_path}} or ask user which story file to review</action>
18
18
  <action>Read COMPLETE story file</action>
19
+ <action>Set {{story_key}} = extracted key from filename (e.g., "1-2-user-authentication.md" → "1-2-user-authentication") or story metadata</action>
19
20
  <action>Parse sections: Story, Acceptance Criteria, Tasks/Subtasks, Dev Agent Record → File List, Change Log</action>
20
21
 
21
22
  <!-- Discover actual changes via git -->
@@ -106,6 +107,8 @@
106
107
 
107
108
  <step n="4" goal="Present findings and fix them">
108
109
  <action>Categorize findings: HIGH (must fix), MEDIUM (should fix), LOW (nice to fix)</action>
110
+ <action>Set {{fixed_count}} = 0</action>
111
+ <action>Set {{action_count}} = 0</action>
109
112
 
110
113
  <output>**🔥 CODE REVIEW FINDINGS, {user_name}!**
111
114
 
@@ -145,11 +148,15 @@
145
148
  <action>Add/update tests as needed</action>
146
149
  <action>Update File List in story if files changed</action>
147
150
  <action>Update story Dev Agent Record with fixes applied</action>
151
+ <action>Set {{fixed_count}} = number of HIGH and MEDIUM issues fixed</action>
152
+ <action>Set {{action_count}} = 0</action>
148
153
  </check>
149
154
 
150
155
  <check if="user chooses 2">
151
156
  <action>Add "Review Follow-ups (AI)" subsection to Tasks/Subtasks</action>
152
157
  <action>For each issue: `- [ ] [AI-Review][Severity] Description [file:line]`</action>
158
+ <action>Set {{action_count}} = number of action items created</action>
159
+ <action>Set {{fixed_count}} = 0</action>
153
160
  </check>
154
161
 
155
162
  <check if="user chooses 3">
@@ -158,11 +165,52 @@
158
165
  </check>
159
166
  </step>
160
167
 
161
- <step n="5" goal="Update story status">
162
- <action>If all HIGH issues fixed and ACs implemented → Update story Status to "done"</action>
163
- <action>If issues remain Update story Status to "in-progress"</action>
168
+ <step n="5" goal="Update story status and sync sprint tracking">
169
+ <!-- Determine new status based on review outcome -->
170
+ <check if="all HIGH and MEDIUM issues fixed AND all ACs implemented">
171
+ <action>Set {{new_status}} = "done"</action>
172
+ <action>Update story Status field to "done"</action>
173
+ </check>
174
+ <check if="HIGH or MEDIUM issues remain OR ACs not fully implemented">
175
+ <action>Set {{new_status}} = "in-progress"</action>
176
+ <action>Update story Status field to "in-progress"</action>
177
+ </check>
164
178
  <action>Save story file</action>
165
179
 
180
+ <!-- Determine sprint tracking status -->
181
+ <check if="{sprint_status} file exists">
182
+ <action>Set {{current_sprint_status}} = "enabled"</action>
183
+ </check>
184
+ <check if="{sprint_status} file does NOT exist">
185
+ <action>Set {{current_sprint_status}} = "no-sprint-tracking"</action>
186
+ </check>
187
+
188
+ <!-- Sync sprint-status.yaml when story status changes (only if sprint tracking enabled) -->
189
+ <check if="{{current_sprint_status}} != 'no-sprint-tracking'">
190
+ <action>Load the FULL file: {sprint_status}</action>
191
+ <action>Find development_status key matching {{story_key}}</action>
192
+
193
+ <check if="{{new_status}} == 'done'">
194
+ <action>Update development_status[{{story_key}}] = "done"</action>
195
+ <action>Save file, preserving ALL comments and structure</action>
196
+ <output>✅ Sprint status synced: {{story_key}} → done</output>
197
+ </check>
198
+
199
+ <check if="{{new_status}} == 'in-progress'">
200
+ <action>Update development_status[{{story_key}}] = "in-progress"</action>
201
+ <action>Save file, preserving ALL comments and structure</action>
202
+ <output>🔄 Sprint status synced: {{story_key}} → in-progress</output>
203
+ </check>
204
+
205
+ <check if="story key not found in sprint status">
206
+ <output>⚠️ Story file updated, but sprint-status sync failed: {{story_key}} not found in sprint-status.yaml</output>
207
+ </check>
208
+ </check>
209
+
210
+ <check if="{{current_sprint_status}} == 'no-sprint-tracking'">
211
+ <output>ℹ️ Story status updated (no sprint tracking configured)</output>
212
+ </check>
213
+
166
214
  <output>**✅ Review Complete!**
167
215
 
168
216
  **Story Status:** {{new_status}}
@@ -1,6 +1,6 @@
1
1
  # Review Story Workflow
2
2
  name: code-review
3
- description: "Perform an ADVERSARIAL Senior Developer code review that finds 3-10 specific problems in every story. Challenges everything: code quality, test coverage, architecture compliance, security, performance. NEVER accepts 'looks good' - must find minimum issues and can auto-fix with user approval."
3
+ description: "Perform an ADVERSARIAL Senior Developer code review that finds 3-10 specific problems in every story. Challenges everything: code quality, test coverage, architecture compliance, security, performance. NEVER accepts `looks good` - must find minimum issues and can auto-fix with user approval."
4
4
  author: "BMad"
5
5
 
6
6
  # Critical variables from config
@@ -95,7 +95,22 @@
95
95
  <check if="this is first story in epic {{epic_num}}">
96
96
  <action>Load {{sprint_status}} and check epic-{{epic_num}} status</action>
97
97
  <action>If epic status is "backlog" → update to "in-progress"</action>
98
- <action>If epic status is "contexted" this means same as "in-progress", no change needed</action>
98
+ <action>If epic status is "contexted" (legacy status) update to "in-progress" (backward compatibility)</action>
99
+ <action>If epic status is "in-progress" → no change needed</action>
100
+ <check if="epic status is 'done'">
101
+ <output>🚫 ERROR: Cannot create story in completed epic</output>
102
+ <output>Epic {{epic_num}} is marked as 'done'. All stories are complete.</output>
103
+ <output>If you need to add more work, either:</output>
104
+ <output>1. Manually change epic status back to 'in-progress' in sprint-status.yaml</output>
105
+ <output>2. Create a new epic for additional work</output>
106
+ <action>HALT - Cannot proceed</action>
107
+ </check>
108
+ <check if="epic status is not one of: backlog, contexted, in-progress, done">
109
+ <output>🚫 ERROR: Invalid epic status '{{epic_status}}'</output>
110
+ <output>Epic {{epic_num}} has invalid status. Expected: backlog, in-progress, or done</output>
111
+ <output>Please fix sprint-status.yaml manually or run sprint-planning to regenerate</output>
112
+ <action>HALT - Cannot proceed</action>
113
+ </check>
99
114
  <output>📊 Epic {{epic_num}} status updated to in-progress</output>
100
115
  </check>
101
116
 
@@ -137,7 +152,22 @@
137
152
  <check if="this is first story in epic {{epic_num}}">
138
153
  <action>Load {{sprint_status}} and check epic-{{epic_num}} status</action>
139
154
  <action>If epic status is "backlog" → update to "in-progress"</action>
140
- <action>If epic status is "contexted" this means same as "in-progress", no change needed</action>
155
+ <action>If epic status is "contexted" (legacy status) update to "in-progress" (backward compatibility)</action>
156
+ <action>If epic status is "in-progress" → no change needed</action>
157
+ <check if="epic status is 'done'">
158
+ <output>🚫 ERROR: Cannot create story in completed epic</output>
159
+ <output>Epic {{epic_num}} is marked as 'done'. All stories are complete.</output>
160
+ <output>If you need to add more work, either:</output>
161
+ <output>1. Manually change epic status back to 'in-progress' in sprint-status.yaml</output>
162
+ <output>2. Create a new epic for additional work</output>
163
+ <action>HALT - Cannot proceed</action>
164
+ </check>
165
+ <check if="epic status is not one of: backlog, contexted, in-progress, done">
166
+ <output>🚫 ERROR: Invalid epic status '{{epic_status}}'</output>
167
+ <output>Epic {{epic_num}} has invalid status. Expected: backlog, in-progress, or done</output>
168
+ <output>Please fix sprint-status.yaml manually or run sprint-planning to regenerate</output>
169
+ <action>HALT - Cannot proceed</action>
170
+ </check>
141
171
  <output>📊 Epic {{epic_num}} status updated to in-progress</output>
142
172
  </check>
143
173
 
@@ -1395,9 +1395,9 @@ Retrospective document was saved successfully, but {sprint_status_file} may need
1395
1395
  - Do NOT start Epic {{next_epic_num}} until review is complete
1396
1396
  {{else}}
1397
1397
 
1398
- 4. **Begin Epic {{next_epic_num}} planning when preparation complete**
1399
- - Load PM agent and run `epic-tech-context` for Epic {{next_epic_num}}
1400
- - Or continue with existing contexted epics
1398
+ 4. **Begin Epic {{next_epic_num}} when ready**
1399
+ - Start drafting stories with SM agent's `create-story`
1400
+ - Epic will be marked as `in-progress` automatically when first story is created
1401
1401
  - Ensure all critical path items are done first
1402
1402
  {{/if}}
1403
1403