bmad-method 6.0.0-alpha.12 → 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 (608) 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/bundle-latest.yaml +79 -27
  4. package/.github/workflows/discord.yaml +278 -8
  5. package/.github/workflows/quality.yaml +19 -0
  6. package/.markdownlint-cli2.yaml +42 -0
  7. package/.prettierignore +3 -0
  8. package/CHANGELOG.md +254 -1
  9. package/CODE_OF_CONDUCT.md +128 -0
  10. package/README.md +3 -1
  11. package/bmad-method-6.0.0-alpha.14.tgz +0 -0
  12. package/docs/agent-customization-guide.md +2 -2
  13. package/docs/custom-agent-installation.md +58 -90
  14. package/docs/document-sharding-guide.md +1 -1
  15. package/docs/ide-info/rovo-dev.md +388 -0
  16. package/docs/index.md +6 -81
  17. package/docs/installers-bundlers/installers-modules-platforms-reference.md +1 -1
  18. package/eslint.config.mjs +14 -0
  19. package/example-custom-content/README.md +4 -0
  20. package/example-custom-content/agents/commit-poet/commit-poet.agent.yaml +129 -0
  21. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/instructions.md +70 -0
  22. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +111 -0
  23. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +70 -0
  24. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +114 -0
  25. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +134 -0
  26. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +161 -0
  27. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +103 -0
  28. package/example-custom-content/agents/toolsmith/toolsmith-sidecar/memories.md +17 -0
  29. package/example-custom-content/agents/toolsmith/toolsmith.agent.yaml +109 -0
  30. package/example-custom-content/custom.yaml +3 -0
  31. package/example-custom-content/workflows/quiz-master/steps/step-01-init.md +168 -0
  32. package/example-custom-content/workflows/quiz-master/steps/step-02-q1.md +155 -0
  33. package/example-custom-content/workflows/quiz-master/steps/step-03-q2.md +89 -0
  34. package/example-custom-content/workflows/quiz-master/steps/step-04-q3.md +36 -0
  35. package/example-custom-content/workflows/quiz-master/steps/step-05-q4.md +36 -0
  36. package/example-custom-content/workflows/quiz-master/steps/step-06-q5.md +36 -0
  37. package/example-custom-content/workflows/quiz-master/steps/step-07-q6.md +36 -0
  38. package/example-custom-content/workflows/quiz-master/steps/step-08-q7.md +36 -0
  39. package/example-custom-content/workflows/quiz-master/steps/step-09-q8.md +36 -0
  40. package/example-custom-content/workflows/quiz-master/steps/step-10-q9.md +36 -0
  41. package/example-custom-content/workflows/quiz-master/steps/step-11-q10.md +36 -0
  42. package/example-custom-content/workflows/quiz-master/steps/step-12-results.md +150 -0
  43. package/example-custom-content/workflows/quiz-master/templates/csv-headers.template +1 -0
  44. package/example-custom-content/workflows/quiz-master/workflow-plan-quiz-master.md +269 -0
  45. package/example-custom-content/workflows/quiz-master/workflow.md +54 -0
  46. package/example-custom-content/workflows/wassup/workflow.md +26 -0
  47. package/example-custom-module/mwm/README.md +4 -0
  48. package/example-custom-module/mwm/_module-installer/install-config.yaml +27 -0
  49. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/cognitive-distortions.md +47 -0
  50. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/thought-records.md +17 -0
  51. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach.agent.yaml +150 -0
  52. package/example-custom-module/mwm/agents/crisis-navigator.agent.yaml +137 -0
  53. package/example-custom-module/mwm/agents/meditation-guide.agent.yaml +137 -0
  54. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/insights.md +13 -0
  55. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/instructions.md +30 -0
  56. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/memories.md +13 -0
  57. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/patterns.md +17 -0
  58. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion.agent.yaml +124 -0
  59. package/example-custom-module/mwm/workflows/cbt-thought-record/README.md +31 -0
  60. package/example-custom-module/mwm/workflows/cbt-thought-record/workflow.md +45 -0
  61. package/example-custom-module/mwm/workflows/crisis-support/README.md +31 -0
  62. package/example-custom-module/mwm/workflows/crisis-support/workflow.md +45 -0
  63. package/example-custom-module/mwm/workflows/daily-checkin/README.md +32 -0
  64. package/example-custom-module/mwm/workflows/daily-checkin/workflow.md +45 -0
  65. package/example-custom-module/mwm/workflows/guided-meditation/README.md +31 -0
  66. package/example-custom-module/mwm/workflows/guided-meditation/workflow.md +45 -0
  67. package/example-custom-module/mwm/workflows/wellness-journal/README.md +31 -0
  68. package/example-custom-module/mwm/workflows/wellness-journal/workflow.md +45 -0
  69. package/package.json +9 -4
  70. package/src/core/_module-installer/install-config.yaml +5 -1
  71. package/src/core/agents/bmad-master.agent.yaml +1 -1
  72. package/src/core/agents/bmad-web-orchestrator.agent.xml +1 -1
  73. package/src/core/resources/excalidraw/library-loader.md +2 -2
  74. package/src/core/tasks/advanced-elicitation-methods.csv +51 -21
  75. package/src/core/tasks/advanced-elicitation.xml +18 -8
  76. package/src/core/tasks/workflow.xml +36 -71
  77. package/src/core/workflows/brainstorming/brain-methods.csv +62 -36
  78. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +196 -0
  79. package/src/core/workflows/brainstorming/steps/step-01b-continue.md +121 -0
  80. package/src/core/workflows/brainstorming/steps/step-02a-user-selected.md +224 -0
  81. package/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +236 -0
  82. package/src/core/workflows/brainstorming/steps/step-02c-random-selection.md +208 -0
  83. package/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +263 -0
  84. package/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +339 -0
  85. package/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +302 -0
  86. package/src/core/workflows/brainstorming/template.md +13 -104
  87. package/src/core/workflows/brainstorming/workflow.md +51 -0
  88. package/src/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
  89. package/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +203 -0
  90. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +158 -0
  91. package/src/core/workflows/party-mode/workflow.md +206 -0
  92. package/src/modules/bmb/README.md +153 -86
  93. package/src/modules/bmb/_module-installer/install-config.yaml +4 -9
  94. package/src/modules/bmb/_module-installer/installer.js +76 -0
  95. package/src/modules/bmb/agents/bmad-builder.agent.yaml +75 -38
  96. package/src/modules/bmb/docs/{agent-menu-patterns.md → agents/agent-menu-patterns.md} +6 -6
  97. package/src/modules/bmb/docs/{expert-agent-architecture.md → agents/expert-agent-architecture.md} +20 -20
  98. package/src/modules/bmb/docs/agents/kb.csv +0 -0
  99. package/src/modules/bmb/docs/{module-agent-architecture.md → agents/module-agent-architecture.md} +46 -46
  100. package/src/modules/bmb/docs/{simple-agent-architecture.md → agents/simple-agent-architecture.md} +7 -3
  101. package/src/modules/bmb/docs/workflows/architecture.md +220 -0
  102. package/src/modules/bmb/docs/workflows/common-workflow-tools.csv +19 -0
  103. package/src/modules/bmb/docs/workflows/csv-data-file-standards.md +206 -0
  104. package/src/modules/bmb/docs/workflows/index.md +45 -0
  105. package/src/modules/bmb/docs/workflows/intent-vs-prescriptive-spectrum.md +220 -0
  106. package/src/modules/bmb/docs/workflows/kb.csv +0 -0
  107. package/src/modules/bmb/docs/workflows/templates/step-01-init-continuable-template.md +241 -0
  108. package/src/modules/bmb/docs/workflows/templates/step-1b-template.md +223 -0
  109. package/src/modules/bmb/docs/workflows/templates/step-file.md +139 -0
  110. package/src/modules/bmb/docs/workflows/templates/step-template.md +290 -0
  111. package/src/modules/bmb/docs/workflows/templates/workflow-template.md +104 -0
  112. package/src/modules/bmb/docs/workflows/templates/workflow.md +58 -0
  113. package/src/modules/bmb/docs/workflows/terms.md +97 -0
  114. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/README.md +4 -4
  115. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +8 -8
  116. package/src/modules/bmb/reference/agents/module-examples/README.md +1 -1
  117. package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +7 -7
  118. package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +7 -7
  119. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  120. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  121. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  122. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +176 -0
  123. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +120 -0
  124. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  125. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +153 -0
  126. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  127. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  128. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  129. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  130. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  131. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  132. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  133. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  134. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  135. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  136. package/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md +29 -0
  137. package/src/modules/bmb/workflows/create-agent/data/reference/README.md +3 -0
  138. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +242 -0
  139. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
  140. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
  141. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
  142. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
  143. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
  144. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md +50 -0
  145. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
  146. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
  147. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +223 -0
  148. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
  149. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  150. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  151. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  152. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  153. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  154. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  155. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  156. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  157. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  158. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  159. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  160. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  161. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  162. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  163. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  164. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  165. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  166. package/src/modules/bmb/workflows/create-agent/data/validation-complete.md +305 -0
  167. package/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +145 -0
  168. package/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +210 -0
  169. package/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +260 -0
  170. package/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +237 -0
  171. package/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +231 -0
  172. package/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +224 -0
  173. package/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +234 -0
  174. package/src/modules/bmb/workflows/create-agent/steps/step-08-setup.md +179 -0
  175. package/src/modules/bmb/workflows/create-agent/steps/step-09-customize.md +197 -0
  176. package/src/modules/bmb/workflows/create-agent/steps/step-10-build-tools.md +180 -0
  177. package/src/modules/bmb/workflows/create-agent/steps/step-11-celebrate.md +222 -0
  178. package/src/modules/bmb/workflows/create-agent/templates/agent_commands.md +21 -0
  179. package/src/modules/bmb/workflows/create-agent/templates/agent_persona.md +25 -0
  180. package/src/modules/bmb/workflows/create-agent/templates/agent_purpose_and_type.md +23 -0
  181. package/src/modules/bmb/workflows/create-agent/workflow.md +91 -0
  182. package/src/modules/bmb/workflows/create-module/steps/step-01-init.md +155 -0
  183. package/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md +169 -0
  184. package/src/modules/bmb/workflows/create-module/steps/step-02-concept.md +217 -0
  185. package/src/modules/bmb/workflows/create-module/steps/step-03-components.md +267 -0
  186. package/src/modules/bmb/workflows/create-module/steps/step-04-structure.md +228 -0
  187. package/src/modules/bmb/workflows/create-module/steps/step-05-config.md +233 -0
  188. package/src/modules/bmb/workflows/create-module/steps/step-06-agents.md +296 -0
  189. package/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md +228 -0
  190. package/src/modules/bmb/workflows/create-module/steps/step-08-installer.md +186 -0
  191. package/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md +308 -0
  192. package/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md +336 -0
  193. package/src/modules/bmb/workflows/create-module/steps/step-11-validate.md +335 -0
  194. package/src/modules/bmb/workflows/create-module/templates/agent.template.md +317 -0
  195. package/src/modules/bmb/workflows/create-module/templates/install-config.template.yaml +53 -0
  196. package/src/modules/bmb/workflows/create-module/templates/installer.template.js +47 -0
  197. package/src/modules/bmb/workflows/create-module/templates/module-plan.template.md +5 -0
  198. package/src/modules/bmb/workflows/create-module/templates/workflow-plan-template.md +23 -0
  199. package/src/modules/bmb/workflows/create-module/validation.md +126 -0
  200. package/src/modules/bmb/workflows/create-module/workflow.md +55 -0
  201. package/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +157 -0
  202. package/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +211 -0
  203. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md +250 -0
  204. package/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md +216 -0
  205. package/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md +289 -0
  206. package/src/modules/bmb/workflows/create-workflow/steps/step-06-design.md +271 -0
  207. package/src/modules/bmb/workflows/create-workflow/steps/step-07-build.md +308 -0
  208. package/src/modules/bmb/workflows/create-workflow/steps/step-08-review.md +284 -0
  209. package/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md +187 -0
  210. package/src/modules/bmb/workflows/create-workflow/workflow.md +58 -0
  211. package/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +134 -0
  212. package/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +202 -0
  213. package/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +157 -0
  214. package/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +150 -0
  215. package/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +150 -0
  216. package/src/modules/bmb/workflows/edit-agent/workflow.md +58 -0
  217. package/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +217 -0
  218. package/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md +253 -0
  219. package/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +217 -0
  220. package/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +193 -0
  221. package/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md +245 -0
  222. package/src/modules/bmb/workflows/edit-workflow/templates/completion-summary.md +75 -0
  223. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-goals.md +68 -0
  224. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-log.md +40 -0
  225. package/src/modules/bmb/workflows/edit-workflow/templates/validation-results.md +51 -0
  226. package/src/modules/bmb/workflows/edit-workflow/templates/workflow-analysis.md +56 -0
  227. package/src/modules/bmb/workflows/edit-workflow/workflow.md +58 -0
  228. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +152 -0
  229. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +243 -0
  230. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +274 -0
  231. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +295 -0
  232. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +264 -0
  233. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +360 -0
  234. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +258 -0
  235. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +301 -0
  236. package/src/modules/bmb/workflows/workflow-compliance-check/templates/compliance-report.md +140 -0
  237. package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +58 -0
  238. package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/checklist.md +0 -1
  239. package/src/modules/bmgd/agents/game-architect.agent.yaml +1 -1
  240. package/src/modules/bmgd/agents/game-designer.agent.yaml +1 -1
  241. package/src/modules/bmgd/agents/game-dev.agent.yaml +1 -1
  242. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +1 -1
  243. package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +8 -8
  244. package/src/modules/bmm/_module-installer/install-config.yaml +10 -16
  245. package/src/modules/bmm/agents/analyst.agent.yaml +25 -22
  246. package/src/modules/bmm/agents/architect.agent.yaml +12 -14
  247. package/src/modules/bmm/agents/dev.agent.yaml +20 -16
  248. package/src/modules/bmm/agents/pm.agent.yaml +14 -32
  249. package/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml +36 -0
  250. package/src/modules/bmm/agents/sm.agent.yaml +13 -31
  251. package/src/modules/bmm/agents/tea.agent.yaml +10 -7
  252. package/src/modules/bmm/agents/tech-writer.agent.yaml +7 -20
  253. package/src/modules/bmm/agents/ux-designer.agent.yaml +12 -10
  254. package/src/modules/bmm/data/README.md +29 -0
  255. package/src/modules/bmm/data/project-context-template.md +40 -0
  256. package/src/modules/bmm/docs/README.md +44 -10
  257. package/src/modules/bmm/docs/agents-guide.md +80 -53
  258. package/src/modules/bmm/docs/bmad-quick-flow.md +528 -0
  259. package/src/modules/bmm/docs/brownfield-guide.md +25 -39
  260. package/src/modules/bmm/docs/enterprise-agentic-development.md +3 -3
  261. package/src/modules/bmm/docs/faq.md +6 -39
  262. package/src/modules/bmm/docs/glossary.md +12 -25
  263. package/src/modules/bmm/docs/images/README.md +37 -0
  264. package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +960 -1845
  265. package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +4 -2
  266. package/src/modules/bmm/docs/quick-flow-solo-dev.md +337 -0
  267. package/src/modules/bmm/docs/quick-spec-flow.md +5 -5
  268. package/src/modules/bmm/docs/quick-start.md +9 -25
  269. package/src/modules/bmm/docs/scale-adaptive-system.md +5 -5
  270. package/src/modules/bmm/docs/test-architecture.md +90 -24
  271. package/src/modules/bmm/docs/troubleshooting.md +680 -0
  272. package/src/modules/bmm/docs/workflow-document-project-reference.md +1 -1
  273. package/src/modules/bmm/docs/workflows-analysis.md +36 -140
  274. package/src/modules/bmm/docs/workflows-implementation.md +175 -160
  275. package/src/modules/bmm/docs/workflows-planning.md +51 -212
  276. package/src/modules/bmm/docs/workflows-solutioning.md +26 -71
  277. package/src/modules/bmm/tasks/daily-standup.xml +85 -0
  278. package/src/modules/bmm/teams/default-party.csv +15 -14
  279. package/src/modules/bmm/teams/team-fullstack.yaml +0 -1
  280. package/src/modules/bmm/testarch/knowledge/api-request.md +303 -0
  281. package/src/modules/bmm/testarch/knowledge/auth-session.md +356 -0
  282. package/src/modules/bmm/testarch/knowledge/burn-in.md +273 -0
  283. package/src/modules/bmm/testarch/knowledge/ci-burn-in.md +1 -1
  284. package/src/modules/bmm/testarch/knowledge/file-utils.md +260 -0
  285. package/src/modules/bmm/testarch/knowledge/fixtures-composition.md +382 -0
  286. package/src/modules/bmm/testarch/knowledge/intercept-network-call.md +280 -0
  287. package/src/modules/bmm/testarch/knowledge/log.md +294 -0
  288. package/src/modules/bmm/testarch/knowledge/network-error-monitor.md +272 -0
  289. package/src/modules/bmm/testarch/knowledge/network-recorder.md +265 -0
  290. package/src/modules/bmm/testarch/knowledge/overview.md +284 -0
  291. package/src/modules/bmm/testarch/knowledge/recurse.md +296 -0
  292. package/src/modules/bmm/testarch/tea-index.csv +11 -0
  293. package/src/modules/bmm/workflows/1-analysis/product-brief/product-brief.template.md +8 -0
  294. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01-init.md +192 -0
  295. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01b-continue.md +167 -0
  296. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-02-vision.md +203 -0
  297. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-03-users.md +206 -0
  298. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-04-metrics.md +209 -0
  299. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-05-scope.md +223 -0
  300. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-06-complete.md +199 -0
  301. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.md +58 -0
  302. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +136 -0
  303. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +228 -0
  304. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +237 -0
  305. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +205 -0
  306. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +233 -0
  307. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +442 -0
  308. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +181 -0
  309. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +236 -0
  310. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +199 -0
  311. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +248 -0
  312. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +258 -0
  313. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +176 -0
  314. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +474 -0
  315. package/src/modules/bmm/workflows/1-analysis/research/research.template.md +15 -0
  316. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +136 -0
  317. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +238 -0
  318. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +247 -0
  319. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +201 -0
  320. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +238 -0
  321. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +485 -0
  322. package/src/modules/bmm/workflows/1-analysis/research/workflow.md +204 -0
  323. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +159 -0
  324. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +126 -0
  325. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +209 -0
  326. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +215 -0
  327. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +218 -0
  328. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +233 -0
  329. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +251 -0
  330. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +253 -0
  331. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +223 -0
  332. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +223 -0
  333. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +240 -0
  334. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +247 -0
  335. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +236 -0
  336. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +263 -0
  337. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +226 -0
  338. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +6 -138
  339. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +59 -0
  340. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +12 -200
  341. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +243 -0
  342. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +165 -0
  343. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +420 -0
  344. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +289 -0
  345. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +290 -0
  346. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +270 -0
  347. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +261 -0
  348. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +257 -0
  349. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +298 -0
  350. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +269 -0
  351. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +293 -0
  352. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +223 -0
  353. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +61 -0
  354. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-decision-template.md +13 -0
  355. package/src/modules/bmm/workflows/3-solutioning/architecture/data/domain-complexity.csv +11 -0
  356. package/src/modules/bmm/workflows/3-solutioning/architecture/data/project-types.csv +7 -0
  357. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01-init.md +194 -0
  358. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01b-continue.md +163 -0
  359. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-02-context.md +223 -0
  360. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-03-starter.md +330 -0
  361. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-04-decisions.md +317 -0
  362. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-05-patterns.md +358 -0
  363. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-06-structure.md +378 -0
  364. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-07-validation.md +358 -0
  365. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-08-complete.md +351 -0
  366. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.md +49 -0
  367. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +258 -0
  368. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +232 -0
  369. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +271 -0
  370. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +144 -0
  371. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -0
  372. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +58 -0
  373. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-01-document-discovery.md +189 -0
  374. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-02-prd-analysis.md +177 -0
  375. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-03-epic-coverage-validation.md +178 -0
  376. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-04-ux-alignment.md +138 -0
  377. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-05-epic-quality-review.md +251 -0
  378. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-06-final-assessment.md +132 -0
  379. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/templates/readiness-report-template.md +4 -0
  380. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/workflow.md +54 -0
  381. package/src/modules/bmm/workflows/4-implementation/code-review/checklist.md +2 -1
  382. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +224 -0
  383. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +4 -11
  384. package/src/modules/bmm/workflows/4-implementation/create-story/checklist.md +332 -214
  385. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +354 -0
  386. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +21 -34
  387. package/src/modules/bmm/workflows/4-implementation/dev-story/checklist.md +65 -23
  388. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.xml +406 -0
  389. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +6 -37
  390. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +3 -3
  391. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +19 -21
  392. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +11 -10
  393. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +2 -0
  394. package/src/modules/bmm/workflows/4-implementation/sprint-status/instructions.md +174 -0
  395. package/src/modules/bmm/workflows/4-implementation/sprint-status/workflow.yaml +35 -0
  396. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/instructions.md +115 -0
  397. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +26 -0
  398. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/checklist.md +25 -0
  399. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +202 -0
  400. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +33 -0
  401. package/src/modules/bmm/workflows/document-project/instructions.md +1 -1
  402. package/src/modules/bmm/workflows/document-project/workflows/deep-dive-instructions.md +2 -2
  403. package/src/modules/bmm/workflows/generate-project-context/project-context-template.md +20 -0
  404. package/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md +193 -0
  405. package/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md +317 -0
  406. package/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md +277 -0
  407. package/src/modules/bmm/workflows/generate-project-context/workflow.md +48 -0
  408. package/src/modules/bmm/workflows/testarch/atdd/atdd-checklist-template.md +1 -1
  409. package/src/modules/bmm/workflows/testarch/atdd/instructions.md +23 -3
  410. package/src/modules/bmm/workflows/testarch/automate/instructions.md +23 -2
  411. package/src/modules/bmm/workflows/testarch/ci/checklist.md +1 -1
  412. package/src/modules/bmm/workflows/testarch/ci/github-actions-template.yaml +36 -3
  413. package/src/modules/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +25 -4
  414. package/src/modules/bmm/workflows/testarch/ci/instructions.md +20 -3
  415. package/src/modules/bmm/workflows/testarch/framework/instructions.md +27 -1
  416. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +8 -2
  417. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +29 -9
  418. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +66 -54
  419. package/src/modules/bmm/workflows/workflow-status/instructions.md +11 -4
  420. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +4 -8
  421. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +4 -8
  422. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +4 -8
  423. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +4 -9
  424. package/src/modules/cis/agents/README.md +1 -1
  425. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +3 -2
  426. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +2 -1
  427. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +2 -1
  428. package/src/modules/cis/agents/innovation-strategist.agent.yaml +2 -1
  429. package/src/modules/cis/agents/presentation-master.agent.yaml +3 -2
  430. package/src/modules/cis/agents/storyteller.agent.yaml +2 -1
  431. package/src/modules/cis/teams/default-party.csv +6 -5
  432. package/src/utility/models/agent-activation-ide.xml +4 -4
  433. package/src/utility/models/agent-activation-web.xml +1 -11
  434. package/src/utility/models/fragments/activation-rules.xml +5 -6
  435. package/src/utility/models/fragments/handler-exec.xml +6 -5
  436. package/src/utility/models/fragments/handler-multi.xml +14 -0
  437. package/test/README.md +1 -1
  438. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +1 -3
  439. package/tools/cli/README.md +4 -3
  440. package/tools/cli/bundlers/web-bundler.js +3 -14
  441. package/tools/cli/commands/build.js +9 -184
  442. package/tools/cli/commands/install.js +42 -2
  443. package/tools/cli/installers/lib/core/config-collector.js +94 -10
  444. package/tools/cli/installers/lib/core/installer.js +389 -55
  445. package/tools/cli/installers/lib/core/manifest-generator.js +91 -30
  446. package/tools/cli/installers/lib/core/post-install-sidecar-replacement.js +79 -0
  447. package/tools/cli/installers/lib/custom/handler.js +266 -0
  448. package/tools/cli/installers/lib/ide/_base-ide.js +10 -0
  449. package/tools/cli/installers/lib/ide/antigravity.js +51 -7
  450. package/tools/cli/installers/lib/ide/auggie.js +72 -7
  451. package/tools/cli/installers/lib/ide/claude-code.js +1 -6
  452. package/tools/cli/installers/lib/ide/cline.js +49 -0
  453. package/tools/cli/installers/lib/ide/codex.js +2 -2
  454. package/tools/cli/installers/lib/ide/crush.js +66 -6
  455. package/tools/cli/installers/lib/ide/cursor.js +29 -13
  456. package/tools/cli/installers/lib/ide/gemini.js +96 -1
  457. package/tools/cli/installers/lib/ide/github-copilot.js +59 -48
  458. package/tools/cli/installers/lib/ide/iflow.js +67 -1
  459. package/tools/cli/installers/lib/ide/kilo.js +74 -0
  460. package/tools/cli/installers/lib/ide/kiro-cli.js +327 -0
  461. package/tools/cli/installers/lib/ide/opencode.js +3 -3
  462. package/tools/cli/installers/lib/ide/qwen.js +54 -0
  463. package/tools/cli/installers/lib/ide/roo.js +145 -138
  464. package/tools/cli/installers/lib/ide/rovo-dev.js +290 -0
  465. package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +8 -2
  466. package/tools/cli/installers/lib/ide/shared/bmad-artifacts.js +34 -19
  467. package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +18 -14
  468. package/tools/cli/installers/lib/ide/templates/agent-command-template.md +1 -1
  469. package/tools/cli/installers/lib/ide/templates/workflow-commander.md +5 -0
  470. package/tools/cli/installers/lib/ide/trae.js +47 -0
  471. package/tools/cli/installers/lib/modules/manager.js +486 -53
  472. package/tools/cli/lib/agent/compiler.js +210 -27
  473. package/tools/cli/lib/agent/installer.js +140 -30
  474. package/tools/cli/lib/agent-analyzer.js +46 -18
  475. package/tools/cli/lib/config.js +2 -1
  476. package/tools/cli/lib/ui.js +269 -13
  477. package/tools/cli/lib/yaml-xml-builder.js +123 -39
  478. package/tools/platform-codes.yaml +12 -0
  479. package/tools/schema/agent.js +229 -20
  480. package/tools/validate-svg-changes.sh +356 -0
  481. package/src/core/tasks/adv-elicit-methods.csv +0 -39
  482. package/src/core/workflows/brainstorming/README.md +0 -261
  483. package/src/core/workflows/brainstorming/instructions.md +0 -315
  484. package/src/core/workflows/brainstorming/workflow.yaml +0 -38
  485. package/src/core/workflows/party-mode/instructions.md +0 -183
  486. package/src/core/workflows/party-mode/workflow.yaml +0 -28
  487. package/src/modules/bmb/workflows/audit-workflow/checklist.md +0 -142
  488. package/src/modules/bmb/workflows/audit-workflow/instructions.md +0 -341
  489. package/src/modules/bmb/workflows/audit-workflow/template.md +0 -118
  490. package/src/modules/bmb/workflows/audit-workflow/workflow.yaml +0 -25
  491. package/src/modules/bmb/workflows/convert-legacy/README.md +0 -262
  492. package/src/modules/bmb/workflows/convert-legacy/checklist.md +0 -205
  493. package/src/modules/bmb/workflows/convert-legacy/instructions.md +0 -377
  494. package/src/modules/bmb/workflows/convert-legacy/workflow.yaml +0 -30
  495. package/src/modules/bmb/workflows/create-agent/instructions.md +0 -519
  496. package/src/modules/bmb/workflows/create-agent/workflow.yaml +0 -55
  497. package/src/modules/bmb/workflows/create-module/README.md +0 -229
  498. package/src/modules/bmb/workflows/create-module/brainstorm-context.md +0 -137
  499. package/src/modules/bmb/workflows/create-module/checklist.md +0 -235
  500. package/src/modules/bmb/workflows/create-module/installer-templates/install-config.yaml +0 -92
  501. package/src/modules/bmb/workflows/create-module/installer-templates/installer.js +0 -231
  502. package/src/modules/bmb/workflows/create-module/instructions.md +0 -577
  503. package/src/modules/bmb/workflows/create-module/module-structure.md +0 -400
  504. package/src/modules/bmb/workflows/create-module/workflow.yaml +0 -52
  505. package/src/modules/bmb/workflows/create-workflow/README.md +0 -277
  506. package/src/modules/bmb/workflows/create-workflow/brainstorm-context.md +0 -197
  507. package/src/modules/bmb/workflows/create-workflow/checklist.md +0 -94
  508. package/src/modules/bmb/workflows/create-workflow/instructions.md +0 -725
  509. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -1327
  510. package/src/modules/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -24
  511. package/src/modules/bmb/workflows/create-workflow/workflow-template/instructions.md +0 -15
  512. package/src/modules/bmb/workflows/create-workflow/workflow-template/template.md +0 -9
  513. package/src/modules/bmb/workflows/create-workflow/workflow-template/workflow.yaml +0 -61
  514. package/src/modules/bmb/workflows/create-workflow/workflow.yaml +0 -41
  515. package/src/modules/bmb/workflows/edit-agent/README.md +0 -239
  516. package/src/modules/bmb/workflows/edit-agent/instructions.md +0 -654
  517. package/src/modules/bmb/workflows/edit-agent/workflow.yaml +0 -49
  518. package/src/modules/bmb/workflows/edit-workflow/README.md +0 -119
  519. package/src/modules/bmb/workflows/edit-workflow/checklist.md +0 -70
  520. package/src/modules/bmb/workflows/edit-workflow/instructions.md +0 -342
  521. package/src/modules/bmb/workflows/edit-workflow/workflow.yaml +0 -27
  522. package/src/modules/bmgd/workflows/4-production/code-review/checklist.md +0 -22
  523. package/src/modules/bmm/_module-installer/assets/bmm-kb.md +0 -1
  524. package/src/modules/bmm/_module-installer/assets/technical-decisions.md +0 -30
  525. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -112
  526. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
  527. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -39
  528. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +0 -425
  529. package/src/modules/bmm/workflows/1-analysis/domain-research/template.md +0 -180
  530. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -56
  531. package/src/modules/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
  532. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
  533. package/src/modules/bmm/workflows/1-analysis/product-brief/template.md +0 -181
  534. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -61
  535. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
  536. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
  537. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +0 -299
  538. package/src/modules/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
  539. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -438
  540. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +0 -675
  541. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +0 -134
  542. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +0 -534
  543. package/src/modules/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
  544. package/src/modules/bmm/workflows/1-analysis/research/template-market.md +0 -347
  545. package/src/modules/bmm/workflows/1-analysis/research/template-technical.md +0 -245
  546. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +0 -62
  547. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
  548. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1308
  549. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -93
  550. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -346
  551. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -703
  552. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -78
  553. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -217
  554. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -74
  555. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +0 -436
  556. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -980
  557. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
  558. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
  559. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -60
  560. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -321
  561. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
  562. package/src/modules/bmm/workflows/3-solutioning/architecture/checklist.md +0 -240
  563. package/src/modules/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
  564. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +0 -768
  565. package/src/modules/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
  566. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -100
  567. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/epics-template.md +0 -80
  568. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/instructions.md +0 -616
  569. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +0 -63
  570. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/checklist.md +0 -169
  571. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/instructions.md +0 -332
  572. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/template.md +0 -146
  573. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/workflow.yaml +0 -64
  574. package/src/modules/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
  575. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +0 -398
  576. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +0 -256
  577. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +0 -267
  578. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
  579. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -164
  580. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
  581. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -58
  582. package/src/modules/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
  583. package/src/modules/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
  584. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +0 -209
  585. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -63
  586. package/src/modules/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
  587. package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -28
  588. package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
  589. package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -25
  590. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
  591. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
  592. package/tools/cli/commands/agent-install.js +0 -409
  593. /package/src/modules/bmb/docs/{agent-compilation.md → agents/agent-compilation.md} +0 -0
  594. /package/src/modules/bmb/docs/{index.md → agents/index.md} +0 -0
  595. /package/src/modules/bmb/docs/{understanding-agent-types.md → agents/understanding-agent-types.md} +0 -0
  596. /package/src/modules/bmb/reference/{readme.md → README.md} +0 -0
  597. /package/src/modules/bmb/workflows/create-agent/{agent-validation-checklist.md → data/agent-validation-checklist.md} +0 -0
  598. /package/src/modules/bmb/workflows/create-agent/{brainstorm-context.md → data/brainstorm-context.md} +0 -0
  599. /package/src/modules/bmb/workflows/create-agent/{communication-presets.csv → data/communication-presets.csv} +0 -0
  600. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/README.md +0 -0
  601. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/instructions.md +0 -0
  602. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/workflow.yaml +0 -0
  603. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/README.md +0 -0
  604. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/checklist.md +0 -0
  605. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/instructions.md +0 -0
  606. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/template.md +0 -0
  607. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/workflow.yaml +0 -0
  608. /package/src/modules/bmm/{workflows/techdoc → data}/documentation-standards.md +0 -0
