bmad-method 6.1.1-next.9 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/README_CN.md +9 -9
  2. package/package.json +1 -1
  3. package/src/bmm/agents/analyst.agent.yaml +3 -3
  4. package/src/bmm/agents/architect.agent.yaml +1 -1
  5. package/src/bmm/agents/dev.agent.yaml +1 -1
  6. package/src/bmm/agents/pm.agent.yaml +6 -6
  7. package/src/bmm/agents/qa.agent.yaml +1 -1
  8. package/src/bmm/agents/quick-flow-solo-dev.agent.yaml +2 -2
  9. package/src/bmm/agents/sm.agent.yaml +3 -3
  10. package/src/bmm/agents/tech-writer/tech-writer.agent.yaml +1 -1
  11. package/src/bmm/module-help.csv +16 -16
  12. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/SKILL.md +1 -1
  13. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/product-brief.template.md +2 -2
  14. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/steps/step-01-init.md +4 -11
  15. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/steps/step-01b-continue.md +0 -3
  16. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/steps/step-02-vision.md +5 -11
  17. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/steps/step-03-users.md +5 -11
  18. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/steps/step-04-metrics.md +5 -11
  19. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/steps/step-05-scope.md +5 -11
  20. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/steps/step-06-complete.md +0 -3
  21. package/src/bmm/workflows/1-analysis/bmad-create-product-brief/workflow.md +3 -0
  22. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/SKILL.md +88 -0
  23. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/agents/artifact-analyzer.md +60 -0
  24. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/agents/opportunity-reviewer.md +44 -0
  25. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/agents/skeptic-reviewer.md +44 -0
  26. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/agents/web-researcher.md +49 -0
  27. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/bmad-manifest.json +17 -0
  28. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/prompts/contextual-discovery.md +57 -0
  29. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/prompts/draft-and-review.md +86 -0
  30. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/prompts/finalize.md +75 -0
  31. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/prompts/guided-elicitation.md +70 -0
  32. package/src/bmm/workflows/1-analysis/bmad-product-brief-preview/resources/brief-template.md +60 -0
  33. package/src/bmm/workflows/1-analysis/research/bmad-domain-research/SKILL.md +1 -1
  34. package/src/bmm/workflows/1-analysis/research/bmad-market-research/SKILL.md +6 -0
  35. package/src/bmm/workflows/1-analysis/research/bmad-market-research/research.template.md +29 -0
  36. package/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-01-init.md +184 -0
  37. package/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-02-customer-behavior.md +239 -0
  38. package/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-03-customer-pain-points.md +251 -0
  39. package/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-04-customer-decisions.md +261 -0
  40. package/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-05-competitive-analysis.md +173 -0
  41. package/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-06-research-completion.md +478 -0
  42. package/src/bmm/workflows/1-analysis/research/{workflow-market-research.md → bmad-market-research/workflow.md} +1 -6
  43. package/src/bmm/workflows/1-analysis/research/bmad-technical-research/SKILL.md +6 -0
  44. package/src/bmm/workflows/1-analysis/research/bmad-technical-research/research.template.md +29 -0
  45. package/src/bmm/workflows/1-analysis/research/{technical-steps → bmad-technical-research/technical-steps}/step-01-init.md +2 -2
  46. package/src/bmm/workflows/1-analysis/research/{technical-steps → bmad-technical-research/technical-steps}/step-02-technical-overview.md +2 -2
  47. package/src/bmm/workflows/1-analysis/research/{technical-steps → bmad-technical-research/technical-steps}/step-03-integration-patterns.md +2 -2
  48. package/src/bmm/workflows/1-analysis/research/{technical-steps → bmad-technical-research/technical-steps}/step-04-architectural-patterns.md +2 -2
  49. package/src/bmm/workflows/1-analysis/research/{technical-steps → bmad-technical-research/technical-steps}/step-05-implementation-research.md +2 -2
  50. package/src/bmm/workflows/1-analysis/research/{workflow-technical-research.md → bmad-technical-research/workflow.md} +0 -4
  51. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/SKILL.md +1 -1
  52. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-01-init.md +2 -2
  53. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-01b-continue.md +1 -1
  54. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-02-discovery.md +2 -2
  55. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-03-core-experience.md +5 -4
  56. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-04-emotional-response.md +5 -4
  57. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-05-inspiration.md +5 -4
  58. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-06-design-system.md +5 -4
  59. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-07-defining-experience.md +5 -4
  60. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-08-visual-foundation.md +5 -4
  61. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-09-design-directions.md +5 -4
  62. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-10-user-journeys.md +5 -4
  63. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-11-component-strategy.md +5 -4
  64. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-12-ux-patterns.md +5 -4
  65. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +5 -4
  66. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/steps/step-14-complete.md +2 -2
  67. package/src/bmm/workflows/2-plan-workflows/bmad-create-ux-design/workflow.md +1 -2
  68. package/src/bmm/workflows/2-plan-workflows/bmad-edit-prd/SKILL.md +6 -0
  69. package/src/bmm/workflows/2-plan-workflows/{create-prd → bmad-edit-prd}/steps-e/step-e-01-discovery.md +3 -8
  70. package/src/bmm/workflows/2-plan-workflows/{create-prd → bmad-edit-prd}/steps-e/step-e-01b-legacy-conversion.md +1 -5
  71. package/src/bmm/workflows/2-plan-workflows/{create-prd → bmad-edit-prd}/steps-e/step-e-02-review.md +5 -9
  72. package/src/bmm/workflows/2-plan-workflows/{create-prd → bmad-edit-prd}/steps-e/step-e-03-edit.md +3 -6
  73. package/src/bmm/workflows/2-plan-workflows/{create-prd → bmad-edit-prd}/steps-e/step-e-04-complete.md +2 -5
  74. package/src/bmm/workflows/2-plan-workflows/{create-prd/workflow-edit-prd.md → bmad-edit-prd/workflow.md} +2 -4
  75. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/SKILL.md +6 -0
  76. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/domain-complexity.csv +15 -0
  77. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/prd-purpose.md +197 -0
  78. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/project-types.csv +11 -0
  79. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-01-discovery.md +221 -0
  80. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02-format-detection.md +188 -0
  81. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02b-parity-check.md +206 -0
  82. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-03-density-validation.md +171 -0
  83. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +211 -0
  84. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md +225 -0
  85. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md +214 -0
  86. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +202 -0
  87. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +240 -0
  88. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md +260 -0
  89. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-10-smart-validation.md +206 -0
  90. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +261 -0
  91. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md +239 -0
  92. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-13-report-complete.md +229 -0
  93. package/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/workflow.md +62 -0
  94. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +2 -4
  95. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +1 -0
  96. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +3 -3
  97. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +2 -1
  98. package/src/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +2 -0
  99. package/src/bmm/workflows/3-solutioning/bmad-check-implementation-readiness/SKILL.md +6 -0
  100. package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/steps/step-01-document-discovery.md +3 -8
  101. package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/steps/step-02-prd-analysis.md +1 -5
  102. package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/steps/step-03-epic-coverage-validation.md +1 -5
  103. package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/steps/step-04-ux-alignment.md +1 -5
  104. package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/steps/step-05-epic-quality-review.md +2 -6
  105. package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/steps/step-06-final-assessment.md +0 -3
  106. package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/workflow.md +0 -5
  107. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/SKILL.md +1 -1
  108. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/steps/step-01-init.md +4 -4
  109. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/steps/step-02-context.md +2 -2
  110. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/steps/step-03-starter.md +4 -4
  111. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/steps/step-04-decisions.md +4 -4
  112. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/steps/step-05-patterns.md +4 -4
  113. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/steps/step-06-structure.md +4 -4
  114. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/steps/step-07-validation.md +4 -4
  115. package/src/bmm/workflows/3-solutioning/bmad-create-architecture/workflow.md +0 -6
  116. package/src/bmm/workflows/3-solutioning/bmad-create-epics-and-stories/SKILL.md +6 -0
  117. package/src/bmm/workflows/3-solutioning/{create-epics-and-stories → bmad-create-epics-and-stories}/steps/step-01-validate-prerequisites.md +7 -29
  118. package/src/bmm/workflows/3-solutioning/{create-epics-and-stories → bmad-create-epics-and-stories}/steps/step-02-design-epics.md +7 -28
  119. package/src/bmm/workflows/3-solutioning/{create-epics-and-stories → bmad-create-epics-and-stories}/steps/step-03-create-stories.md +8 -29
  120. package/src/bmm/workflows/3-solutioning/{create-epics-and-stories → bmad-create-epics-and-stories}/steps/step-04-final-validation.md +2 -20
  121. package/src/bmm/workflows/3-solutioning/{create-epics-and-stories → bmad-create-epics-and-stories}/workflow.md +1 -6
  122. package/src/bmm/workflows/4-implementation/bmad-code-review/SKILL.md +6 -0
  123. package/src/bmm/workflows/4-implementation/bmad-code-review/steps/step-01-gather-context.md +61 -0
  124. package/src/bmm/workflows/4-implementation/bmad-code-review/steps/step-02-review.md +41 -0
  125. package/src/bmm/workflows/4-implementation/bmad-code-review/steps/step-03-triage.md +50 -0
  126. package/src/bmm/workflows/4-implementation/bmad-code-review/steps/step-04-present.md +38 -0
  127. package/src/bmm/workflows/4-implementation/bmad-code-review/workflow.md +54 -0
  128. package/src/bmm/workflows/4-implementation/bmad-correct-course/SKILL.md +6 -0
  129. package/src/bmm/workflows/4-implementation/{correct-course → bmad-correct-course}/checklist.md +1 -1
  130. package/src/bmm/workflows/4-implementation/{correct-course → bmad-correct-course}/workflow.md +3 -10
  131. package/src/bmm/workflows/4-implementation/bmad-create-story/SKILL.md +1 -1
  132. package/src/bmm/workflows/4-implementation/bmad-create-story/checklist.md +2 -2
  133. package/src/bmm/workflows/4-implementation/bmad-create-story/workflow.md +3 -11
  134. package/src/bmm/workflows/4-implementation/bmad-dev-story/SKILL.md +1 -1
  135. package/src/bmm/workflows/4-implementation/bmad-dev-story/workflow.md +0 -1
  136. package/src/bmm/workflows/4-implementation/bmad-retrospective/SKILL.md +6 -0
  137. package/src/bmm/workflows/4-implementation/{retrospective → bmad-retrospective}/workflow.md +0 -6
  138. package/src/bmm/workflows/4-implementation/bmad-sprint-planning/SKILL.md +6 -0
  139. package/src/bmm/workflows/4-implementation/bmad-sprint-planning/bmad-skill-manifest.yaml +1 -0
  140. package/src/bmm/workflows/4-implementation/{sprint-planning → bmad-sprint-planning}/workflow.md +0 -8
  141. package/src/bmm/workflows/4-implementation/bmad-sprint-status/SKILL.md +6 -0
  142. package/src/bmm/workflows/4-implementation/bmad-sprint-status/bmad-skill-manifest.yaml +1 -0
  143. package/src/bmm/workflows/4-implementation/{sprint-status → bmad-sprint-status}/workflow.md +0 -6
  144. package/src/bmm/workflows/bmad-document-project/SKILL.md +6 -0
  145. package/src/bmm/workflows/bmad-document-project/bmad-skill-manifest.yaml +1 -0
  146. package/src/bmm/workflows/{document-project → bmad-document-project}/instructions.md +6 -6
  147. package/src/bmm/workflows/bmad-document-project/workflow.md +27 -0
  148. package/src/bmm/workflows/{document-project → bmad-document-project}/workflows/deep-dive-instructions.md +3 -1
  149. package/src/bmm/workflows/{document-project → bmad-document-project}/workflows/deep-dive-workflow.md +4 -12
  150. package/src/bmm/workflows/{document-project → bmad-document-project}/workflows/full-scan-instructions.md +5 -3
  151. package/src/bmm/workflows/{document-project → bmad-document-project}/workflows/full-scan-workflow.md +4 -12
  152. package/src/bmm/workflows/bmad-generate-project-context/SKILL.md +6 -0
  153. package/src/bmm/workflows/bmad-generate-project-context/bmad-skill-manifest.yaml +1 -0
  154. package/src/bmm/workflows/{generate-project-context → bmad-generate-project-context}/steps/step-01-discover.md +4 -2
  155. package/src/bmm/workflows/{generate-project-context → bmad-generate-project-context}/steps/step-02-generate.md +8 -5
  156. package/src/bmm/workflows/{generate-project-context → bmad-generate-project-context}/workflow.md +2 -8
  157. package/src/bmm/workflows/bmad-qa-generate-e2e-tests/SKILL.md +6 -0
  158. package/src/bmm/workflows/bmad-qa-generate-e2e-tests/bmad-skill-manifest.yaml +1 -0
  159. package/src/bmm/workflows/{qa-generate-e2e-tests → bmad-qa-generate-e2e-tests}/workflow.md +2 -9
  160. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/SKILL.md +1 -1
  161. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/steps/step-01-mode-detection.md +9 -14
  162. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/steps/step-02-context-gathering.md +1 -5
  163. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/steps/step-03-execute.md +1 -5
  164. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/steps/step-04-self-check.md +1 -5
  165. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/steps/step-05-adversarial-review.md +1 -5
  166. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/steps/step-06-resolve-findings.md +0 -2
  167. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev/workflow.md +0 -6
  168. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/SKILL.md +1 -1
  169. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-01-clarify-and-route.md +2 -5
  170. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-02-plan.md +2 -6
  171. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-03-implement.md +1 -3
  172. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-04-review.md +3 -6
  173. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-05-present.md +0 -2
  174. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/workflow.md +0 -1
  175. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-spec/SKILL.md +6 -0
  176. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-spec/bmad-skill-manifest.yaml +1 -0
  177. package/src/bmm/workflows/bmad-quick-flow/{quick-spec → bmad-quick-spec}/steps/step-01-understand.md +7 -11
  178. package/src/bmm/workflows/bmad-quick-flow/{quick-spec → bmad-quick-spec}/steps/step-02-investigate.md +3 -6
  179. package/src/bmm/workflows/bmad-quick-flow/{quick-spec → bmad-quick-spec}/steps/step-03-generate.md +1 -4
  180. package/src/bmm/workflows/bmad-quick-flow/{quick-spec → bmad-quick-spec}/steps/step-04-review.md +4 -7
  181. package/src/bmm/workflows/bmad-quick-flow/{quick-spec → bmad-quick-spec}/workflow.md +1 -6
  182. package/src/core/module-help.csv +1 -0
  183. package/src/core/skills/bmad-advanced-elicitation/SKILL.md +6 -0
  184. package/src/core/skills/bmad-advanced-elicitation/bmad-skill-manifest.yaml +1 -0
  185. package/src/core/{tasks → skills}/bmad-advanced-elicitation/workflow.md +3 -4
  186. package/src/core/{workflows → skills}/bmad-brainstorming/SKILL.md +1 -1
  187. package/src/core/skills/bmad-brainstorming/bmad-skill-manifest.yaml +1 -0
  188. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-01-session-setup.md +5 -1
  189. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-01b-continue.md +3 -1
  190. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-02a-user-selected.md +5 -1
  191. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-02b-ai-recommended.md +3 -1
  192. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-02c-random-selection.md +3 -1
  193. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-02d-progressive-flow.md +3 -1
  194. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-03-technique-execution.md +4 -2
  195. package/src/core/{workflows → skills}/bmad-brainstorming/steps/step-04-idea-organization.md +2 -0
  196. package/src/core/{workflows → skills}/bmad-brainstorming/workflow.md +1 -5
  197. package/src/core/skills/bmad-distillator/SKILL.md +178 -0
  198. package/src/core/skills/bmad-distillator/agents/distillate-compressor.md +116 -0
  199. package/src/core/skills/bmad-distillator/agents/round-trip-reconstructor.md +68 -0
  200. package/src/core/skills/bmad-distillator/bmad-skill-manifest.yaml +15 -0
  201. package/src/core/skills/bmad-distillator/resources/compression-rules.md +51 -0
  202. package/src/core/skills/bmad-distillator/resources/distillate-format-reference.md +227 -0
  203. package/src/core/skills/bmad-distillator/resources/splitting-strategy.md +78 -0
  204. package/src/core/skills/bmad-distillator/scripts/analyze_sources.py +300 -0
  205. package/src/core/skills/bmad-distillator/scripts/tests/test_analyze_sources.py +204 -0
  206. package/src/core/{tasks → skills}/bmad-editorial-review-prose/SKILL.md +1 -1
  207. package/src/core/skills/bmad-editorial-review-prose/bmad-skill-manifest.yaml +1 -0
  208. package/src/core/{tasks → skills}/bmad-editorial-review-structure/SKILL.md +1 -1
  209. package/src/core/skills/bmad-editorial-review-structure/bmad-skill-manifest.yaml +1 -0
  210. package/src/core/skills/bmad-help/SKILL.md +6 -0
  211. package/src/core/skills/bmad-help/bmad-skill-manifest.yaml +1 -0
  212. package/src/core/{tasks → skills}/bmad-index-docs/SKILL.md +1 -1
  213. package/src/core/skills/bmad-index-docs/bmad-skill-manifest.yaml +1 -0
  214. package/src/core/{workflows → skills}/bmad-party-mode/SKILL.md +1 -1
  215. package/src/core/skills/bmad-party-mode/bmad-skill-manifest.yaml +1 -0
  216. package/src/core/{tasks → skills}/bmad-review-adversarial-general/SKILL.md +1 -1
  217. package/src/core/skills/bmad-review-adversarial-general/bmad-skill-manifest.yaml +1 -0
  218. package/src/core/{tasks → skills}/bmad-review-edge-case-hunter/SKILL.md +2 -2
  219. package/src/core/skills/bmad-review-edge-case-hunter/bmad-skill-manifest.yaml +1 -0
  220. package/src/core/{tasks → skills}/bmad-shard-doc/SKILL.md +1 -1
  221. package/src/core/skills/bmad-shard-doc/bmad-skill-manifest.yaml +1 -0
  222. package/src/core/tasks/bmad-create-prd/SKILL.md +6 -0
  223. package/src/core/tasks/bmad-create-prd/bmad-skill-manifest.yaml +1 -0
  224. package/src/core/tasks/bmad-create-prd/data/domain-complexity.csv +15 -0
  225. package/src/core/tasks/bmad-create-prd/data/prd-purpose.md +197 -0
  226. package/src/core/tasks/bmad-create-prd/data/project-types.csv +11 -0
  227. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-01-init.md +7 -20
  228. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-01b-continue.md +29 -20
  229. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-02-discovery.md +7 -23
  230. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-02b-vision.md +5 -17
  231. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-02c-executive-summary.md +5 -17
  232. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-03-success.md +5 -17
  233. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-04-journeys.md +5 -17
  234. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-05-domain.md +7 -20
  235. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-06-innovation.md +8 -23
  236. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-07-project-type.md +6 -21
  237. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-08-scoping.md +5 -17
  238. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-09-functional.md +5 -17
  239. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-10-nonfunctional.md +5 -17
  240. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-11-polish.md +6 -19
  241. package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/steps-c/step-12-complete.md +3 -12
  242. package/src/{bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md → core/tasks/bmad-create-prd/workflow.md} +3 -4
  243. package/tools/cli/external-official-modules.yaml +9 -9
  244. package/tools/cli/installers/lib/core/manifest.js +4 -2
  245. package/tools/skill-validator.md +322 -0
  246. package/src/bmm/workflows/1-analysis/research/bmad-skill-manifest.yaml +0 -9
  247. package/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml +0 -14
  248. package/src/bmm/workflows/3-solutioning/check-implementation-readiness/bmad-skill-manifest.yaml +0 -3
  249. package/src/bmm/workflows/3-solutioning/create-epics-and-stories/bmad-skill-manifest.yaml +0 -3
  250. package/src/bmm/workflows/4-implementation/code-review/bmad-skill-manifest.yaml +0 -3
  251. package/src/bmm/workflows/4-implementation/code-review/checklist.md +0 -23
  252. package/src/bmm/workflows/4-implementation/code-review/discover-inputs.md +0 -88
  253. package/src/bmm/workflows/4-implementation/code-review/workflow.md +0 -268
  254. package/src/bmm/workflows/4-implementation/correct-course/bmad-skill-manifest.yaml +0 -3
  255. package/src/bmm/workflows/4-implementation/retrospective/bmad-skill-manifest.yaml +0 -3
  256. package/src/bmm/workflows/4-implementation/sprint-planning/bmad-skill-manifest.yaml +0 -3
  257. package/src/bmm/workflows/4-implementation/sprint-status/bmad-skill-manifest.yaml +0 -3
  258. package/src/bmm/workflows/bmad-quick-flow/quick-spec/bmad-skill-manifest.yaml +0 -3
  259. package/src/bmm/workflows/document-project/bmad-skill-manifest.yaml +0 -3
  260. package/src/bmm/workflows/document-project/workflow.md +0 -39
  261. package/src/bmm/workflows/generate-project-context/bmad-skill-manifest.yaml +0 -3
  262. package/src/bmm/workflows/qa-generate-e2e-tests/bmad-skill-manifest.yaml +0 -3
  263. package/src/core/agents/bmad-master.agent.yaml +0 -30
  264. package/src/core/agents/bmad-skill-manifest.yaml +0 -3
  265. package/src/core/tasks/bmad-advanced-elicitation/SKILL.md +0 -6
  266. package/src/core/tasks/bmad-help/SKILL.md +0 -6
  267. /package/src/{core/tasks/bmad-advanced-elicitation → bmm/workflows/1-analysis/bmad-product-brief-preview}/bmad-skill-manifest.yaml +0 -0
  268. /package/src/{core/tasks/bmad-editorial-review-prose → bmm/workflows/1-analysis/research/bmad-market-research}/bmad-skill-manifest.yaml +0 -0
  269. /package/src/{core/tasks/bmad-editorial-review-structure → bmm/workflows/1-analysis/research/bmad-technical-research}/bmad-skill-manifest.yaml +0 -0
  270. /package/src/bmm/workflows/1-analysis/research/{technical-steps → bmad-technical-research/technical-steps}/step-06-research-synthesis.md +0 -0
  271. /package/src/{core/tasks/bmad-help → bmm/workflows/2-plan-workflows/bmad-edit-prd}/bmad-skill-manifest.yaml +0 -0
  272. /package/src/{core/tasks/bmad-index-docs → bmm/workflows/2-plan-workflows/bmad-validate-prd}/bmad-skill-manifest.yaml +0 -0
  273. /package/src/{core/tasks/bmad-review-adversarial-general → bmm/workflows/3-solutioning/bmad-check-implementation-readiness}/bmad-skill-manifest.yaml +0 -0
  274. /package/src/bmm/workflows/3-solutioning/{check-implementation-readiness → bmad-check-implementation-readiness}/templates/readiness-report-template.md +0 -0
  275. /package/src/{core/tasks/bmad-review-edge-case-hunter → bmm/workflows/3-solutioning/bmad-create-epics-and-stories}/bmad-skill-manifest.yaml +0 -0
  276. /package/src/bmm/workflows/3-solutioning/{create-epics-and-stories → bmad-create-epics-and-stories}/templates/epics-template.md +0 -0
  277. /package/src/{core/tasks/bmad-shard-doc → bmm/workflows/4-implementation/bmad-code-review}/bmad-skill-manifest.yaml +0 -0
  278. /package/src/{core/workflows/bmad-brainstorming → bmm/workflows/4-implementation/bmad-correct-course}/bmad-skill-manifest.yaml +0 -0
  279. /package/src/{core/workflows/bmad-party-mode → bmm/workflows/4-implementation/bmad-retrospective}/bmad-skill-manifest.yaml +0 -0
  280. /package/src/bmm/workflows/4-implementation/{sprint-planning → bmad-sprint-planning}/checklist.md +0 -0
  281. /package/src/bmm/workflows/4-implementation/{sprint-planning → bmad-sprint-planning}/sprint-status-template.yaml +0 -0
  282. /package/src/bmm/workflows/{document-project → bmad-document-project}/checklist.md +0 -0
  283. /package/src/bmm/workflows/{document-project → bmad-document-project}/documentation-requirements.csv +0 -0
  284. /package/src/bmm/workflows/{document-project → bmad-document-project}/templates/deep-dive-template.md +0 -0
  285. /package/src/bmm/workflows/{document-project → bmad-document-project}/templates/index-template.md +0 -0
  286. /package/src/bmm/workflows/{document-project → bmad-document-project}/templates/project-overview-template.md +0 -0
  287. /package/src/bmm/workflows/{document-project → bmad-document-project}/templates/project-scan-report-schema.json +0 -0
  288. /package/src/bmm/workflows/{document-project → bmad-document-project}/templates/source-tree-template.md +0 -0
  289. /package/src/bmm/workflows/{generate-project-context → bmad-generate-project-context}/project-context-template.md +0 -0
  290. /package/src/bmm/workflows/{generate-project-context → bmad-generate-project-context}/steps/step-03-complete.md +0 -0
  291. /package/src/bmm/workflows/{qa-generate-e2e-tests → bmad-qa-generate-e2e-tests}/checklist.md +0 -0
  292. /package/src/bmm/workflows/bmad-quick-flow/{quick-spec → bmad-quick-spec}/tech-spec-template.md +0 -0
  293. /package/src/core/{tasks → skills}/bmad-advanced-elicitation/methods.csv +0 -0
  294. /package/src/core/{workflows → skills}/bmad-brainstorming/brain-methods.csv +0 -0
  295. /package/src/core/{workflows → skills}/bmad-brainstorming/template.md +0 -0
  296. /package/src/core/{tasks → skills}/bmad-editorial-review-prose/workflow.md +0 -0
  297. /package/src/core/{tasks → skills}/bmad-editorial-review-structure/workflow.md +0 -0
  298. /package/src/core/{tasks → skills}/bmad-help/workflow.md +0 -0
  299. /package/src/core/{tasks → skills}/bmad-index-docs/workflow.md +0 -0
  300. /package/src/core/{workflows → skills}/bmad-party-mode/steps/step-01-agent-loading.md +0 -0
  301. /package/src/core/{workflows → skills}/bmad-party-mode/steps/step-02-discussion-orchestration.md +0 -0
  302. /package/src/core/{workflows → skills}/bmad-party-mode/steps/step-03-graceful-exit.md +0 -0
  303. /package/src/core/{workflows → skills}/bmad-party-mode/workflow.md +0 -0
  304. /package/src/core/{tasks → skills}/bmad-review-adversarial-general/workflow.md +0 -0
  305. /package/src/core/{tasks → skills}/bmad-review-edge-case-hunter/workflow.md +0 -0
  306. /package/src/core/{tasks → skills}/bmad-shard-doc/workflow.md +0 -0
  307. /package/src/{bmm/workflows/2-plan-workflows/create-prd → core/tasks/bmad-create-prd}/templates/prd-template.md +0 -0
