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
@@ -1,43 +1,75 @@
1
+ ---
2
+ name: 'step-01-init'
3
+ description: 'Initialize the PRD workflow by detecting continuation state and setting up the document'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/{bmad_folder}/bmm/workflows/2-plan-workflows/prd'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-01-init.md'
10
+ nextStepFile: '{workflow_path}/steps/step-02-discovery.md'
11
+ continueStepFile: '{workflow_path}/steps/step-01b-continue.md'
12
+ workflowFile: '{workflow_path}/workflow.md'
13
+ outputFile: '{output_folder}/prd.md'
14
+
15
+ # Template References
16
+ prdTemplate: '{workflow_path}/prd-template.md'
17
+ ---
18
+
1
19
  # Step 1: Workflow Initialization
2
20
 
3
- **Progress: Step 1 of 10** - Next: Project Discovery
21
+ **Progress: Step 1 of 11** - Next: Project Discovery
22
+
23
+ ## STEP GOAL:
24
+
25
+ Initialize the PRD workflow by detecting continuation state, discovering input documents, and setting up the document structure for collaborative product requirement discovery.
4
26
 
5
27
  ## MANDATORY EXECUTION RULES (READ FIRST):
6
28
 
7
- - 🛑 NEVER generate content without user input
29
+ ### Universal Rules:
8
30
 
9
- - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
10
- - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
11
- - ALWAYS treat this as collaborative discovery between PM peers
31
+ - 🛑 NEVER generate content without user input
32
+ - 📖 CRITICAL: Read the complete step file before taking any action
33
+ - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
12
34
  - 📋 YOU ARE A FACILITATOR, not a content generator
13
- - 💬 FOCUS on initialization and setup only - don't look ahead to future steps
14
- - 🚪 DETECT existing workflow state and handle continuation properly
35
+
36
+ ### Role Reinforcement:
37
+
38
+ - ✅ You are a product-focused PM facilitator collaborating with an expert peer
39
+ - ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
40
+ - ✅ We engage in collaborative dialogue, not command-response
41
+ - ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision
42
+
43
+ ### Step-Specific Rules:
44
+
45
+ - 🎯 Focus only on initialization and setup - no content generation yet
46
+ - 🚫 FORBIDDEN to look ahead to future steps or assume knowledge from them
47
+ - 💬 Approach: Systematic setup with clear reporting to user
48
+ - 🚪 Detect existing workflow state and handle continuation properly
15
49
 
16
50
  ## EXECUTION PROTOCOLS:
17
51
 
18
- - 🎯 Show your analysis before taking any action
19
- - 💾 Initialize document and update frontmatter
52
+ - 🎯 Show your analysis of current state before taking any action
53
+ - 💾 Initialize document structure and update frontmatter appropriately
20
54
  - 📖 Set up frontmatter `stepsCompleted: [1]` before loading next step
21
- - 🚫 FORBIDDEN to load next step until setup is complete
55
+ - 🚫 FORBIDDEN to load next step until user selects 'C' (Continue)
22
56
 
23
57
  ## CONTEXT BOUNDARIES:
24
58
 
25
- - Variables from workflow.md are available in memory
26
- - Previous context = what's in output document + frontmatter
27
- - Don't assume knowledge from other steps
28
- - Input document discovery happens in this step
29
-
30
- ## YOUR TASK:
59
+ - Available context: Variables from workflow.md are available in memory
60
+ - Focus: Workflow initialization and document setup only
61
+ - Limits: Don't assume knowledge from other steps or create content yet
62
+ - Dependencies: Configuration loaded from workflow.md initialization
31
63
 
32
- Initialize the PRD workflow by detecting continuation state and setting up the document.
64
+ ## Sequence of Instructions (Do not deviate, skip, or optimize)
33
65
 
34
- ## INITIALIZATION SEQUENCE:
35
-
36
- ### 1. Check for Existing Workflow
66
+ ### 1. Check for Existing Workflow State
37
67
 
38
68
  First, check if the output document already exists:
39
69
 
40
- - Look for file at `{output_folder}/prd.md`
70
+ **Workflow State Detection:**
71
+
72
+ - Look for file at `{outputFile}`
41
73
  - If exists, read the complete file including frontmatter
42
74
  - If not exists, this is a fresh workflow
43
75
 
@@ -45,9 +77,12 @@ First, check if the output document already exists:
45
77
 
46
78
  If the document exists and has frontmatter with `stepsCompleted`:
47
79
 
48
- - **STOP here** and load `./step-01b-continue.md` immediately
80
+ **Continuation Protocol:**
81
+
82
+ - **STOP immediately** and load `{continueStepFile}`
49
83
  - Do not proceed with any initialization tasks