@@ -0,0 +1,406 @@
1
+ <workflow>
2
+ <critical>The workflow execution engine is governed by: {project-root}/{bmad_folder}/core/tasks/workflow.xml</critical>
3
+ <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
4
+ <critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
5
+ <critical>Generate all documents in {document_output_language}</critical>
6
+ <critical>Only modify the story file in these areas: Tasks/Subtasks checkboxes, Dev Agent Record (Debug Log, Completion Notes), File List,
7
+ Change Log, and Status</critical>
8
+ <critical>Execute ALL steps in exact order; do NOT skip steps</critical>
9
+ <critical>Absolutely DO NOT stop because of "milestones", "significant progress", or "session boundaries". Continue in a single execution
10
+ until the story is COMPLETE (all ACs satisfied and all tasks/subtasks checked) UNLESS a HALT condition is triggered or the USER gives
11
+ other instruction.</critical>
12
+ <critical>Do NOT schedule a "next session" or request review pauses unless a HALT condition applies. Only Step 6 decides completion.</critical>
13
+ <critical>User skill level ({user_skill_level}) affects conversation style ONLY, not code updates.</critical>
14
+
15
+ <step n="1" goal="Find next ready story and load it" tag="sprint-status">
16
+ <check if="{{story_path}} is provided">
17
+ <action>Use {{story_path}} directly</action>
18
+ <action>Read COMPLETE story file</action>
19
+ <action>Extract story_key from filename or metadata</action>
20
+ <goto> anchor with id task_check</goto>
21
+ </check>
22
+
23
+ <!-- Sprint-based story discovery -->
24
+ <check if="{{sprint_status}} file exists">
25
+ <critical>MUST read COMPLETE sprint-status.yaml file from start to end to preserve order</critical>
26
+ <action>Load the FULL file: {{sprint_status}}</action>
27
+ <action>Read ALL lines from beginning to end - do not skip any content</action>
28
+ <action>Parse the development_status section completely to understand story order</action>
29
+
30
+ <action>Find the FIRST story (by reading in order from top to bottom) where:
31
+ - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
32
+ - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
33
+ - Status value equals "ready-for-dev"
34
+ </action>
35
+
36
+ <check if="no ready-for-dev or in-progress story found">
37
+ <output>📋 No ready-for-dev stories found in sprint-status.yaml
38
+
39
+ **Current Sprint Status:** {{sprint_status_summary}}
40
+
41
+ **What would you like to do?**
42
+ 1. Run `create-story` to create next story from epics with comprehensive context
43
+ 2. Run `*validate-create-story` to improve existing drafted stories before development
44
+ 3. Specify a particular story file to develop (provide full path)
45
+ 4. Check {{sprint_status}} file to see current sprint status
46
+ </output>
47
+ <ask>Choose option [1], [2], [3], or [4], or specify story file path:</ask>
48
+
49
+ <check if="user chooses '1'">
50
+ <action>HALT - Run create-story to create next story</action>
51
+ </check>
52
+
53
+ <check if="user chooses '2'">
54
+ <action>HALT - Run validate-create-story to improve existing stories</action>
55
+ </check>
56
+
57
+ <check if="user chooses '3'">
58
+ <ask>Provide the story file path to develop:</ask>
59
+ <action>Store user-provided story path as {{story_path}}</action>
60
+ <goto anchor="task_check" />
61
+ </check>
62
+
63
+ <check if="user chooses '4'">
64
+ <output>Loading {{sprint_status}} for detailed status review...</output>
65
+ <action>Display detailed sprint status analysis</action>
66
+ <action>HALT - User can review sprint status and provide story path</action>
67
+ </check>
68
+
69
+ <check if="user provides story file path">
70
+ <action>Store user-provided story path as {{story_path}}</action>
71
+ <goto anchor="task_check" />
72
+ </check>
73
+ </check>
74
+ </check>
75
+
76
+ <!-- Non-sprint story discovery -->
77
+ <check if="{{sprint_status}} file does NOT exist">
78
+ <action>Search {story_dir} for stories directly</action>
79
+ <action>Find stories with "ready-for-dev" status in files</action>
80
+ <action>Look for story files matching pattern: *-*-*.md</action>
81
+ <action>Read each candidate story file to check Status section</action>
82
+
83
+ <check if="no ready-for-dev stories found in story files">
84
+ <output>📋 No ready-for-dev stories found
85
+
86
+ **Available Options:**
87
+ 1. Run `create-story` to create next story from epics with comprehensive context
88
+ 2. Run `*validate-create-story` to improve existing drafted stories
89
+ 3. Specify which story to develop
90
+ </output>
91
+ <ask>What would you like to do? Choose option [1], [2], or [3]:</ask>
92
+
93
+ <check if="user chooses '1'">
94
+ <action>HALT - Run create-story to create next story</action>
95
+ </check>
96
+
97
+ <check if="user chooses '2'">
98
+ <action>HALT - Run validate-create-story to improve existing stories</action>
99
+ </check>
100
+
101
+ <check if="user chooses '3'">
102
+ <ask>It's unclear what story you want developed. Please provide the full path to the story file:</ask>
103
+ <action>Store user-provided story path as {{story_path}}</action>
104
+ <action>Continue with provided story file</action>
105
+ </check>
106
+ </check>
107
+
108
+ <check if="ready-for-dev story found in files">
109
+ <action>Use discovered story file and extract story_key</action>
110
+ </check>
111
+ </check>
112
+
113
+ <action>Store the found story_key (e.g., "1-2-user-authentication") for later status updates</action>
114
+ <action>Find matching story file in {story_dir} using story_key pattern: {{story_key}}.md</action>
115
+ <action>Read COMPLETE story file from discovered path</action>
116
+
117
+ <anchor id="task_check" />
118
+
119
+ <action>Parse sections: Story, Acceptance Criteria, Tasks/Subtasks, Dev Notes, Dev Agent Record, File List, Change Log, Status</action>
120
+
121
+ <action>Load comprehensive context from story file's Dev Notes section</action>
122
+ <action>Extract developer guidance from Dev Notes: architecture requirements, previous learnings, technical specifications</action>
123
+ <action>Use enhanced story context to inform implementation decisions and approaches</action>
124
+
125
+ <action>Identify first incomplete task (unchecked [ ]) in Tasks/Subtasks</action>
126
+
127
+ <action if="no incomplete tasks">
128
+ <goto step="6">Completion sequence</goto>
129
+ </action>
130
+ <action if="story file inaccessible">HALT: "Cannot develop story without access to story file"</action>
131
+ <action if="incomplete task or subtask requirements ambiguous">ASK user to clarify or HALT</action>
132
+ </step>
133
+
134
+ <step n="2" goal="Load project context and story information">
135
+ <critical>Load all available context to inform implementation</critical>
136
+
137
+ <action>Load {project_context} for coding standards and project-wide patterns (if exists)</action>
138
+ <action>Parse sections: Story, Acceptance Criteria, Tasks/Subtasks, Dev Notes, Dev Agent Record, File List, Change Log, Status</action>
139
+ <action>Load comprehensive context from story file's Dev Notes section</action>
140
+ <action>Extract developer guidance from Dev Notes: architecture requirements, previous learnings, technical specifications</action>
141
+ <action>Use enhanced story context to inform implementation decisions and approaches</action>
142
+ <output>✅ **Context Loaded**
143
+ Story and project context available for implementation
144
+ </output>
145
+ </step>
146
+
147
+ <step n="3" goal="Detect review continuation and extract review context">
148
+ <critical>Determine if this is a fresh start or continuation after code review</critical>
149
+
150
+ <action>Check if "Senior Developer Review (AI)" section exists in the story file</action>
151
+ <action>Check if "Review Follow-ups (AI)" subsection exists under Tasks/Subtasks</action>
152
+
153
+ <check if="Senior Developer Review section exists">
154
+ <action>Set review_continuation = true</action>
155
+ <action>Extract from "Senior Developer Review (AI)" section:
156
+ - Review outcome (Approve/Changes Requested/Blocked)
157
+ - Review date
158
+ - Total action items with checkboxes (count checked vs unchecked)
159
+ - Severity breakdown (High/Med/Low counts)
160
+ </action>
161
+ <action>Count unchecked [ ] review follow-up tasks in "Review Follow-ups (AI)" subsection</action>
162
+ <action>Store list of unchecked review items as {{pending_review_items}}</action>
163
+
164
+ <output>⏯️ **Resuming Story After Code Review** ({{review_date}})
165
+
166
+ **Review Outcome:** {{review_outcome}}
167
+ **Action Items:** {{unchecked_review_count}} remaining to address
168
+ **Priorities:** {{high_count}} High, {{med_count}} Medium, {{low_count}} Low
169
+
170
+ **Strategy:** Will prioritize review follow-up tasks (marked [AI-Review]) before continuing with regular tasks.
171
+ </output>
172
+ </check>
173
+
174
+ <check if="Senior Developer Review section does NOT exist">
175
+ <action>Set review_continuation = false</action>
176
+ <action>Set {{pending_review_items}} = empty</action>
177
+
178
+ <output>🚀 **Starting Fresh Implementation**
179
+
180
+ Story: {{story_key}}
181
+ Story Status: {{current_status}}
182
+ First incomplete task: {{first_task_description}}
183
+ </output>
184
+ </check>
185
+ </step>
186
+
187
+ <step n="4" goal="Mark story in-progress" tag="sprint-status">
188
+ <check if="{{sprint_status}} file exists">
189
+ <action>Load the FULL file: {{sprint_status}}</action>
190
+ <action>Read all development_status entries to find {{story_key}}</action>
191
+ <action>Get current status value for development_status[{{story_key}}]</action>
192
+
193
+ <check if="current status == 'ready-for-dev' OR review_continuation == true">
194
+ <action>Update the story in the sprint status report to = "in-progress"</action>
195
+ <output>🚀 Starting work on story {{story_key}}
196
+ Status updated: ready-for-dev → in-progress
197
+ </output>
198
+ </check>
199
+
200
+ <check if="current status == 'in-progress'">
201
+ <output>⏯️ Resuming work on story {{story_key}}
202
+ Story is already marked in-progress
203
+ </output>
204
+ </check>
205
+
206
+ <check if="current status is neither ready-for-dev nor in-progress">
207
+ <output>⚠️ Unexpected story status: {{current_status}}
208
+ Expected ready-for-dev or in-progress. Continuing anyway...
209
+ </output>
210
+ </check>
211
+
212
+ <action>Store {{current_sprint_status}} for later use</action>
213
+ </check>
214
+
215
+ <check if="{{sprint_status}} file does NOT exist">
216
+ <output>ℹ️ No sprint status file exists - story progress will be tracked in story file only</output>
217
+ <action>Set {{current_sprint_status}} = "no-sprint-tracking"</action>
218
+ </check>
219
+ </step>
220
+
221
+ <step n="5" goal="Implement task following red-green-refactor cycle">
222
+ <critical>FOLLOW THE STORY FILE TASKS/SUBTASKS SEQUENCE EXACTLY AS WRITTEN - NO DEVIATION</critical>
223
+
224
+ <action>Review the current task/subtask from the story file - this is your authoritative implementation guide</action>
225
+ <action>Plan implementation following red-green-refactor cycle</action>
226
+
227
+ <!-- RED PHASE -->
228
+ <action>Write FAILING tests first for the task/subtask functionality</action>
229
+ <action>Confirm tests fail before implementation - this validates test correctness</action>
230
+
231
+ <!-- GREEN PHASE -->
232
+ <action>Implement MINIMAL code to make tests pass</action>
233
+ <action>Run tests to confirm they now pass</action>
234
+ <action>Handle error conditions and edge cases as specified in task/subtask</action>
235
+
236
+ <!-- REFACTOR PHASE -->
237
+ <action>Improve code structure while keeping tests green</action>
238
+ <action>Ensure code follows architecture patterns and coding standards from Dev Notes</action>
239
+
240
+ <action>Document technical approach and decisions in Dev Agent Record → Implementation Plan</action>
241
+
242
+ <action if="new dependencies required beyond story specifications">HALT: "Additional dependencies need user approval"</action>
243
+ <action if="3 consecutive implementation failures occur">HALT and request guidance</action>
244
+ <action if="required configuration is missing">HALT: "Cannot proceed without necessary configuration files"</action>
245
+
246
+ <critical>NEVER implement anything not mapped to a specific task/subtask in the story file</critical>
247
+ <critical>NEVER proceed to next task until current task/subtask is complete AND tests pass</critical>
248
+ <critical>Execute continuously without pausing until all tasks/subtasks are complete or explicit HALT condition</critical>
249
+ <critical>Do NOT propose to pause for review until Step 9 completion gates are satisfied</critical>
250
+ </step>
251
+
252
+ <step n="6" goal="Author comprehensive tests">
253
+ <action>Create unit tests for business logic and core functionality introduced/changed by the task</action>
254
+ <action>Add integration tests for component interactions specified in story requirements</action>
255
+ <action>Include end-to-end tests for critical user flows when story requirements demand them</action>
256
+ <action>Cover edge cases and error handling scenarios identified in story Dev Notes</action>
257
+ </step>
258
+
259
+ <step n="7" goal="Run validations and tests">
260
+ <action>Determine how to run tests for this repo (infer test framework from project structure)</action>
261
+ <action>Run all existing tests to ensure no regressions</action>
262
+ <action>Run the new tests to verify implementation correctness</action>
263
+ <action>Run linting and code quality checks if configured in project</action>
264
+ <action>Validate implementation meets ALL story acceptance criteria; enforce quantitative thresholds explicitly</action>
265
+ <action if="regression tests fail">STOP and fix before continuing - identify breaking changes immediately</action>
266
+ <action if="new tests fail">STOP and fix before continuing - ensure implementation correctness</action>
267
+ </step>
268
+
269
+ <step n="8" goal="Validate and mark task complete ONLY when fully done">
270
+ <critical>NEVER mark a task complete unless ALL conditions are met - NO LYING OR CHEATING</critical>
271
+
272
+ <!-- VALIDATION GATES -->
273
+ <action>Verify ALL tests for this task/subtask ACTUALLY EXIST and PASS 100%</action>
274
+ <action>Confirm implementation matches EXACTLY what the task/subtask specifies - no extra features</action>
275
+ <action>Validate that ALL acceptance criteria related to this task are satisfied</action>
276
+ <action>Run full test suite to ensure NO regressions introduced</action>
277
+
278
+ <!-- REVIEW FOLLOW-UP HANDLING -->
279
+ <check if="task is review follow-up (has [AI-Review] prefix)">
280
+ <action>Extract review item details (severity, description, related AC/file)</action>
281
+ <action>Add to resolution tracking list: {{resolved_review_items}}</action>
282
+
283
+ <!-- Mark task in Review Follow-ups section -->
284
+ <action>Mark task checkbox [x] in "Tasks/Subtasks → Review Follow-ups (AI)" section</action>
285
+
286
+ <!-- CRITICAL: Also mark corresponding action item in review section -->
287
+ <action>Find matching action item in "Senior Developer Review (AI) → Action Items" section by matching description</action>
288
+ <action>Mark that action item checkbox [x] as resolved</action>
289
+
290
+ <action>Add to Dev Agent Record → Completion Notes: "✅ Resolved review finding [{{severity}}]: {{description}}"</action>
291
+ </check>
292
+
293
+ <!-- ONLY MARK COMPLETE IF ALL VALIDATION PASS -->
294
+ <check if="ALL validation gates pass AND tests ACTUALLY exist and pass">
295
+ <action>ONLY THEN mark the task (and subtasks) checkbox with [x]</action>
296
+ <action>Update File List section with ALL new, modified, or deleted files (paths relative to repo root)</action>
297
+ <action>Add completion notes to Dev Agent Record summarizing what was ACTUALLY implemented and tested</action>
298
+ </check>
299
+
300
+ <check if="ANY validation fails">
301
+ <action>DO NOT mark task complete - fix issues first</action>
302
+ <action>HALT if unable to fix validation failures</action>
303
+ </check>
304
+
305
+ <check if="review_continuation == true and {{resolved_review_items}} is not empty">
306
+ <action>Count total resolved review items in this session</action>
307
+ <action>Add Change Log entry: "Addressed code review findings - {{resolved_count}} items resolved (Date: {{date}})"</action>
308
+ </check>
309
+
310
+ <action>Save the story file</action>
311
+ <action>Determine if more incomplete tasks remain</action>
312
+ <action if="more tasks remain">
313
+ <goto step="5">Next task</goto>
314
+ </action>
315
+ <action if="no tasks remain">
316
+ <goto step="9">Completion</goto>
317
+ </action>
318
+ </step>
319
+
320
+ <step n="9" goal="Story completion and mark for review" tag="sprint-status">
321
+ <action>Verify ALL tasks and subtasks are marked [x] (re-scan the story document now)</action>
322
+ <action>Run the full regression suite (do not skip)</action>
323
+ <action>Confirm File List includes every changed file</action>
324
+ <action>Execute enhanced definition-of-done validation</action>
325
+ <action>Update the story Status to: "Ready for Review"</action>
326
+
327
+ <!-- Enhanced Definition of Done Validation -->
328
+ <action>Validate definition-of-done checklist with essential requirements:
329
+ - All tasks/subtasks marked complete with [x]
330
+ - Implementation satisfies every Acceptance Criterion
331
+ - Unit tests for core functionality added/updated
332
+ - Integration tests for component interactions added when required
333
+ - End-to-end tests for critical flows added when story demands them
334
+ - All tests pass (no regressions, new tests successful)
335
+ - Code quality checks pass (linting, static analysis if configured)
336
+ - File List includes every new/modified/deleted file (relative paths)
337
+ - Dev Agent Record contains implementation notes
338
+ - Change Log includes summary of changes
339
+ - Only permitted story sections were modified
340
+ </action>
341
+
342
+ <!-- Mark story ready for review - sprint status conditional -->
343
+ <check if="{sprint_status} file exists AND {{current_sprint_status}} != 'no-sprint-tracking'">
344
+ <action>Load the FULL file: {sprint_status}</action>
345
+ <action>Find development_status key matching {{story_key}}</action>
346
+ <action>Verify current status is "in-progress" (expected previous state)</action>
347
+ <action>Update development_status[{{story_key}}] = "review"</action>
348
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
349
+ <output>✅ Story marked Ready for Review in sprint status</output>
350
+ </check>
351
+
352
+ <check if="{sprint_status} file does NOT exist OR {{current_sprint_status}} == 'no-sprint-tracking'">
353
+ <output>ℹ️ Story marked Ready for Review in story file (no sprint tracking configured)</output>
354
+ </check>
355
+
356
+ <check if="story key not found in sprint status">
357
+ <output>⚠️ Story file updated, but sprint-status update failed: {{story_key}} not found
358
+
359
+ Story is marked Ready for Review in file, but sprint-status.yaml may be out of sync.
360
+ </output>
361
+ </check>
362
+
363
+ <!-- Final validation gates -->
364
+ <action if="any task is incomplete">HALT - Complete remaining tasks before marking ready for review</action>
365
+ <action if="regression failures exist">HALT - Fix regression issues before completing</action>
366
+ <action if="File List is incomplete">HALT - Update File List with all changed files</action>
367
+ <action if="definition-of-done validation fails">HALT - Address DoD failures before completing</action>
368
+ </step>
369
+
370
+ <step n="10" goal="Completion communication and user support">
371
+ <action>Execute the enhanced definition-of-done checklist using the validation framework</action>
372
+ <action>Prepare a concise summary in Dev Agent Record → Completion Notes</action>
373
+
374
+ <action>Communicate to {user_name} that story implementation is complete and ready for review</action>
375
+ <action>Summarize key accomplishments: story ID, story key, title, key changes made, tests added, files modified</action>
376
+ <action>Provide the story file path and current status (now "Ready for Review")</action>
377
+
378
+ <action>Based on {user_skill_level}, ask if user needs any explanations about:
379
+ - What was implemented and how it works
380
+ - Why certain technical decisions were made
381
+ - How to test or verify the changes
382
+ - Any patterns, libraries, or approaches used
383
+ - Anything else they'd like clarified
384
+ </action>
385
+
386
+ <check if="user asks for explanations">
387
+ <action>Provide clear, contextual explanations tailored to {user_skill_level}</action>
388
+ <action>Use examples and references to specific code when helpful</action>
389
+ </check>
390
+
391
+ <action>Once explanations are complete (or user indicates no questions), suggest logical next steps</action>
392
+ <action>Recommended next steps (flexible based on project setup):
393
+ - Review the implemented story and test the changes
394
+ - Verify all acceptance criteria are met
395
+ - Ensure deployment readiness if applicable
396
+ - Run `code-review` workflow for peer review
397
+ </action>
398
+
399
+ <output>💡 **Tip:** For best results, run `code-review` using a **different** LLM than the one that implemented this story.</output>
400
+ <check if="{sprint_status} file exists">
401
+ <action>Suggest checking {sprint_status} to see project progress</action>
402
+ </check>
403
+ <action>Remain flexible - allow user to choose their own path or ask for other assistance</action>
404
+ </step>
405
+
406
+ </workflow>
@@ -12,47 +12,16 @@ document_output_language: "{config_source}:document_output_language"
12
12
  story_dir: "{config_source}:sprint_artifacts"