@@ -32,8 +32,8 @@ This step will generate content and present choices:
32
32
 
33
33
  ## PROTOCOL INTEGRATION:
34
34
 
35
- - When 'A' selected: Read fully and follow: skill:bmad-advanced-elicitation
36
- - When 'P' selected: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md
35
+ - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
36
+ - When 'P' selected: Invoke the `bmad-party-mode` skill
37
37
  - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
38
38
  - User accepts/rejects protocol changes before proceeding
39
39
 
@@ -305,7 +305,7 @@ Show the generated patterns content and present choices:
305
305
 
306
306
  #### If 'A' (Advanced Elicitation):
307
307
 
308
- - Read fully and follow: skill:bmad-advanced-elicitation with current patterns
308
+ - Invoke the `bmad-advanced-elicitation` skill with current patterns
309
309
  - Process enhanced consistency rules that come back
310
310
  - Ask user: "Accept these additional pattern refinements? (y/n)"
311
311
  - If yes: Update content, then return to A/P/C menu
@@ -313,7 +313,7 @@ Show the generated patterns content and present choices:
313
313
 
314
314
  #### If 'P' (Party Mode):
315
315
 
316
- - Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with implementation patterns context
316
+ - Invoke the `bmad-party-mode` skill with implementation patterns context
317
317
  - Process collaborative insights about potential conflicts