50
- - Let step-01b handle the continuation logic
84
+ - Let step-01b handle all continuation logic
85
+ - This is an auto-proceed situation - no user choice needed
51
86
 
52
87
  ### 3. Fresh Workflow Setup (If No Document)
53
88
 
@@ -55,7 +90,18 @@ If no document exists or no `stepsCompleted` in frontmatter:
55
90
 
56
91
  #### A. Input Document Discovery
57
92
 
58
- Discover and load context documents using smart discovery:
93
+ Discover and load context documents using smart discovery.
94
+
95
+ **IMPORTANT: Track document counts as you discover files.**
96
+
97
+ Initialize counters:
98
+
99
+ ```
100
+ briefCount = 0
101
+ researchCount = 0
102
+ brainstormingCount = 0
103
+ projectDocsCount = 0
104
+ ```
59
105
 
60
106
  **Product Brief (Priority: Analysis → Main → Sharded → Whole):**
61
107
 
@@ -64,6 +110,7 @@ Discover and load context documents using smart discovery:
64
110
  3. If no main files: Check for sharded brief folder: `{output_folder}/*brief*/**/*.md`
65
111
  4. If sharded folder exists: Load EVERY file in that folder completely
66
112
  5. Add discovered files to `inputDocuments` frontmatter
113
+ 6. **Update briefCount with number of files found**
67
114
 
68
115
  **Research Documents (Priority: Analysis → Main → Sharded → Whole):**
69
116
 
@@ -72,20 +119,23 @@ Discover and load context documents using smart discovery:
72
119
  3. If no main files: Check for sharded research folder: `{output_folder}/*research*/**/*.md`
73
120
  4. Load useful research files completely
74
121
  5. Add discovered files to `inputDocuments` frontmatter
122
+ 6. **Update researchCount with number of files found**
75
123
 
76
124
  **Brainstorming Documents (Priority: Analysis → Main):**
77
125
 
78
126
  1. Check analysis folder: `{output_folder}/analysis/brainstorming/*brainstorming*.md`
79
127
  2. If no analysis files: Try main folder: `{output_folder}/*brainstorming*.md`
80
128
  3. Add discovered files to `inputDocuments` frontmatter
129
+ 4. **Update brainstormingCount with number of files found**
81
130
 
82
- **Project Documentation (Existing Projects):**
131
+ **Project Documentation (Existing Projects - Brownfield):**
83
132
 
84
133
  1. Look for index file: `{output_folder}/index.md`
85
134
  2. CRITICAL: Load index.md to understand what project files are available
86
135
  3. Read available files from index to understand existing project context
87
136
  4. This provides essential context for extending existing project with new PRD
88
137
  5. Add discovered files to `inputDocuments` frontmatter
138
+ 6. **Update projectDocsCount with number of files found (including index.md)**
89
139
 
90
140
  **Loading Rules:**
91
141
 
@@ -96,13 +146,20 @@ Discover and load context documents using smart discovery:
96
146
 
97
147
  #### B. Create Initial Document
98
148
 
99
- Copy the template from `{installed_path}/prd-template.md` to `{output_folder}/prd.md`
100
- Initialize frontmatter with:
149
+ **Document Setup:**
150
+
151
+ - Copy the template from `{prdTemplate}` to `{outputFile}`
152
+ - Initialize frontmatter with proper structure including document counts:
101
153
 
102
154
  ```yaml
103
155
  ---
104
156
  stepsCompleted: []
105
157
  inputDocuments: []
158
+ documentCounts:
159
+ briefs: { { briefCount } }
160
+ research: { { researchCount } }
161
+ brainstorming: { { brainstormingCount } }
162
+ projectDocs: { { projectDocsCount } }
106
163
  workflowType: 'prd'
107
164
  lastStep: 0
108
165
  project_name: '{{project_name}}'
@@ -111,51 +168,76 @@ date: '{{date}}'
111
168
  ---
112
169
  ```
113
170
 
114
- #### C. Complete Initialization and Report
171
+ #### C. Present Initialization Results
115
172
 
116
- Complete setup and report to user:
173
+ **Setup Report to User:**
174
+
175
+ "Welcome {{user_name}}! I've set up your PRD workspace for {{project_name}}.
117
176
 
118
177
  **Document Setup:**
119
178
 
120
- - Created: `{output_folder}/prd.md` from template
179
+ - Created: `{outputFile}` from template
121
180
  - Initialized frontmatter with workflow state
122
181
 
123
182
  **Input Documents Discovered:**