13
13
  date: system-generated
14
14
 
15
- story_file: "" # Explicit story path; auto-discovered if empty
16
- # Context file uses same story_key as story file (e.g., "1-2-user-authentication.context.xml")
17
- context_file: "{story_dir}/{{story_key}}.context.xml"
18
- sprint_artifacts: "{config_source}:sprint_artifacts"
19
- sprint_status: "{sprint_artifacts}/sprint-status.yaml || {output_folder}/sprint-status.yaml"
20
-
21
- # Smart input file references - handles both whole docs and sharded docs
22
- # Priority: Whole document first, then sharded version
23
- # Strategy: Load necessary context for story implementation
24
- input_file_patterns:
25
- architecture:
26
- description: "System architecture and decisions"
27
- whole: "{output_folder}/*architecture*.md"
28
- sharded: "{output_folder}/*architecture*/*.md"
29
- load_strategy: "FULL_LOAD"
30
- tech_spec:
31
- description: "Technical specification for this epic"
32
- whole: "{output_folder}/tech-spec*.md"
33
- sharded: "{sprint_artifacts}/tech-spec-epic-*.md"
34
- load_strategy: "SELECTIVE_LOAD"
35
- ux_design:
36
- description: "UX design specification (if UI)"
37
- whole: "{output_folder}/*ux*.md"
38
- sharded: "{output_folder}/*ux*/*.md"
39
- load_strategy: "FULL_LOAD"
40
- epics:
41
- description: "Epic containing this story"
42
- whole: "{output_folder}/*epic*.md"
43
- sharded_index: "{output_folder}/*epic*/index.md"
44
- sharded_single: "{output_folder}/*epic*/epic-{{epic_num}}.md"
45
- load_strategy: "SELECTIVE_LOAD"
46
- document_project:
47
- description: "Brownfield project documentation (optional)"
48
- sharded: "{output_folder}/index.md"
49
- load_strategy: "INDEX_GUIDED"
50
-
51
15
  # Workflow components
