bmad-method 4.37.0 → 4.39.1

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 (251) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +3 -3
  2. package/.github/ISSUE_TEMPLATE/feature_request.md +3 -3
  3. package/.github/workflows/discord.yaml +11 -2
  4. package/.github/workflows/format-check.yaml +42 -0
  5. package/.github/workflows/manual-release.yaml +173 -0
  6. package/.husky/pre-commit +3 -0
  7. package/.vscode/settings.json +26 -1
  8. package/CHANGELOG.md +2 -23
  9. package/README.md +2 -0
  10. package/bmad-core/agent-teams/team-all.yaml +1 -1
  11. package/bmad-core/agents/analyst.md +16 -15
  12. package/bmad-core/agents/architect.md +11 -11
  13. package/bmad-core/agents/bmad-master.md +23 -22
  14. package/bmad-core/agents/bmad-orchestrator.md +13 -17
  15. package/bmad-core/agents/dev.md +14 -11
  16. package/bmad-core/agents/pm.md +15 -14
  17. package/bmad-core/agents/po.md +9 -8
  18. package/bmad-core/agents/qa.md +42 -22
  19. package/bmad-core/agents/sm.md +7 -6
  20. package/bmad-core/agents/ux-expert.md +6 -5
  21. package/bmad-core/core-config.yaml +2 -0
  22. package/bmad-core/data/bmad-kb.md +1 -1
  23. package/bmad-core/data/test-levels-framework.md +146 -0
  24. package/bmad-core/data/test-priorities-matrix.md +172 -0
  25. package/bmad-core/tasks/apply-qa-fixes.md +148 -0
  26. package/bmad-core/tasks/facilitate-brainstorming-session.md +1 -1
  27. package/bmad-core/tasks/nfr-assess.md +343 -0
  28. package/bmad-core/tasks/qa-gate.md +161 -0
  29. package/bmad-core/tasks/review-story.md +234 -74
  30. package/bmad-core/tasks/risk-profile.md +353 -0
  31. package/bmad-core/tasks/test-design.md +174 -0
  32. package/bmad-core/tasks/trace-requirements.md +264 -0
  33. package/bmad-core/templates/architecture-tmpl.yaml +49 -49
  34. package/bmad-core/templates/brainstorming-output-tmpl.yaml +5 -5
  35. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +31 -31
  36. package/bmad-core/templates/brownfield-prd-tmpl.yaml +13 -13
  37. package/bmad-core/templates/competitor-analysis-tmpl.yaml +19 -6
  38. package/bmad-core/templates/front-end-architecture-tmpl.yaml +21 -9
  39. package/bmad-core/templates/front-end-spec-tmpl.yaml +24 -24
  40. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +122 -104
  41. package/bmad-core/templates/market-research-tmpl.yaml +2 -2
  42. package/bmad-core/templates/prd-tmpl.yaml +9 -9
  43. package/bmad-core/templates/project-brief-tmpl.yaml +4 -4
  44. package/bmad-core/templates/qa-gate-tmpl.yaml +102 -0
  45. package/bmad-core/templates/story-tmpl.yaml +12 -12
  46. package/bmad-core/workflows/brownfield-fullstack.yaml +9 -9
  47. package/bmad-core/workflows/brownfield-service.yaml +1 -1
  48. package/bmad-core/workflows/brownfield-ui.yaml +1 -1
  49. package/bmad-core/workflows/greenfield-fullstack.yaml +1 -1
  50. package/bmad-core/workflows/greenfield-service.yaml +1 -1
  51. package/bmad-core/workflows/greenfield-ui.yaml +1 -1
  52. package/common/utils/bmad-doc-template.md +5 -5
  53. package/dist/agents/analyst.txt +1086 -1079
  54. package/dist/agents/architect.txt +1534 -1526
  55. package/dist/agents/bmad-master.txt +646 -632
  56. package/dist/agents/bmad-orchestrator.txt +40 -18
  57. package/dist/agents/dev.txt +158 -19
  58. package/dist/agents/pm.txt +1082 -1107
  59. package/dist/agents/po.txt +314 -332
  60. package/dist/agents/qa.txt +1754 -151
  61. package/dist/agents/sm.txt +88 -98
  62. package/dist/agents/ux-expert.txt +80 -87
  63. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +109 -146
  64. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +75 -86
  65. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +41 -48
  66. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +1903 -1941
  67. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +15 -50
  68. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +149 -195
  69. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +0 -15
  70. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +20 -37
  71. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +2660 -2752
  72. package/dist/expansion-packs/bmad-creative-writing/agents/beta-reader.txt +871 -0
  73. package/dist/expansion-packs/bmad-creative-writing/agents/book-critic.txt +78 -0
  74. package/dist/expansion-packs/bmad-creative-writing/agents/character-psychologist.txt +839 -0
  75. package/dist/expansion-packs/bmad-creative-writing/agents/cover-designer.txt +85 -0
  76. package/dist/expansion-packs/bmad-creative-writing/agents/dialog-specialist.txt +861 -0
  77. package/dist/expansion-packs/bmad-creative-writing/agents/editor.txt +796 -0
  78. package/dist/expansion-packs/bmad-creative-writing/agents/genre-specialist.txt +927 -0
  79. package/dist/expansion-packs/bmad-creative-writing/agents/narrative-designer.txt +842 -0
  80. package/dist/expansion-packs/bmad-creative-writing/agents/plot-architect.txt +1126 -0
  81. package/dist/expansion-packs/bmad-creative-writing/agents/world-builder.txt +864 -0
  82. package/dist/expansion-packs/bmad-creative-writing/teams/agent-team.txt +5917 -0
  83. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +25 -27
  84. package/dist/teams/team-all.txt +5541 -3768
  85. package/dist/teams/team-fullstack.txt +3014 -2987
  86. package/dist/teams/team-ide-minimal.txt +2219 -469
  87. package/dist/teams/team-no-ui.txt +2993 -2966
  88. package/docs/enhanced-ide-development-workflow.md +220 -15
  89. package/docs/user-guide.md +271 -18
  90. package/docs/versioning-and-releases.md +122 -44
  91. package/docs/working-in-the-brownfield.md +264 -31
  92. package/eslint.config.mjs +119 -0
  93. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +4 -4
  94. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +1 -1
  95. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  96. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +26 -28
  97. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +50 -50
  98. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +23 -23
  99. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +24 -24
  100. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +42 -42
  101. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +65 -65
  102. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +5 -5
  103. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +1 -1
  104. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +3 -3
  105. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +1 -1
  106. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +1 -1
  107. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +23 -23
  108. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +63 -63
  109. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +20 -20
  110. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +65 -65
  111. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +5 -5
  112. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +1 -1
  113. package/expansion-packs/bmad-creative-writing/README.md +132 -0
  114. package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +19 -0
  115. package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +91 -0
  116. package/expansion-packs/bmad-creative-writing/agents/book-critic.md +35 -0
  117. package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +90 -0
  118. package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +41 -0
  119. package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +89 -0
  120. package/expansion-packs/bmad-creative-writing/agents/editor.md +90 -0
  121. package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +92 -0
  122. package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +90 -0
  123. package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +92 -0
  124. package/expansion-packs/bmad-creative-writing/agents/world-builder.md +91 -0
  125. package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +16 -0
  126. package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +16 -0
  127. package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +16 -0
  128. package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +16 -0
  129. package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +15 -0
  130. package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +16 -0
  131. package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +16 -0
  132. package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +15 -0
  133. package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +15 -0
  134. package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +16 -0
  135. package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +16 -0
  136. package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +18 -0
  137. package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +16 -0
  138. package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +16 -0
  139. package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +16 -0
  140. package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +16 -0
  141. package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +49 -0
  142. package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +16 -0
  143. package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +16 -0
  144. package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +16 -0
  145. package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +15 -0
  146. package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +16 -0
  147. package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +16 -0
  148. package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +16 -0
  149. package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +16 -0
  150. package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +16 -0
  151. package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +16 -0
  152. package/expansion-packs/bmad-creative-writing/config.yaml +11 -0
  153. package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +197 -0
  154. package/expansion-packs/bmad-creative-writing/data/story-structures.md +58 -0
  155. package/expansion-packs/bmad-creative-writing/docs/brief.md +183 -0
  156. package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +117 -0
  157. package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +16 -0
  158. package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +55 -0
  159. package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +22 -0
  160. package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +16 -0
  161. package/expansion-packs/bmad-creative-writing/tasks/build-world.md +17 -0
  162. package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +15 -0
  163. package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +101 -0
  164. package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +19 -0
  165. package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +19 -0
  166. package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +17 -0
  167. package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +93 -0
  168. package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +16 -0
  169. package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +16 -0
  170. package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +16 -0
  171. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +18 -0
  172. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +19 -0
  173. package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +16 -0
  174. package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +18 -0
  175. package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +16 -0
  176. package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +17 -0
  177. package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +16 -0
  178. package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +15 -0
  179. package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +16 -0
  180. package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +51 -0
  181. package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +96 -0
  182. package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +81 -0
  183. package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
  184. package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +97 -0
  185. package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +77 -0
  186. package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +54 -0
  187. package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
  188. package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +88 -0
  189. package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +176 -0
  190. package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +58 -0
  191. package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +51 -0
  192. package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
  193. package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +92 -0
  194. package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +86 -0
  195. package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +79 -0
  196. package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +65 -0
  197. package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  198. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +20 -20
  199. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +7 -7
  200. package/package.json +62 -39
  201. package/prettier.config.mjs +32 -0
  202. package/sync-version.sh +23 -0
  203. package/tools/bmad-npx-wrapper.js +10 -10
  204. package/tools/builders/web-builder.js +124 -130
  205. package/tools/bump-all-versions.js +42 -33
  206. package/tools/bump-expansion-version.js +23 -16
  207. package/tools/cli.js +10 -12
  208. package/tools/flattener/aggregate.js +10 -10
  209. package/tools/flattener/binary.js +44 -17
  210. package/tools/flattener/discovery.js +19 -18
  211. package/tools/flattener/files.js +6 -6
  212. package/tools/flattener/ignoreRules.js +125 -125
  213. package/tools/flattener/main.js +426 -70
  214. package/tools/flattener/projectRoot.js +186 -25
  215. package/tools/flattener/prompts.js +9 -9
  216. package/tools/flattener/stats.helpers.js +395 -0
  217. package/tools/flattener/stats.js +64 -14
  218. package/tools/flattener/test-matrix.js +413 -0
  219. package/tools/flattener/xml.js +33 -31
  220. package/tools/installer/bin/bmad.js +156 -113
  221. package/tools/installer/config/ide-agent-config.yaml +1 -1
  222. package/tools/installer/config/install.config.yaml +13 -3
  223. package/tools/installer/lib/config-loader.js +46 -42
  224. package/tools/installer/lib/file-manager.js +91 -113
  225. package/tools/installer/lib/ide-base-setup.js +57 -56
  226. package/tools/installer/lib/ide-setup.js +545 -399
  227. package/tools/installer/lib/installer.js +875 -714
  228. package/tools/installer/lib/memory-profiler.js +54 -53
  229. package/tools/installer/lib/module-manager.js +19 -15
  230. package/tools/installer/lib/resource-locator.js +26 -28
  231. package/tools/installer/package.json +19 -19
  232. package/tools/lib/dependency-resolver.js +26 -30
  233. package/tools/lib/yaml-utils.js +7 -7
  234. package/tools/preview-release-notes.js +66 -0
  235. package/tools/shared/bannerArt.js +3 -3
  236. package/tools/sync-installer-version.js +7 -9
  237. package/tools/update-expansion-version.js +14 -15
  238. package/tools/upgraders/v3-to-v4-upgrader.js +203 -294
  239. package/tools/version-bump.js +41 -26
  240. package/tools/yaml-format.js +56 -43
  241. package/.github/workflows/release.yaml +0 -60
  242. package/.releaserc.json +0 -21
  243. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/Complete AI Agent System - Flowchart.svg +0 -102
  244. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash copy.txt +0 -13
  245. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash.txt +0 -13
  246. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.2 Agent Development Kit Installation/1.2.2 - Basic Project Structure - txt.txt +0 -25
  247. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.1 - settings.py +0 -34
  248. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.2 - main.py - Base Application.py +0 -70
  249. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.4 Deployment Configuration/1.4.2 - cloudbuild.yaml +0 -26
  250. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/README.md +0 -109
  251. package/tools/semantic-release-sync-installer.js +0 -30
@@ -72,412 +72,612 @@ persona:
72
72
  - Strategic thinking & outcome-oriented
73
73
  commands:
74
74
  - help: Show numbered list of the following commands to allow selection
75
- - create-prd: run task create-doc.md with template prd-tmpl.yaml
76
- - create-brownfield-prd: run task create-doc.md with template brownfield-prd-tmpl.yaml
75
+ - correct-course: execute the correct-course task
77
76
  - create-brownfield-epic: run task brownfield-create-epic.md
77
+ - create-brownfield-prd: run task create-doc.md with template brownfield-prd-tmpl.yaml
78
78
  - create-brownfield-story: run task brownfield-create-story.md
79
79
  - create-epic: Create epic for brownfield projects (task brownfield-create-epic)
80
+ - create-prd: run task create-doc.md with template prd-tmpl.yaml
80
81
  - create-story: Create user story from requirements (task brownfield-create-story)
81
82
  - doc-out: Output full document to current destination file
82
83
  - shard-prd: run the task shard-doc.md for the provided prd.md (ask if not found)
83
- - correct-course: execute the correct-course task
84
84
  - yolo: Toggle Yolo Mode
85
85
  - exit: Exit (confirm)
86
86
  dependencies:
87
+ checklists:
88
+ - change-checklist.md
89
+ - pm-checklist.md
90
+ data:
91
+ - technical-preferences.md
87
92
  tasks:
88
- - create-doc.md
89
- - correct-course.md
90
- - create-deep-research-prompt.md
91
93
  - brownfield-create-epic.md
92
94
  - brownfield-create-story.md
95
+ - correct-course.md
96
+ - create-deep-research-prompt.md
97
+ - create-doc.md
93
98
  - execute-checklist.md
94
99
  - shard-doc.md
95
100
  templates:
96
- - prd-tmpl.yaml
97
101
  - brownfield-prd-tmpl.yaml