124
- Report what was found:
125
- "Welcome {{user_name}}! I've set up your PRD workspace for {{project_name}}.
126
183
 
127
- **Documents Found:**
128
-
129
- - Product brief: {number of brief files loaded or "None found"}
130
- - Research: {number of research files loaded or "None found"}
131
- - Project docs: {number of project files loaded or "None found"}
184
+ - Product briefs: {{briefCount}} files {if briefCount > 0}✓ loaded{else}(none found){/if}
185
+ - Research: {{researchCount}} files {if researchCount > 0}✓ loaded{else}(none found){/if}
186
+ - Brainstorming: {{brainstormingCount}} files {if brainstormingCount > 0}✓ loaded{else}(none found){/if}
187
+ - Project docs: {{projectDocsCount}} files {if projectDocsCount > 0}✓ loaded (brownfield project){else}(none found - greenfield project){/if}
132
188
 
133
189
  **Files loaded:** {list of specific file names or "No additional documents found"}
134
190
 
135
- Do you have any other documents you'd like me to include, or shall we continue to the next step?
191
+ {if projectDocsCount > 0}
192
+ 📋 **Note:** This is a **brownfield project**. Your existing project documentation has been loaded. In the next step, I'll ask specifically about what new features or changes you want to add to your existing system.
193
+ {/if}
194
+
195
+ Do you have any other documents you'd like me to include, or shall we continue to the next step?"
136
196
 
137
- [C] Continue - Save this and move to Project Discovery (Step 2 of 10)
197
+ ### 4. Present MENU OPTIONS
138
198
 
139
- ## SUCCESS METRICS:
199
+ Display menu after setup report:
200
+
201
+ "[C] Continue - Save this and move to Project Discovery (Step 2 of 11)"
202
+
203
+ #### Menu Handling Logic:
204
+
205
+ - IF C: Update frontmatter with `stepsCompleted: [1]`, then load, read entire file, then execute {nextStepFile}
206
+ - IF user provides additional files: Load them, update inputDocuments and documentCounts, redisplay report
207
+ - IF user asks questions: Answer and redisplay menu
208
+
209
+ #### EXECUTION RULES:
210
+
211
+ - ALWAYS halt and wait for user input after presenting menu
212
+ - ONLY proceed to next step when user selects 'C'
213
+
214
+ ## CRITICAL STEP COMPLETION NOTE
215
+
216
+ ONLY WHEN [C continue option] is selected and [frontmatter properly updated with stepsCompleted: [1] and documentCounts], will you then load and read fully `{nextStepFile}` to execute and begin project discovery.
217
+
218
+ ---
140
219
 
141
- Existing workflow detected and handed off to step-01b correctly
142
- ✅ Fresh workflow initialized with template and frontmatter
143
- ✅ Input documents discovered and loaded using sharded-first logic
144
- ✅ All discovered files tracked in frontmatter `inputDocuments`
145
- ✅ User confirmed document setup and can proceed
220
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
146
221
 
147
- ## FAILURE MODES:
222
+ ### SUCCESS:
148
223
 
149
- Proceeding with fresh initialization when existing workflow exists
150
- Not updating frontmatter with discovered input documents
151
- Creating document without proper template
152
- Not checking sharded folders first before whole files
153
- Not reporting what documents were found to user
224
+ - Existing workflow detected and properly handed off to step-01b
225
+ - Fresh workflow initialized with template and proper frontmatter
226
+ - Input documents discovered and loaded using sharded-first logic
227
+ - All discovered files tracked in frontmatter `inputDocuments`
228
+ - **Document counts stored in frontmatter `documentCounts`**
229
+ - User clearly informed of brownfield vs greenfield status
230
+ - Menu presented and user input handled correctly
231
+ - Frontmatter updated with `stepsCompleted: [1]` before proceeding
154
232
 
155
- **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
156
- ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
157
- ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
233
+ ### SYSTEM FAILURE:
158
234
 
159
- ## NEXT STEP:
235
+ - Proceeding with fresh initialization when existing workflow exists
236
+ - Not updating frontmatter with discovered input documents
237
+ - **Not storing document counts in frontmatter**
238
+ - Creating document without proper template structure
239
+ - Not checking sharded folders first before whole files
240
+ - Not reporting discovered documents to user clearly
241
+ - Proceeding without user selecting 'C' (Continue)
160
242
 