52
16
  installed_path: "{project-root}/{bmad_folder}/bmm/workflows/4-implementation/dev-story"
53
- instructions: "{installed_path}/instructions.md"
17
+ instructions: "{installed_path}/instructions.xml"
54
18
  validation: "{installed_path}/checklist.md"
55
19
 
20
+ story_file: "" # Explicit story path; auto-discovered if empty
21
+ sprint_artifacts: "{config_source}:sprint_artifacts"
22
+ sprint_status: "{sprint_artifacts}/sprint-status.yaml"
23
+ project_context: "**/project-context.md"
24
+
56
25
  standalone: true
57
26
 
58
27
  web_bundle: false
@@ -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
 
@@ -68,12 +68,6 @@ development_status:
68
68
  </step>
69
69
 
70
70
  <step n="3" goal="Apply intelligent status detection">
71
- <action>For each epic, check if tech context file exists:</action>
72
-
73
- - Check: `{output_folder}/epic-{num}-context.md`
74
- - If exists → set epic status to `contexted`
75
- - Else → keep as `backlog`
76
-
77
71
  <action>For each story, detect current status by checking files:</action>
78
72
 
79
73
  **Story file detection:**
@@ -93,7 +87,7 @@ development_status:
93
87
 
94
88
  **Status Flow Reference:**