98
- checklists:
99
- - pm-checklist.md
100
- - change-checklist.md
101
- data:
102
- - technical-preferences.md
102
+ - prd-tmpl.yaml
103
103
  ```
104
104
  ==================== END: .bmad-core/agents/pm.md ====================
105
105
 
106
- ==================== START: .bmad-core/tasks/create-doc.md ====================
107
- # Create Document from Template (YAML Driven)
108
-
109
- ## ⚠️ CRITICAL EXECUTION NOTICE ⚠️
106
+ ==================== START: .bmad-core/tasks/brownfield-create-epic.md ====================
107
+ # Create Brownfield Epic Task
110
108
 
111
- **THIS IS AN EXECUTABLE WORKFLOW - NOT REFERENCE MATERIAL**
109
+ ## Purpose
112
110
 
113
- When this task is invoked:
111
+ Create a single epic for smaller brownfield enhancements that don't require the full PRD and Architecture documentation process. This task is for isolated features or modifications that can be completed within a focused scope.
114
112
 
115
- 1. **DISABLE ALL EFFICIENCY OPTIMIZATIONS** - This workflow requires full user interaction
116
- 2. **MANDATORY STEP-BY-STEP EXECUTION** - Each section must be processed sequentially with user feedback
117
- 3. **ELICITATION IS REQUIRED** - When `elicit: true`, you MUST use the 1-9 format and wait for user response
118
- 4. **NO SHORTCUTS ALLOWED** - Complete documents cannot be created without following this workflow
113
+ ## When to Use This Task
119
114
 
120
- **VIOLATION INDICATOR:** If you create a complete document without user interaction, you have violated this workflow.
115
+ **Use this task when:**
121
116
 
122
- ## Critical: Template Discovery
117
+ - The enhancement can be completed in 1-3 stories
118
+ - No significant architectural changes are required
119
+ - The enhancement follows existing project patterns
120
+ - Integration complexity is minimal
121
+ - Risk to existing system is low
123
122
 
124
- If a YAML Template has not been provided, list all templates from .bmad-core/templates or ask the user to provide another.
123
+ **Use the full brownfield PRD/Architecture process when:**
125
124
 
126
- ## CRITICAL: Mandatory Elicitation Format
125
+ - The enhancement requires multiple coordinated stories
126
+ - Architectural planning is needed
127
+ - Significant integration work is required
128
+ - Risk assessment and mitigation planning is necessary
127
129
 
128
- **When `elicit: true`, this is a HARD STOP requiring user interaction:**
130
+ ## Instructions
129
131
 
130
- **YOU MUST:**
132
+ ### 1. Project Analysis (Required)
131
133
 
132
- 1. Present section content
133
- 2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
134
- 3. **STOP and present numbered options 1-9:**
135
- - **Option 1:** Always "Proceed to next section"
136
- - **Options 2-9:** Select 8 methods from data/elicitation-methods
137
- - End with: "Select 1-9 or just type your question/feedback:"
138
- 4. **WAIT FOR USER RESPONSE** - Do not proceed until user selects option or provides feedback
134
+ Before creating the epic, gather essential information about the existing project:
139
135
 
140
- **WORKFLOW VIOLATION:** Creating content for elicit=true sections without user interaction violates this task.
136
+ **Existing Project Context:**
141
137
 
142
- **NEVER ask yes/no questions or use any other format.**
138
+ - [ ] Project purpose and current functionality understood
139
+ - [ ] Existing technology stack identified
140
+ - [ ] Current architecture patterns noted
141
+ - [ ] Integration points with existing system identified
143
142
 
144
- ## Processing Flow
143
+ **Enhancement Scope:**
145
144
 
146
- 1. **Parse YAML template** - Load template metadata and sections
147
- 2. **Set preferences** - Show current mode (Interactive), confirm output file
148
- 3. **Process each section:**
149
- - Skip if condition unmet
150
- - Check agent permissions (owner/editors) - note if section is restricted to specific agents
151
- - Draft content using section instruction
152
- - Present content + detailed rationale
153
- - **IF elicit: true** → MANDATORY 1-9 options format
154
- - Save to file if possible
155
- 4. **Continue until complete**
145
+ - [ ] Enhancement clearly defined and scoped
146
+ - [ ] Impact on existing functionality assessed
147
+ - [ ] Required integration points identified
148
+ - [ ] Success criteria established
156
149
 
157
- ## Detailed Rationale Requirements
150
+ ### 2. Epic Creation
158
151
 
159
- When presenting section content, ALWAYS include rationale that explains:
152
+ Create a focused epic following this structure:
160
153
 
161
- - Trade-offs and choices made (what was chosen over alternatives and why)
162
- - Key assumptions made during drafting
163
- - Interesting or questionable decisions that need user attention
164
- - Areas that might need validation
154
+ #### Epic Title
165
155
 
166
- ## Elicitation Results Flow
156
+ {{Enhancement Name}} - Brownfield Enhancement
167
157
 
168
- After user selects elicitation method (2-9):
158
+ #### Epic Goal
169
159
 
170
- 1. Execute method from data/elicitation-methods
171
- 2. Present results with insights
172
- 3. Offer options:
173
- - **1. Apply changes and update section**
174
- - **2. Return to elicitation menu**
175
- - **3. Ask any questions or engage further with this elicitation**
160
+ {{1-2 sentences describing what the epic will accomplish and why it adds value}}
176
161
 
177
- ## Agent Permissions
162
+ #### Epic Description
178
163
 
179
- When processing sections with agent permission fields:
164
+ **Existing System Context:**
180
165
 
181
- - **owner**: Note which agent role initially creates/populates the section
182
- - **editors**: List agent roles allowed to modify the section
183
- - **readonly**: Mark sections that cannot be modified after creation
166
+ - Current relevant functionality: {{brief description}}
167
+ - Technology stack: {{relevant existing technologies}}
168
+ - Integration points: {{where new work connects to existing system}}
184
169
 
185
- **For sections with restricted access:**
170
+ **Enhancement Details:**
186
171
 
187
- - Include a note in the generated document indicating the responsible agent
188
- - Example: "_(This section is owned by dev-agent and can only be modified by dev-agent)_"
172
+ - What's being added/changed: {{clear description}}
173
+ - How it integrates: {{integration approach}}
174
+ - Success criteria: {{measurable outcomes}}
189
175
 
190
- ## YOLO Mode
176
+ #### Stories
191
177
 
192
- User can type `#yolo` to toggle to YOLO mode (process all sections at once).
178
+ List 1-3 focused stories that complete the epic:
193
179
 
194
- ## CRITICAL REMINDERS
180
+ 1. **Story 1:** {{Story title and brief description}}
181
+ 2. **Story 2:** {{Story title and brief description}}
182
+ 3. **Story 3:** {{Story title and brief description}}
195
183
 
196
- **❌ NEVER:**
184
+ #### Compatibility Requirements
197
185
 
198
- - Ask yes/no questions for elicitation
199
- - Use any format other than 1-9 numbered options
200
- - Create new elicitation methods
186
+ - [ ] Existing APIs remain unchanged
187
+ - [ ] Database schema changes are backward compatible
188
+ - [ ] UI changes follow existing patterns
189
+ - [ ] Performance impact is minimal
201
190
 
202
- **✅ ALWAYS:**
191
+ #### Risk Mitigation
203
192
 
204
- - Use exact 1-9 format when elicit: true
205
- - Select options 2-9 from data/elicitation-methods only
206
- - Provide detailed rationale explaining decisions
207
- - End with "Select 1-9 or just type your question/feedback:"
208
- ==================== END: .bmad-core/tasks/create-doc.md ====================
193
+ - **Primary Risk:** {{main risk to existing system}}
194
+ - **Mitigation:** {{how risk will be addressed}}
195
+ - **Rollback Plan:** {{how to undo changes if needed}}
209
196
 
210
- ==================== START: .bmad-core/tasks/correct-course.md ====================
211
- # Correct Course Task
197
+ #### Definition of Done
212
198
 
213
- ## Purpose
199
+ - [ ] All stories completed with acceptance criteria met
200
+ - [ ] Existing functionality verified through testing
201
+ - [ ] Integration points working correctly
202
+ - [ ] Documentation updated appropriately
203
+ - [ ] No regression in existing features
214
204
 
215
- - Guide a structured response to a change trigger using the `.bmad-core/checklists/change-checklist`.
216
- - Analyze the impacts of the change on epics, project artifacts, and the MVP, guided by the checklist's structure.
217
- - Explore potential solutions (e.g., adjust scope, rollback elements, re-scope features) as prompted by the checklist.
218
- - Draft specific, actionable proposed updates to any affected project artifacts (e.g., epics, user stories, PRD sections, architecture document sections) based on the analysis.
219
- - Produce a consolidated "Sprint Change Proposal" document that contains the impact analysis and the clearly drafted proposed edits for user review and approval.
220
- - Ensure a clear handoff path if the nature of the changes necessitates fundamental replanning by other core agents (like PM or Architect).
205
+ ### 3. Validation Checklist
221
206
 
222
- ## Instructions
207
+ Before finalizing the epic, ensure:
223
208
 
224
- ### 1. Initial Setup & Mode Selection
209
+ **Scope Validation:**
225
210
 
226
- - **Acknowledge Task & Inputs:**
227
- - Confirm with the user that the "Correct Course Task" (Change Navigation & Integration) is being initiated.
228
- - Verify the change trigger and ensure you have the user's initial explanation of the issue and its perceived impact.
229
- - Confirm access to all relevant project artifacts (e.g., PRD, Epics/Stories, Architecture Documents, UI/UX Specifications) and, critically, the `.bmad-core/checklists/change-checklist`.
230
- - **Establish Interaction Mode:**
231
- - Ask the user their preferred interaction mode for this task:
232
- - **"Incrementally (Default & Recommended):** Shall we work through the change-checklist section by section, discussing findings and collaboratively drafting proposed changes for each relevant part before moving to the next? This allows for detailed, step-by-step refinement."
233
- - **"YOLO Mode (Batch Processing):** Or, would you prefer I conduct a more batched analysis based on the checklist and then present a consolidated set of findings and proposed changes for a broader review? This can be quicker for initial assessment but might require more extensive review of the combined proposals."
234
- - Once the user chooses, confirm the selected mode and then inform the user: "We will now use the change-checklist to analyze the change and draft proposed updates. I will guide you through the checklist items based on our chosen interaction mode."
211
+ - [ ] Epic can be completed in 1-3 stories maximum
212
+ - [ ] No architectural documentation is required
213
+ - [ ] Enhancement follows existing patterns
214
+ - [ ] Integration complexity is manageable
235
215
 
236
- ### 2. Execute Checklist Analysis (Iteratively or Batched, per Interaction Mode)
216
+ **Risk Assessment:**
237
217
 
238
- - Systematically work through Sections 1-4 of the change-checklist (typically covering Change Context, Epic/Story Impact Analysis, Artifact Conflict Resolution, and Path Evaluation/Recommendation).
239
- - For each checklist item or logical group of items (depending on interaction mode):
240
- - Present the relevant prompt(s) or considerations from the checklist to the user.
241
- - Request necessary information and actively analyze the relevant project artifacts (PRD, epics, architecture documents, story history, etc.) to assess the impact.
242
- - Discuss your findings for each item with the user.
243
- - Record the status of each checklist item (e.g., `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`) and any pertinent notes or decisions.
244
- - Collaboratively agree on the "Recommended Path Forward" as prompted by Section 4 of the checklist.
218
+ - [ ] Risk to existing system is low
219
+ - [ ] Rollback plan is feasible
220
+ - [ ] Testing approach covers existing functionality
221
+ - [ ] Team has sufficient knowledge of integration points
245
222
 
246
- ### 3. Draft Proposed Changes (Iteratively or Batched)
223
+ **Completeness Check:**
247
224
 
248
- - Based on the completed checklist analysis (Sections 1-4) and the agreed "Recommended Path Forward" (excluding scenarios requiring fundamental replans that would necessitate immediate handoff to PM/Architect):
249
- - Identify the specific project artifacts that require updates (e.g., specific epics, user stories, PRD sections, architecture document components, diagrams).
250
- - **Draft the proposed changes directly and explicitly for each identified artifact.** Examples include:
251
- - Revising user story text, acceptance criteria, or priority.
252
- - Adding, removing, reordering, or splitting user stories within epics.
253
- - Proposing modified architecture diagram snippets (e.g., providing an updated Mermaid diagram block or a clear textual description of the change to an existing diagram).
254
- - Updating technology lists, configuration details, or specific sections within the PRD or architecture documents.
255
- - Drafting new, small supporting artifacts if necessary (e.g., a brief addendum for a specific decision).
256
- - If in "Incremental Mode," discuss and refine these proposed edits for each artifact or small group of related artifacts with the user as they are drafted.
257
- - If in "YOLO Mode," compile all drafted edits for presentation in the next step.
225
+ - [ ] Epic goal is clear and achievable
226
+ - [ ] Stories are properly scoped
227
+ - [ ] Success criteria are measurable
228
+ - [ ] Dependencies are identified
258
229
 
259
- ### 4. Generate "Sprint Change Proposal" with Edits
230
+ ### 4. Handoff to Story Manager
260
231
 
261
- - Synthesize the complete change-checklist analysis (covering findings from Sections 1-4) and all the agreed-upon proposed edits (from Instruction 3) into a single document titled "Sprint Change Proposal." This proposal should align with the structure suggested by Section 5 of the change-checklist.
262
- - The proposal must clearly present:
263
- - **Analysis Summary:** A concise overview of the original issue, its analyzed impact (on epics, artifacts, MVP scope), and the rationale for the chosen path forward.
264
- - **Specific Proposed Edits:** For each affected artifact, clearly show or describe the exact changes (e.g., "Change Story X.Y from: [old text] To: [new text]", "Add new Acceptance Criterion to Story A.B: [new AC]", "Update Section 3.2 of Architecture Document as follows: [new/modified text or diagram description]").
265
- - Present the complete draft of the "Sprint Change Proposal" to the user for final review and feedback. Incorporate any final adjustments requested by the user.
232
+ Once the epic is validated, provide this handoff to the Story Manager:
266
233
 
267
- ### 5. Finalize & Determine Next Steps
234
+ ---
268
235
 
269
- - Obtain explicit user approval for the "Sprint Change Proposal," including all the specific edits documented within it.
270
- - Provide the finalized "Sprint Change Proposal" document to the user.
271
- - **Based on the nature of the approved changes:**
272
- - **If the approved edits sufficiently address the change and can be implemented directly or organized by a PO/SM:** State that the "Correct Course Task" is complete regarding analysis and change proposal, and the user can now proceed with implementing or logging these changes (e.g., updating actual project documents, backlog items). Suggest handoff to a PO/SM agent for backlog organization if appropriate.
273
- - **If the analysis and proposed path (as per checklist Section 4 and potentially Section 6) indicate that the change requires a more fundamental replan (e.g., significant scope change, major architectural rework):** Clearly state this conclusion. Advise the user that the next step involves engaging the primary PM or Architect agents, using the "Sprint Change Proposal" as critical input and context for that deeper replanning effort.
236
+ **Story Manager Handoff:**
274
237
 
275
- ## Output Deliverables
238
+ "Please develop detailed user stories for this brownfield epic. Key considerations:
276
239
 