161
- After user selects [C] to continue, load `{installed_path}/step/step-02-discovery.md` to begin the project discovery phase.
243
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
@@ -1,56 +1,81 @@
1
+ ---
2
+ name: 'step-01b-continue'
3
+ description: 'Resume an interrupted PRD workflow from the last completed step'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/{bmad_folder}/bmm/workflows/2-plan-workflows/prd'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-01b-continue.md'
10
+ workflowFile: '{workflow_path}/workflow.md'
11
+ outputFile: '{output_folder}/prd.md'
12
+ ---
13
+
1
14
  # Step 1B: Workflow Continuation
2
15
 
16
+ ## STEP GOAL:
17
+
18
+ Resume the PRD workflow from where it was left off, ensuring smooth continuation with full context restoration.
19
+
3
20
  ## MANDATORY EXECUTION RULES (READ FIRST):
4
21
 
5
- - 🛑 NEVER generate content without user input
22
+ ### Universal Rules:
6
23
 
7
- - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
8
- - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
9
- - ALWAYS treat this as collaborative discovery between PM peers
24
+ - 🛑 NEVER generate content without user input
25
+ - 📖 CRITICAL: Read the complete step file before taking any action
26
+ - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
10
27
  - 📋 YOU ARE A FACILITATOR, not a content generator
28
+
29
+ ### Role Reinforcement:
30
+
31
+ - ✅ You are a product-focused PM facilitator collaborating with an expert peer
32
+ - ✅ We engage in collaborative dialogue, not command-response
33
+ - ✅ Resume workflow from exact point where it was interrupted
34
+
35
+ ### Step-Specific Rules:
36
+
11
37
  - 💬 FOCUS on understanding where we left off and continuing appropriately
12
- - 🚪 RESUME workflow from exact point where it was interrupted
38
+ - 🚫 FORBIDDEN to modify content completed in previous steps
39
+ - 📖 Only reload documents that were already tracked in `inputDocuments`
13
40
 
14
41
  ## EXECUTION PROTOCOLS:
15
42
 
16
43
  - 🎯 Show your analysis of current state before taking action
17
44
  - 💾 Keep existing frontmatter `stepsCompleted` values
18
45
  - 📖 Only load documents that were already tracked in `inputDocuments`
19
- - 🚫 FORBIDDEN to modify content completed in previous steps
46
+ - 🚫 FORBIDDEN to discover new input documents during continuation
20
47
 
21
48
  ## CONTEXT BOUNDARIES:
22
49
 
23
- - Current document and frontmatter are already loaded
24
- - Previous context = complete document + existing frontmatter
25
- - Input documents listed in frontmatter were already processed
26
- - Last completed step = `lastStep` value from frontmatter
27
-
28
- ## YOUR TASK:
29
-
30
- Resume the PRD workflow from where it was left off, ensuring smooth continuation.
50
+ - Available context: Current document and frontmatter are already loaded
51
+ - Focus: Workflow state analysis and continuation logic only
52
+ - Limits: Don't assume knowledge beyond what's in the document
53
+ - Dependencies: Existing workflow state from previous session
31
54
 
32
- ## CONTINUATION SEQUENCE:
55
+ ## Sequence of Instructions (Do not deviate, skip, or optimize)
33
56
 
34
57
  ### 1. Analyze Current State
35
58
 
59
+ **State Assessment:**
36
60
  Review the frontmatter to understand:
37
61
 
38
62
  - `stepsCompleted`: Which steps are already done
39
63
  - `lastStep`: The most recently completed step number
40
64
  - `inputDocuments`: What context was already loaded
65
+ - `documentCounts`: briefs, research, brainstorming, projectDocs counts
41
66
  - All other frontmatter variables
42
67
 
43
- ### 2. Load All Input Documents
68
+ ### 2. Restore Context Documents
44
69
 
45
- Reload the context documents listed in `inputDocuments`:
70
+ **Context Reloading:**
46
71
 
47
72
  - For each document in `inputDocuments`, load the complete file
48
73
  - This ensures you have full context for continuation
49
74
  - Don't discover new documents - only reload what was previously processed
50
75
 
51
- ### 3. Summarize Current Progress
76
+ ### 3. Present Current Progress
52
77
 
53
- Welcome the user back and provide context:
78
+ **Progress Report to User:**
54
79
  "Welcome back {{user_name}}! I'm resuming our PRD collaboration for {{project_name}}.
55
80
 
56
81
  **Current Progress:**
@@ -66,58 +91,75 @@ Welcome the user back and provide context:
66
91
 
67
92
  Does this look right, or do you want to make any adjustments before we proceed?"
68
93
 
69
- ### 4. Determine Next Step
94
+ ### 4. Determine Continuation Path
70
95
 
96
+ **Next Step Logic:**
71
97
  Based on `lastStep` value, determine which step to load next:
72
98
 
73
99
  - If `lastStep = 1` → Load `./step-02-discovery.md`
74
100
  - If `lastStep = 2` → Load `./step-03-success.md`
75
101
  - If `lastStep = 3` → Load `./step-04-journeys.md`
76
- - Continue this pattern for all steps
77
- - If `lastStep = 10` → Workflow already complete
102
+ - If `lastStep = 4` Load `./step-05-domain.md`
103
+ - If `lastStep = 5` → Load `./step-06-innovation.md`
104
+ - If `lastStep = 6` → Load `./step-07-project-type.md`
105
+ - If `lastStep = 7` → Load `./step-08-scoping.md`
106
+ - If `lastStep = 8` → Load `./step-09-functional.md`
107
+ - If `lastStep = 9` → Load `./step-10-nonfunctional.md`
108
+ - If `lastStep = 10` → Load `./step-11-complete.md`
109
+ - If `lastStep = 11` → Workflow already complete
110
+
111
+ ### 5. Handle Workflow Completion
112
+
113
+ **If workflow already complete (`lastStep = 11`):**
114
+ "Great news! It looks like we've already completed the PRD workflow for {{project_name}}.
78
115
 
79
- ### 5. Present Continuation Options
116
+ The final document is ready at `{outputFile}` with all sections completed through step 11.
80
117
 
81
- After presenting current progress, ask:
82
- "Ready to continue with Step {nextStepNumber}: {nextStepTitle}?
118
+ Would you like me to:
83
119
 
84
- [C] Continue to Step {nextStepNumber}"
120
+ - Review the completed PRD with you
121
+ - Suggest next workflow steps (like architecture or epic creation)
122
+ - Start a new PRD revision
85
123
 
86
- ## SUCCESS METRICS:
124
+ What would be most helpful?"
87
125
 
88
- All previous input documents successfully reloaded
89
- ✅ Current workflow state accurately analyzed and presented
90
- ✅ User confirms understanding of progress
91
- ✅ Correct next step identified and prepared for loading
126
+ ### 6. Present MENU OPTIONS
92
127
 
93
- ## FAILURE MODES:
128
+ **If workflow not complete:**
129
+ Display: "Ready to continue with Step {nextStepNumber}?
94
130
 
95
- Discovering new input documents instead of reloading existing ones
96
- ❌ Modifying content from already completed steps
97
- ❌ Loading wrong next step based on `lastStep` value
98
- ❌ Proceeding without user confirmation of current state
131
+ **Select an Option:** [C] Continue to next step"
99
132
 
100
- **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
101
- ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
102
- ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
133
+ #### Menu Handling Logic:
103
134
 
104
- ## WORKFLOW ALREADY COMPLETE?
135
+ - IF C: Load, read entire file, then execute the appropriate next step file based on `lastStep`
136
+ - IF Any other comments or queries: respond and redisplay menu
105
137
 
106
- If `lastStep = 10` (final step completed):
107
- "Great news! It looks like we've already completed the PRD workflow for {{project_name}}.
138
+ #### EXECUTION RULES:
108
139
 
109
- The final document is ready at {output_folder}/prd.md with all sections completed through step 10.
140
+ - ALWAYS halt and wait for user input after presenting menu
141
+ - ONLY proceed to next step when user selects 'C'
110
142
 
111
- Would you like me to:
143
+ ## CRITICAL STEP COMPLETION NOTE
112
144
 
113
- - Review the completed PRD with you
114
- - Suggest next workflow steps (like architecture or epic creation)
115
- - Start a new PRD revision
145
+ ONLY WHEN [C continue option] is selected and [current state confirmed], will you then load and read fully the appropriate next step file to resume the workflow.
116
146
 
117
- What would be most helpful?"
147
+ ---
148
+
149
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
150
+
151
+ ### ✅ SUCCESS:
152
+
153
+ - All previous input documents successfully reloaded
154
+ - Current workflow state accurately analyzed and presented
155
+ - User confirms understanding of progress before continuation
156
+ - Correct next step identified and prepared for loading
118
157
 
119
- ## NEXT STEP:
158
+ ### SYSTEM FAILURE:
120
159
 
121
- After user confirms they're ready to continue, load the appropriate next step file based on the `lastStep` value from frontmatter.
160
+ - Discovering new input documents instead of reloading existing ones
161
+ - Modifying content from already completed steps
162
+ - Loading wrong next step based on `lastStep` value
163
+ - Proceeding without user confirmation of current state
122
164
 
123
- Remember: Do NOT load the next step until user explicitly selects [C] to continue!
165
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.