95
89
 
96
- - Epic: `backlog` → `contexted`
90
+ - Epic: `backlog` → `in-progress` → `done`
97
91
  - Story: `backlog` → `drafted` → `ready-for-dev` → `in-progress` → `review` → `done`
98
92
  - Retrospective: `optional` ↔ `completed`
99
93
  </step>
@@ -113,15 +107,20 @@ development_status:
113
107
  # STATUS DEFINITIONS:
114
108
  # ==================
115
109
  # Epic Status:
116
- # - backlog: Epic exists in epic file but not contexted
117
- # - contexted: Epic tech context created (required before drafting stories)
110
+ # - backlog: Epic not yet started
111
+ # - in-progress: Epic actively being worked on
112
+ # - done: All stories in epic completed
113
+ #
114
+ # Epic Status Transitions:
115
+ # - backlog → in-progress: Automatically when first story is created (via create-story)
116
+ # - in-progress → done: Manually when all stories reach 'done' status
118
117
  #
119
118
  # Story Status:
120
119
  # - backlog: Story only exists in epic file
121
120
  # - drafted: Story file created in stories folder
122
121
  # - ready-for-dev: Draft approved and story context created
123
122
  # - in-progress: Developer actively working on implementation
124
- # - review: Under SM review (via code-review workflow)
123
+ # - review: Ready for code review (via Dev's code-review workflow)
125
124
  # - done: Story completed