318
318
  - Ask user: "Accept these changes to the implementation patterns? (y/n)"
319
319
  - If yes: Update content, then return to A/P/C menu
@@ -32,8 +32,8 @@ This step will generate content and present choices:
32
32
 
33
33
  ## PROTOCOL INTEGRATION:
34
34
 
35
- - When 'A' selected: Read fully and follow: skill:bmad-advanced-elicitation
36
- - When 'P' selected: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md
35
+ - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
36
+ - When 'P' selected: Invoke the `bmad-party-mode` skill
37
37
  - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
38
38
  - User accepts/rejects protocol changes before proceeding
39
39
 
@@ -325,7 +325,7 @@ Show the generated project structure content and present choices:
325
325
 
326
326
  #### If 'A' (Advanced Elicitation):
327
327
 
328
- - Read fully and follow: skill:bmad-advanced-elicitation with current project structure
328
+ - Invoke the `bmad-advanced-elicitation` skill with current project structure
329
329
  - Process enhanced organizational insights that come back
330
330
  - Ask user: "Accept these changes to the project structure? (y/n)"
331
331
  - If yes: Update content, then return to A/P/C menu
@@ -333,7 +333,7 @@ Show the generated project structure content and present choices:
333
333
 
334
334
  #### If 'P' (Party Mode):
