bmad-stella 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/.github/FORK_GUIDE.md +106 -0
  2. package/.github/FUNDING.yaml +15 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
  5. package/.github/workflows/discord.yaml +26 -0
  6. package/.github/workflows/format-check.yaml +44 -0
  7. package/.github/workflows/manual-release.yaml +174 -0
  8. package/.github/workflows/pr-validation.yaml +55 -0
  9. package/.husky/pre-commit +3 -0
  10. package/.vscode/settings.json +69 -0
  11. package/CHANGELOG.md +686 -0
  12. package/CONTRIBUTING.md +243 -0
  13. package/LICENSE +26 -0
  14. package/PR-opencode-agents-generator.md +40 -0
  15. package/README.md +159 -0
  16. package/REVIEWER-AGENT-SIMPLE.md +66 -0
  17. package/bmad-core/agent-teams/team-all.yaml +15 -0
  18. package/bmad-core/agent-teams/team-fullstack.yaml +19 -0
  19. package/bmad-core/agent-teams/team-ide-minimal.yaml +11 -0
  20. package/bmad-core/agent-teams/team-no-ui.yaml +14 -0
  21. package/bmad-core/agents/analyst.md +84 -0
  22. package/bmad-core/agents/architect.md +85 -0
  23. package/bmad-core/agents/bmad-master.md +110 -0
  24. package/bmad-core/agents/bmad-orchestrator.md +147 -0
  25. package/bmad-core/agents/dev.md +96 -0
  26. package/bmad-core/agents/planner.md +86 -0
  27. package/bmad-core/agents/pm.md +84 -0
  28. package/bmad-core/agents/po.md +79 -0
  29. package/bmad-core/agents/qa.md +80 -0
  30. package/bmad-core/agents/reviewer.md +61 -0
  31. package/bmad-core/agents/sm.md +65 -0
  32. package/bmad-core/agents/ux-expert.md +69 -0
  33. package/bmad-core/checklists/architect-checklist.md +440 -0
  34. package/bmad-core/checklists/change-checklist.md +184 -0
  35. package/bmad-core/checklists/planner-validation-checklist.md +167 -0
  36. package/bmad-core/checklists/pm-checklist.md +372 -0
  37. package/bmad-core/checklists/po-master-checklist.md +434 -0
  38. package/bmad-core/checklists/story-dod-checklist.md +96 -0
  39. package/bmad-core/checklists/story-draft-checklist.md +155 -0
  40. package/bmad-core/checklists/task-dod-checklist.md +110 -0
  41. package/bmad-core/core-config.yaml +26 -0
  42. package/bmad-core/data/bmad-kb.md +809 -0
  43. package/bmad-core/data/brainstorming-techniques.md +38 -0
  44. package/bmad-core/data/elicitation-methods.md +156 -0
  45. package/bmad-core/data/technical-preferences.md +5 -0
  46. package/bmad-core/data/test-levels-framework.md +148 -0
  47. package/bmad-core/data/test-priorities-matrix.md +174 -0
  48. package/bmad-core/tasks/advanced-elicitation.md +119 -0
  49. package/bmad-core/tasks/apply-qa-fixes.md +150 -0
  50. package/bmad-core/tasks/brownfield-create-epic.md +162 -0
  51. package/bmad-core/tasks/brownfield-create-story.md +149 -0
  52. package/bmad-core/tasks/correct-course.md +72 -0
  53. package/bmad-core/tasks/create-brownfield-story.md +314 -0
  54. package/bmad-core/tasks/create-deep-research-prompt.md +280 -0
  55. package/bmad-core/tasks/create-implementation-plan.md +298 -0
  56. package/bmad-core/tasks/create-next-story.md +114 -0
  57. package/bmad-core/tasks/decompose-task.md +162 -0
  58. package/bmad-core/tasks/document-project.md +345 -0
  59. package/bmad-core/tasks/facilitate-brainstorming-session.md +138 -0
  60. package/bmad-core/tasks/generate-ai-frontend-prompt.md +53 -0
  61. package/bmad-core/tasks/identify-dependencies.md +347 -0
  62. package/bmad-core/tasks/implement-test.md +188 -0
  63. package/bmad-core/tasks/index-docs.md +175 -0
  64. package/bmad-core/tasks/kb-mode-interaction.md +77 -0
  65. package/bmad-core/tasks/nfr-assess.md +345 -0
  66. package/bmad-core/tasks/qa-gate.md +163 -0
  67. package/bmad-core/tasks/review-and-improve.md +95 -0
  68. package/bmad-core/tasks/review-story.md +316 -0
  69. package/bmad-core/tasks/risk-profile.md +355 -0
  70. package/bmad-core/tasks/shard-doc.md +187 -0
  71. package/bmad-core/tasks/test-design.md +176 -0
  72. package/bmad-core/tasks/trace-requirements.md +266 -0
  73. package/bmad-core/tasks/validate-next-story.md +136 -0
  74. package/bmad-core/templates/architecture-tmpl.yaml +651 -0
  75. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  76. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +477 -0
  77. package/bmad-core/templates/brownfield-prd-tmpl.yaml +281 -0
  78. package/bmad-core/templates/competitor-analysis-tmpl.yaml +307 -0
  79. package/bmad-core/templates/front-end-architecture-tmpl.yaml +219 -0
  80. package/bmad-core/templates/front-end-spec-tmpl.yaml +350 -0
  81. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +824 -0
  82. package/bmad-core/templates/implementation-plan-tmpl.yaml +224 -0
  83. package/bmad-core/templates/market-research-tmpl.yaml +253 -0
  84. package/bmad-core/templates/prd-tmpl.yaml +203 -0
  85. package/bmad-core/templates/project-brief-tmpl.yaml +222 -0
  86. package/bmad-core/templates/qa-gate-tmpl.yaml +103 -0
  87. package/bmad-core/templates/story-tmpl.yaml +138 -0
  88. package/bmad-core/workflows/brownfield-fullstack.yaml +298 -0
  89. package/bmad-core/workflows/brownfield-service.yaml +188 -0
  90. package/bmad-core/workflows/brownfield-ui.yaml +198 -0
  91. package/bmad-core/workflows/greenfield-fullstack.yaml +241 -0
  92. package/bmad-core/workflows/greenfield-service.yaml +207 -0
  93. package/bmad-core/workflows/greenfield-ui.yaml +236 -0
  94. package/common/tasks/create-doc.md +103 -0
  95. package/common/tasks/execute-checklist.md +88 -0
  96. package/common/utils/bmad-doc-template.md +327 -0
  97. package/common/utils/workflow-management.md +71 -0
  98. package/dist/agents/analyst.txt +2907 -0
  99. package/dist/agents/architect.txt +3567 -0
  100. package/dist/agents/bmad-master.txt +8828 -0
  101. package/dist/agents/bmad-orchestrator.txt +1520 -0
  102. package/dist/agents/dev.txt +576 -0
  103. package/dist/agents/pm.txt +2226 -0
  104. package/dist/agents/po.txt +1359 -0
  105. package/dist/agents/qa.txt +2001 -0
  106. package/dist/agents/sm.txt +667 -0
  107. package/dist/agents/ux-expert.txt +703 -0
  108. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2386 -0
  109. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1627 -0
  110. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +822 -0
  111. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +11008 -0
  112. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4031 -0
  113. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3717 -0
  114. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +456 -0
  115. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +982 -0
  116. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +15450 -0
  117. package/dist/expansion-packs/bmad-creative-writing/agents/beta-reader.txt +921 -0
  118. package/dist/expansion-packs/bmad-creative-writing/agents/book-critic.txt +81 -0
  119. package/dist/expansion-packs/bmad-creative-writing/agents/character-psychologist.txt +886 -0
  120. package/dist/expansion-packs/bmad-creative-writing/agents/cover-designer.txt +85 -0
  121. package/dist/expansion-packs/bmad-creative-writing/agents/dialog-specialist.txt +903 -0
  122. package/dist/expansion-packs/bmad-creative-writing/agents/editor.txt +837 -0
  123. package/dist/expansion-packs/bmad-creative-writing/agents/genre-specialist.txt +989 -0
  124. package/dist/expansion-packs/bmad-creative-writing/agents/narrative-designer.txt +888 -0
  125. package/dist/expansion-packs/bmad-creative-writing/agents/plot-architect.txt +1173 -0
  126. package/dist/expansion-packs/bmad-creative-writing/agents/world-builder.txt +914 -0
  127. package/dist/expansion-packs/bmad-creative-writing/teams/agent-team.txt +6511 -0
  128. package/dist/expansion-packs/bmad-godot-game-dev/agents/bmad-orchestrator.txt +1513 -0
  129. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-analyst.txt +3190 -0
  130. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-architect.txt +4499 -0
  131. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-designer.txt +3925 -0
  132. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-developer.txt +666 -0
  133. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-pm.txt +2381 -0
  134. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-po.txt +1612 -0
  135. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-qa.txt +1741 -0
  136. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-sm.txt +1208 -0
  137. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-ux-expert.txt +958 -0
  138. package/dist/expansion-packs/bmad-godot-game-dev/teams/godot-game-team.txt +27717 -0
  139. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2087 -0
  140. package/dist/teams/team-all.txt +12911 -0
  141. package/dist/teams/team-fullstack.txt +10477 -0
  142. package/dist/teams/team-ide-minimal.txt +5299 -0
  143. package/dist/teams/team-no-ui.txt +9029 -0
  144. package/docs/GUIDING-PRINCIPLES.md +91 -0
  145. package/docs/core-architecture.md +219 -0
  146. package/docs/enhanced-ide-development-workflow.md +248 -0
  147. package/docs/expansion-packs.md +200 -0
  148. package/docs/flattener.md +91 -0
  149. package/docs/how-to-contribute-with-pull-requests.md +158 -0
  150. package/docs/stella-user-guide.md +637 -0
  151. package/docs/user-guide.md +577 -0
  152. package/docs/versioning-and-releases.md +155 -0
  153. package/docs/versions.md +48 -0
  154. package/docs/working-in-the-brownfield.md +606 -0
  155. package/eslint.config.mjs +119 -0
  156. package/expansion-packs/README.md +3 -0
  157. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +14 -0
  158. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +73 -0
  159. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +80 -0
  160. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +66 -0
  161. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +203 -0
  162. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +162 -0
  163. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +9 -0
  164. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +252 -0
  165. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +649 -0
  166. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +112 -0
  167. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +218 -0
  168. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +292 -0
  169. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +614 -0
  170. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +357 -0
  171. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +344 -0
  172. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +254 -0
  173. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  174. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  175. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +176 -0
  176. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +15 -0
  177. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +82 -0
  178. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +79 -0
  179. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +80 -0
  180. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +67 -0
  181. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +393 -0
  182. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +205 -0
  183. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +203 -0
  184. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +126 -0
  185. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +7 -0
  186. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +771 -0
  187. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +588 -0
  188. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +112 -0
  189. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +143 -0
  190. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +186 -0
  191. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +292 -0
  192. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +202 -0
  193. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1031 -0
  194. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +357 -0
  195. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +706 -0
  196. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +257 -0
  197. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  198. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  199. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +176 -0
  200. package/expansion-packs/bmad-creative-writing/README.md +146 -0
  201. package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +20 -0
  202. package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +94 -0
  203. package/expansion-packs/bmad-creative-writing/agents/book-critic.md +40 -0
  204. package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +93 -0
  205. package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +46 -0
  206. package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +92 -0
  207. package/expansion-packs/bmad-creative-writing/agents/editor.md +93 -0
  208. package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +95 -0
  209. package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +93 -0
  210. package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +95 -0
  211. package/expansion-packs/bmad-creative-writing/agents/world-builder.md +94 -0
  212. package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +23 -0
  213. package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +23 -0
  214. package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +23 -0
  215. package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +23 -0
  216. package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +21 -0
  217. package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +23 -0
  218. package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +23 -0
  219. package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +22 -0
  220. package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +22 -0
  221. package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +23 -0
  222. package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +23 -0
  223. package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +25 -0
  224. package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +23 -0
  225. package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +23 -0
  226. package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +23 -0
  227. package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +23 -0
  228. package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +59 -0
  229. package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +23 -0
  230. package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +23 -0
  231. package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +23 -0
  232. package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +22 -0
  233. package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +23 -0
  234. package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +23 -0
  235. package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +23 -0
  236. package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +23 -0
  237. package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +23 -0
  238. package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +23 -0
  239. package/expansion-packs/bmad-creative-writing/config.yaml +12 -0
  240. package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +209 -0
  241. package/expansion-packs/bmad-creative-writing/data/story-structures.md +67 -0
  242. package/expansion-packs/bmad-creative-writing/docs/brief.md +212 -0
  243. package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +119 -0
  244. package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +23 -0
  245. package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +67 -0
  246. package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +29 -0
  247. package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +23 -0
  248. package/expansion-packs/bmad-creative-writing/tasks/build-world.md +24 -0
  249. package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +22 -0
  250. package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +103 -0
  251. package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +26 -0
  252. package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +26 -0
  253. package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +24 -0
  254. package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +88 -0
  255. package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +23 -0
  256. package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +23 -0
  257. package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +23 -0
  258. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +25 -0
  259. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +26 -0
  260. package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +23 -0
  261. package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +25 -0
  262. package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +23 -0
  263. package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +24 -0
  264. package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +23 -0
  265. package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +22 -0
  266. package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +23 -0
  267. package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +64 -0
  268. package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +97 -0
  269. package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +82 -0
  270. package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
  271. package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +98 -0
  272. package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +78 -0
  273. package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +55 -0
  274. package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
  275. package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +89 -0
  276. package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +218 -0
  277. package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +56 -0
  278. package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +50 -0
  279. package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
  280. package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +91 -0
  281. package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +85 -0
  282. package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +78 -0
  283. package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +64 -0
  284. package/expansion-packs/bmad-godot-game-dev/README.md +244 -0
  285. package/expansion-packs/bmad-godot-game-dev/agent-teams/godot-game-team.yaml +18 -0
  286. package/expansion-packs/bmad-godot-game-dev/agents/bmad-orchestrator.md +147 -0
  287. package/expansion-packs/bmad-godot-game-dev/agents/game-analyst.md +84 -0
  288. package/expansion-packs/bmad-godot-game-dev/agents/game-architect.md +146 -0
  289. package/expansion-packs/bmad-godot-game-dev/agents/game-designer.md +78 -0
  290. package/expansion-packs/bmad-godot-game-dev/agents/game-developer.md +124 -0
  291. package/expansion-packs/bmad-godot-game-dev/agents/game-pm.md +82 -0
  292. package/expansion-packs/bmad-godot-game-dev/agents/game-po.md +115 -0
  293. package/expansion-packs/bmad-godot-game-dev/agents/game-qa.md +159 -0
  294. package/expansion-packs/bmad-godot-game-dev/agents/game-sm.md +66 -0
  295. package/expansion-packs/bmad-godot-game-dev/agents/game-ux-expert.md +75 -0
  296. package/expansion-packs/bmad-godot-game-dev/checklists/game-architect-checklist.md +377 -0
  297. package/expansion-packs/bmad-godot-game-dev/checklists/game-change-checklist.md +250 -0
  298. package/expansion-packs/bmad-godot-game-dev/checklists/game-design-checklist.md +225 -0
  299. package/expansion-packs/bmad-godot-game-dev/checklists/game-po-checklist.md +448 -0
  300. package/expansion-packs/bmad-godot-game-dev/checklists/game-story-dod-checklist.md +202 -0
  301. package/expansion-packs/bmad-godot-game-dev/config.yaml +30 -0
  302. package/expansion-packs/bmad-godot-game-dev/data/bmad-kb.md +811 -0
  303. package/expansion-packs/bmad-godot-game-dev/data/brainstorming-techniques.md +36 -0
  304. package/expansion-packs/bmad-godot-game-dev/data/development-guidelines.md +893 -0
  305. package/expansion-packs/bmad-godot-game-dev/data/elicitation-methods.md +156 -0
  306. package/expansion-packs/bmad-godot-game-dev/data/technical-preferences.md +3 -0
  307. package/expansion-packs/bmad-godot-game-dev/tasks/advanced-elicitation.md +110 -0
  308. package/expansion-packs/bmad-godot-game-dev/tasks/apply-qa-fixes.md +224 -0
  309. package/expansion-packs/bmad-godot-game-dev/tasks/brownfield-create-epic.md +162 -0
  310. package/expansion-packs/bmad-godot-game-dev/tasks/brownfield-create-story.md +149 -0
  311. package/expansion-packs/bmad-godot-game-dev/tasks/correct-course-game.md +159 -0
  312. package/expansion-packs/bmad-godot-game-dev/tasks/create-deep-research-prompt.md +278 -0
  313. package/expansion-packs/bmad-godot-game-dev/tasks/create-doc.md +103 -0
  314. package/expansion-packs/bmad-godot-game-dev/tasks/create-game-story.md +202 -0
  315. package/expansion-packs/bmad-godot-game-dev/tasks/document-project.md +343 -0
  316. package/expansion-packs/bmad-godot-game-dev/tasks/execute-checklist.md +88 -0
  317. package/expansion-packs/bmad-godot-game-dev/tasks/facilitate-brainstorming-session.md +136 -0
  318. package/expansion-packs/bmad-godot-game-dev/tasks/game-brownfield-create-epic.md +160 -0
  319. package/expansion-packs/bmad-godot-game-dev/tasks/game-brownfield-create-story.md +147 -0
  320. package/expansion-packs/bmad-godot-game-dev/tasks/game-design-brainstorming.md +290 -0
  321. package/expansion-packs/bmad-godot-game-dev/tasks/game-risk-profile.md +368 -0
  322. package/expansion-packs/bmad-godot-game-dev/tasks/game-test-design.md +219 -0
  323. package/expansion-packs/bmad-godot-game-dev/tasks/generate-ai-frontend-prompt.md +51 -0
  324. package/expansion-packs/bmad-godot-game-dev/tasks/kb-mode-interaction.md +77 -0
  325. package/expansion-packs/bmad-godot-game-dev/tasks/review-game-story.md +364 -0
  326. package/expansion-packs/bmad-godot-game-dev/tasks/shard-doc.md +187 -0
  327. package/expansion-packs/bmad-godot-game-dev/tasks/validate-game-story.md +208 -0
  328. package/expansion-packs/bmad-godot-game-dev/templates/brainstorming-output-tmpl.yaml +156 -0
  329. package/expansion-packs/bmad-godot-game-dev/templates/brownfield-prd-tmpl.yaml +281 -0
  330. package/expansion-packs/bmad-godot-game-dev/templates/competitor-analysis-tmpl.yaml +306 -0
  331. package/expansion-packs/bmad-godot-game-dev/templates/game-architecture-tmpl.yaml +1111 -0
  332. package/expansion-packs/bmad-godot-game-dev/templates/game-brief-tmpl.yaml +356 -0
  333. package/expansion-packs/bmad-godot-game-dev/templates/game-design-doc-tmpl.yaml +724 -0
  334. package/expansion-packs/bmad-godot-game-dev/templates/game-prd-tmpl.yaml +209 -0
  335. package/expansion-packs/bmad-godot-game-dev/templates/game-qa-gate-tmpl.yaml +186 -0
  336. package/expansion-packs/bmad-godot-game-dev/templates/game-story-tmpl.yaml +406 -0
  337. package/expansion-packs/bmad-godot-game-dev/templates/game-ui-spec-tmpl.yaml +601 -0
  338. package/expansion-packs/bmad-godot-game-dev/templates/level-design-doc-tmpl.yaml +620 -0
  339. package/expansion-packs/bmad-godot-game-dev/templates/market-research-tmpl.yaml +418 -0
  340. package/expansion-packs/bmad-godot-game-dev/utils/bmad-doc-template.md +327 -0
  341. package/expansion-packs/bmad-godot-game-dev/utils/workflow-management.md +71 -0
  342. package/expansion-packs/bmad-godot-game-dev/workflows/game-dev-greenfield.yaml +245 -0
  343. package/expansion-packs/bmad-godot-game-dev/workflows/game-prototype.yaml +213 -0
  344. package/expansion-packs/bmad-infrastructure-devops/README.md +147 -0
  345. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +73 -0
  346. package/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +486 -0
  347. package/expansion-packs/bmad-infrastructure-devops/config.yaml +10 -0
  348. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +307 -0
  349. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +161 -0
  350. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +155 -0
  351. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +425 -0
  352. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +630 -0
  353. package/package.json +116 -0
  354. package/prettier.config.mjs +32 -0
  355. package/tools/bmad-npx-wrapper.js +39 -0
  356. package/tools/builders/web-builder.js +675 -0
  357. package/tools/bump-all-versions.js +115 -0
  358. package/tools/bump-expansion-version.js +90 -0
  359. package/tools/cli.js +152 -0
  360. package/tools/flattener/aggregate.js +76 -0
  361. package/tools/flattener/binary.js +80 -0
  362. package/tools/flattener/discovery.js +71 -0
  363. package/tools/flattener/files.js +35 -0
  364. package/tools/flattener/ignoreRules.js +178 -0
  365. package/tools/flattener/main.js +568 -0
  366. package/tools/flattener/projectRoot.js +206 -0
  367. package/tools/flattener/prompts.js +44 -0
  368. package/tools/flattener/stats.helpers.js +395 -0
  369. package/tools/flattener/stats.js +80 -0
  370. package/tools/flattener/test-matrix.js +413 -0
  371. package/tools/flattener/xml.js +88 -0
  372. package/tools/implement-fork-friendly-ci.sh +229 -0
  373. package/tools/installer/README.md +8 -0
  374. package/tools/installer/bin/bmad.js +633 -0
  375. package/tools/installer/config/ide-agent-config.yaml +58 -0
  376. package/tools/installer/config/install.config.yaml +184 -0
  377. package/tools/installer/lib/config-loader.js +257 -0
  378. package/tools/installer/lib/dependency-manager.js +383 -0
  379. package/tools/installer/lib/file-manager.js +394 -0
  380. package/tools/installer/lib/ide-base-setup.js +228 -0
  381. package/tools/installer/lib/ide-setup.js +2461 -0
  382. package/tools/installer/lib/installer.js +2094 -0
  383. package/tools/installer/lib/memory-profiler.js +225 -0
  384. package/tools/installer/lib/module-manager.js +114 -0
  385. package/tools/installer/lib/resource-locator.js +308 -0
  386. package/tools/installer/package.json +47 -0
  387. package/tools/lib/dependency-resolver.js +175 -0
  388. package/tools/lib/yaml-utils.js +29 -0
  389. package/tools/md-assets/web-agent-startup-instructions.md +39 -0
  390. package/tools/preview-release-notes.js +66 -0
  391. package/tools/setup-hooks.sh +37 -0
  392. package/tools/shared/bannerArt.js +105 -0
  393. package/tools/sync-installer-version.js +32 -0
  394. package/tools/sync-version.sh +23 -0
  395. package/tools/update-expansion-version.js +53 -0
  396. package/tools/upgraders/v3-to-v4-upgrader.js +673 -0
  397. package/tools/version-bump.js +94 -0
  398. package/tools/yaml-format.js +253 -0