126
125
  #
127
126
  # Retrospective Status:
@@ -130,10 +129,10 @@ development_status:
130
129
  #
131
130
  # WORKFLOW NOTES:
132
131
  # ===============
133
- # - Epics should be 'contexted' before stories can be 'drafted'
132
+ # - Epic transitions to 'in-progress' automatically when first story is created
134
133
  # - Stories can be worked in parallel if team capacity allows
135
134
  # - SM typically drafts next story after previous one is 'done' to incorporate learnings
136
- # - Dev moves story to 'review', SM reviews, then Dev moves to 'done'
135
+ # - Dev moves story to 'review', then runs code-review (fresh context, different LLM recommended)
137
136
 
138
137
  generated: { date }
139
138
  project: { project_name }
@@ -164,8 +163,7 @@ development_status:
164
163
 
165
164
  - Total epics: {{epic_count}}
166
165
  - Total stories: {{story_count}}
167
- - Epics contexted: {{contexted_count}}
168
- - Stories in progress: {{in_progress_count}}
166
+ - Epics in-progress: {{in_progress_count}}
169
167
  - Stories done: {{done_count}}
170
168
 
171
169
  <action>Display completion summary to {user_name} in {communication_language}:</action>
@@ -175,8 +173,7 @@ development_status:
175
173
  - **File Location:** {status_file}