335
335
 
336
- - Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with project structure context
336
+ - Invoke the `bmad-party-mode` skill with project structure context
337
337
  - Process collaborative insights about organization trade-offs
338
338
  - Ask user: "Accept these changes to the project structure? (y/n)"
339
339
  - If yes: Update content, then return to A/P/C menu
@@ -32,8 +32,8 @@ This step will generate content and present choices:
32
32
 
33
33
  ## PROTOCOL INTEGRATION:
34
34
 
35
- - When 'A' selected: Read fully and follow: skill:bmad-advanced-elicitation
36
- - When 'P' selected: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md
35
+ - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
36
+ - When 'P' selected: Invoke the `bmad-party-mode` skill
37
37
  - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
38
38
  - User accepts/rejects protocol changes before proceeding
39
39
 
@@ -305,7 +305,7 @@ Show the validation results and present choices:
305
305
 
306
306
  #### If 'A' (Advanced Elicitation):
307
307
 
308
- - Read fully and follow: skill:bmad-advanced-elicitation with validation issues
308
+ - Invoke the `bmad-advanced-elicitation` skill with validation issues
309
309
  - Process enhanced solutions for complex concerns
310
310
  - Ask user: "Accept these architectural improvements? (y/n)"
311
311
  - If yes: Update content, then return to A/P/C menu