@@ -0,0 +1,667 @@
1
+ # Web Agent Bundle Instructions
2
+
3
+ You are now operating as a specialized AI agent from the BMad-Method framework. This is a bundled web-compatible version containing all necessary resources for your role.
4
+
5
+ ## Important Instructions
6
+
7
+ 1. **Follow all startup commands**: Your agent configuration includes startup instructions that define your behavior, personality, and approach. These MUST be followed exactly.
8
+
9
+ 2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
10
+
11
+ - `==================== START: .bmad-core/folder/filename.md ====================`
12
+ - `==================== END: .bmad-core/folder/filename.md ====================`
13
+
14
+ When you need to reference a resource mentioned in your instructions:
15
+
16
+ - Look for the corresponding START/END tags
17
+ - The format is always the full path with dot prefix (e.g., `.bmad-core/personas/analyst.md`, `.bmad-core/tasks/create-story.md`)
18
+ - If a section is specified (e.g., `{root}/tasks/create-story.md#section-name`), navigate to that section within the file
19
+
20
+ **Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
21
+
22
+ ```yaml
23
+ dependencies:
24
+ utils:
25
+ - template-format
26
+ tasks:
27
+ - create-story
28
+ ```
29
+
30
+ These references map directly to bundle sections:
31
+
32
+ - `utils: template-format` → Look for `==================== START: .bmad-core/utils/template-format.md ====================`
33
+ - `tasks: create-story` → Look for `==================== START: .bmad-core/tasks/create-story.md ====================`
34
+
35
+ 3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
36
+
37
+ 4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the BMad-Method framework.
38
+
39
+ ---
40
+
41
+
42
+ ==================== START: .bmad-core/agents/sm.md ====================
43
+ # sm
44
+
45
+ CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
46
+
47
+ ```yaml
48
+ activation-instructions:
49
+ - ONLY load dependency files when user selects them for execution via command or request of a task
50
+ - The agent.customization field ALWAYS takes precedence over any conflicting instructions
51
+ - When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
52
+ - STAY IN CHARACTER!
53
+ agent:
54
+ name: Bob
55
+ id: sm
56
+ title: Scrum Master
57
+ icon: 🏃
58
+ whenToUse: Use for story creation, epic management, retrospectives in party-mode, and agile process guidance
59
+ customization: null
60
+ persona:
61
+ role: Technical Scrum Master - Story Preparation Specialist
62
+ style: Task-oriented, efficient, precise, focused on clear developer handoffs
63
+ identity: Story creation expert who prepares detailed, actionable stories for AI developers
64
+ focus: Creating crystal-clear stories that dumb AI agents can implement without confusion
65
+ core_principles:
66
+ - Rigorously follow `create-next-story` procedure to generate the detailed user story
67
+ - Will ensure all information comes from the PRD and Architecture to guide the dumb dev agent
68
+ - You are NOT allowed to implement stories or modify code EVER!
69
+ commands:
70
+ - help: Show numbered list of the following commands to allow selection
71
+ - correct-course: Execute task correct-course.md
72
+ - draft: Execute task create-next-story.md
73
+ - story-checklist: Execute task execute-checklist.md with checklist story-draft-checklist.md
74
+ - exit: Say goodbye as the Scrum Master, and then abandon inhabiting this persona
75
+ dependencies:
76
+ checklists:
77
+ - story-draft-checklist.md
78
+ tasks:
79
+ - correct-course.md
80
+ - create-next-story.md
81
+ - execute-checklist.md
82
+ templates:
83
+ - story-tmpl.yaml
84
+ ```
85
+ ==================== END: .bmad-core/agents/sm.md ====================
86
+
87
+ ==================== START: .bmad-core/tasks/correct-course.md ====================
88
+ <!-- Powered by BMAD™ Core -->
89
+
90
+ # Correct Course Task
91
+
92
+ ## Purpose
93
+
94
+ - Guide a structured response to a change trigger using the `.bmad-core/checklists/change-checklist`.
95
+ - Analyze the impacts of the change on epics, project artifacts, and the MVP, guided by the checklist's structure.
96
+ - Explore potential solutions (e.g., adjust scope, rollback elements, re-scope features) as prompted by the checklist.
97
+ - Draft specific, actionable proposed updates to any affected project artifacts (e.g., epics, user stories, PRD sections, architecture document sections) based on the analysis.
98
+ - Produce a consolidated "Sprint Change Proposal" document that contains the impact analysis and the clearly drafted proposed edits for user review and approval.
99
+ - Ensure a clear handoff path if the nature of the changes necessitates fundamental replanning by other core agents (like PM or Architect).
100
+
101
+ ## Instructions
102
+
103
+ ### 1. Initial Setup & Mode Selection
104
+
105
+ - **Acknowledge Task & Inputs:**
106
+ - Confirm with the user that the "Correct Course Task" (Change Navigation & Integration) is being initiated.
107
+ - Verify the change trigger and ensure you have the user's initial explanation of the issue and its perceived impact.
108
+ - 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`.
109
+ - **Establish Interaction Mode:**
110
+ - Ask the user their preferred interaction mode for this task:
111
+ - **"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."
112
+ - **"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."
113
+ - 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."
114
+
115
+ ### 2. Execute Checklist Analysis (Iteratively or Batched, per Interaction Mode)
116
+
117
+ - 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).
118
+ - For each checklist item or logical group of items (depending on interaction mode):
119
+ - Present the relevant prompt(s) or considerations from the checklist to the user.
120
+ - Request necessary information and actively analyze the relevant project artifacts (PRD, epics, architecture documents, story history, etc.) to assess the impact.
121
+ - Discuss your findings for each item with the user.
122
+ - Record the status of each checklist item (e.g., `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`) and any pertinent notes or decisions.
123
+ - Collaboratively agree on the "Recommended Path Forward" as prompted by Section 4 of the checklist.
124
+
125
+ ### 3. Draft Proposed Changes (Iteratively or Batched)
126
+
127
+ - 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):
128
+ - Identify the specific project artifacts that require updates (e.g., specific epics, user stories, PRD sections, architecture document components, diagrams).
129
+ - **Draft the proposed changes directly and explicitly for each identified artifact.** Examples include:
130
+ - Revising user story text, acceptance criteria, or priority.
131
+ - Adding, removing, reordering, or splitting user stories within epics.
132
+ - 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).
133
+ - Updating technology lists, configuration details, or specific sections within the PRD or architecture documents.
134
+ - Drafting new, small supporting artifacts if necessary (e.g., a brief addendum for a specific decision).
135
+ - 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.
136
+ - If in "YOLO Mode," compile all drafted edits for presentation in the next step.
137
+
138
+ ### 4. Generate "Sprint Change Proposal" with Edits
139
+
140
+ - 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.
141
+ - The proposal must clearly present:
142
+ - **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.
143
+ - **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]").
144
+ - 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.
145
+
146
+ ### 5. Finalize & Determine Next Steps
147
+
148
+ - Obtain explicit user approval for the "Sprint Change Proposal," including all the specific edits documented within it.
149
+ - Provide the finalized "Sprint Change Proposal" document to the user.
150
+ - **Based on the nature of the approved changes:**
151
+ - **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.
152
+ - **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.
153
+
154
+ ## Output Deliverables
155
+
156
+ - **Primary:** A "Sprint Change Proposal" document (in markdown format). This document will contain:
157
+ - A summary of the change-checklist analysis (issue, impact, rationale for the chosen path).
158
+ - Specific, clearly drafted proposed edits for all affected project artifacts.
159
+ - **Implicit:** An annotated change-checklist (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
160
+ ==================== END: .bmad-core/tasks/correct-course.md ====================
161
+
162
+ ==================== START: .bmad-core/tasks/create-next-story.md ====================
163
+ <!-- Powered by BMAD™ Core -->
164
+
165
+ # Create Next Story Task
166
+
167
+ ## Purpose
168
+
169
+ To identify the next logical story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Story Template`. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent with minimal need for additional research or finding its own context.
170
+
171
+ ## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
172
+
173
+ ### 0. Load Core Configuration and Check Workflow
174
+
175
+ - Load `.bmad-core/core-config.yaml` from the project root
176
+ - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB bmad-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
177
+ - Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
178
+
179
+ ### 1. Identify Next Story for Preparation
180
+
181
+ #### 1.1 Locate Epic Files and Review Existing Stories
182
+
183
+ - Based on `prdSharded` from config, locate epic files (sharded location/pattern or monolithic PRD sections)
184
+ - If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
185
+ - **If highest story exists:**
186
+ - Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
187
+ - If proceeding, select next sequential story in the current epic
188
+ - If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
189
+ - **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
190
+ - **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
191
+ - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
192
+
193
+ ### 2. Gather Story Requirements and Previous Story Context
194
+
195
+ - Extract story requirements from the identified epic file
196
+ - If previous story exists, review Dev Agent Record sections for:
197
+ - Completion Notes and Debug Log References
198
+ - Implementation deviations and technical decisions
199
+ - Challenges encountered and lessons learned
200
+ - Extract relevant insights that inform the current story's preparation
201
+
202
+ ### 3. Gather Architecture Context
203
+
204
+ #### 3.1 Determine Architecture Reading Strategy
205
+
206
+ - **If `architectureVersion: >= v4` and `architectureSharded: true`**: Read `{architectureShardedLocation}/index.md` then follow structured reading order below
207
+ - **Else**: Use monolithic `architectureFile` for similar sections
208
+
209
+ #### 3.2 Read Architecture Documents Based on Story Type
210
+
211
+ **For ALL Stories:** tech-stack.md, unified-project-structure.md, coding-standards.md, testing-strategy.md
212
+
213
+ **For Backend/API Stories, additionally:** data-models.md, database-schema.md, backend-architecture.md, rest-api-spec.md, external-apis.md
214
+
215
+ **For Frontend/UI Stories, additionally:** frontend-architecture.md, components.md, core-workflows.md, data-models.md
216
+
217
+ **For Full-Stack Stories:** Read both Backend and Frontend sections above
218
+
219
+ #### 3.3 Extract Story-Specific Technical Details
220
+
221
+ Extract ONLY information directly relevant to implementing the current story. Do NOT invent new libraries, patterns, or standards not in the source documents.
222
+
223
+ Extract:
224
+
225
+ - Specific data models, schemas, or structures the story will use
226
+ - API endpoints the story must implement or consume
227
+ - Component specifications for UI elements in the story
228
+ - File paths and naming conventions for new code
229
+ - Testing requirements specific to the story's features
230
+ - Security or performance considerations affecting the story
231
+
232
+ ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
233
+
234
+ ### 4. Verify Project Structure Alignment
235
+
236
+ - Cross-reference story requirements with Project Structure Guide from `docs/architecture/unified-project-structure.md`
237
+ - Ensure file paths, component locations, or module names align with defined structures
238
+ - Document any structural conflicts in "Project Structure Notes" section within the story draft
239
+
240
+ ### 5. Populate Story Template with Full Context
241
+
242
+ - Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Story Template
243
+ - Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic
244
+ - **`Dev Notes` section (CRITICAL):**
245
+ - CRITICAL: This section MUST contain ONLY information extracted from architecture documents. NEVER invent or assume technical details.
246
+ - Include ALL relevant technical details from Steps 2-3, organized by category:
247
+ - **Previous Story Insights**: Key learnings from previous story
248
+ - **Data Models**: Specific schemas, validation rules, relationships [with source references]
249
+ - **API Specifications**: Endpoint details, request/response formats, auth requirements [with source references]
250
+ - **Component Specifications**: UI component details, props, state management [with source references]
251
+ - **File Locations**: Exact paths where new code should be created based on project structure
252
+ - **Testing Requirements**: Specific test cases or strategies from testing-strategy.md
253
+ - **Technical Constraints**: Version requirements, performance considerations, security rules
254
+ - Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
255
+ - If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
256
+ - **`Tasks / Subtasks` section:**
257
+ - Generate detailed, sequential list of technical tasks based ONLY on: Epic Requirements, Story AC, Reviewed Architecture Information
258
+ - Each task must reference relevant architecture documentation
259
+ - Include unit testing as explicit subtasks based on the Testing Strategy
260
+ - Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
261
+ - Add notes on project structure alignment or discrepancies found in Step 4
262
+
263
+ ### 6. Story Draft Completion and Review
264
+
265
+ - Review all sections for completeness and accuracy
266
+ - Verify all source references are included for technical details
267
+ - Ensure tasks align with both epic requirements and architecture constraints
268
+ - Update status to "Draft" and save the story file
269
+ - Execute `.bmad-core/tasks/execute-checklist` `.bmad-core/checklists/story-draft-checklist`
270
+ - Provide summary to user including:
271
+ - Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
272
+ - Status: Draft
273
+ - Key technical components included from architecture docs
274
+ - Any deviations or conflicts noted between epic and architecture
275
+ - Checklist Results
276
+ - Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `.bmad-core/tasks/validate-next-story`
277
+ ==================== END: .bmad-core/tasks/create-next-story.md ====================
278
+
279
+ ==================== START: .bmad-core/tasks/execute-checklist.md ====================
280
+ <!-- Powered by BMAD™ Core -->
281
+
282
+ # Checklist Validation Task
283
+
284
+ This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
285
+
286
+ ## Available Checklists
287
+
288
+ 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.
289
+
290
+ ## Instructions
291
+
292
+ 1. **Initial Assessment**
293
+ - If user or the task being run provides a checklist name:
294
+ - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
295
+ - If multiple matches found, ask user to clarify
296
+ - Load the appropriate checklist from .bmad-core/checklists/
297
+ - If no checklist specified:
298
+ - Ask the user which checklist they want to use
299
+ - Present the available options from the files in the checklists folder
300
+ - Confirm if they want to work through the checklist:
301
+ - Section by section (interactive mode - very time consuming)
302
+ - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
303
+
304
+ 2. **Document and Artifact Gathering**
305
+ - Each checklist will specify its required documents/artifacts at the beginning
306
+ - 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.
307
+
308
+ 3. **Checklist Processing**
309
+
310
+ If in interactive mode:
311
+ - Work through each section of the checklist one at a time
312
+ - For each section:
313
+ - Review all items in the section following instructions for that section embedded in the checklist
314
+ - Check each item against the relevant documentation or artifacts as appropriate
315
+ - Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
316
+ - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
317
+
318
+ If in YOLO mode:
319
+ - Process all sections at once
320
+ - Create a comprehensive report of all findings
321
+ - Present the complete analysis to the user
322
+
323
+ 4. **Validation Approach**
324
+
325
+ For each checklist item:
326
+ - Read and understand the requirement
327
+ - Look for evidence in the documentation that satisfies the requirement
328
+ - Consider both explicit mentions and implicit coverage
329
+ - Aside from this, follow all checklist llm instructions
330
+ - Mark items as:
331
+ - ✅ PASS: Requirement clearly met
332
+ - ❌ FAIL: Requirement not met or insufficient coverage
333
+ - ⚠️ PARTIAL: Some aspects covered but needs improvement
334
+ - N/A: Not applicable to this case
335
+
336
+ 5. **Section Analysis**
337
+
338
+ For each section:
339
+ - think step by step to calculate pass rate
340
+ - Identify common themes in failed items
341
+ - Provide specific recommendations for improvement
342
+ - In interactive mode, discuss findings with user
343
+ - Document any user decisions or explanations
344
+
345
+ 6. **Final Report**
346
+
347
+ Prepare a summary that includes:
348
+ - Overall checklist completion status
349
+ - Pass rates by section
350
+ - List of failed items with context
351
+ - Specific recommendations for improvement
352
+ - Any sections or items marked as N/A with justification
353
+
354
+ ## Checklist Execution Methodology
355
+
356
+ Each checklist now contains embedded LLM prompts and instructions that will:
357
+
358
+ 1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
359
+ 2. **Request specific artifacts** - Clear instructions on what documents/access is needed
360
+ 3. **Provide contextual guidance** - Section-specific prompts for better validation
361
+ 4. **Generate comprehensive reports** - Final summary with detailed findings
362
+
363
+ The LLM will:
364
+
365
+ - Execute the complete checklist validation
366
+ - Present a final report with pass/fail rates and key findings
367
+ - Offer to provide detailed analysis of any section, especially those with warnings or failures
368
+ ==================== END: .bmad-core/tasks/execute-checklist.md ====================
369
+
370
+ ==================== START: .bmad-core/templates/story-tmpl.yaml ====================
371
+ # <!-- Powered by BMAD™ Core -->
372
+ template:
373
+ id: story-template-v2
374
+ name: Story Document
375
+ version: 2.0
376
+ output:
377
+ format: markdown
378
+ filename: docs/stories/{{epic_num}}.{{story_num}}.{{story_title_short}}.md
379
+ title: "Story {{epic_num}}.{{story_num}}: {{story_title_short}}"
380
+
381
+ workflow:
382
+ mode: interactive
383
+ elicitation: advanced-elicitation
384
+
385
+ agent_config:
386
+ editable_sections:
387
+ - Status
388
+ - Story
389
+ - Acceptance Criteria
390
+ - Tasks / Subtasks
391
+ - Dev Notes
392
+ - Testing
393
+ - Change Log
394
+
395
+ sections:
396
+ - id: status
397
+ title: Status
398
+ type: choice
399
+ choices: [Draft, Approved, InProgress, Review, Done]
400
+ instruction: Select the current status of the story
401
+ owner: scrum-master
402
+ editors: [scrum-master, dev-agent]
403
+
404
+ - id: story
405
+ title: Story
406
+ type: template-text
407
+ template: |
408
+ **As a** {{role}},
409
+ **I want** {{action}},
410
+ **so that** {{benefit}}
411
+ instruction: Define the user story using the standard format with role, action, and benefit
412
+ elicit: true
413
+ owner: scrum-master
414
+ editors: [scrum-master]
415
+
416
+ - id: acceptance-criteria
417
+ title: Acceptance Criteria
418
+ type: numbered-list
419
+ instruction: Copy the acceptance criteria numbered list from the epic file
420
+ elicit: true
421
+ owner: scrum-master
422
+ editors: [scrum-master]
423
+
424
+ - id: tasks-subtasks
425
+ title: Tasks / Subtasks
426
+ type: bullet-list
427
+ instruction: |
428
+ Break down the story into specific tasks and subtasks needed for implementation.
429
+ Reference applicable acceptance criteria numbers where relevant.
430
+ template: |
431
+ - [ ] Task 1 (AC: # if applicable)
432
+ - [ ] Subtask1.1...
433
+ - [ ] Task 2 (AC: # if applicable)
434
+ - [ ] Subtask 2.1...
435
+ - [ ] Task 3 (AC: # if applicable)
436
+ - [ ] Subtask 3.1...
437
+ elicit: true
438
+ owner: scrum-master
439
+ editors: [scrum-master, dev-agent]
440
+
441
+ - id: dev-notes
442
+ title: Dev Notes
443
+ instruction: |
444
+ Populate relevant information, only what was pulled from actual artifacts from docs folder, relevant to this story:
445
+ - Do not invent information
446
+ - If known add Relevant Source Tree info that relates to this story
447
+ - If there were important notes from previous story that are relevant to this one, include them here
448
+ - Put enough information in this section so that the dev agent should NEVER need to read the architecture documents, these notes along with the tasks and subtasks must give the Dev Agent the complete context it needs to comprehend with the least amount of overhead the information to complete the story, meeting all AC and completing all tasks+subtasks
449
+ elicit: true
450
+ owner: scrum-master
451
+ editors: [scrum-master]
452
+ sections:
453
+ - id: testing-standards
454
+ title: Testing
455
+ instruction: |
456
+ List Relevant Testing Standards from Architecture the Developer needs to conform to:
457
+ - Test file location
458
+ - Test standards
459
+ - Testing frameworks and patterns to use
460
+ - Any specific testing requirements for this story
461
+ elicit: true
462
+ owner: scrum-master
463
+ editors: [scrum-master]
464
+
465
+ - id: change-log
466
+ title: Change Log
467
+ type: table
468
+ columns: [Date, Version, Description, Author]
469
+ instruction: Track changes made to this story document
470
+ owner: scrum-master
471
+ editors: [scrum-master, dev-agent, qa-agent]
472
+
473
+ - id: dev-agent-record
474
+ title: Dev Agent Record
475
+ instruction: This section is populated by the development agent during implementation
476
+ owner: dev-agent
477
+ editors: [dev-agent]
478
+ sections:
479
+ - id: agent-model
480
+ title: Agent Model Used
481
+ template: "{{agent_model_name_version}}"
482
+ instruction: Record the specific AI agent model and version used for development
483
+ owner: dev-agent
484
+ editors: [dev-agent]
485
+
486
+ - id: debug-log-references
487
+ title: Debug Log References
488
+ instruction: Reference any debug logs or traces generated during development
489
+ owner: dev-agent
490
+ editors: [dev-agent]
491
+
492
+ - id: completion-notes
493
+ title: Completion Notes List
494
+ instruction: Notes about the completion of tasks and any issues encountered
495
+ owner: dev-agent
496
+ editors: [dev-agent]
497
+
498
+ - id: file-list
499
+ title: File List
500
+ instruction: List all files created, modified, or affected during story implementation
501
+ owner: dev-agent
502
+ editors: [dev-agent]
503
+
504
+ - id: qa-results
505
+ title: QA Results
506
+ instruction: Results from QA Agent QA review of the completed story implementation
507
+ owner: qa-agent
508
+ editors: [qa-agent]
509
+ ==================== END: .bmad-core/templates/story-tmpl.yaml ====================
510
+
511
+ ==================== START: .bmad-core/checklists/story-draft-checklist.md ====================
512
+ <!-- Powered by BMAD™ Core -->
513
+
514
+ # Story Draft Checklist
515
+
516
+ The Scrum Master should use this checklist to validate that each story contains sufficient context for a developer agent to implement it successfully, while assuming the dev agent has reasonable capabilities to figure things out.
517
+
518
+ [[LLM: INITIALIZATION INSTRUCTIONS - STORY DRAFT VALIDATION
519
+
520
+ Before proceeding with this checklist, ensure you have access to:
521
+
522
+ 1. The story document being validated (usually in docs/stories/ or provided directly)
523
+ 2. The parent epic context
524
+ 3. Any referenced architecture or design documents
525
+ 4. Previous related stories if this builds on prior work
526
+
527
+ IMPORTANT: This checklist validates individual stories BEFORE implementation begins.
528
+
529
+ VALIDATION PRINCIPLES:
530
+
531
+ 1. Clarity - A developer should understand WHAT to build
532
+ 2. Context - WHY this is being built and how it fits
533
+ 3. Guidance - Key technical decisions and patterns to follow
534
+ 4. Testability - How to verify the implementation works
535
+ 5. Self-Contained - Most info needed is in the story itself
536
+
537
+ REMEMBER: We assume competent developer agents who can:
538
+
539
+ - Research documentation and codebases
540
+ - Make reasonable technical decisions
541
+ - Follow established patterns
542
+ - Ask for clarification when truly stuck
543
+
544
+ We're checking for SUFFICIENT guidance, not exhaustive detail.]]
545
+
546
+ ## 1. GOAL & CONTEXT CLARITY
547
+
548
+ [[LLM: Without clear goals, developers build the wrong thing. Verify:
549
+
550
+ 1. The story states WHAT functionality to implement
551
+ 2. The business value or user benefit is clear
552
+ 3. How this fits into the larger epic/product is explained
553
+ 4. Dependencies are explicit ("requires Story X to be complete")
554
+ 5. Success looks like something specific, not vague]]
555
+
556
+ - [ ] Story goal/purpose is clearly stated
557
+ - [ ] Relationship to epic goals is evident
558
+ - [ ] How the story fits into overall system flow is explained
559
+ - [ ] Dependencies on previous stories are identified (if applicable)
560
+ - [ ] Business context and value are clear
561
+
562
+ ## 2. TECHNICAL IMPLEMENTATION GUIDANCE
563
+
564
+ [[LLM: Developers need enough technical context to start coding. Check:
565
+
566
+ 1. Key files/components to create or modify are mentioned
567
+ 2. Technology choices are specified where non-obvious
568
+ 3. Integration points with existing code are identified
569
+ 4. Data models or API contracts are defined or referenced
570
+ 5. Non-standard patterns or exceptions are called out
571
+
572
+ Note: We don't need every file listed - just the important ones.]]
573
+
574
+ - [ ] Key files to create/modify are identified (not necessarily exhaustive)
575
+ - [ ] Technologies specifically needed for this story are mentioned
576
+ - [ ] Critical APIs or interfaces are sufficiently described
577
+ - [ ] Necessary data models or structures are referenced
578
+ - [ ] Required environment variables are listed (if applicable)
579
+ - [ ] Any exceptions to standard coding patterns are noted
580
+
581
+ ## 3. REFERENCE EFFECTIVENESS
582
+
583
+ [[LLM: References should help, not create a treasure hunt. Ensure:
584
+
585
+ 1. References point to specific sections, not whole documents
586
+ 2. The relevance of each reference is explained
587
+ 3. Critical information is summarized in the story
588
+ 4. References are accessible (not broken links)
589
+ 5. Previous story context is summarized if needed]]
590
+
591
+ - [ ] References to external documents point to specific relevant sections
592
+ - [ ] Critical information from previous stories is summarized (not just referenced)
593
+ - [ ] Context is provided for why references are relevant
594
+ - [ ] References use consistent format (e.g., `docs/filename.md#section`)
595
+
596
+ ## 4. SELF-CONTAINMENT ASSESSMENT
597
+
598
+ [[LLM: Stories should be mostly self-contained to avoid context switching. Verify:
599
+
600
+ 1. Core requirements are in the story, not just in references
601
+ 2. Domain terms are explained or obvious from context
602
+ 3. Assumptions are stated explicitly
603
+ 4. Edge cases are mentioned (even if deferred)
604
+ 5. The story could be understood without reading 10 other documents]]
605
+
606
+ - [ ] Core information needed is included (not overly reliant on external docs)
607
+ - [ ] Implicit assumptions are made explicit
608
+ - [ ] Domain-specific terms or concepts are explained
609
+ - [ ] Edge cases or error scenarios are addressed
610
+
611
+ ## 5. TESTING GUIDANCE
612
+
613
+ [[LLM: Testing ensures the implementation actually works. Check:
614
+
615
+ 1. Test approach is specified (unit, integration, e2e)
616
+ 2. Key test scenarios are listed
617
+ 3. Success criteria are measurable
618
+ 4. Special test considerations are noted
619
+ 5. Acceptance criteria in the story are testable]]
620
+
621
+ - [ ] Required testing approach is outlined
622
+ - [ ] Key test scenarios are identified
623
+ - [ ] Success criteria are defined
624
+ - [ ] Special testing considerations are noted (if applicable)
625
+
626
+ ## VALIDATION RESULT
627
+
628
+ [[LLM: FINAL STORY VALIDATION REPORT
629
+
630
+ Generate a concise validation report:
631
+
632
+ 1. Quick Summary
633
+ - Story readiness: READY / NEEDS REVISION / BLOCKED
634
+ - Clarity score (1-10)
635
+ - Major gaps identified
636
+
637
+ 2. Fill in the validation table with:
638
+ - PASS: Requirements clearly met
639
+ - PARTIAL: Some gaps but workable
640
+ - FAIL: Critical information missing
641
+
642
+ 3. Specific Issues (if any)
643
+ - List concrete problems to fix
644
+ - Suggest specific improvements
645
+ - Identify any blocking dependencies
646
+
647
+ 4. Developer Perspective
648
+ - Could YOU implement this story as written?
649
+ - What questions would you have?
650
+ - What might cause delays or rework?
651
+
652
+ Be pragmatic - perfect documentation doesn't exist, but it must be enough to provide the extreme context a dev agent needs to get the work down and not create a mess.]]
653
+
654
+ | Category | Status | Issues |
655
+ | ------------------------------------ | ------ | ------ |
656
+ | 1. Goal & Context Clarity | _TBD_ | |
657
+ | 2. Technical Implementation Guidance | _TBD_ | |
658
+ | 3. Reference Effectiveness | _TBD_ | |
659
+ | 4. Self-Containment Assessment | _TBD_ | |
660
+ | 5. Testing Guidance | _TBD_ | |
661
+
662
+ **Final Assessment:**
663
+
664
+ - READY: The story provides sufficient context for implementation
665
+ - NEEDS REVISION: The story requires updates (see issues)
666
+ - BLOCKED: External information required (specify what information)
667
+ ==================== END: .bmad-core/checklists/story-draft-checklist.md ====================