176
174
  - **Total Epics:** {{epic_count}}
177
175
  - **Total Stories:** {{story_count}}
178
- - **Contexted Epics:** {{contexted_count}}
179
- - **Stories In Progress:** {{in_progress_count}}
176
+ - **Epics In Progress:** {{epics_in_progress_count}}
180
177
  - **Stories Completed:** {{done_count}}
181
178
 
182
179
  **Next Steps:**
@@ -197,11 +194,12 @@ development_status:
197
194
  **Epic Status Flow:**
198
195
 
199
196
  ```
200
- backlog → contexted
197
+ backlog → in-progress → done
201
198
  ```
202
199
 
203
- - **backlog**: Epic exists in epic file but tech context not created
204
- - **contexted**: Epic tech context has been generated (prerequisite for story drafting)
200
+ - **backlog**: Epic not yet started
201
+ - **in-progress**: Epic actively being worked on (stories being drafted/implemented)
202
+ - **done**: All stories in epic completed
205
203
 
206
204
  **Story Status Flow:**
207
205
 
@@ -213,7 +211,7 @@ backlog → drafted → ready-for-dev → in-progress → review → done
213
211
  - **drafted**: Story file created (e.g., `stories/1-3-plant-naming.md`)
214
212
  - **ready-for-dev**: Draft approved + story context created