@@ -313,7 +313,7 @@ Show the validation results and present choices:
313
313
 
314
314
  #### If 'P' (Party Mode):
315
315
 
316
- - Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with validation context
316
+ - Invoke the `bmad-party-mode` skill with validation context
317
317
  - Process collaborative insights on implementation readiness
318
318
  - Ask user: "Accept these changes to the validation results? (y/n)"
319
319
  - If yes: Update content, then return to A/P/C menu
@@ -29,12 +29,6 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
29
29
  - `date` as system-generated current datetime
30
30
  - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
31
31
 
32
- ### Paths
33
-
34
- - `installed_path` = `.`
35
- - `template_path` = `{installed_path}/architecture-decision-template.md`
36
- - `data_files_path` = `{installed_path}/data/`
37
-
38
32
  ---
39
33
 
40
34
  ## EXECUTION
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: bmad-create-epics-and-stories
3
+ description: 'Break requirements into epics and user stories. Use when the user says "create the epics and stories list"'
4
+ ---
5
+
6
+ Follow the instructions in ./workflow.md.
@@ -1,25 +1,3 @@
1
- ---
2
- name: 'step-01-validate-prerequisites'
3
- description: 'Validate required documents exist and extract all requirements for epic and story creation'
4
-
5
- # Path Definitions
6
- workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
7
-
8
- # File References
9
- thisStepFile: './step-01-validate-prerequisites.md'
10
- nextStepFile: './step-02-design-epics.md'
11
- workflowFile: '{workflow_path}/workflow.md'
12
- outputFile: '{planning_artifacts}/epics.md'
13
- epicsTemplate: '{workflow_path}/templates/epics-template.md'
14
-
15
- # Task References
16
- advancedElicitationTask: 'skill:bmad-advanced-elicitation'
17
- partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md'
18
-
19
- # Template References
20
- epicsTemplate: '{workflow_path}/templates/epics-template.md'
21
- ---
22
-
23
1
  # Step 1: Validate Prerequisites and Extract Requirements
24
2
 
25
3
  ## STEP GOAL:
@@ -54,7 +32,7 @@ To validate that all required input documents exist and extract all requirements
54
32
  ## EXECUTION PROTOCOLS:
55
33
 
56
34
  - 🎯 Extract requirements systematically from all documents
57
- - 💾 Populate {outputFile} with extracted requirements
35
+ - 💾 Populate {planning_artifacts}/epics.md with extracted requirements
58
36
  - 📖 Update frontmatter with extraction progress
59
37
  - 🚫 FORBIDDEN to load next step until user selects 'C' and requirements are extracted
60
38
 