277
- - **Primary:** A "Sprint Change Proposal" document (in markdown format). This document will contain:
278
- - A summary of the change-checklist analysis (issue, impact, rationale for the chosen path).
279
- - Specific, clearly drafted proposed edits for all affected project artifacts.
280
- - **Implicit:** An annotated change-checklist (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
281
- ==================== END: .bmad-core/tasks/correct-course.md ====================
240
+ - This is an enhancement to an existing system running {{technology stack}}
241
+ - Integration points: {{list key integration points}}
242
+ - Existing patterns to follow: {{relevant existing patterns}}
243
+ - Critical compatibility requirements: {{key requirements}}
244
+ - Each story must include verification that existing functionality remains intact
282
245
 
283
- ==================== START: .bmad-core/tasks/create-deep-research-prompt.md ====================
284
- # Create Deep Research Prompt Task
246
+ The epic should maintain system integrity while delivering {{epic goal}}."
285
247
 
286
- This task helps create comprehensive research prompts for various types of deep analysis. It can process inputs from brainstorming sessions, project briefs, market research, or specific research questions to generate targeted prompts for deeper investigation.
248
+ ---
287
249
 
288
- ## Purpose
250
+ ## Success Criteria
289
251
 
290
- Generate well-structured research prompts that:
252
+ The epic creation is successful when:
291
253
 
292
- - Define clear research objectives and scope
293
- - Specify appropriate research methodologies
294
- - Outline expected deliverables and formats
295
- - Guide systematic investigation of complex topics
296
- - Ensure actionable insights are captured
297
-
298
- ## Research Type Selection
254
+ 1. Enhancement scope is clearly defined and appropriately sized
255
+ 2. Integration approach respects existing system architecture
256
+ 3. Risk to existing functionality is minimized
257
+ 4. Stories are logically sequenced for safe implementation
258
+ 5. Compatibility requirements are clearly specified
259
+ 6. Rollback plan is feasible and documented
299
260
 
300
- CRITICAL: First, help the user select the most appropriate research focus based on their needs and any input documents they've provided.
261
+ ## Important Notes
301
262
 
302
- ### 1. Research Focus Options
263
+ - This task is specifically for SMALL brownfield enhancements
264
+ - If the scope grows beyond 3 stories, consider the full brownfield PRD process
265
+ - Always prioritize existing system integrity over new functionality
266
+ - When in doubt about scope or complexity, escalate to full brownfield planning
267
+ ==================== END: .bmad-core/tasks/brownfield-create-epic.md ====================
303
268
 
304
- Present these numbered options to the user:
269
+ ==================== START: .bmad-core/tasks/brownfield-create-story.md ====================
270
+ # Create Brownfield Story Task
305
271
 
306
- 1. **Product Validation Research**
272
+ ## Purpose
307
273
 
308
- - Validate product hypotheses and market fit
309
- - Test assumptions about user needs and solutions
310
- - Assess technical and business feasibility
311
- - Identify risks and mitigation strategies
274
+ Create a single user story for very small brownfield enhancements that can be completed in one focused development session. This task is for minimal additions or bug fixes that require existing system integration awareness.
312
275
 
313
- 2. **Market Opportunity Research**
276
+ ## When to Use This Task
314
277
 
315
- - Analyze market size and growth potential
316
- - Identify market segments and dynamics
317
- - Assess market entry strategies
318
- - Evaluate timing and market readiness
278
+ **Use this task when:**
319
279
 
320
- 3. **User & Customer Research**
280
+ - The enhancement can be completed in a single story
281
+ - No new architecture or significant design is required
282
+ - The change follows existing patterns exactly
283
+ - Integration is straightforward with minimal risk
284
+ - Change is isolated with clear boundaries
321
285
 
322
- - Deep dive into user personas and behaviors
323
- - Understand jobs-to-be-done and pain points
324
- - Map customer journeys and touchpoints
325
- - Analyze willingness to pay and value perception
286
+ **Use brownfield-create-epic when:**
326
287
 
327
- 4. **Competitive Intelligence Research**
288
+ - The enhancement requires 2-3 coordinated stories
289
+ - Some design work is needed
290
+ - Multiple integration points are involved
328
291
 
329
- - Detailed competitor analysis and positioning
330
- - Feature and capability comparisons
331
- - Business model and strategy analysis
332
- - Identify competitive advantages and gaps
292
+ **Use the full brownfield PRD/Architecture process when:**
333
293
 
334
- 5. **Technology & Innovation Research**
294
+ - The enhancement requires multiple coordinated stories
295
+ - Architectural planning is needed
296
+ - Significant integration work is required
335
297
 
336
- - Assess technology trends and possibilities
337
- - Evaluate technical approaches and architectures
338
- - Identify emerging technologies and disruptions
339
- - Analyze build vs. buy vs. partner options
298
+ ## Instructions
340
299
 
341
- 6. **Industry & Ecosystem Research**
300
+ ### 1. Quick Project Assessment
342
301
 
343
- - Map industry value chains and dynamics
344
- - Identify key players and relationships
345
- - Analyze regulatory and compliance factors
346
- - Understand partnership opportunities
302
+ Gather minimal but essential context about the existing project:
347
303
 
348
- 7. **Strategic Options Research**
304
+ **Current System Context:**
349
305
 
350
- - Evaluate different strategic directions
351
- - Assess business model alternatives
352
- - Analyze go-to-market strategies
353
- - Consider expansion and scaling paths
306
+ - [ ] Relevant existing functionality identified
307
+ - [ ] Technology stack for this area noted
308
+ - [ ] Integration point(s) clearly understood
309
+ - [ ] Existing patterns for similar work identified
354
310
 
355
- 8. **Risk & Feasibility Research**
311
+ **Change Scope:**
356
312
 
357
- - Identify and assess various risk factors
358
- - Evaluate implementation challenges
359
- - Analyze resource requirements
360
- - Consider regulatory and legal implications
313
+ - [ ] Specific change clearly defined
314
+ - [ ] Impact boundaries identified
315
+ - [ ] Success criteria established
361
316
 
362
- 9. **Custom Research Focus**
317
+ ### 2. Story Creation
363
318
 
364
- - User-defined research objectives
365
- - Specialized domain investigation
366
- - Cross-functional research needs
319
+ Create a single focused story following this structure:
367
320
 
368
- ### 2. Input Processing
321
+ #### Story Title
369
322
 
370
- **If Project Brief provided:**
323
+ {{Specific Enhancement}} - Brownfield Addition
371
324
 
372
- - Extract key product concepts and goals
373
- - Identify target users and use cases
374
- - Note technical constraints and preferences
375
- - Highlight uncertainties and assumptions
325
+ #### User Story
376
326
 
377
- **If Brainstorming Results provided:**
327
+ As a {{user type}},
328
+ I want {{specific action/capability}},
329
+ So that {{clear benefit/value}}.
378
330
 
379
- - Synthesize main ideas and themes
380
- - Identify areas needing validation
381
- - Extract hypotheses to test
382
- - Note creative directions to explore
331
+ #### Story Context
383
332
 
384
- **If Market Research provided:**
333
+ **Existing System Integration:**
385
334
 
386
- - Build on identified opportunities
387
- - Deepen specific market insights
388
- - Validate initial findings
389
- - Explore adjacent possibilities
335
+ - Integrates with: {{existing component/system}}
336
+ - Technology: {{relevant tech stack}}
337
+ - Follows pattern: {{existing pattern to follow}}
338
+ - Touch points: {{specific integration points}}
390
339
 
391
- **If Starting Fresh:**
340
+ #### Acceptance Criteria
392
341
 
393
- - Gather essential context through questions
394
- - Define the problem space
395
- - Clarify research objectives
396
- - Establish success criteria
342
+ **Functional Requirements:**
397
343
 
398
- ## Process
344
+ 1. {{Primary functional requirement}}
345
+ 2. {{Secondary functional requirement (if any)}}
346
+ 3. {{Integration requirement}}
399
347
 
400
- ### 3. Research Prompt Structure
348
+ **Integration Requirements:** 4. Existing {{relevant functionality}} continues to work unchanged 5. New functionality follows existing {{pattern}} pattern 6. Integration with {{system/component}} maintains current behavior
401
349
 
402
- CRITICAL: collaboratively develop a comprehensive research prompt with these components.
350
+ **Quality Requirements:** 7. Change is covered by appropriate tests 8. Documentation is updated if needed 9. No regression in existing functionality verified
403
351
 
404
- #### A. Research Objectives
352
+ #### Technical Notes
405
353
 
406
- CRITICAL: collaborate with the user to articulate clear, specific objectives for the research.
354
+ - **Integration Approach:** {{how it connects to existing system}}
355
+ - **Existing Pattern Reference:** {{link or description of pattern to follow}}
356
+ - **Key Constraints:** {{any important limitations or requirements}}
407
357
 
408
- - Primary research goal and purpose
409
- - Key decisions the research will inform
410
- - Success criteria for the research
411
- - Constraints and boundaries
358
+ #### Definition of Done
412
359
 
413
- #### B. Research Questions
360
+ - [ ] Functional requirements met
361
+ - [ ] Integration requirements verified
362
+ - [ ] Existing functionality regression tested
363
+ - [ ] Code follows existing patterns and standards
364
+ - [ ] Tests pass (existing and new)
365
+ - [ ] Documentation updated if applicable
414
366
 
415
- CRITICAL: collaborate with the user to develop specific, actionable research questions organized by theme.
367
+ ### 3. Risk and Compatibility Check
416
368
 
417
- **Core Questions:**
369
+ **Minimal Risk Assessment:**
418
370
 
419
- - Central questions that must be answered
420
- - Priority ranking of questions
421
- - Dependencies between questions
371
+ - **Primary Risk:** {{main risk to existing system}}
372
+ - **Mitigation:** {{simple mitigation approach}}
373
+ - **Rollback:** {{how to undo if needed}}
422
374
 
423
- **Supporting Questions:**
375
+ **Compatibility Verification:**
424
376
 
425
- - Additional context-building questions
426
- - Nice-to-have insights
427
- - Future-looking considerations
377
+ - [ ] No breaking changes to existing APIs
378
+ - [ ] Database changes (if any) are additive only
379
+ - [ ] UI changes follow existing design patterns
380
+ - [ ] Performance impact is negligible
428
381
 
429
- #### C. Research Methodology
382
+ ### 4. Validation Checklist
430
383
 
431
- **Data Collection Methods:**
384
+ Before finalizing the story, confirm:
432
385
 
433
- - Secondary research sources
434
- - Primary research approaches (if applicable)
435
- - Data quality requirements
436
- - Source credibility criteria
386
+ **Scope Validation:**
437
387
 
438
- **Analysis Frameworks:**
388
+ - [ ] Story can be completed in one development session
389
+ - [ ] Integration approach is straightforward
390
+ - [ ] Follows existing patterns exactly
391
+ - [ ] No design or architecture work required
439
392
 
440
- - Specific frameworks to apply
441
- - Comparison criteria
442
- - Evaluation methodologies
443
- - Synthesis approaches
393
+ **Clarity Check:**
444
394
 
445
- #### D. Output Requirements
395
+ - [ ] Story requirements are unambiguous
396
+ - [ ] Integration points are clearly specified
397
+ - [ ] Success criteria are testable
398
+ - [ ] Rollback approach is simple
446
399
 
447
- **Format Specifications:**
400
+ ## Success Criteria
448
401
 
449
- - Executive summary requirements
450
- - Detailed findings structure
451
- - Visual/tabular presentations
452
- - Supporting documentation
402
+ The story creation is successful when:
453
403
 
454
- **Key Deliverables:**
404
+ 1. Enhancement is clearly defined and appropriately scoped for single session
405
+ 2. Integration approach is straightforward and low-risk
406
+ 3. Existing system patterns are identified and will be followed
407
+ 4. Rollback plan is simple and feasible
408
+ 5. Acceptance criteria include existing functionality verification
455
409
 
456
- - Must-have sections and insights
457
- - Decision-support elements
458
- - Action-oriented recommendations
459
- - Risk and uncertainty documentation
410
+ ## Important Notes
460
411
 
461
- ### 4. Prompt Generation
412
+ - This task is for VERY SMALL brownfield changes only
413
+ - If complexity grows during analysis, escalate to brownfield-create-epic
414
+ - Always prioritize existing system integrity
415
+ - When in doubt about integration complexity, use brownfield-create-epic instead
416
+ - Stories should take no more than 4 hours of focused development work
417
+ ==================== END: .bmad-core/tasks/brownfield-create-story.md ====================
462
418
 
463
- **Research Prompt Template:**
419
+ ==================== START: .bmad-core/tasks/correct-course.md ====================
420
+ # Correct Course Task
464
421
 
465
- ```markdown
466
- ## Research Objective
422
+ ## Purpose
467
423
 
468
- [Clear statement of what this research aims to achieve]
424
+ - Guide a structured response to a change trigger using the `.bmad-core/checklists/change-checklist`.
425
+ - Analyze the impacts of the change on epics, project artifacts, and the MVP, guided by the checklist's structure.
426
+ - Explore potential solutions (e.g., adjust scope, rollback elements, re-scope features) as prompted by the checklist.
427
+ - Draft specific, actionable proposed updates to any affected project artifacts (e.g., epics, user stories, PRD sections, architecture document sections) based on the analysis.
428
+ - Produce a consolidated "Sprint Change Proposal" document that contains the impact analysis and the clearly drafted proposed edits for user review and approval.
429
+ - Ensure a clear handoff path if the nature of the changes necessitates fundamental replanning by other core agents (like PM or Architect).
469
430
 
470
- ## Background Context
431
+ ## Instructions
471
432
 
472
- [Relevant information from project brief, brainstorming, or other inputs]
433
+ ### 1. Initial Setup & Mode Selection
473
434
 
474
- ## Research Questions
435
+ - **Acknowledge Task & Inputs:**
436
+ - Confirm with the user that the "Correct Course Task" (Change Navigation & Integration) is being initiated.
437
+ - Verify the change trigger and ensure you have the user's initial explanation of the issue and its perceived impact.
438
+ - Confirm access to all relevant project artifacts (e.g., PRD, Epics/Stories, Architecture Documents, UI/UX Specifications) and, critically, the `.bmad-core/checklists/change-checklist`.
439
+ - **Establish Interaction Mode:**
440
+ - Ask the user their preferred interaction mode for this task:
441
+ - **"Incrementally (Default & Recommended):** Shall we work through the change-checklist section by section, discussing findings and collaboratively drafting proposed changes for each relevant part before moving to the next? This allows for detailed, step-by-step refinement."
442
+ - **"YOLO Mode (Batch Processing):** Or, would you prefer I conduct a more batched analysis based on the checklist and then present a consolidated set of findings and proposed changes for a broader review? This can be quicker for initial assessment but might require more extensive review of the combined proposals."
443
+ - Once the user chooses, confirm the selected mode and then inform the user: "We will now use the change-checklist to analyze the change and draft proposed updates. I will guide you through the checklist items based on our chosen interaction mode."
475
444
 
476
- ### Primary Questions (Must Answer)
445
+ ### 2. Execute Checklist Analysis (Iteratively or Batched, per Interaction Mode)
477
446
 
478
- 1. [Specific, actionable question]
479
- 2. [Specific, actionable question]
480
- ...
447
+ - Systematically work through Sections 1-4 of the change-checklist (typically covering Change Context, Epic/Story Impact Analysis, Artifact Conflict Resolution, and Path Evaluation/Recommendation).
448
+ - For each checklist item or logical group of items (depending on interaction mode):
449
+ - Present the relevant prompt(s) or considerations from the checklist to the user.
450
+ - Request necessary information and actively analyze the relevant project artifacts (PRD, epics, architecture documents, story history, etc.) to assess the impact.
451
+ - Discuss your findings for each item with the user.
452
+ - Record the status of each checklist item (e.g., `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`) and any pertinent notes or decisions.
453
+ - Collaboratively agree on the "Recommended Path Forward" as prompted by Section 4 of the checklist.
454
+
455
+ ### 3. Draft Proposed Changes (Iteratively or Batched)
456
+
457
+ - Based on the completed checklist analysis (Sections 1-4) and the agreed "Recommended Path Forward" (excluding scenarios requiring fundamental replans that would necessitate immediate handoff to PM/Architect):
458
+ - Identify the specific project artifacts that require updates (e.g., specific epics, user stories, PRD sections, architecture document components, diagrams).
459
+ - **Draft the proposed changes directly and explicitly for each identified artifact.** Examples include:
460
+ - Revising user story text, acceptance criteria, or priority.
461
+ - Adding, removing, reordering, or splitting user stories within epics.
462
+ - Proposing modified architecture diagram snippets (e.g., providing an updated Mermaid diagram block or a clear textual description of the change to an existing diagram).
463
+ - Updating technology lists, configuration details, or specific sections within the PRD or architecture documents.
464
+ - Drafting new, small supporting artifacts if necessary (e.g., a brief addendum for a specific decision).
465
+ - If in "Incremental Mode," discuss and refine these proposed edits for each artifact or small group of related artifacts with the user as they are drafted.
466
+ - If in "YOLO Mode," compile all drafted edits for presentation in the next step.
467
+
468
+ ### 4. Generate "Sprint Change Proposal" with Edits
469
+
470
+ - Synthesize the complete change-checklist analysis (covering findings from Sections 1-4) and all the agreed-upon proposed edits (from Instruction 3) into a single document titled "Sprint Change Proposal." This proposal should align with the structure suggested by Section 5 of the change-checklist.
471
+ - The proposal must clearly present:
472
+ - **Analysis Summary:** A concise overview of the original issue, its analyzed impact (on epics, artifacts, MVP scope), and the rationale for the chosen path forward.
473
+ - **Specific Proposed Edits:** For each affected artifact, clearly show or describe the exact changes (e.g., "Change Story X.Y from: [old text] To: [new text]", "Add new Acceptance Criterion to Story A.B: [new AC]", "Update Section 3.2 of Architecture Document as follows: [new/modified text or diagram description]").
474
+ - Present the complete draft of the "Sprint Change Proposal" to the user for final review and feedback. Incorporate any final adjustments requested by the user.
475
+
476
+ ### 5. Finalize & Determine Next Steps
477
+
478
+ - Obtain explicit user approval for the "Sprint Change Proposal," including all the specific edits documented within it.
479
+ - Provide the finalized "Sprint Change Proposal" document to the user.
480
+ - **Based on the nature of the approved changes:**
481
+ - **If the approved edits sufficiently address the change and can be implemented directly or organized by a PO/SM:** State that the "Correct Course Task" is complete regarding analysis and change proposal, and the user can now proceed with implementing or logging these changes (e.g., updating actual project documents, backlog items). Suggest handoff to a PO/SM agent for backlog organization if appropriate.
482
+ - **If the analysis and proposed path (as per checklist Section 4 and potentially Section 6) indicate that the change requires a more fundamental replan (e.g., significant scope change, major architectural rework):** Clearly state this conclusion. Advise the user that the next step involves engaging the primary PM or Architect agents, using the "Sprint Change Proposal" as critical input and context for that deeper replanning effort.
483
+
484
+ ## Output Deliverables
485
+
486
+ - **Primary:** A "Sprint Change Proposal" document (in markdown format). This document will contain:
487
+ - A summary of the change-checklist analysis (issue, impact, rationale for the chosen path).
488
+ - Specific, clearly drafted proposed edits for all affected project artifacts.
489
+ - **Implicit:** An annotated change-checklist (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
490
+ ==================== END: .bmad-core/tasks/correct-course.md ====================
491
+
492
+ ==================== START: .bmad-core/tasks/create-deep-research-prompt.md ====================
493
+ # Create Deep Research Prompt Task
494
+
495
+ This task helps create comprehensive research prompts for various types of deep analysis. It can process inputs from brainstorming sessions, project briefs, market research, or specific research questions to generate targeted prompts for deeper investigation.
496
+
497
+ ## Purpose
498
+
499
+ Generate well-structured research prompts that:
500
+
501
+ - Define clear research objectives and scope
502
+ - Specify appropriate research methodologies
503
+ - Outline expected deliverables and formats
504
+ - Guide systematic investigation of complex topics
505
+ - Ensure actionable insights are captured
506
+
507
+ ## Research Type Selection
508
+
509
+ CRITICAL: First, help the user select the most appropriate research focus based on their needs and any input documents they've provided.
510
+
511
+ ### 1. Research Focus Options
512
+
513
+ Present these numbered options to the user:
514
+
515
+ 1. **Product Validation Research**
516
+ - Validate product hypotheses and market fit
517
+ - Test assumptions about user needs and solutions
518
+ - Assess technical and business feasibility
519
+ - Identify risks and mitigation strategies
520
+
521
+ 2. **Market Opportunity Research**
522
+ - Analyze market size and growth potential
523
+ - Identify market segments and dynamics
524
+ - Assess market entry strategies
525
+ - Evaluate timing and market readiness
526
+
527
+ 3. **User & Customer Research**
528
+ - Deep dive into user personas and behaviors
529
+ - Understand jobs-to-be-done and pain points
530
+ - Map customer journeys and touchpoints
531
+ - Analyze willingness to pay and value perception
532
+
533
+ 4. **Competitive Intelligence Research**
534
+ - Detailed competitor analysis and positioning
535
+ - Feature and capability comparisons
536
+ - Business model and strategy analysis
537
+ - Identify competitive advantages and gaps
538
+
539
+ 5. **Technology & Innovation Research**
540
+ - Assess technology trends and possibilities
541
+ - Evaluate technical approaches and architectures
542
+ - Identify emerging technologies and disruptions
543
+ - Analyze build vs. buy vs. partner options
544
+
545
+ 6. **Industry & Ecosystem Research**
546
+ - Map industry value chains and dynamics
547
+ - Identify key players and relationships
548
+ - Analyze regulatory and compliance factors
549
+ - Understand partnership opportunities
550
+
551
+ 7. **Strategic Options Research**
552
+ - Evaluate different strategic directions
553
+ - Assess business model alternatives
554
+ - Analyze go-to-market strategies
555
+ - Consider expansion and scaling paths
556
+
557
+ 8. **Risk & Feasibility Research**
558
+ - Identify and assess various risk factors
559
+ - Evaluate implementation challenges
560
+ - Analyze resource requirements
561
+ - Consider regulatory and legal implications
562
+
563
+ 9. **Custom Research Focus**
564
+ - User-defined research objectives
565
+ - Specialized domain investigation
566
+ - Cross-functional research needs
567
+
568
+ ### 2. Input Processing
569
+
570
+ **If Project Brief provided:**
571
+
572
+ - Extract key product concepts and goals
573
+ - Identify target users and use cases
574
+ - Note technical constraints and preferences
575
+ - Highlight uncertainties and assumptions
576
+
577
+ **If Brainstorming Results provided:**
578
+
579
+ - Synthesize main ideas and themes
580
+ - Identify areas needing validation
581
+ - Extract hypotheses to test
582
+ - Note creative directions to explore
583
+
584
+ **If Market Research provided:**
585
+
586
+ - Build on identified opportunities
587
+ - Deepen specific market insights
588
+ - Validate initial findings
589
+ - Explore adjacent possibilities
590
+
591
+ **If Starting Fresh:**
592
+
593
+ - Gather essential context through questions
594
+ - Define the problem space
595
+ - Clarify research objectives
596
+ - Establish success criteria
597
+
598
+ ## Process
599
+
600
+ ### 3. Research Prompt Structure
601
+
602
+ CRITICAL: collaboratively develop a comprehensive research prompt with these components.
603
+
604
+ #### A. Research Objectives
605
+
606
+ CRITICAL: collaborate with the user to articulate clear, specific objectives for the research.
607
+
608
+ - Primary research goal and purpose
609
+ - Key decisions the research will inform
610
+ - Success criteria for the research
611
+ - Constraints and boundaries
612
+
613
+ #### B. Research Questions
614
+
615
+ CRITICAL: collaborate with the user to develop specific, actionable research questions organized by theme.
616
+
617
+ **Core Questions:**
618
+
619
+ - Central questions that must be answered
620
+ - Priority ranking of questions
621
+ - Dependencies between questions
622
+
623
+ **Supporting Questions:**
624
+
625
+ - Additional context-building questions
626
+ - Nice-to-have insights
627
+ - Future-looking considerations
628
+
629
+ #### C. Research Methodology
630
+
631
+ **Data Collection Methods:**
632
+
633
+ - Secondary research sources
634
+ - Primary research approaches (if applicable)
635
+ - Data quality requirements
636
+ - Source credibility criteria
637
+
638
+ **Analysis Frameworks:**
639
+
640
+ - Specific frameworks to apply
641
+ - Comparison criteria
642
+ - Evaluation methodologies
643
+ - Synthesis approaches
644
+
645
+ #### D. Output Requirements
646
+
647
+ **Format Specifications:**
648
+
649
+ - Executive summary requirements
650
+ - Detailed findings structure
651
+ - Visual/tabular presentations
652
+ - Supporting documentation
653
+
654
+ **Key Deliverables:**
655
+
656
+ - Must-have sections and insights
657
+ - Decision-support elements
658
+ - Action-oriented recommendations
659
+ - Risk and uncertainty documentation
660
+
661
+ ### 4. Prompt Generation
662
+
663
+ **Research Prompt Template:**
664
+
665
+ ```markdown
666
+ ## Research Objective
667
+
668
+ [Clear statement of what this research aims to achieve]
669
+
670
+ ## Background Context
671
+
672
+ [Relevant information from project brief, brainstorming, or other inputs]
673
+
674
+ ## Research Questions
675
+
676
+ ### Primary Questions (Must Answer)
677
+
678
+ 1. [Specific, actionable question]
679
+ 2. [Specific, actionable question]
680
+ ...
481
681
 
482
682
  ### Secondary Questions (Nice to Have)
483
683
 
@@ -529,13 +729,11 @@ CRITICAL: collaborate with the user to develop specific, actionable research que
529
729
  ### 5. Review and Refinement
530
730
 
531
731
  1. **Present Complete Prompt**
532
-
533
732
  - Show the full research prompt
534
733
  - Explain key elements and rationale
535
734
  - Highlight any assumptions made
536
735
 
537
736
  2. **Gather Feedback**
538
-
539
737
  - Are the objectives clear and correct?
540
738
  - Do the questions address all concerns?
541
739
  - Is the scope appropriate?
@@ -572,436 +770,220 @@ CRITICAL: collaborate with the user to develop specific, actionable research que
572
770
  - Plan for iterative refinement based on initial findings
573
771
  ==================== END: .bmad-core/tasks/create-deep-research-prompt.md ====================
574
772
 
575
- ==================== START: .bmad-core/tasks/brownfield-create-epic.md ====================
576
- # Create Brownfield Epic Task
773
+ ==================== START: .bmad-core/tasks/create-doc.md ====================
774
+ # Create Document from Template (YAML Driven)
577
775
 
578
- ## Purpose
776
+ ## ⚠️ CRITICAL EXECUTION NOTICE ⚠️
579
777
 
580
- Create a single epic for smaller brownfield enhancements that don't require the full PRD and Architecture documentation process. This task is for isolated features or modifications that can be completed within a focused scope.
778
+ **THIS IS AN EXECUTABLE WORKFLOW - NOT REFERENCE MATERIAL**
581
779
 
582
- ## When to Use This Task
780
+ When this task is invoked:
583
781
 
584
- **Use this task when:**
782
+ 1. **DISABLE ALL EFFICIENCY OPTIMIZATIONS** - This workflow requires full user interaction
783
+ 2. **MANDATORY STEP-BY-STEP EXECUTION** - Each section must be processed sequentially with user feedback
784
+ 3. **ELICITATION IS REQUIRED** - When `elicit: true`, you MUST use the 1-9 format and wait for user response
785
+ 4. **NO SHORTCUTS ALLOWED** - Complete documents cannot be created without following this workflow
585
786
 
586
- - The enhancement can be completed in 1-3 stories
587
- - No significant architectural changes are required
588
- - The enhancement follows existing project patterns
589
- - Integration complexity is minimal
590
- - Risk to existing system is low
591
-
592
- **Use the full brownfield PRD/Architecture process when:**
787
+ **VIOLATION INDICATOR:** If you create a complete document without user interaction, you have violated this workflow.
593
788
 
594
- - The enhancement requires multiple coordinated stories
595
- - Architectural planning is needed
596
- - Significant integration work is required
597
- - Risk assessment and mitigation planning is necessary
789
+ ## Critical: Template Discovery
598
790
 
599
- ## Instructions
791
+ If a YAML Template has not been provided, list all templates from .bmad-core/templates or ask the user to provide another.
600
792
 
601
- ### 1. Project Analysis (Required)
793
+ ## CRITICAL: Mandatory Elicitation Format
602
794
 
603
- Before creating the epic, gather essential information about the existing project:
795
+ **When `elicit: true`, this is a HARD STOP requiring user interaction:**
604
796
 
605
- **Existing Project Context:**
797
+ **YOU MUST:**
606
798
 
607
- - [ ] Project purpose and current functionality understood
608
- - [ ] Existing technology stack identified
609
- - [ ] Current architecture patterns noted
610
- - [ ] Integration points with existing system identified
799
+ 1. Present section content
800
+ 2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
801
+ 3. **STOP and present numbered options 1-9:**
802
+ - **Option 1:** Always "Proceed to next section"
803
+ - **Options 2-9:** Select 8 methods from data/elicitation-methods
804
+ - End with: "Select 1-9 or just type your question/feedback:"
805
+ 4. **WAIT FOR USER RESPONSE** - Do not proceed until user selects option or provides feedback
611
806
 
612
- **Enhancement Scope:**
807
+ **WORKFLOW VIOLATION:** Creating content for elicit=true sections without user interaction violates this task.
613
808
 
614
- - [ ] Enhancement clearly defined and scoped
615
- - [ ] Impact on existing functionality assessed
616
- - [ ] Required integration points identified
617
- - [ ] Success criteria established
809
+ **NEVER ask yes/no questions or use any other format.**
618
810
 
619
- ### 2. Epic Creation
811
+ ## Processing Flow
620
812
 
621
- Create a focused epic following this structure:
813
+ 1. **Parse YAML template** - Load template metadata and sections
814
+ 2. **Set preferences** - Show current mode (Interactive), confirm output file
815
+ 3. **Process each section:**
816
+ - Skip if condition unmet
817
+ - Check agent permissions (owner/editors) - note if section is restricted to specific agents
818
+ - Draft content using section instruction
819
+ - Present content + detailed rationale
820
+ - **IF elicit: true** → MANDATORY 1-9 options format
821
+ - Save to file if possible
822
+ 4. **Continue until complete**
622
823
 
623
- #### Epic Title
824
+ ## Detailed Rationale Requirements
624
825
 
625
- {{Enhancement Name}} - Brownfield Enhancement
826
+ When presenting section content, ALWAYS include rationale that explains:
626
827
 
627
- #### Epic Goal
828
+ - Trade-offs and choices made (what was chosen over alternatives and why)
829
+ - Key assumptions made during drafting
830
+ - Interesting or questionable decisions that need user attention
831
+ - Areas that might need validation
628
832
 
629
- {{1-2 sentences describing what the epic will accomplish and why it adds value}}
833
+ ## Elicitation Results Flow
630
834
 
631
- #### Epic Description
835
+ After user selects elicitation method (2-9):
632
836
 
633
- **Existing System Context:**
837
+ 1. Execute method from data/elicitation-methods
838
+ 2. Present results with insights
839
+ 3. Offer options:
840
+ - **1. Apply changes and update section**
841
+ - **2. Return to elicitation menu**
842
+ - **3. Ask any questions or engage further with this elicitation**
634
843
 
635
- - Current relevant functionality: {{brief description}}
636
- - Technology stack: {{relevant existing technologies}}
637
- - Integration points: {{where new work connects to existing system}}
844
+ ## Agent Permissions
638
845
 
639
- **Enhancement Details:**
846
+ When processing sections with agent permission fields:
640
847
 
641
- - What's being added/changed: {{clear description}}
642
- - How it integrates: {{integration approach}}
643
- - Success criteria: {{measurable outcomes}}
848
+ - **owner**: Note which agent role initially creates/populates the section
849
+ - **editors**: List agent roles allowed to modify the section
850
+ - **readonly**: Mark sections that cannot be modified after creation
644
851
 
645
- #### Stories
852
+ **For sections with restricted access:**
646
853
 
647
- List 1-3 focused stories that complete the epic:
854
+ - Include a note in the generated document indicating the responsible agent
855
+ - Example: "_(This section is owned by dev-agent and can only be modified by dev-agent)_"
648
856
 
649
- 1. **Story 1:** {{Story title and brief description}}
650
- 2. **Story 2:** {{Story title and brief description}}
651
- 3. **Story 3:** {{Story title and brief description}}
857
+ ## YOLO Mode
652
858
 
653
- #### Compatibility Requirements
859
+ User can type `#yolo` to toggle to YOLO mode (process all sections at once).
654
860
 
655
- - [ ] Existing APIs remain unchanged
656
- - [ ] Database schema changes are backward compatible
657
- - [ ] UI changes follow existing patterns
658
- - [ ] Performance impact is minimal
861
+ ## CRITICAL REMINDERS
659
862
 
660
- #### Risk Mitigation
863
+ **❌ NEVER:**
661
864
 
662
- - **Primary Risk:** {{main risk to existing system}}
663
- - **Mitigation:** {{how risk will be addressed}}
664
- - **Rollback Plan:** {{how to undo changes if needed}}
865
+ - Ask yes/no questions for elicitation
866
+ - Use any format other than 1-9 numbered options
867
+ - Create new elicitation methods
665
868
 
666
- #### Definition of Done
869
+ **✅ ALWAYS:**
667
870
 
668
- - [ ] All stories completed with acceptance criteria met
669
- - [ ] Existing functionality verified through testing
670
- - [ ] Integration points working correctly
671
- - [ ] Documentation updated appropriately
672
- - [ ] No regression in existing features
871
+ - Use exact 1-9 format when elicit: true
872
+ - Select options 2-9 from data/elicitation-methods only
873
+ - Provide detailed rationale explaining decisions
874
+ - End with "Select 1-9 or just type your question/feedback:"
875
+ ==================== END: .bmad-core/tasks/create-doc.md ====================
673
876
 
674
- ### 3. Validation Checklist
877
+ ==================== START: .bmad-core/tasks/execute-checklist.md ====================
878
+ # Checklist Validation Task
675
879
 
676
- Before finalizing the epic, ensure:
880
+ This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
677
881
 
678
- **Scope Validation:**
882
+ ## Available Checklists
679
883
 
680
- - [ ] Epic can be completed in 1-3 stories maximum
681
- - [ ] No architectural documentation is required
682
- - [ ] Enhancement follows existing patterns
683
- - [ ] Integration complexity is manageable
884
+ If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-core/checklists folder to select the appropriate one to run.
684
885
 
685
- **Risk Assessment:**
886
+ ## Instructions
686
887
 
687
- - [ ] Risk to existing system is low
688
- - [ ] Rollback plan is feasible
689
- - [ ] Testing approach covers existing functionality
690
- - [ ] Team has sufficient knowledge of integration points
888
+ 1. **Initial Assessment**
889
+ - If user or the task being run provides a checklist name:
890
+ - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
891
+ - If multiple matches found, ask user to clarify
892
+ - Load the appropriate checklist from .bmad-core/checklists/
893
+ - If no checklist specified:
894
+ - Ask the user which checklist they want to use
895
+ - Present the available options from the files in the checklists folder
896
+ - Confirm if they want to work through the checklist:
897
+ - Section by section (interactive mode - very time consuming)
898
+ - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
691
899
 
692
- **Completeness Check:**
900
+ 2. **Document and Artifact Gathering**
901
+ - Each checklist will specify its required documents/artifacts at the beginning
902
+ - Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
693
903
 
694
- - [ ] Epic goal is clear and achievable
695
- - [ ] Stories are properly scoped
696
- - [ ] Success criteria are measurable
697
- - [ ] Dependencies are identified
904
+ 3. **Checklist Processing**
698
905
 
699
- ### 4. Handoff to Story Manager
906
+ If in interactive mode:
907
+ - Work through each section of the checklist one at a time
908
+ - For each section:
909
+ - Review all items in the section following instructions for that section embedded in the checklist
910
+ - Check each item against the relevant documentation or artifacts as appropriate
911
+ - Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
912
+ - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
700
913
 
701
- Once the epic is validated, provide this handoff to the Story Manager:
914
+ If in YOLO mode:
915
+ - Process all sections at once
916
+ - Create a comprehensive report of all findings
917
+ - Present the complete analysis to the user
702
918
 
703
- ---
919
+ 4. **Validation Approach**
704
920
 
705
- **Story Manager Handoff:**
921
+ For each checklist item:
922
+ - Read and understand the requirement
923
+ - Look for evidence in the documentation that satisfies the requirement
924
+ - Consider both explicit mentions and implicit coverage
925
+ - Aside from this, follow all checklist llm instructions
926
+ - Mark items as:
927
+ - ✅ PASS: Requirement clearly met
928
+ - ❌ FAIL: Requirement not met or insufficient coverage
929
+ - ⚠️ PARTIAL: Some aspects covered but needs improvement
930
+ - N/A: Not applicable to this case
706
931
 
707
- "Please develop detailed user stories for this brownfield epic. Key considerations:
932
+ 5. **Section Analysis**
708
933
 
709
- - This is an enhancement to an existing system running {{technology stack}}
710
- - Integration points: {{list key integration points}}
711
- - Existing patterns to follow: {{relevant existing patterns}}
712
- - Critical compatibility requirements: {{key requirements}}
713
- - Each story must include verification that existing functionality remains intact
934
+ For each section:
935
+ - think step by step to calculate pass rate
936
+ - Identify common themes in failed items
937
+ - Provide specific recommendations for improvement
938
+ - In interactive mode, discuss findings with user
939
+ - Document any user decisions or explanations
714
940
 
715
- The epic should maintain system integrity while delivering {{epic goal}}."
941
+ 6. **Final Report**
716
942
 
717
- ---
943
+ Prepare a summary that includes:
944
+ - Overall checklist completion status
945
+ - Pass rates by section
946
+ - List of failed items with context
947
+ - Specific recommendations for improvement
948
+ - Any sections or items marked as N/A with justification
718
949
 
719
- ## Success Criteria
950
+ ## Checklist Execution Methodology
720
951
 
721
- The epic creation is successful when:
952
+ Each checklist now contains embedded LLM prompts and instructions that will:
722
953
 
723
- 1. Enhancement scope is clearly defined and appropriately sized
724
- 2. Integration approach respects existing system architecture
725
- 3. Risk to existing functionality is minimized
726
- 4. Stories are logically sequenced for safe implementation
727
- 5. Compatibility requirements are clearly specified
728
- 6. Rollback plan is feasible and documented
954
+ 1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
955
+ 2. **Request specific artifacts** - Clear instructions on what documents/access is needed
956
+ 3. **Provide contextual guidance** - Section-specific prompts for better validation
957
+ 4. **Generate comprehensive reports** - Final summary with detailed findings
729
958
 
730
- ## Important Notes
959
+ The LLM will:
731
960
 
732
- - This task is specifically for SMALL brownfield enhancements
733
- - If the scope grows beyond 3 stories, consider the full brownfield PRD process
734
- - Always prioritize existing system integrity over new functionality
735
- - When in doubt about scope or complexity, escalate to full brownfield planning
736
- ==================== END: .bmad-core/tasks/brownfield-create-epic.md ====================
961
+ - Execute the complete checklist validation
962
+ - Present a final report with pass/fail rates and key findings
963
+ - Offer to provide detailed analysis of any section, especially those with warnings or failures
964
+ ==================== END: .bmad-core/tasks/execute-checklist.md ====================
737
965
 
738
- ==================== START: .bmad-core/tasks/brownfield-create-story.md ====================
739
- # Create Brownfield Story Task
966
+ ==================== START: .bmad-core/tasks/shard-doc.md ====================
967
+ # Document Sharding Task
740
968
 
741
969
  ## Purpose
742
970
 
743
- Create a single user story for very small brownfield enhancements that can be completed in one focused development session. This task is for minimal additions or bug fixes that require existing system integration awareness.
971
+ - Split a large document into multiple smaller documents based on level 2 sections
972
+ - Create a folder structure to organize the sharded documents
973
+ - Maintain all content integrity including code blocks, diagrams, and markdown formatting
744
974
 
745
- ## When to Use This Task
975
+ ## Primary Method: Automatic with markdown-tree
746
976
 
747
- **Use this task when:**
977
+ [[LLM: First, check if markdownExploder is set to true in .bmad-core/core-config.yaml. If it is, attempt to run the command: `md-tree explode {input file} {output path}`.
748
978
 
749
- - The enhancement can be completed in a single story
750
- - No new architecture or significant design is required
751
- - The change follows existing patterns exactly
752
- - Integration is straightforward with minimal risk
753
- - Change is isolated with clear boundaries
979
+ If the command succeeds, inform the user that the document has been sharded successfully and STOP - do not proceed further.
754
980
 
755
- **Use brownfield-create-epic when:**
981
+ If the command fails (especially with an error indicating the command is not found or not available), inform the user: "The markdownExploder setting is enabled but the md-tree command is not available. Please either:
756
982
 
757
- - The enhancement requires 2-3 coordinated stories
758
- - Some design work is needed
759
- - Multiple integration points are involved
983
+ 1. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
984
+ 2. Or set markdownExploder to false in .bmad-core/core-config.yaml
760
985
 
761
- **Use the full brownfield PRD/Architecture process when:**
762
-
763
- - The enhancement requires multiple coordinated stories
764
- - Architectural planning is needed
765
- - Significant integration work is required
766
-
767
- ## Instructions
768
-
769
- ### 1. Quick Project Assessment
770
-
771
- Gather minimal but essential context about the existing project:
772
-
773
- **Current System Context:**
774
-
775
- - [ ] Relevant existing functionality identified
776
- - [ ] Technology stack for this area noted
777
- - [ ] Integration point(s) clearly understood
778
- - [ ] Existing patterns for similar work identified
779
-
780
- **Change Scope:**
781
-
782
- - [ ] Specific change clearly defined
783
- - [ ] Impact boundaries identified
784
- - [ ] Success criteria established
785
-
786
- ### 2. Story Creation
787
-
788
- Create a single focused story following this structure:
789
-
790
- #### Story Title
791
-
792
- {{Specific Enhancement}} - Brownfield Addition
793
-
794
- #### User Story
795
-
796
- As a {{user type}},
797
- I want {{specific action/capability}},
798
- So that {{clear benefit/value}}.
799
-
800
- #### Story Context
801
-
802
- **Existing System Integration:**
803
-
804
- - Integrates with: {{existing component/system}}
805
- - Technology: {{relevant tech stack}}
806
- - Follows pattern: {{existing pattern to follow}}
807
- - Touch points: {{specific integration points}}
808
-
809
- #### Acceptance Criteria
810
-
811
- **Functional Requirements:**
812
-
813
- 1. {{Primary functional requirement}}
814
- 2. {{Secondary functional requirement (if any)}}
815
- 3. {{Integration requirement}}
816
-
817
- **Integration Requirements:** 4. Existing {{relevant functionality}} continues to work unchanged 5. New functionality follows existing {{pattern}} pattern 6. Integration with {{system/component}} maintains current behavior
818
-
819
- **Quality Requirements:** 7. Change is covered by appropriate tests 8. Documentation is updated if needed 9. No regression in existing functionality verified
820
-
821
- #### Technical Notes
822
-
823
- - **Integration Approach:** {{how it connects to existing system}}
824
- - **Existing Pattern Reference:** {{link or description of pattern to follow}}
825
- - **Key Constraints:** {{any important limitations or requirements}}
826
-
827
- #### Definition of Done
828
-
829
- - [ ] Functional requirements met
830
- - [ ] Integration requirements verified
831
- - [ ] Existing functionality regression tested
832
- - [ ] Code follows existing patterns and standards
833
- - [ ] Tests pass (existing and new)
834
- - [ ] Documentation updated if applicable
835
-
836
- ### 3. Risk and Compatibility Check
837
-
838
- **Minimal Risk Assessment:**
839
-
840
- - **Primary Risk:** {{main risk to existing system}}
841
- - **Mitigation:** {{simple mitigation approach}}
842
- - **Rollback:** {{how to undo if needed}}
843
-
844
- **Compatibility Verification:**
845
-
846
- - [ ] No breaking changes to existing APIs
847
- - [ ] Database changes (if any) are additive only
848
- - [ ] UI changes follow existing design patterns
849
- - [ ] Performance impact is negligible
850
-
851
- ### 4. Validation Checklist
852
-
853
- Before finalizing the story, confirm:
854
-
855
- **Scope Validation:**
856
-
857
- - [ ] Story can be completed in one development session
858
- - [ ] Integration approach is straightforward
859
- - [ ] Follows existing patterns exactly
860
- - [ ] No design or architecture work required
861
-
862
- **Clarity Check:**
863
-
864
- - [ ] Story requirements are unambiguous
865
- - [ ] Integration points are clearly specified
866
- - [ ] Success criteria are testable
867
- - [ ] Rollback approach is simple
868
-
869
- ## Success Criteria
870
-
871
- The story creation is successful when:
872
-
873
- 1. Enhancement is clearly defined and appropriately scoped for single session
874
- 2. Integration approach is straightforward and low-risk
875
- 3. Existing system patterns are identified and will be followed
876
- 4. Rollback plan is simple and feasible
877
- 5. Acceptance criteria include existing functionality verification
878
-
879
- ## Important Notes
880
-
881
- - This task is for VERY SMALL brownfield changes only
882
- - If complexity grows during analysis, escalate to brownfield-create-epic
883
- - Always prioritize existing system integrity
884
- - When in doubt about integration complexity, use brownfield-create-epic instead
885
- - Stories should take no more than 4 hours of focused development work
886
- ==================== END: .bmad-core/tasks/brownfield-create-story.md ====================
887
-
888
- ==================== START: .bmad-core/tasks/execute-checklist.md ====================
889
- # Checklist Validation Task
890
-
891
- This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
892
-
893
- ## Available Checklists
894
-
895
- If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-core/checklists folder to select the appropriate one to run.
896
-
897
- ## Instructions
898
-
899
- 1. **Initial Assessment**
900
-
901
- - If user or the task being run provides a checklist name:
902
- - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
903
- - If multiple matches found, ask user to clarify
904
- - Load the appropriate checklist from .bmad-core/checklists/
905
- - If no checklist specified:
906
- - Ask the user which checklist they want to use
907
- - Present the available options from the files in the checklists folder
908
- - Confirm if they want to work through the checklist:
909
- - Section by section (interactive mode - very time consuming)
910
- - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
911
-
912
- 2. **Document and Artifact Gathering**
913
-
914
- - Each checklist will specify its required documents/artifacts at the beginning
915
- - Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
916
-
917
- 3. **Checklist Processing**
918
-
919
- If in interactive mode:
920
-
921
- - Work through each section of the checklist one at a time
922
- - For each section:
923
- - Review all items in the section following instructions for that section embedded in the checklist
924
- - Check each item against the relevant documentation or artifacts as appropriate
925
- - Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
926
- - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
927
-
928
- If in YOLO mode:
929
-
930
- - Process all sections at once
931
- - Create a comprehensive report of all findings
932
- - Present the complete analysis to the user
933
-
934
- 4. **Validation Approach**
935
-
936
- For each checklist item:
937
-
938
- - Read and understand the requirement
939
- - Look for evidence in the documentation that satisfies the requirement
940
- - Consider both explicit mentions and implicit coverage
941
- - Aside from this, follow all checklist llm instructions
942
- - Mark items as:
943
- - ✅ PASS: Requirement clearly met
944
- - ❌ FAIL: Requirement not met or insufficient coverage
945
- - ⚠️ PARTIAL: Some aspects covered but needs improvement
946
- - N/A: Not applicable to this case
947
-
948
- 5. **Section Analysis**
949
-
950
- For each section:
951
-
952
- - think step by step to calculate pass rate
953
- - Identify common themes in failed items
954
- - Provide specific recommendations for improvement
955
- - In interactive mode, discuss findings with user
956
- - Document any user decisions or explanations
957
-
958
- 6. **Final Report**
959
-
960
- Prepare a summary that includes:
961
-
962
- - Overall checklist completion status
963
- - Pass rates by section
964
- - List of failed items with context
965
- - Specific recommendations for improvement
966
- - Any sections or items marked as N/A with justification
967
-
968
- ## Checklist Execution Methodology
969
-
970
- Each checklist now contains embedded LLM prompts and instructions that will:
971
-
972
- 1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
973
- 2. **Request specific artifacts** - Clear instructions on what documents/access is needed
974
- 3. **Provide contextual guidance** - Section-specific prompts for better validation
975
- 4. **Generate comprehensive reports** - Final summary with detailed findings
976
-
977
- The LLM will:
978
-
979
- - Execute the complete checklist validation
980
- - Present a final report with pass/fail rates and key findings
981
- - Offer to provide detailed analysis of any section, especially those with warnings or failures
982
- ==================== END: .bmad-core/tasks/execute-checklist.md ====================
983
-
984
- ==================== START: .bmad-core/tasks/shard-doc.md ====================
985
- # Document Sharding Task
986
-
987
- ## Purpose
988
-
989
- - Split a large document into multiple smaller documents based on level 2 sections
990
- - Create a folder structure to organize the sharded documents
991
- - Maintain all content integrity including code blocks, diagrams, and markdown formatting
992
-
993
- ## Primary Method: Automatic with markdown-tree
994
-
995
- [[LLM: First, check if markdownExploder is set to true in .bmad-core/core-config.yaml. If it is, attempt to run the command: `md-tree explode {input file} {output path}`.
996
-
997
- If the command succeeds, inform the user that the document has been sharded successfully and STOP - do not proceed further.
998
-
999
- If the command fails (especially with an error indicating the command is not found or not available), inform the user: "The markdownExploder setting is enabled but the md-tree command is not available. Please either:
1000
-
1001
- 1. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
1002
- 2. Or set markdownExploder to false in .bmad-core/core-config.yaml
1003
-
1004
- **IMPORTANT: STOP HERE - do not proceed with manual sharding until one of the above actions is taken.**"
986
+ **IMPORTANT: STOP HERE - do not proceed with manual sharding until one of the above actions is taken.**"
1005
987
 
1006
988
  If markdownExploder is set to false, inform the user: "The markdownExploder setting is currently false. For better performance and reliability, you should:
1007
989
 
@@ -1075,13 +1057,11 @@ CRITICAL: Use proper parsing that understands markdown context. A ## inside a co
1075
1057
  For each extracted section:
1076
1058
 
1077
1059
  1. **Generate filename**: Convert the section heading to lowercase-dash-case
1078
-
1079
1060
  - Remove special characters
1080
1061
  - Replace spaces with dashes
1081
1062
  - Example: "## Tech Stack" → `tech-stack.md`
1082
1063
 
1083
1064
  2. **Adjust heading levels**:
1084
-
1085
1065
  - The level 2 heading becomes level 1 (# instead of ##) in the sharded new document
1086
1066
  - All subsection levels decrease by 1:
1087
1067
 
@@ -1171,243 +1151,38 @@ Document sharded successfully:
1171
1151
  - Ensure the sharding is reversible (could reconstruct the original from shards)
1172
1152
  ==================== END: .bmad-core/tasks/shard-doc.md ====================
1173
1153
 
1174
- ==================== START: .bmad-core/templates/prd-tmpl.yaml ====================
1154
+ ==================== START: .bmad-core/templates/brownfield-prd-tmpl.yaml ====================
1175
1155
  template:
1176
- id: prd-template-v2
1177
- name: Product Requirements Document
1156
+ id: brownfield-prd-template-v2
1157
+ name: Brownfield Enhancement PRD
1178
1158
  version: 2.0
1179
1159
  output:
1180
1160
  format: markdown
1181
1161
  filename: docs/prd.md
1182
- title: "{{project_name}} Product Requirements Document (PRD)"
1162
+ title: "{{project_name}} Brownfield Enhancement PRD"
1183
1163
 
1184
1164
  workflow:
1185
1165
  mode: interactive
1186
1166
  elicitation: advanced-elicitation
1187
1167
 
1188
1168
  sections:
1189
- - id: goals-context
1190
- title: Goals and Background Context
1191
- instruction: |
1192
- Ask if Project Brief document is available. If NO Project Brief exists, STRONGLY recommend creating one first using project-brief-tmpl (it provides essential foundation: problem statement, target users, success metrics, MVP scope, constraints). If user insists on PRD without brief, gather this information during Goals section. If Project Brief exists, review and use it to populate Goals (bullet list of desired outcomes) and Background Context (1-2 paragraphs on what this solves and why) so we can determine what is and is not in scope for PRD mvp. Either way this is critical to determine the requirements. Include Change Log table.
1193
- sections:
1194
- - id: goals
1195
- title: Goals
1196
- type: bullet-list
1197
- instruction: Bullet list of 1 line desired outcomes the PRD will deliver if successful - user and project desires
1198
- - id: background
1199
- title: Background Context
1200
- type: paragraphs
1201
- instruction: 1-2 short paragraphs summarizing the background context, such as what we learned in the brief without being redundant with the goals, what and why this solves a problem, what the current landscape or need is
1202
- - id: changelog
1203
- title: Change Log
1204
- type: table
1205
- columns: [Date, Version, Description, Author]
1206
- instruction: Track document versions and changes
1207
-
1208
- - id: requirements
1209
- title: Requirements
1210
- instruction: Draft the list of functional and non functional requirements under the two child sections
1211
- elicit: true
1212
- sections:
1213
- - id: functional
1214
- title: Functional
1215
- type: numbered-list
1216
- prefix: FR
1217
- instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with FR
1218
- examples:
1219
- - "FR6: The Todo List uses AI to detect and warn against potentially duplicate todo items that are worded differently."
1220
- - id: non-functional
1221
- title: Non Functional
1222
- type: numbered-list
1223
- prefix: NFR
1224
- instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with NFR
1225
- examples:
1226
- - "NFR1: AWS service usage must aim to stay within free-tier limits where feasible."
1227
-
1228
- - id: ui-goals
1229
- title: User Interface Design Goals
1230
- condition: PRD has UX/UI requirements
1231
- instruction: |
1232
- Capture high-level UI/UX vision to guide Design Architect and to inform story creation. Steps:
1233
-
1234
- 1. Pre-fill all subsections with educated guesses based on project context
1235
- 2. Present the complete rendered section to user
1236
- 3. Clearly let the user know where assumptions were made
1237
- 4. Ask targeted questions for unclear/missing elements or areas needing more specification
1238
- 5. This is NOT detailed UI spec - focus on product vision and user goals
1239
- elicit: true
1240
- choices:
1241
- accessibility: [None, WCAG AA, WCAG AAA]
1242
- platforms: [Web Responsive, Mobile Only, Desktop Only, Cross-Platform]
1243
- sections:
1244
- - id: ux-vision
1245
- title: Overall UX Vision
1246
- - id: interaction-paradigms
1247
- title: Key Interaction Paradigms
1248
- - id: core-screens
1249
- title: Core Screens and Views
1250
- instruction: From a product perspective, what are the most critical screens or views necessary to deliver the the PRD values and goals? This is meant to be Conceptual High Level to Drive Rough Epic or User Stories
1251
- examples:
1252
- - "Login Screen"
1253
- - "Main Dashboard"
1254
- - "Item Detail Page"
1255
- - "Settings Page"
1256
- - id: accessibility
1257
- title: "Accessibility: {None|WCAG AA|WCAG AAA|Custom Requirements}"
1258
- - id: branding
1259
- title: Branding
1260
- instruction: Any known branding elements or style guides that must be incorporated?
1261
- examples:
1262
- - "Replicate the look and feel of early 1900s black and white cinema, including animated effects replicating film damage or projector glitches during page or state transitions."
1263
- - "Attached is the full color pallet and tokens for our corporate branding."
1264
- - id: target-platforms
1265
- title: "Target Device and Platforms: {Web Responsive|Mobile Only|Desktop Only|Cross-Platform}"
1266
- examples:
1267
- - "Web Responsive, and all mobile platforms"
1268
- - "iPhone Only"
1269
- - "ASCII Windows Desktop"
1270
-
1271
- - id: technical-assumptions
1272
- title: Technical Assumptions
1273
- instruction: |
1274
- Gather technical decisions that will guide the Architect. Steps:
1275
-
1276
- 1. Check if .bmad-core/data/technical-preferences.yaml or an attached technical-preferences file exists - use it to pre-populate choices
1277
- 2. Ask user about: languages, frameworks, starter templates, libraries, APIs, deployment targets
1278
- 3. For unknowns, offer guidance based on project goals and MVP scope
1279
- 4. Document ALL technical choices with rationale (why this choice fits the project)
1280
- 5. These become constraints for the Architect - be specific and complete
1281
- elicit: true
1282
- choices:
1283
- repository: [Monorepo, Polyrepo]
1284
- architecture: [Monolith, Microservices, Serverless]
1285
- testing: [Unit Only, Unit + Integration, Full Testing Pyramid]
1286
- sections:
1287
- - id: repository-structure
1288
- title: "Repository Structure: {Monorepo|Polyrepo|Multi-repo}"
1289
- - id: service-architecture
1290
- title: Service Architecture
1291
- instruction: "CRITICAL DECISION - Document the high-level service architecture (e.g., Monolith, Microservices, Serverless functions within a Monorepo)."
1292
- - id: testing-requirements
1293
- title: Testing Requirements
1294
- instruction: "CRITICAL DECISION - Document the testing requirements, unit only, integration, e2e, manual, need for manual testing convenience methods)."
1295
- - id: additional-assumptions
1296
- title: Additional Technical Assumptions and Requests
1297
- instruction: Throughout the entire process of drafting this document, if any other technical assumptions are raised or discovered appropriate for the architect, add them here as additional bulleted items
1298
-
1299
- - id: epic-list
1300
- title: Epic List
1301
- instruction: |
1302
- Present a high-level list of all epics for user approval. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
1303
-
1304
- CRITICAL: Epics MUST be logically sequential following agile best practices:
1305
-
1306
- - Each epic should deliver a significant, end-to-end, fully deployable increment of testable functionality
1307
- - Epic 1 must establish foundational project infrastructure (app setup, Git, CI/CD, core services) unless we are adding new functionality to an existing app, while also delivering an initial piece of functionality, even as simple as a health-check route or display of a simple canary page - remember this when we produce the stories for the first epic!
1308
- - Each subsequent epic builds upon previous epics' functionality delivering major blocks of functionality that provide tangible value to users or business when deployed
1309
- - Not every project needs multiple epics, an epic needs to deliver value. For example, an API completed can deliver value even if a UI is not complete and planned for a separate epic.
1310
- - Err on the side of less epics, but let the user know your rationale and offer options for splitting them if it seems some are too large or focused on disparate things.
1311
- - Cross Cutting Concerns should flow through epics and stories and not be final stories. For example, adding a logging framework as a last story of an epic, or at the end of a project as a final epic or story would be terrible as we would not have logging from the beginning.
1312
- elicit: true
1313
- examples:
1314
- - "Epic 1: Foundation & Core Infrastructure: Establish project setup, authentication, and basic user management"
1315
- - "Epic 2: Core Business Entities: Create and manage primary domain objects with CRUD operations"
1316
- - "Epic 3: User Workflows & Interactions: Enable key user journeys and business processes"
1317
- - "Epic 4: Reporting & Analytics: Provide insights and data visualization for users"
1318
-
1319
- - id: epic-details
1320
- title: Epic {{epic_number}} {{epic_title}}
1321
- repeatable: true
1322
- instruction: |
1323
- After the epic list is approved, present each epic with all its stories and acceptance criteria as a complete review unit.
1324
-
1325
- For each epic provide expanded goal (2-3 sentences describing the objective and value all the stories will achieve).
1326
-
1327
- CRITICAL STORY SEQUENCING REQUIREMENTS:
1328
-
1329
- - Stories within each epic MUST be logically sequential
1330
- - Each story should be a "vertical slice" delivering complete functionality aside from early enabler stories for project foundation
1331
- - No story should depend on work from a later story or epic
1332
- - Identify and note any direct prerequisite stories
1333
- - Focus on "what" and "why" not "how" (leave technical implementation to Architect) yet be precise enough to support a logical sequential order of operations from story to story.
1334
- - Ensure each story delivers clear user or business value, try to avoid enablers and build them into stories that deliver value.
1335
- - Size stories for AI agent execution: Each story must be completable by a single AI agent in one focused session without context overflow
1336
- - Think "junior developer working for 2-4 hours" - stories must be small, focused, and self-contained
1337
- - If a story seems complex, break it down further as long as it can deliver a vertical slice
1338
- elicit: true
1339
- template: "{{epic_goal}}"
1340
- sections:
1341
- - id: story
1342
- title: Story {{epic_number}}.{{story_number}} {{story_title}}
1343
- repeatable: true
1344
- template: |
1345
- As a {{user_type}},
1346
- I want {{action}},
1347
- so that {{benefit}}.
1348
- sections:
1349
- - id: acceptance-criteria
1350
- title: Acceptance Criteria
1351
- type: numbered-list
1352
- item_template: "{{criterion_number}}: {{criteria}}"
1353
- repeatable: true
1354
- instruction: |
1355
- Define clear, comprehensive, and testable acceptance criteria that:
1356
-
1357
- - Precisely define what "done" means from a functional perspective
1358
- - Are unambiguous and serve as basis for verification
1359
- - Include any critical non-functional requirements from the PRD
1360
- - Consider local testability for backend/data components
1361
- - Specify UI/UX requirements and framework adherence where applicable
1362
- - Avoid cross-cutting concerns that should be in other stories or PRD sections
1363
-
1364
- - id: checklist-results
1365
- title: Checklist Results Report
1366
- instruction: Before running the checklist and drafting the prompts, offer to output the full updated PRD. If outputting it, confirm with the user that you will be proceeding to run the checklist and produce the report. Once the user confirms, execute the pm-checklist and populate the results in this section.
1367
-
1368
- - id: next-steps
1369
- title: Next Steps
1370
- sections:
1371
- - id: ux-expert-prompt
1372
- title: UX Expert Prompt
1373
- instruction: This section will contain the prompt for the UX Expert, keep it short and to the point to initiate create architecture mode using this document as input.
1374
- - id: architect-prompt
1375
- title: Architect Prompt
1376
- instruction: This section will contain the prompt for the Architect, keep it short and to the point to initiate create architecture mode using this document as input.
1377
- ==================== END: .bmad-core/templates/prd-tmpl.yaml ====================
1378
-
1379
- ==================== START: .bmad-core/templates/brownfield-prd-tmpl.yaml ====================
1380
- template:
1381
- id: brownfield-prd-template-v2
1382
- name: Brownfield Enhancement PRD
1383
- version: 2.0
1384
- output:
1385
- format: markdown
1386
- filename: docs/prd.md
1387
- title: "{{project_name}} Brownfield Enhancement PRD"
1388
-
1389
- workflow:
1390
- mode: interactive
1391
- elicitation: advanced-elicitation
1392
-
1393
- sections:
1394
- - id: intro-analysis
1395
- title: Intro Project Analysis and Context
1169
+ - id: intro-analysis
1170
+ title: Intro Project Analysis and Context
1396
1171
  instruction: |
1397
1172
  IMPORTANT - SCOPE ASSESSMENT REQUIRED:
1398
-
1173
+
1399
1174
  This PRD is for SIGNIFICANT enhancements to existing projects that require comprehensive planning and multiple stories. Before proceeding:
1400
-
1175
+
1401
1176
  1. **Assess Enhancement Complexity**: If this is a simple feature addition or bug fix that could be completed in 1-2 focused development sessions, STOP and recommend: "For simpler changes, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead. This full PRD process is designed for substantial enhancements that require architectural planning and multiple coordinated stories."
1402
-
1177
+
1403
1178
  2. **Project Context**: Determine if we're working in an IDE with the project already loaded or if the user needs to provide project information. If project files are available, analyze existing documentation in the docs folder. If insufficient documentation exists, recommend running the document-project task first.
1404
-
1179
+
1405
1180
  3. **Deep Assessment Requirement**: You MUST thoroughly analyze the existing project structure, patterns, and constraints before making ANY suggestions. Every recommendation must be grounded in actual project analysis, not assumptions.
1406
-
1181
+
1407
1182
  Gather comprehensive information about the existing project. This section must be completed before proceeding with requirements.
1408
-
1183
+
1409
1184
  CRITICAL: Throughout this analysis, explicitly confirm your understanding with the user. For every assumption you make about the existing project, ask: "Based on my analysis, I understand that [assumption]. Is this correct?"
1410
-
1185
+
1411
1186
  Do not proceed with any recommendations until the user has validated your understanding of the existing system.
1412
1187
  sections:
1413
1188
  - id: existing-project-overview
@@ -1433,7 +1208,7 @@ sections:
1433
1208
  - Note: "Document-project analysis available - using existing technical documentation"
1434
1209
  - List key documents created by document-project
1435
1210
  - Skip the missing documentation check below
1436
-
1211
+
1437
1212
  Otherwise, check for existing documentation:
1438
1213
  sections:
1439
1214
  - id: available-docs
@@ -1557,7 +1332,7 @@ sections:
1557
1332
  If document-project output available:
1558
1333
  - Extract from "Actual Tech Stack" table in High Level Architecture section
1559
1334
  - Include version numbers and any noted constraints
1560
-
1335
+
1561
1336
  Otherwise, document the current technology stack:
1562
1337
  template: |
1563
1338
  **Languages**: {{languages}}
@@ -1596,7 +1371,7 @@ sections:
1596
1371
  - Reference "Technical Debt and Known Issues" section
1597
1372
  - Include "Workarounds and Gotchas" that might impact enhancement
1598
1373
  - Note any identified constraints from "Critical Technical Debt"
1599
-
1374
+
1600
1375
  Build risk assessment incorporating existing known issues:
1601
1376
  template: |
1602
1377
  **Technical Risks**: {{technical_risks}}
@@ -1604,60 +1379,450 @@ sections:
1604
1379
  **Deployment Risks**: {{deployment_risks}}
1605
1380
  **Mitigation Strategies**: {{mitigation_strategies}}
1606
1381
 
1607
- - id: epic-structure
1608
- title: Epic and Story Structure
1609
- instruction: |
1610
- For brownfield projects, favor a single comprehensive epic unless the user is clearly requesting multiple unrelated enhancements. Before presenting the epic structure, confirm: "Based on my analysis of your existing project, I believe this enhancement should be structured as [single epic/multiple epics] because [rationale based on actual project analysis]. Does this align with your understanding of the work required?"
1611
- elicit: true
1612
- sections:
1613
- - id: epic-approach
1614
- title: Epic Approach
1615
- instruction: Explain the rationale for epic structure - typically single epic for brownfield unless multiple unrelated features
1616
- template: "**Epic Structure Decision**: {{epic_decision}} with rationale"
1382
+ - id: epic-structure
1383
+ title: Epic and Story Structure
1384
+ instruction: |
1385
+ For brownfield projects, favor a single comprehensive epic unless the user is clearly requesting multiple unrelated enhancements. Before presenting the epic structure, confirm: "Based on my analysis of your existing project, I believe this enhancement should be structured as [single epic/multiple epics] because [rationale based on actual project analysis]. Does this align with your understanding of the work required?"
1386
+ elicit: true
1387
+ sections:
1388
+ - id: epic-approach
1389
+ title: Epic Approach
1390
+ instruction: Explain the rationale for epic structure - typically single epic for brownfield unless multiple unrelated features
1391
+ template: "**Epic Structure Decision**: {{epic_decision}} with rationale"
1392
+
1393
+ - id: epic-details
1394
+ title: "Epic 1: {{enhancement_title}}"
1395
+ instruction: |
1396
+ Comprehensive epic that delivers the brownfield enhancement while maintaining existing functionality
1397
+
1398
+ CRITICAL STORY SEQUENCING FOR BROWNFIELD:
1399
+ - Stories must ensure existing functionality remains intact
1400
+ - Each story should include verification that existing features still work
1401
+ - Stories should be sequenced to minimize risk to existing system
1402
+ - Include rollback considerations for each story
1403
+ - Focus on incremental integration rather than big-bang changes
1404
+ - Size stories for AI agent execution in existing codebase context
1405
+ - MANDATORY: Present the complete story sequence and ask: "This story sequence is designed to minimize risk to your existing system. Does this order make sense given your project's architecture and constraints?"
1406
+ - Stories must be logically sequential with clear dependencies identified
1407
+ - Each story must deliver value while maintaining system integrity
1408
+ template: |
1409
+ **Epic Goal**: {{epic_goal}}
1410
+
1411
+ **Integration Requirements**: {{integration_requirements}}
1412
+ sections:
1413
+ - id: story
1414
+ title: "Story 1.{{story_number}} {{story_title}}"
1415
+ repeatable: true
1416
+ template: |
1417
+ As a {{user_type}},
1418
+ I want {{action}},
1419
+ so that {{benefit}}.
1420
+ sections:
1421
+ - id: acceptance-criteria
1422
+ title: Acceptance Criteria
1423
+ type: numbered-list
1424
+ instruction: Define criteria that include both new functionality and existing system integrity
1425
+ item_template: "{{criterion_number}}: {{criteria}}"
1426
+ - id: integration-verification
1427
+ title: Integration Verification
1428
+ instruction: Specific verification steps to ensure existing functionality remains intact
1429
+ type: numbered-list
1430
+ prefix: IV
1431
+ items:
1432
+ - template: "IV1: {{existing_functionality_verification}}"
1433
+ - template: "IV2: {{integration_point_verification}}"
1434
+ - template: "IV3: {{performance_impact_verification}}"
1435
+ ==================== END: .bmad-core/templates/brownfield-prd-tmpl.yaml ====================
1436
+
1437
+ ==================== START: .bmad-core/templates/prd-tmpl.yaml ====================
1438
+ template:
1439
+ id: prd-template-v2
1440
+ name: Product Requirements Document
1441
+ version: 2.0
1442
+ output:
1443
+ format: markdown
1444
+ filename: docs/prd.md
1445
+ title: "{{project_name}} Product Requirements Document (PRD)"
1446
+
1447
+ workflow:
1448
+ mode: interactive
1449
+ elicitation: advanced-elicitation
1450
+
1451
+ sections:
1452
+ - id: goals-context
1453
+ title: Goals and Background Context
1454
+ instruction: |
1455
+ Ask if Project Brief document is available. If NO Project Brief exists, STRONGLY recommend creating one first using project-brief-tmpl (it provides essential foundation: problem statement, target users, success metrics, MVP scope, constraints). If user insists on PRD without brief, gather this information during Goals section. If Project Brief exists, review and use it to populate Goals (bullet list of desired outcomes) and Background Context (1-2 paragraphs on what this solves and why) so we can determine what is and is not in scope for PRD mvp. Either way this is critical to determine the requirements. Include Change Log table.
1456
+ sections:
1457
+ - id: goals
1458
+ title: Goals
1459
+ type: bullet-list
1460
+ instruction: Bullet list of 1 line desired outcomes the PRD will deliver if successful - user and project desires
1461
+ - id: background
1462
+ title: Background Context
1463
+ type: paragraphs
1464
+ instruction: 1-2 short paragraphs summarizing the background context, such as what we learned in the brief without being redundant with the goals, what and why this solves a problem, what the current landscape or need is
1465
+ - id: changelog
1466
+ title: Change Log
1467
+ type: table
1468
+ columns: [Date, Version, Description, Author]
1469
+ instruction: Track document versions and changes
1470
+
1471
+ - id: requirements
1472
+ title: Requirements
1473
+ instruction: Draft the list of functional and non functional requirements under the two child sections
1474
+ elicit: true
1475
+ sections:
1476
+ - id: functional
1477
+ title: Functional
1478
+ type: numbered-list
1479
+ prefix: FR
1480
+ instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with FR
1481
+ examples:
1482
+ - "FR6: The Todo List uses AI to detect and warn against potentially duplicate todo items that are worded differently."
1483
+ - id: non-functional
1484
+ title: Non Functional
1485
+ type: numbered-list
1486
+ prefix: NFR
1487
+ instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with NFR
1488
+ examples:
1489
+ - "NFR1: AWS service usage must aim to stay within free-tier limits where feasible."
1490
+
1491
+ - id: ui-goals
1492
+ title: User Interface Design Goals
1493
+ condition: PRD has UX/UI requirements
1494
+ instruction: |
1495
+ Capture high-level UI/UX vision to guide Design Architect and to inform story creation. Steps:
1496
+
1497
+ 1. Pre-fill all subsections with educated guesses based on project context
1498
+ 2. Present the complete rendered section to user
1499
+ 3. Clearly let the user know where assumptions were made
1500
+ 4. Ask targeted questions for unclear/missing elements or areas needing more specification
1501
+ 5. This is NOT detailed UI spec - focus on product vision and user goals
1502
+ elicit: true
1503
+ choices:
1504
+ accessibility: [None, WCAG AA, WCAG AAA]
1505
+ platforms: [Web Responsive, Mobile Only, Desktop Only, Cross-Platform]
1506
+ sections:
1507
+ - id: ux-vision
1508
+ title: Overall UX Vision
1509
+ - id: interaction-paradigms
1510
+ title: Key Interaction Paradigms
1511
+ - id: core-screens
1512
+ title: Core Screens and Views
1513
+ instruction: From a product perspective, what are the most critical screens or views necessary to deliver the the PRD values and goals? This is meant to be Conceptual High Level to Drive Rough Epic or User Stories
1514
+ examples:
1515
+ - "Login Screen"
1516
+ - "Main Dashboard"
1517
+ - "Item Detail Page"
1518
+ - "Settings Page"
1519
+ - id: accessibility
1520
+ title: "Accessibility: {None|WCAG AA|WCAG AAA|Custom Requirements}"
1521
+ - id: branding
1522
+ title: Branding
1523
+ instruction: Any known branding elements or style guides that must be incorporated?
1524
+ examples:
1525
+ - "Replicate the look and feel of early 1900s black and white cinema, including animated effects replicating film damage or projector glitches during page or state transitions."
1526
+ - "Attached is the full color pallet and tokens for our corporate branding."
1527
+ - id: target-platforms
1528
+ title: "Target Device and Platforms: {Web Responsive|Mobile Only|Desktop Only|Cross-Platform}"
1529
+ examples:
1530
+ - "Web Responsive, and all mobile platforms"
1531
+ - "iPhone Only"
1532
+ - "ASCII Windows Desktop"
1533
+
1534
+ - id: technical-assumptions
1535
+ title: Technical Assumptions
1536
+ instruction: |
1537
+ Gather technical decisions that will guide the Architect. Steps:
1538
+
1539
+ 1. Check if .bmad-core/data/technical-preferences.yaml or an attached technical-preferences file exists - use it to pre-populate choices
1540
+ 2. Ask user about: languages, frameworks, starter templates, libraries, APIs, deployment targets
1541
+ 3. For unknowns, offer guidance based on project goals and MVP scope
1542
+ 4. Document ALL technical choices with rationale (why this choice fits the project)
1543
+ 5. These become constraints for the Architect - be specific and complete
1544
+ elicit: true
1545
+ choices:
1546
+ repository: [Monorepo, Polyrepo]
1547
+ architecture: [Monolith, Microservices, Serverless]
1548
+ testing: [Unit Only, Unit + Integration, Full Testing Pyramid]
1549
+ sections:
1550
+ - id: repository-structure
1551
+ title: "Repository Structure: {Monorepo|Polyrepo|Multi-repo}"
1552
+ - id: service-architecture
1553
+ title: Service Architecture
1554
+ instruction: "CRITICAL DECISION - Document the high-level service architecture (e.g., Monolith, Microservices, Serverless functions within a Monorepo)."
1555
+ - id: testing-requirements
1556
+ title: Testing Requirements
1557
+ instruction: "CRITICAL DECISION - Document the testing requirements, unit only, integration, e2e, manual, need for manual testing convenience methods)."
1558
+ - id: additional-assumptions
1559
+ title: Additional Technical Assumptions and Requests
1560
+ instruction: Throughout the entire process of drafting this document, if any other technical assumptions are raised or discovered appropriate for the architect, add them here as additional bulleted items
1561
+
1562
+ - id: epic-list
1563
+ title: Epic List
1564
+ instruction: |
1565
+ Present a high-level list of all epics for user approval. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
1566
+
1567
+ CRITICAL: Epics MUST be logically sequential following agile best practices:
1568
+
1569
+ - Each epic should deliver a significant, end-to-end, fully deployable increment of testable functionality
1570
+ - Epic 1 must establish foundational project infrastructure (app setup, Git, CI/CD, core services) unless we are adding new functionality to an existing app, while also delivering an initial piece of functionality, even as simple as a health-check route or display of a simple canary page - remember this when we produce the stories for the first epic!
1571
+ - Each subsequent epic builds upon previous epics' functionality delivering major blocks of functionality that provide tangible value to users or business when deployed
1572
+ - Not every project needs multiple epics, an epic needs to deliver value. For example, an API completed can deliver value even if a UI is not complete and planned for a separate epic.
1573
+ - Err on the side of less epics, but let the user know your rationale and offer options for splitting them if it seems some are too large or focused on disparate things.
1574
+ - Cross Cutting Concerns should flow through epics and stories and not be final stories. For example, adding a logging framework as a last story of an epic, or at the end of a project as a final epic or story would be terrible as we would not have logging from the beginning.
1575
+ elicit: true
1576
+ examples:
1577
+ - "Epic 1: Foundation & Core Infrastructure: Establish project setup, authentication, and basic user management"
1578
+ - "Epic 2: Core Business Entities: Create and manage primary domain objects with CRUD operations"
1579
+ - "Epic 3: User Workflows & Interactions: Enable key user journeys and business processes"
1580
+ - "Epic 4: Reporting & Analytics: Provide insights and data visualization for users"
1581
+
1582
+ - id: epic-details
1583
+ title: Epic {{epic_number}} {{epic_title}}
1584
+ repeatable: true
1585
+ instruction: |
1586
+ After the epic list is approved, present each epic with all its stories and acceptance criteria as a complete review unit.
1587
+
1588
+ For each epic provide expanded goal (2-3 sentences describing the objective and value all the stories will achieve).
1589
+
1590
+ CRITICAL STORY SEQUENCING REQUIREMENTS:
1591
+
1592
+ - Stories within each epic MUST be logically sequential
1593
+ - Each story should be a "vertical slice" delivering complete functionality aside from early enabler stories for project foundation
1594
+ - No story should depend on work from a later story or epic
1595
+ - Identify and note any direct prerequisite stories
1596
+ - Focus on "what" and "why" not "how" (leave technical implementation to Architect) yet be precise enough to support a logical sequential order of operations from story to story.
1597
+ - Ensure each story delivers clear user or business value, try to avoid enablers and build them into stories that deliver value.
1598
+ - Size stories for AI agent execution: Each story must be completable by a single AI agent in one focused session without context overflow
1599
+ - Think "junior developer working for 2-4 hours" - stories must be small, focused, and self-contained
1600
+ - If a story seems complex, break it down further as long as it can deliver a vertical slice
1601
+ elicit: true
1602
+ template: "{{epic_goal}}"
1603
+ sections:
1604
+ - id: story
1605
+ title: Story {{epic_number}}.{{story_number}} {{story_title}}
1606
+ repeatable: true
1607
+ template: |
1608
+ As a {{user_type}},
1609
+ I want {{action}},
1610
+ so that {{benefit}}.
1611
+ sections:
1612
+ - id: acceptance-criteria
1613
+ title: Acceptance Criteria
1614
+ type: numbered-list
1615
+ item_template: "{{criterion_number}}: {{criteria}}"
1616
+ repeatable: true
1617
+ instruction: |
1618
+ Define clear, comprehensive, and testable acceptance criteria that:
1619
+
1620
+ - Precisely define what "done" means from a functional perspective
1621
+ - Are unambiguous and serve as basis for verification
1622
+ - Include any critical non-functional requirements from the PRD
1623
+ - Consider local testability for backend/data components
1624
+ - Specify UI/UX requirements and framework adherence where applicable
1625
+ - Avoid cross-cutting concerns that should be in other stories or PRD sections
1626
+
1627
+ - id: checklist-results
1628
+ title: Checklist Results Report
1629
+ instruction: Before running the checklist and drafting the prompts, offer to output the full updated PRD. If outputting it, confirm with the user that you will be proceeding to run the checklist and produce the report. Once the user confirms, execute the pm-checklist and populate the results in this section.
1630
+
1631
+ - id: next-steps
1632
+ title: Next Steps
1633
+ sections:
1634
+ - id: ux-expert-prompt
1635
+ title: UX Expert Prompt
1636
+ instruction: This section will contain the prompt for the UX Expert, keep it short and to the point to initiate create architecture mode using this document as input.
1637
+ - id: architect-prompt
1638
+ title: Architect Prompt
1639
+ instruction: This section will contain the prompt for the Architect, keep it short and to the point to initiate create architecture mode using this document as input.
1640
+ ==================== END: .bmad-core/templates/prd-tmpl.yaml ====================
1641
+
1642
+ ==================== START: .bmad-core/checklists/change-checklist.md ====================
1643
+ # Change Navigation Checklist
1644
+
1645
+ **Purpose:** To systematically guide the selected Agent and user through the analysis and planning required when a significant change (pivot, tech issue, missing requirement, failed story) is identified during the BMad workflow.
1646
+
1647
+ **Instructions:** Review each item with the user. Mark `[x]` for completed/confirmed, `[N/A]` if not applicable, or add notes for discussion points.
1648
+
1649
+ [[LLM: INITIALIZATION INSTRUCTIONS - CHANGE NAVIGATION
1650
+
1651
+ Changes during development are inevitable, but how we handle them determines project success or failure.
1652
+
1653
+ Before proceeding, understand:
1654
+
1655
+ 1. This checklist is for SIGNIFICANT changes that affect the project direction
1656
+ 2. Minor adjustments within a story don't require this process
1657
+ 3. The goal is to minimize wasted work while adapting to new realities
1658
+ 4. User buy-in is critical - they must understand and approve changes
1659
+
1660
+ Required context:
1661
+
1662
+ - The triggering story or issue
1663
+ - Current project state (completed stories, current epic)
1664
+ - Access to PRD, architecture, and other key documents
1665
+ - Understanding of remaining work planned
1666
+
1667
+ APPROACH:
1668
+ This is an interactive process with the user. Work through each section together, discussing implications and options. The user makes final decisions, but provide expert guidance on technical feasibility and impact.
1669
+
1670
+ REMEMBER: Changes are opportunities to improve, not failures. Handle them professionally and constructively.]]
1671
+
1672
+ ---
1673
+
1674
+ ## 1. Understand the Trigger & Context
1675
+
1676
+ [[LLM: Start by fully understanding what went wrong and why. Don't jump to solutions yet. Ask probing questions:
1677
+
1678
+ - What exactly happened that triggered this review?
1679
+ - Is this a one-time issue or symptomatic of a larger problem?
1680
+ - Could this have been anticipated earlier?
1681
+ - What assumptions were incorrect?
1682
+
1683
+ Be specific and factual, not blame-oriented.]]
1684
+
1685
+ - [ ] **Identify Triggering Story:** Clearly identify the story (or stories) that revealed the issue.
1686
+ - [ ] **Define the Issue:** Articulate the core problem precisely.
1687
+ - [ ] Is it a technical limitation/dead-end?
1688
+ - [ ] Is it a newly discovered requirement?
1689
+ - [ ] Is it a fundamental misunderstanding of existing requirements?
1690
+ - [ ] Is it a necessary pivot based on feedback or new information?
1691
+ - [ ] Is it a failed/abandoned story needing a new approach?
1692
+ - [ ] **Assess Initial Impact:** Describe the immediate observed consequences (e.g., blocked progress, incorrect functionality, non-viable tech).
1693
+ - [ ] **Gather Evidence:** Note any specific logs, error messages, user feedback, or analysis that supports the issue definition.
1694
+
1695
+ ## 2. Epic Impact Assessment
1696
+
1697
+ [[LLM: Changes ripple through the project structure. Systematically evaluate:
1698
+
1699
+ 1. Can we salvage the current epic with modifications?
1700
+ 2. Do future epics still make sense given this change?
1701
+ 3. Are we creating or eliminating dependencies?
1702
+ 4. Does the epic sequence need reordering?
1703
+
1704
+ Think about both immediate and downstream effects.]]
1705
+
1706
+ - [ ] **Analyze Current Epic:**
1707
+ - [ ] Can the current epic containing the trigger story still be completed?
1708
+ - [ ] Does the current epic need modification (story changes, additions, removals)?
1709
+ - [ ] Should the current epic be abandoned or fundamentally redefined?
1710
+ - [ ] **Analyze Future Epics:**
1711
+ - [ ] Review all remaining planned epics.
1712
+ - [ ] Does the issue require changes to planned stories in future epics?
1713
+ - [ ] Does the issue invalidate any future epics?
1714
+ - [ ] Does the issue necessitate the creation of entirely new epics?
1715
+ - [ ] Should the order/priority of future epics be changed?
1716
+ - [ ] **Summarize Epic Impact:** Briefly document the overall effect on the project's epic structure and flow.
1717
+
1718
+ ## 3. Artifact Conflict & Impact Analysis
1719
+
1720
+ [[LLM: Documentation drives development in BMad. Check each artifact:
1721
+
1722
+ 1. Does this change invalidate documented decisions?
1723
+ 2. Are architectural assumptions still valid?
1724
+ 3. Do user flows need rethinking?
1725
+ 4. Are technical constraints different than documented?
1726
+
1727
+ Be thorough - missed conflicts cause future problems.]]
1728
+
1729
+ - [ ] **Review PRD:**
1730
+ - [ ] Does the issue conflict with the core goals or requirements stated in the PRD?
1731
+ - [ ] Does the PRD need clarification or updates based on the new understanding?
1732
+ - [ ] **Review Architecture Document:**
1733
+ - [ ] Does the issue conflict with the documented architecture (components, patterns, tech choices)?
1734
+ - [ ] Are specific components/diagrams/sections impacted?
1735
+ - [ ] Does the technology list need updating?
1736
+ - [ ] Do data models or schemas need revision?
1737
+ - [ ] Are external API integrations affected?
1738
+ - [ ] **Review Frontend Spec (if applicable):**
1739
+ - [ ] Does the issue conflict with the FE architecture, component library choice, or UI/UX design?
1740
+ - [ ] Are specific FE components or user flows impacted?
1741
+ - [ ] **Review Other Artifacts (if applicable):**
1742
+ - [ ] Consider impact on deployment scripts, IaC, monitoring setup, etc.
1743
+ - [ ] **Summarize Artifact Impact:** List all artifacts requiring updates and the nature of the changes needed.
1744
+
1745
+ ## 4. Path Forward Evaluation
1746
+
1747
+ [[LLM: Present options clearly with pros/cons. For each path:
1748
+
1749
+ 1. What's the effort required?
1750
+ 2. What work gets thrown away?
1751
+ 3. What risks are we taking?
1752
+ 4. How does this affect timeline?
1753
+ 5. Is this sustainable long-term?
1754
+
1755
+ Be honest about trade-offs. There's rarely a perfect solution.]]
1756
+
1757
+ - [ ] **Option 1: Direct Adjustment / Integration:**
1758
+ - [ ] Can the issue be addressed by modifying/adding future stories within the existing plan?
1759
+ - [ ] Define the scope and nature of these adjustments.
1760
+ - [ ] Assess feasibility, effort, and risks of this path.
1761
+ - [ ] **Option 2: Potential Rollback:**
1762
+ - [ ] Would reverting completed stories significantly simplify addressing the issue?
1763
+ - [ ] Identify specific stories/commits to consider for rollback.
1764
+ - [ ] Assess the effort required for rollback.
1765
+ - [ ] Assess the impact of rollback (lost work, data implications).
1766
+ - [ ] Compare the net benefit/cost vs. Direct Adjustment.
1767
+ - [ ] **Option 3: PRD MVP Review & Potential Re-scoping:**
1768
+ - [ ] Is the original PRD MVP still achievable given the issue and constraints?
1769
+ - [ ] Does the MVP scope need reduction (removing features/epics)?
1770
+ - [ ] Do the core MVP goals need modification?
1771
+ - [ ] Are alternative approaches needed to meet the original MVP intent?
1772
+ - [ ] **Extreme Case:** Does the issue necessitate a fundamental replan or potentially a new PRD V2 (to be handled by PM)?
1773
+ - [ ] **Select Recommended Path:** Based on the evaluation, agree on the most viable path forward.
1774
+
1775
+ ## 5. Sprint Change Proposal Components
1776
+
1777
+ [[LLM: The proposal must be actionable and clear. Ensure:
1778
+
1779
+ 1. The issue is explained in plain language
1780
+ 2. Impacts are quantified where possible
1781
+ 3. The recommended path has clear rationale
1782
+ 4. Next steps are specific and assigned
1783
+ 5. Success criteria for the change are defined
1784
+
1785
+ This proposal guides all subsequent work.]]
1786
+
1787
+ (Ensure all agreed-upon points from previous sections are captured in the proposal)
1788
+
1789
+ - [ ] **Identified Issue Summary:** Clear, concise problem statement.
1790
+ - [ ] **Epic Impact Summary:** How epics are affected.
1791
+ - [ ] **Artifact Adjustment Needs:** List of documents to change.
1792
+ - [ ] **Recommended Path Forward:** Chosen solution with rationale.
1793
+ - [ ] **PRD MVP Impact:** Changes to scope/goals (if any).
1794
+ - [ ] **High-Level Action Plan:** Next steps for stories/updates.
1795
+ - [ ] **Agent Handoff Plan:** Identify roles needed (PM, Arch, Design Arch, PO).
1796
+
1797
+ ## 6. Final Review & Handoff
1798
+
1799
+ [[LLM: Changes require coordination. Before concluding:
1800
+
1801
+ 1. Is the user fully aligned with the plan?
1802
+ 2. Do all stakeholders understand the impacts?
1803
+ 3. Are handoffs to other agents clear?
1804
+ 4. Is there a rollback plan if the change fails?
1805
+ 5. How will we validate the change worked?
1806
+
1807
+ Get explicit approval - implicit agreement causes problems.
1808
+
1809
+ FINAL REPORT:
1810
+ After completing the checklist, provide a concise summary:
1811
+
1812
+ - What changed and why
1813
+ - What we're doing about it
1814
+ - Who needs to do what
1815
+ - When we'll know if it worked
1617
1816
 
1618
- - id: epic-details
1619
- title: "Epic 1: {{enhancement_title}}"
1620
- instruction: |
1621
- Comprehensive epic that delivers the brownfield enhancement while maintaining existing functionality
1622
-
1623
- CRITICAL STORY SEQUENCING FOR BROWNFIELD:
1624
- - Stories must ensure existing functionality remains intact
1625
- - Each story should include verification that existing features still work
1626
- - Stories should be sequenced to minimize risk to existing system
1627
- - Include rollback considerations for each story
1628
- - Focus on incremental integration rather than big-bang changes
1629
- - Size stories for AI agent execution in existing codebase context
1630
- - MANDATORY: Present the complete story sequence and ask: "This story sequence is designed to minimize risk to your existing system. Does this order make sense given your project's architecture and constraints?"
1631
- - Stories must be logically sequential with clear dependencies identified
1632
- - Each story must deliver value while maintaining system integrity
1633
- template: |
1634
- **Epic Goal**: {{epic_goal}}
1635
-
1636
- **Integration Requirements**: {{integration_requirements}}
1637
- sections:
1638
- - id: story
1639
- title: "Story 1.{{story_number}} {{story_title}}"
1640
- repeatable: true
1641
- template: |
1642
- As a {{user_type}},
1643
- I want {{action}},
1644
- so that {{benefit}}.
1645
- sections:
1646
- - id: acceptance-criteria
1647
- title: Acceptance Criteria
1648
- type: numbered-list
1649
- instruction: Define criteria that include both new functionality and existing system integrity
1650
- item_template: "{{criterion_number}}: {{criteria}}"
1651
- - id: integration-verification
1652
- title: Integration Verification
1653
- instruction: Specific verification steps to ensure existing functionality remains intact
1654
- type: numbered-list
1655
- prefix: IV
1656
- items:
1657
- - template: "IV1: {{existing_functionality_verification}}"
1658
- - template: "IV2: {{integration_point_verification}}"
1659
- - template: "IV3: {{performance_impact_verification}}"
1660
- ==================== END: .bmad-core/templates/brownfield-prd-tmpl.yaml ====================
1817
+ Keep it action-oriented and forward-looking.]]
1818
+
1819
+ - [ ] **Review Checklist:** Confirm all relevant items were discussed.
1820
+ - [ ] **Review Sprint Change Proposal:** Ensure it accurately reflects the discussion and decisions.
1821
+ - [ ] **User Approval:** Obtain explicit user approval for the proposal.
1822
+ - [ ] **Confirm Next Steps:** Reiterate the handoff plan and the next actions to be taken by specific agents.
1823
+
1824
+ ---
1825
+ ==================== END: .bmad-core/checklists/change-checklist.md ====================
1661
1826
 
1662
1827
  ==================== START: .bmad-core/checklists/pm-checklist.md ====================
1663
1828
  # Product Manager (PM) Requirements Checklist
@@ -1966,7 +2131,6 @@ Ask the user if they want to work through the checklist:
1966
2131
  Create a comprehensive validation report that includes:
1967
2132
 
1968
2133
  1. Executive Summary
1969
-
1970
2134
  - Overall PRD completeness (percentage)
1971
2135
  - MVP scope appropriateness (Too Large/Just Right/Too Small)
1972
2136
  - Readiness for architecture phase (Ready/Nearly Ready/Not Ready)
@@ -1974,26 +2138,22 @@ Create a comprehensive validation report that includes:
1974
2138
 
1975
2139
  2. Category Analysis Table
1976
2140
  Fill in the actual table with:
1977
-
1978
2141
  - Status: PASS (90%+ complete), PARTIAL (60-89%), FAIL (<60%)
1979
2142
  - Critical Issues: Specific problems that block progress
1980
2143
 
1981
2144
  3. Top Issues by Priority
1982
-
1983
2145
  - BLOCKERS: Must fix before architect can proceed
1984
2146
  - HIGH: Should fix for quality
1985
2147
  - MEDIUM: Would improve clarity
1986
2148
  - LOW: Nice to have
1987
2149
 
1988
2150
  4. MVP Scope Assessment
1989
-
1990
2151
  - Features that might be cut for true MVP
1991
2152
  - Missing features that are essential
1992
2153
  - Complexity concerns
1993
2154
  - Timeline realism
1994
2155
 
1995
2156
  5. Technical Readiness
1996
-
1997
2157
  - Clarity of technical constraints
1998
2158
  - Identified technical risks
1999
2159
  - Areas needing architect investigation
@@ -2037,191 +2197,6 @@ After presenting the report, ask if the user wants:
2037
2197
  - **NEEDS REFINEMENT**: The requirements documentation requires additional work to address the identified deficiencies.
2038
2198
  ==================== END: .bmad-core/checklists/pm-checklist.md ====================
2039
2199
 
2040
- ==================== START: .bmad-core/checklists/change-checklist.md ====================
2041
- # Change Navigation Checklist
2042
-
2043
- **Purpose:** To systematically guide the selected Agent and user through the analysis and planning required when a significant change (pivot, tech issue, missing requirement, failed story) is identified during the BMad workflow.
2044
-
2045
- **Instructions:** Review each item with the user. Mark `[x]` for completed/confirmed, `[N/A]` if not applicable, or add notes for discussion points.
2046
-
2047
- [[LLM: INITIALIZATION INSTRUCTIONS - CHANGE NAVIGATION
2048
-
2049
- Changes during development are inevitable, but how we handle them determines project success or failure.
2050
-
2051
- Before proceeding, understand:
2052
-
2053
- 1. This checklist is for SIGNIFICANT changes that affect the project direction
2054
- 2. Minor adjustments within a story don't require this process
2055
- 3. The goal is to minimize wasted work while adapting to new realities
2056
- 4. User buy-in is critical - they must understand and approve changes
2057
-
2058
- Required context:
2059
-
2060
- - The triggering story or issue
2061
- - Current project state (completed stories, current epic)
2062
- - Access to PRD, architecture, and other key documents
2063
- - Understanding of remaining work planned
2064
-
2065
- APPROACH:
2066
- This is an interactive process with the user. Work through each section together, discussing implications and options. The user makes final decisions, but provide expert guidance on technical feasibility and impact.
2067
-
2068
- REMEMBER: Changes are opportunities to improve, not failures. Handle them professionally and constructively.]]
2069
-
2070
- ---
2071
-
2072
- ## 1. Understand the Trigger & Context
2073
-
2074
- [[LLM: Start by fully understanding what went wrong and why. Don't jump to solutions yet. Ask probing questions:
2075
-
2076
- - What exactly happened that triggered this review?
2077
- - Is this a one-time issue or symptomatic of a larger problem?
2078
- - Could this have been anticipated earlier?
2079
- - What assumptions were incorrect?
2080
-
2081
- Be specific and factual, not blame-oriented.]]
2082
-
2083
- - [ ] **Identify Triggering Story:** Clearly identify the story (or stories) that revealed the issue.
2084
- - [ ] **Define the Issue:** Articulate the core problem precisely.
2085
- - [ ] Is it a technical limitation/dead-end?
2086
- - [ ] Is it a newly discovered requirement?
2087
- - [ ] Is it a fundamental misunderstanding of existing requirements?
2088
- - [ ] Is it a necessary pivot based on feedback or new information?
2089
- - [ ] Is it a failed/abandoned story needing a new approach?
2090
- - [ ] **Assess Initial Impact:** Describe the immediate observed consequences (e.g., blocked progress, incorrect functionality, non-viable tech).
2091
- - [ ] **Gather Evidence:** Note any specific logs, error messages, user feedback, or analysis that supports the issue definition.
2092
-
2093
- ## 2. Epic Impact Assessment
2094
-
2095
- [[LLM: Changes ripple through the project structure. Systematically evaluate:
2096
-
2097
- 1. Can we salvage the current epic with modifications?
2098
- 2. Do future epics still make sense given this change?
2099
- 3. Are we creating or eliminating dependencies?
2100
- 4. Does the epic sequence need reordering?
2101
-
2102
- Think about both immediate and downstream effects.]]
2103
-
2104
- - [ ] **Analyze Current Epic:**
2105
- - [ ] Can the current epic containing the trigger story still be completed?
2106
- - [ ] Does the current epic need modification (story changes, additions, removals)?
2107
- - [ ] Should the current epic be abandoned or fundamentally redefined?
2108
- - [ ] **Analyze Future Epics:**
2109
- - [ ] Review all remaining planned epics.
2110
- - [ ] Does the issue require changes to planned stories in future epics?
2111
- - [ ] Does the issue invalidate any future epics?
2112
- - [ ] Does the issue necessitate the creation of entirely new epics?
2113
- - [ ] Should the order/priority of future epics be changed?
2114
- - [ ] **Summarize Epic Impact:** Briefly document the overall effect on the project's epic structure and flow.
2115
-
2116
- ## 3. Artifact Conflict & Impact Analysis
2117
-
2118
- [[LLM: Documentation drives development in BMad. Check each artifact:
2119
-
2120
- 1. Does this change invalidate documented decisions?
2121
- 2. Are architectural assumptions still valid?
2122
- 3. Do user flows need rethinking?
2123
- 4. Are technical constraints different than documented?
2124
-
2125
- Be thorough - missed conflicts cause future problems.]]
2126
-
2127
- - [ ] **Review PRD:**
2128
- - [ ] Does the issue conflict with the core goals or requirements stated in the PRD?
2129
- - [ ] Does the PRD need clarification or updates based on the new understanding?
2130
- - [ ] **Review Architecture Document:**
2131
- - [ ] Does the issue conflict with the documented architecture (components, patterns, tech choices)?
2132
- - [ ] Are specific components/diagrams/sections impacted?
2133
- - [ ] Does the technology list need updating?
2134
- - [ ] Do data models or schemas need revision?
2135
- - [ ] Are external API integrations affected?
2136
- - [ ] **Review Frontend Spec (if applicable):**
2137
- - [ ] Does the issue conflict with the FE architecture, component library choice, or UI/UX design?
2138
- - [ ] Are specific FE components or user flows impacted?
2139
- - [ ] **Review Other Artifacts (if applicable):**
2140
- - [ ] Consider impact on deployment scripts, IaC, monitoring setup, etc.
2141
- - [ ] **Summarize Artifact Impact:** List all artifacts requiring updates and the nature of the changes needed.
2142
-
2143
- ## 4. Path Forward Evaluation
2144
-
2145
- [[LLM: Present options clearly with pros/cons. For each path:
2146
-
2147
- 1. What's the effort required?
2148
- 2. What work gets thrown away?
2149
- 3. What risks are we taking?
2150
- 4. How does this affect timeline?
2151
- 5. Is this sustainable long-term?
2152
-
2153
- Be honest about trade-offs. There's rarely a perfect solution.]]
2154
-
2155
- - [ ] **Option 1: Direct Adjustment / Integration:**
2156
- - [ ] Can the issue be addressed by modifying/adding future stories within the existing plan?
2157
- - [ ] Define the scope and nature of these adjustments.
2158
- - [ ] Assess feasibility, effort, and risks of this path.
2159
- - [ ] **Option 2: Potential Rollback:**
2160
- - [ ] Would reverting completed stories significantly simplify addressing the issue?
2161
- - [ ] Identify specific stories/commits to consider for rollback.
2162
- - [ ] Assess the effort required for rollback.
2163
- - [ ] Assess the impact of rollback (lost work, data implications).
2164
- - [ ] Compare the net benefit/cost vs. Direct Adjustment.
2165
- - [ ] **Option 3: PRD MVP Review & Potential Re-scoping:**
2166
- - [ ] Is the original PRD MVP still achievable given the issue and constraints?
2167
- - [ ] Does the MVP scope need reduction (removing features/epics)?
2168
- - [ ] Do the core MVP goals need modification?
2169
- - [ ] Are alternative approaches needed to meet the original MVP intent?
2170
- - [ ] **Extreme Case:** Does the issue necessitate a fundamental replan or potentially a new PRD V2 (to be handled by PM)?
2171
- - [ ] **Select Recommended Path:** Based on the evaluation, agree on the most viable path forward.
2172
-
2173
- ## 5. Sprint Change Proposal Components
2174
-
2175
- [[LLM: The proposal must be actionable and clear. Ensure:
2176
-
2177
- 1. The issue is explained in plain language
2178
- 2. Impacts are quantified where possible
2179
- 3. The recommended path has clear rationale
2180
- 4. Next steps are specific and assigned
2181
- 5. Success criteria for the change are defined
2182
-
2183
- This proposal guides all subsequent work.]]
2184
-
2185
- (Ensure all agreed-upon points from previous sections are captured in the proposal)
2186
-
2187
- - [ ] **Identified Issue Summary:** Clear, concise problem statement.
2188
- - [ ] **Epic Impact Summary:** How epics are affected.
2189
- - [ ] **Artifact Adjustment Needs:** List of documents to change.
2190
- - [ ] **Recommended Path Forward:** Chosen solution with rationale.
2191
- - [ ] **PRD MVP Impact:** Changes to scope/goals (if any).
2192
- - [ ] **High-Level Action Plan:** Next steps for stories/updates.
2193
- - [ ] **Agent Handoff Plan:** Identify roles needed (PM, Arch, Design Arch, PO).
2194
-
2195
- ## 6. Final Review & Handoff
2196
-
2197
- [[LLM: Changes require coordination. Before concluding:
2198
-
2199
- 1. Is the user fully aligned with the plan?
2200
- 2. Do all stakeholders understand the impacts?
2201
- 3. Are handoffs to other agents clear?
2202
- 4. Is there a rollback plan if the change fails?
2203
- 5. How will we validate the change worked?
2204
-
2205
- Get explicit approval - implicit agreement causes problems.
2206
-
2207
- FINAL REPORT:
2208
- After completing the checklist, provide a concise summary:
2209
-
2210
- - What changed and why
2211
- - What we're doing about it
2212
- - Who needs to do what
2213
- - When we'll know if it worked
2214
-
2215
- Keep it action-oriented and forward-looking.]]
2216
-
2217
- - [ ] **Review Checklist:** Confirm all relevant items were discussed.
2218
- - [ ] **Review Sprint Change Proposal:** Ensure it accurately reflects the discussion and decisions.
2219
- - [ ] **User Approval:** Obtain explicit user approval for the proposal.
2220
- - [ ] **Confirm Next Steps:** Reiterate the handoff plan and the next actions to be taken by specific agents.
2221
-
2222
- ---
2223
- ==================== END: .bmad-core/checklists/change-checklist.md ====================
2224
-
2225
2200
  ==================== START: .bmad-core/data/technical-preferences.md ====================
2226
2201
  # User-Defined Preferred Patterns and Preferences
2227
2202