215
213
  - **in-progress**: Developer actively working
216
- - **review**: Under SM review (via code-review workflow)
214
+ - **review**: Ready for code review (via Dev's code-review workflow)
217
215
  - **done**: Completed
218
216
 
219
217
  **Retrospective Status:**
@@ -227,7 +225,7 @@ optional ↔ completed
227
225
 
228
226
  ### Guidelines
229
227
 
230
- 1. **Epic Context Recommended**: Epics should be `contexted` before stories can be `drafted`
228
+ 1. **Epic Activation**: Mark epic as `in-progress` when starting work on its first story
231
229
  2. **Sequential Default**: Stories are typically worked in order, but parallel work is supported
232
230
  3. **Parallel Work Supported**: Multiple stories can be `in-progress` if team capacity allows
233
231
  4. **Review Before Done**: Stories should pass through `review` before `done`
@@ -11,16 +11,17 @@
11
11
  # STATUS DEFINITIONS:
12
12
  # ==================
13
13
  # Epic Status:
14
- # - backlog: Epic exists in epic file but not contexted
15
- # - contexted: Next epic tech context created by *epic-tech-context (required)
14
+ # - backlog: Epic not yet started
15
+ # - in-progress: Epic actively being worked on
16
+ # - done: All stories in epic completed
16
17
  #
17
18
  # Story Status:
18
19
  # - backlog: Story only exists in epic file
19
- # - drafted: Story file created in stories folder by *create-story
20
- # - ready-for-dev: Draft approved and story context created by *story-ready
21
- # - in-progress: Developer actively working on implementation by *dev-story
22
- # - review: Implementation complete, ready for review by *code-review
23
- # - done: Story completed by *story-done
20
+ # - drafted: Story file created in stories folder
21
+ # - ready-for-dev: Draft approved, ready for development
22
+ # - in-progress: Developer actively working on implementation
23
+ # - review: Implementation complete, ready for review
24
+ # - done: Story completed
24
25
  #
25
26
  # Retrospective Status:
26
27
  # - optional: Can be completed but not required
@@ -28,9 +29,9 @@
28
29
  #
29
30
  # WORKFLOW NOTES:
30
31
  # ===============
31
- # - Epics should be 'contexted' before stories can be 'drafted'
32
+ # - Mark epic as 'in-progress' when starting work on its first story
32
33
  # - SM typically drafts next story ONLY after previous one is 'done' to incorporate learnings
33
- # - Dev moves story to 'review', dev reviews, then Dev moves to 'done'
34
+ # - Dev moves story to 'review', then Dev runs code-review (fresh context, ideally different LLM)
34
35
 
35
36
  # EXAMPLE STRUCTURE (your actual epics/stories will replace these):
36
37
 
@@ -41,7 +42,7 @@ tracking_system: file-system
41
42
  story_location: "{story_location}"
42
43
 
43
44
  development_status:
44
- epic-1: contexted
45
+ epic-1: backlog
45
46
  1-1-user-authentication: done
46
47
  1-2-account-management: drafted
47
48
  1-3-plant-data-model: backlog
@@ -18,6 +18,8 @@ validation: "{installed_path}/checklist.md"
18
18
 
19
19
  # Variables and inputs
20
20
  variables:
21
+ # Project context
22
+ project_context: "**/project-context.md"
21
23
  # Project identification
22
24
  project_name: "{config_source}:project_name"
23
25