@@ -91,7 +69,7 @@ Search for required documents using these patterns (sharded means a large docume
91
69
  1. `{planning_artifacts}/*ux*.md` (whole document)
92
70
  2. `{planning_artifacts}/*ux*/index.md` (sharded version)
93
71
 
94
- Before proceeding, Ask the user if there are any other documents to include for analysis, and if anything found should be excluded. Wait for user confirmation. Once confirmed, create the {outputFile} from the {epicsTemplate} and in the front matter list the files in the array of `inputDocuments: []`.
72
+ Before proceeding, Ask the user if there are any other documents to include for analysis, and if anything found should be excluded. Wait for user confirmation. Once confirmed, create the {planning_artifacts}/epics.md from the ../templates/epics-template.md and in the front matter list the files in the array of `inputDocuments: []`.
95
73
 
96
74
  ### 3. Extract Functional Requirements (FRs)
97
75
 
@@ -182,9 +160,9 @@ UX-DR2: [Actionable UX design requirement with clear implementation scope]
182
160
 
183
161
  ### 7. Load and Initialize Template
184
162
 
185
- Load {epicsTemplate} and initialize {outputFile}:
163
+ Load ../templates/epics-template.md and initialize {planning_artifacts}/epics.md:
186
164
 
187
- 1. Copy the entire template to {outputFile}
165
+ 1. Copy the entire template to {planning_artifacts}/epics.md
188
166
  2. Replace {{project_name}} with the actual project name
189
167
  3. Replace placeholder sections with extracted requirements:
190
168
  - {{fr_list}} → extracted FRs
@@ -228,7 +206,7 @@ Update the requirements based on user feedback until confirmation is received.
228
206
 
229
207
  ## CONTENT TO SAVE TO DOCUMENT:
230
208
 
231
- After extraction and confirmation, update {outputFile} with:
209
+ After extraction and confirmation, update {planning_artifacts}/epics.md with:
232
210
 
233
211
  - Complete FR list in {{fr_list}} section
234
212
  - Complete NFR list in {{nfr_list}} section
@@ -247,12 +225,12 @@ Display: `**Confirm the Requirements are complete and correct to [C] continue:**
247
225
 
248
226
  #### Menu Handling Logic:
249
227
 
250
- - IF C: Save all to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile}
228
+ - IF C: Save all to {planning_artifacts}/epics.md, update frontmatter, then read fully and follow: ./step-02-design-epics.md
251
229
  - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#10-present-menu-options)
252
230
 
253
231
  ## CRITICAL STEP COMPLETION NOTE
254
232
 
255
- ONLY WHEN C is selected and all requirements are saved to document and frontmatter is updated, will you then read fully and follow: {nextStepFile} to begin epic design step.
233
+ ONLY WHEN C is selected and all requirements are saved to document and frontmatter is updated, will you then read fully and follow: ./step-02-design-epics.md to begin epic design step.
256
234
 
257
235
  ---
258
236
 
@@ -1,24 +1,3 @@
1
- ---
2
- name: 'step-02-design-epics'
3
- description: 'Design and approve the epics_list that will organize all requirements into user-value-focused epics'
4
-
5
- # Path Definitions
6
- workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
7
-
8
- # File References
9
- thisStepFile: './step-02-design-epics.md'
10
- nextStepFile: './step-03-create-stories.md'
11
- workflowFile: '{workflow_path}/workflow.md'
12
- outputFile: '{planning_artifacts}/epics.md'
13
-
14
- # Task References
15
- advancedElicitationTask: 'skill:bmad-advanced-elicitation'
16
- partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md'
17
-
18
- # Template References
19
- epicsTemplate: '{workflow_path}/templates/epics-template.md'
20
- ---
21
-
22
1
  # Step 2: Design Epic List
23
2
 
24
3
  ## STEP GOAL:
@@ -54,7 +33,7 @@ To design and get approval for the epics_list that will organize all requirement
54
33
  ## EXECUTION PROTOCOLS:
55
34
 
56
35
  - 🎯 Design epics collaboratively based on extracted requirements
57
- - 💾 Update {{epics_list}} in {outputFile}
36
+ - 💾 Update {{epics_list}} in {planning_artifacts}/epics.md
58
37
  - 📖 Document the FR coverage mapping
59
38
  - 🚫 FORBIDDEN to load next step until user approves epics_list
60
39
 
@@ -62,7 +41,7 @@ To design and get approval for the epics_list that will organize all requirement
62
41
 
63
42
  ### 1. Review Extracted Requirements
64
43
 
65
- Load {outputFile} and review:
44
+ Load {planning_artifacts}/epics.md and review:
66
45
 
67
46
  - **Functional Requirements:** Count and review FRs from Step 1
68
47
  - **Non-Functional Requirements:** Review NFRs that need to be addressed
@@ -182,7 +161,7 @@ If user wants changes:
182
161
 
183
162
  ## CONTENT TO UPDATE IN DOCUMENT:
184
163
 
185
- After approval, update {outputFile}:
164
+ After approval, update {planning_artifacts}/epics.md:
186
165
 
187
166
  1. Replace {{epics_list}} placeholder with the approved epic list
188
167
  2. Replace {{requirements_coverage_map}} with the coverage map
@@ -194,9 +173,9 @@ Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Cont
194
173
 
195
174
  #### Menu Handling Logic:
196
175
 
197
- - IF A: Read fully and follow: {advancedElicitationTask}
198
- - IF P: Read fully and follow: {partyModeWorkflow}
199
- - IF C: Save approved epics_list to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile}
176
+ - IF A: Invoke the `bmad-advanced-elicitation` skill
177
+ - IF P: Invoke the `bmad-party-mode` skill
178
+ - IF C: Save approved epics_list to {planning_artifacts}/epics.md, update frontmatter, then read fully and follow: ./step-03-create-stories.md
200
179
  - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#8-present-menu-options)
201
180
 
202
181
  #### EXECUTION RULES:
@@ -208,7 +187,7 @@ Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Cont
208
187
 
209
188
  ## CRITICAL STEP COMPLETION NOTE
210
189
 
211
- ONLY WHEN C is selected and the approved epics_list is saved to document, will you then read fully and follow: {nextStepFile} to begin story creation step.
190
+ ONLY WHEN C is selected and the approved epics_list is saved to document, will you then read fully and follow: ./step-03-create-stories.md to begin story creation step.
212
191
 
213
192
  ---
214
193
 
@@ -1,24 +1,3 @@
1
- ---
2
- name: 'step-03-create-stories'
3
- description: 'Generate all epics with their stories following the template structure'
4
-
5
- # Path Definitions
6
- workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
7
-
8
- # File References
9
- thisStepFile: './step-03-create-stories.md'
10
- nextStepFile: './step-04-final-validation.md'
11
- workflowFile: '{workflow_path}/workflow.md'
12
- outputFile: '{planning_artifacts}/epics.md'
13
-
14
- # Task References
15
- advancedElicitationTask: 'skill:bmad-advanced-elicitation'
16
- partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md'
17
-
18
- # Template References
19
- epicsTemplate: '{workflow_path}/templates/epics-template.md'
20
- ---
21
-
22
1
  # Step 3: Generate Epics and Stories
23
2
 
24
3
  ## STEP GOAL:
@@ -54,7 +33,7 @@ To generate all epics with their stories based on the approved epics_list, follo
54
33
  ## EXECUTION PROTOCOLS:
55
34
 
56
35
  - 🎯 Generate stories collaboratively with user input
57
- - 💾 Append epics and stories to {outputFile} following template
36
+ - 💾 Append epics and stories to {planning_artifacts}/epics.md following template
58
37
  - 📖 Process epics one at a time in sequence
59
38
  - 🚫 FORBIDDEN to skip any epic or rush through stories
60
39
 
@@ -62,7 +41,7 @@ To generate all epics with their stories based on the approved epics_list, follo
62
41
 
63
42
  ### 1. Load Approved Epic Structure
64
43
 
65
- Load {outputFile} and review:
44
+ Load {planning_artifacts}/epics.md and review:
66
45
 
67
46
  - Approved epics_list from Step 2
68
47
  - FR coverage map
@@ -186,7 +165,7 @@ After writing each story:
186
165
 
187
166
  When story is approved:
188
167
 
189
- - Append it to {outputFile} following template structure
168
+ - Append it to {planning_artifacts}/epics.md following template structure
190
169
  - Use correct numbering (Epic N, Story M)
191
170
  - Maintain proper markdown formatting
192
171
 
@@ -215,7 +194,7 @@ After all epics and stories are generated:
215
194
 
216
195
  ## TEMPLATE STRUCTURE COMPLIANCE:
217
196
 
218
- The final {outputFile} must follow this structure exactly:
197
+ The final {planning_artifacts}/epics.md must follow this structure exactly:
219
198
 
220
199
  1. **Overview** section with project name
221
200
  2. **Requirements Inventory** with all three subsections populated
@@ -235,9 +214,9 @@ Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Cont
235
214
 
236
215
  #### Menu Handling Logic:
237
216
 
238
- - IF A: Read fully and follow: {advancedElicitationTask}
239
- - IF P: Read fully and follow: {partyModeWorkflow}
240
- - IF C: Save content to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile}
217
+ - IF A: Invoke the `bmad-advanced-elicitation` skill
218
+ - IF P: Invoke the `bmad-party-mode` skill
219
+ - IF C: Save content to {planning_artifacts}/epics.md, update frontmatter, then read fully and follow: ./step-04-final-validation.md
241
220
  - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-final-menu-options)
242
221
 
243
222
  #### EXECUTION RULES:
@@ -249,7 +228,7 @@ Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Cont
249
228
 
250
229
  ## CRITICAL STEP COMPLETION NOTE
251
230
 
252
- ONLY WHEN [C continue option] is selected and [all epics and stories saved to document following the template structure exactly], will you then read fully and follow: `{nextStepFile}` to begin final validation phase.
231
+ ONLY WHEN [C continue option] is selected and [all epics and stories saved to document following the template structure exactly], will you then read fully and follow: `./step-04-final-validation.md` to begin final validation phase.
253
232
 
254
233
  ---
255
234
 
@@ -1,23 +1,3 @@
1
- ---
2
- name: 'step-04-final-validation'
3
- description: 'Validate complete coverage of all requirements and ensure implementation readiness'
4
-
5
- # Path Definitions
6
- workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
7
-
8
- # File References
9
- thisStepFile: './step-04-final-validation.md'
10
- workflowFile: '{workflow_path}/workflow.md'
11
- outputFile: '{planning_artifacts}/epics.md'
12
-
13
- # Task References
14
- advancedElicitationTask: 'skill:bmad-advanced-elicitation'
15
- partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md'
16
-
17
- # Template References
18
- epicsTemplate: '{workflow_path}/templates/epics-template.md'
19
- ---
20
-
21
1
  # Step 4: Final Validation
22
2
 
23
3
  ## STEP GOAL:
@@ -142,6 +122,8 @@ If all validations pass:
142
122
  **Present Final Menu:**
143
123
  **All validations complete!** [C] Complete Workflow
144
124
 
125
+ HALT — wait for user input before proceeding.
126
+
145
127
  When C is selected, the workflow is complete and the epics.md is ready for development.
146
128
 
147
129
  Epics and Stories complete. Invoke the `bmad-help` skill.
@@ -1,8 +1,3 @@
1
- ---
2
- name: create-epics-and-stories
3
- description: 'Break requirements into epics and user stories. Use when the user says "create the epics and stories list"'
4
- ---
5
-
6
1
  # Create Epics and Stories
7
2
 
8
3
  **Goal:** Transform PRD requirements and Architecture decisions into comprehensive stories organized by user value, creating detailed, actionable stories with complete acceptance criteria for development teams.
@@ -55,4 +50,4 @@ Load and read full config from {project-root}/_bmad/bmm/config.yaml and resolve:
55
50
 
56
51
  ### 2. First Step EXECUTION
57
52
 
58
- Read fully and follow: `{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md` to begin the workflow.
53
+ Read fully and follow: `./steps/step-01-validate-prerequisites.md` to begin the workflow.
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: bmad-code-review
3
+ description: 'Review code changes adversarially using parallel review layers (Blind Hunter, Edge Case Hunter, Acceptance Auditor) with structured triage into actionable categories. Use when the user says "run code review" or "review this code"'
4
+ ---
5
+
6
+ Follow the instructions in ./workflow.md.
@@ -0,0 +1,61 @@
1
+ ---
2
+ diff_output: '' # set at runtime
3
+ spec_file: '' # set at runtime (path or empty)
4
+ review_mode: '' # set at runtime: "full" or "no-spec"
5
+ ---
6
+
7
+ # Step 1: Gather Context
8
+
9
+ ## RULES
10
+
11
+ - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
12
+ - The prompt that triggered this workflow IS the intent — not a hint.
13
+ - Do not modify any files. This step is read-only.
14
+
15
+ ## INSTRUCTIONS
16
+
17
+ 1. **Detect review intent from invocation text.** Check the triggering prompt for phrases that map to a review mode:
18
+ - "staged" / "staged changes" → Staged changes only
19
+ - "uncommitted" / "working tree" / "all changes" → Uncommitted changes (staged + unstaged)
20
+ - "branch diff" / "vs main" / "against main" / "compared to {branch}" → Branch diff (extract base branch if mentioned)
21
+ - "commit range" / "last N commits" / "{sha}..{sha}" → Specific commit range
22
+ - "this diff" / "provided diff" / "paste" → User-provided diff (do not match bare "diff" — it appears in other modes)
23
+ - When multiple phrases match, prefer the most specific match (e.g., "branch diff" over bare "diff").
24
+ - **If a clear match is found:** Announce the detected mode (e.g., "Detected intent: review staged changes only") and proceed directly to constructing `{diff_output}` using the corresponding sub-case from instruction 3. Skip to instruction 4 (spec question).
25
+ - **If no match from invocation text, check sprint tracking.** Look for a sprint status file (`*sprint-status*`) in `{implementation_artifacts}` or `{planning_artifacts}`. If found, scan for any story with status `review`. Handle as follows:
26
+ - **Exactly one `review` story:** Suggest it: "I found story {{story-id}} in `review` status. Would you like to review its changes? [Y] Yes / [N] No, let me choose". If confirmed, use the story context to determine the diff source (branch name derived from story slug, or uncommitted changes). If declined, fall through to instruction 2.
27
+ - **Multiple `review` stories:** Present them as numbered options alongside a manual choice option. Wait for user selection. Then use the selected story's context to determine the diff source as in the single-story case above, and proceed to instruction 3.
28
+ - **If no match and no sprint tracking:** Fall through to instruction 2.
29
+
30
+ 2. HALT. Ask the user: **What do you want to review?** Present these options:
31
+ - **Uncommitted changes** (staged + unstaged)
32
+ - **Staged changes only**
33
+ - **Branch diff** vs a base branch (ask which base branch)
34
+ - **Specific commit range** (ask for the range)
35
+ - **Provided diff or file list** (user pastes or provides a path)
36
+
37
+ 3. Construct `{diff_output}` from the chosen source.
38
+ - For **branch diff**: verify the base branch exists before running `git diff`. If it does not exist, HALT and ask the user for a valid branch.
39
+ - For **commit range**: verify the range resolves. If it does not, HALT and ask the user for a valid range.
40
+ - For **provided diff**: validate the content is non-empty and parseable as a unified diff. If it is not parseable, HALT and ask the user to provide a valid diff.
41
+ - For **file list**: validate each path exists in the working tree. Construct `{diff_output}` by running `git diff HEAD -- <path1> <path2> ...`. If any paths are untracked (new files not yet staged), use `git diff --no-index /dev/null <path>` to include them. If the diff is empty (files have no uncommitted changes and are not untracked), ask the user whether to review the full file contents or to specify a different baseline.
42
+ - After constructing `{diff_output}`, verify it is non-empty regardless of source type. If empty, HALT and tell the user there is nothing to review.
43
+
44
+ 4. Ask the user: **Is there a spec or story file that provides context for these changes?**
45
+ - If yes: set `{spec_file}` to the path provided, verify the file exists and is readable, then set `{review_mode}` = `"full"`.
46
+ - If no: set `{review_mode}` = `"no-spec"`.
47
+
48
+ 5. If `{review_mode}` = `"full"` and the file at `{spec_file}` has a `context` field in its frontmatter listing additional docs, load each referenced document. Warn the user about any docs that cannot be found.
49
+
50
+ 6. Sanity check: if `{diff_output}` exceeds approximately 3000 lines, warn the user and offer to chunk the review by file group.
51
+ - If the user opts to chunk: agree on the first group, narrow `{diff_output}` accordingly, and list the remaining groups for the user to note for follow-up runs.
52
+ - If the user declines: proceed as-is with the full diff.
53
+
54
+ ### CHECKPOINT
55
+
56
+ Present a summary before proceeding: diff stats (files changed, lines added/removed), `{review_mode}`, and loaded spec/context docs (if any). HALT and wait for user confirmation to proceed.
57
+
58
+
59
+ ## NEXT
60
+
61
+ Read fully and follow `./step-02-review.md`
@@ -0,0 +1,41 @@
1
+ ---
2
+ failed_layers: '' # set at runtime: comma-separated list of layers that failed or returned empty
3
+ ---
4
+
5
+ # Step 2: Review
6
+
7
+ ## RULES
8
+
9
+ - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
10
+ - The Blind Hunter subagent receives NO project context — diff only.
11
+ - The Edge Case Hunter subagent receives diff and project read access.
12
+ - The Acceptance Auditor subagent receives diff, spec, and context docs.
13
+
14
+ ## INSTRUCTIONS
15
+
16
+ 1. Launch parallel subagents. Each subagent gets NO conversation history from this session:
17
+
18
+ - **Blind Hunter** -- Invoke the `bmad-review-adversarial-general` skill in a subagent. Pass `content` = `{diff_output}` only. No spec, no project access.
19
+
20
+ - **Edge Case Hunter** -- Invoke the `bmad-review-edge-case-hunter` skill in a subagent. Pass `content` = `{diff_output}`. This subagent has read access to the project.
21
+
22
+ - **Acceptance Auditor** (only if `{review_mode}` = `"full"`) -- A subagent that receives `{diff_output}`, the content of the file at `{spec_file}`, and any loaded context docs. Its prompt:
23
+ > You are an Acceptance Auditor. Review this diff against the spec and context docs. Check for: violations of acceptance criteria, deviations from spec intent, missing implementation of specified behavior, contradictions between spec constraints and actual code. Output findings as a markdown list. Each finding: one-line title, which AC/constraint it violates, and evidence from the diff.
24
+
25
+ 2. **Subagent failure handling**: If any subagent fails, times out, or returns empty results, append the layer name to `{failed_layers}` (comma-separated) and proceed with findings from the remaining layers.
26
+
27
+ 3. If `{review_mode}` = `"no-spec"`, note to the user: "Acceptance Auditor skipped — no spec file provided."
28
+
29
+ 4. **Fallback** (if subagents are not available): Generate prompt files in `{implementation_artifacts}` -- one per active reviewer:
30
+ - `review-blind-hunter.md` (always)
31
+ - `review-edge-case-hunter.md` (always)
32
+ - `review-acceptance-auditor.md` (only if `{review_mode}` = `"full"`)
33
+
34
+ HALT. Tell the user to run each prompt in a separate session and paste back findings. When findings are pasted, resume from this point and proceed to step 3.
35
+
36
+ 5. Collect all findings from the completed layers.
37
+
38
+
39
+ ## NEXT
40
+
41
+ Read fully and follow `./step-03-triage.md`
@@ -0,0 +1,50 @@
1
+ ---
2
+ ---
3
+
4
+ # Step 3: Triage
5
+
6
+ ## RULES
7
+
8
+ - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
9
+ - Be precise. When uncertain between categories, prefer the more conservative classification.
10
+
11
+ ## INSTRUCTIONS
12
+
13
+ 1. **Normalize** findings into a common format. Expected input formats:
14
+ - Adversarial (Blind Hunter): markdown list of descriptions
15
+ - Edge Case Hunter: JSON array with `location`, `trigger_condition`, `guard_snippet`, `potential_consequence` fields
16
+ - Acceptance Auditor: markdown list with title, AC/constraint reference, and evidence
17
+
18
+ If a layer's output does not match its expected format, attempt best-effort parsing. Note any parsing issues for the user.
19
+
20
+ Convert all to a unified list where each finding has:
21
+ - `id` -- sequential integer
22
+ - `source` -- `blind`, `edge`, `auditor`, or merged sources (e.g., `blind+edge`)
23
+ - `title` -- one-line summary
24
+ - `detail` -- full description
25
+ - `location` -- file and line reference (if available)
26
+
27
+ 2. **Deduplicate.** If two or more findings describe the same issue, merge them into one:
28
+ - Use the most specific finding as the base (prefer edge-case JSON with location over adversarial prose).
29
+ - Append any unique detail, reasoning, or location references from the other finding(s) into the surviving `detail` field.
30
+ - Set `source` to the merged sources (e.g., `blind+edge`).
31
+
32
+ 3. **Classify** each finding into exactly one bucket:
33
+ - **intent_gap** -- The spec/intent is incomplete; cannot resolve from existing information. Only possible if `{review_mode}` = `"full"`.
34
+ - **bad_spec** -- The spec should have prevented this; spec is wrong or ambiguous. Only possible if `{review_mode}` = `"full"`.
35
+ - **patch** -- Code issue that is trivially fixable without human input. Just needs a code change.
36
+ - **defer** -- Pre-existing issue not caused by the current change. Real but not actionable now.
37
+ - **reject** -- Noise, false positive, or handled elsewhere.
38
+
39
+ If `{review_mode}` = `"no-spec"` and a finding would otherwise be `intent_gap` or `bad_spec`, reclassify it as `patch` (if code-fixable) or `defer` (if not).
40
+
41
+ 4. **Drop** all `reject` findings. Record the reject count for the summary.
42
+
43
+ 5. If `{failed_layers}` is non-empty, report which layers failed before announcing results. If zero findings remain after dropping rejects AND `{failed_layers}` is non-empty, warn the user that the review may be incomplete rather than announcing a clean review.
44
+
45
+ 6. If zero findings remain after dropping rejects and no layers failed, note clean review.
46
+
47
+
48
+ ## NEXT
49
+
50
+ Read fully and follow `./step-04-present.md`
@@ -0,0 +1,38 @@
1
+ ---
2
+ ---
3
+
4
+ # Step 4: Present
5
+
6
+ ## RULES
7
+
8
+ - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
9
+ - Do NOT auto-fix anything. Present findings and let the user decide next steps.
10
+
11
+ ## INSTRUCTIONS
12
+
13
+ 1. Group remaining findings by category.
14
+
15
+ 2. Present to the user in this order (include a section only if findings exist in that category):
16
+
17
+ - **Intent Gaps**: "These findings suggest the captured intent is incomplete. Consider clarifying intent before proceeding."
18
+ - List each with title + detail.
19
+
20
+ - **Bad Spec**: "These findings suggest the spec should be amended. Consider regenerating or amending the spec with this context:"
21
+ - List each with title + detail + suggested spec amendment.
22
+
23
+ - **Patch**: "These are fixable code issues:"
24
+ - List each with title + detail + location (if available).
25
+
26
+ - **Defer**: "Pre-existing issues surfaced by this review (not caused by current changes):"
27
+ - List each with title + detail.
28
+
29
+ 3. Summary line: **X** intent_gap, **Y** bad_spec, **Z** patch, **W** defer findings. **R** findings rejected as noise.
30
+
31
+ 4. If clean review (zero findings across all layers after triage): state that N findings were raised but all were classified as noise, or that no findings were raised at all (as applicable).
32
+
33
+ 5. Offer the user next steps (recommendations, not automated actions):
34
+ - If `patch` findings exist: "These can be addressed in a follow-up implementation pass or manually."
35
+ - If `intent_gap` or `bad_spec` findings exist: "Consider running the planning workflow to clarify intent or amend the spec before continuing."
36
+ - If only `defer` findings remain: "No action needed for this change. Deferred items are noted for future attention."
37
+
38
+ Workflow complete.
@@ -0,0 +1,54 @@
1
+ ---
2
+ main_config: '{project-root}/_bmad/bmm/config.yaml'
3
+ ---
4
+
5
+ # Code Review Workflow
6
+
7
+ **Goal:** Review code changes adversarially using parallel review layers and structured triage.
8
+
9
+ **Your Role:** You are an elite code reviewer. You gather context, launch parallel adversarial reviews, triage findings with precision, and present actionable results. No noise, no filler.
10
+
11
+
12
+ ## WORKFLOW ARCHITECTURE
13
+
14
+ This uses **step-file architecture** for disciplined execution:
15
+
16
+ - **Micro-file Design**: Each step is self-contained and followed exactly
17
+ - **Just-In-Time Loading**: Only load the current step file
18
+ - **Sequential Enforcement**: Complete steps in order, no skipping
19
+ - **State Tracking**: Persist progress via in-memory variables
20
+ - **Append-Only Building**: Build artifacts incrementally
21
+
22
+ ### Step Processing Rules
23
+
24
+ 1. **READ COMPLETELY**: Read the entire step file before acting
25
+ 2. **FOLLOW SEQUENCE**: Execute sections in order
26
+ 3. **WAIT FOR INPUT**: Halt at checkpoints and wait for human
27
+ 4. **LOAD NEXT**: When directed, read fully and follow the next step file
28
+
29
+ ### Critical Rules (NO EXCEPTIONS)
30
+
31
+ - **NEVER** load multiple step files simultaneously
32
+ - **ALWAYS** read entire step file before execution
33
+ - **NEVER** skip steps or optimize the sequence
34
+ - **ALWAYS** follow the exact instructions in the step file
35
+ - **ALWAYS** halt at checkpoints and wait for human input
36
+
37
+
38
+ ## INITIALIZATION SEQUENCE
39
+
40
+ ### 1. Configuration Loading
41
+
42
+ Load and read full config from `{main_config}` and resolve:
43
+
44
+ - `project_name`, `planning_artifacts`, `implementation_artifacts`, `user_name`
45
+ - `communication_language`, `document_output_language`, `user_skill_level`
46
+ - `date` as system-generated current datetime
47
+ - `project_context` = `**/project-context.md` (load if exists)
48
+ - CLAUDE.md / memory files (load if exist)
49
+
50
+ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`.
51
+
52
+ ### 2. First Step Execution
53
+
54
+ Read fully and follow: `./steps/step-01-gather-context.md` to begin the workflow.