bmad-method 4.37.0-beta.6 → 4.39.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 (276) 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 +3 -6
  9. package/README.md +2 -0
  10. package/bmad-core/agent-teams/team-all.yaml +1 -1
  11. package/bmad-core/agents/analyst.md +17 -16
  12. package/bmad-core/agents/architect.md +12 -13
  13. package/bmad-core/agents/bmad-master.md +23 -23
  14. package/bmad-core/agents/bmad-orchestrator.md +22 -27
  15. package/bmad-core/agents/dev.md +19 -17
  16. package/bmad-core/agents/pm.md +15 -14
  17. package/bmad-core/agents/po.md +10 -9
  18. package/bmad-core/agents/qa.md +43 -23
  19. package/bmad-core/agents/sm.md +8 -7
  20. package/bmad-core/agents/ux-expert.md +7 -6
  21. package/bmad-core/checklists/architect-checklist.md +0 -5
  22. package/bmad-core/checklists/pm-checklist.md +0 -5
  23. package/bmad-core/checklists/po-master-checklist.md +0 -9
  24. package/bmad-core/checklists/story-dod-checklist.md +0 -7
  25. package/bmad-core/checklists/story-draft-checklist.md +0 -3
  26. package/bmad-core/core-config.yaml +2 -0
  27. package/bmad-core/data/bmad-kb.md +6 -3
  28. package/bmad-core/data/elicitation-methods.md +20 -0
  29. package/bmad-core/data/test-levels-framework.md +146 -0
  30. package/bmad-core/data/test-priorities-matrix.md +172 -0
  31. package/bmad-core/tasks/apply-qa-fixes.md +148 -0
  32. package/bmad-core/tasks/create-brownfield-story.md +11 -3
  33. package/bmad-core/tasks/create-deep-research-prompt.md +0 -11
  34. package/bmad-core/tasks/document-project.md +15 -13
  35. package/bmad-core/tasks/facilitate-brainstorming-session.md +2 -2
  36. package/bmad-core/tasks/index-docs.md +0 -6
  37. package/bmad-core/tasks/kb-mode-interaction.md +3 -3
  38. package/bmad-core/tasks/nfr-assess.md +343 -0
  39. package/bmad-core/tasks/qa-gate.md +161 -0
  40. package/bmad-core/tasks/review-story.md +243 -74
  41. package/bmad-core/tasks/risk-profile.md +353 -0
  42. package/bmad-core/tasks/shard-doc.md +0 -2
  43. package/bmad-core/tasks/test-design.md +174 -0
  44. package/bmad-core/tasks/trace-requirements.md +264 -0
  45. package/bmad-core/templates/architecture-tmpl.yaml +49 -49
  46. package/bmad-core/templates/brainstorming-output-tmpl.yaml +5 -5
  47. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +31 -31
  48. package/bmad-core/templates/brownfield-prd-tmpl.yaml +13 -13
  49. package/bmad-core/templates/competitor-analysis-tmpl.yaml +19 -6
  50. package/bmad-core/templates/front-end-architecture-tmpl.yaml +21 -9
  51. package/bmad-core/templates/front-end-spec-tmpl.yaml +24 -24
  52. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +122 -104
  53. package/bmad-core/templates/market-research-tmpl.yaml +2 -2
  54. package/bmad-core/templates/prd-tmpl.yaml +9 -9
  55. package/bmad-core/templates/project-brief-tmpl.yaml +4 -4
  56. package/bmad-core/templates/qa-gate-tmpl.yaml +102 -0
  57. package/bmad-core/templates/story-tmpl.yaml +12 -12
  58. package/bmad-core/workflows/brownfield-fullstack.yaml +9 -9
  59. package/bmad-core/workflows/brownfield-service.yaml +1 -1
  60. package/bmad-core/workflows/brownfield-ui.yaml +1 -1
  61. package/bmad-core/workflows/greenfield-fullstack.yaml +1 -1
  62. package/bmad-core/workflows/greenfield-service.yaml +1 -1
  63. package/bmad-core/workflows/greenfield-ui.yaml +1 -1
  64. package/common/tasks/execute-checklist.md +0 -7
  65. package/common/utils/bmad-doc-template.md +5 -5
  66. package/dist/agents/analyst.txt +1086 -1079
  67. package/dist/agents/architect.txt +1534 -1526
  68. package/dist/agents/bmad-master.txt +646 -632
  69. package/dist/agents/bmad-orchestrator.txt +40 -18
  70. package/dist/agents/dev.txt +158 -19
  71. package/dist/agents/pm.txt +1082 -1107
  72. package/dist/agents/po.txt +314 -332
  73. package/dist/agents/qa.txt +1754 -151
  74. package/dist/agents/sm.txt +88 -98
  75. package/dist/agents/ux-expert.txt +80 -87
  76. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +109 -146
  77. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +75 -86
  78. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +41 -48
  79. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +1903 -1941
  80. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +15 -50
  81. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +149 -195
  82. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +0 -15
  83. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +20 -37
  84. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +2660 -2752
  85. package/dist/expansion-packs/bmad-creative-writing/agents/beta-reader.txt +871 -0
  86. package/dist/expansion-packs/bmad-creative-writing/agents/book-critic.txt +78 -0
  87. package/dist/expansion-packs/bmad-creative-writing/agents/character-psychologist.txt +839 -0
  88. package/dist/expansion-packs/bmad-creative-writing/agents/cover-designer.txt +85 -0
  89. package/dist/expansion-packs/bmad-creative-writing/agents/dialog-specialist.txt +861 -0
  90. package/dist/expansion-packs/bmad-creative-writing/agents/editor.txt +796 -0
  91. package/dist/expansion-packs/bmad-creative-writing/agents/genre-specialist.txt +927 -0
  92. package/dist/expansion-packs/bmad-creative-writing/agents/narrative-designer.txt +842 -0
  93. package/dist/expansion-packs/bmad-creative-writing/agents/plot-architect.txt +1126 -0
  94. package/dist/expansion-packs/bmad-creative-writing/agents/world-builder.txt +864 -0
  95. package/dist/expansion-packs/bmad-creative-writing/teams/agent-team.txt +5917 -0
  96. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +25 -27
  97. package/dist/teams/team-all.txt +5541 -3768
  98. package/dist/teams/team-fullstack.txt +3014 -2987
  99. package/dist/teams/team-ide-minimal.txt +2219 -469
  100. package/dist/teams/team-no-ui.txt +2993 -2966
  101. package/docs/enhanced-ide-development-workflow.md +220 -15
  102. package/docs/user-guide.md +271 -18
  103. package/docs/versioning-and-releases.md +122 -44
  104. package/docs/working-in-the-brownfield.md +265 -32
  105. package/eslint.config.mjs +119 -0
  106. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +4 -4
  107. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +1 -1
  108. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  109. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -4
  110. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +26 -30
  111. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -1
  112. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -18
  113. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +50 -50
  114. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +23 -23
  115. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +24 -24
  116. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +42 -42
  117. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +65 -65
  118. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +5 -5
  119. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +1 -1
  120. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +3 -3
  121. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +0 -5
  122. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +0 -8
  123. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +1 -1
  124. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +1 -8
  125. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +0 -4
  126. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +0 -1
  127. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +0 -10
  128. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +0 -18
  129. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +23 -23
  130. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +63 -63
  131. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +20 -20
  132. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +65 -65
  133. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +5 -5
  134. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +1 -1
  135. package/expansion-packs/bmad-creative-writing/README.md +132 -0
  136. package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +19 -0
  137. package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +91 -0
  138. package/expansion-packs/bmad-creative-writing/agents/book-critic.md +35 -0
  139. package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +90 -0
  140. package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +41 -0
  141. package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +89 -0
  142. package/expansion-packs/bmad-creative-writing/agents/editor.md +90 -0
  143. package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +92 -0
  144. package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +90 -0
  145. package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +92 -0
  146. package/expansion-packs/bmad-creative-writing/agents/world-builder.md +91 -0
  147. package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +16 -0
  148. package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +16 -0
  149. package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +16 -0
  150. package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +16 -0
  151. package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +15 -0
  152. package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +16 -0
  153. package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +16 -0
  154. package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +15 -0
  155. package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +15 -0
  156. package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +16 -0
  157. package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +16 -0
  158. package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +18 -0
  159. package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +16 -0
  160. package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +16 -0
  161. package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +16 -0
  162. package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +16 -0
  163. package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +49 -0
  164. package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +16 -0
  165. package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +16 -0
  166. package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +16 -0
  167. package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +15 -0
  168. package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +16 -0
  169. package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +16 -0
  170. package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +16 -0
  171. package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +16 -0
  172. package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +16 -0
  173. package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +16 -0
  174. package/expansion-packs/bmad-creative-writing/config.yaml +11 -0
  175. package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +197 -0
  176. package/expansion-packs/bmad-creative-writing/data/story-structures.md +58 -0
  177. package/expansion-packs/bmad-creative-writing/docs/brief.md +183 -0
  178. package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +117 -0
  179. package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +16 -0
  180. package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +55 -0
  181. package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +22 -0
  182. package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +16 -0
  183. package/expansion-packs/bmad-creative-writing/tasks/build-world.md +17 -0
  184. package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +15 -0
  185. package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +101 -0
  186. package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +19 -0
  187. package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +19 -0
  188. package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +17 -0
  189. package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +93 -0
  190. package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +16 -0
  191. package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +16 -0
  192. package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +16 -0
  193. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +18 -0
  194. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +19 -0
  195. package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +16 -0
  196. package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +18 -0
  197. package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +16 -0
  198. package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +17 -0
  199. package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +16 -0
  200. package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +15 -0
  201. package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +16 -0
  202. package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +51 -0
  203. package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +96 -0
  204. package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +81 -0
  205. package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
  206. package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +97 -0
  207. package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +77 -0
  208. package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +54 -0
  209. package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
  210. package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +88 -0
  211. package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +176 -0
  212. package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +58 -0
  213. package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +51 -0
  214. package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
  215. package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +92 -0
  216. package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +86 -0
  217. package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +79 -0
  218. package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +65 -0
  219. package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  220. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +0 -3
  221. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +0 -1
  222. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +0 -1
  223. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +20 -20
  224. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +7 -7
  225. package/package.json +62 -39
  226. package/prettier.config.mjs +32 -0
  227. package/sync-version.sh +23 -0
  228. package/tools/bmad-npx-wrapper.js +10 -10
  229. package/tools/builders/web-builder.js +124 -130
  230. package/tools/bump-all-versions.js +42 -33
  231. package/tools/bump-expansion-version.js +23 -16
  232. package/tools/cli.js +10 -12
  233. package/tools/flattener/aggregate.js +10 -10
  234. package/tools/flattener/binary.js +44 -17
  235. package/tools/flattener/discovery.js +19 -18
  236. package/tools/flattener/files.js +6 -6
  237. package/tools/flattener/ignoreRules.js +125 -125
  238. package/tools/flattener/main.js +426 -70
  239. package/tools/flattener/projectRoot.js +186 -25
  240. package/tools/flattener/prompts.js +9 -9
  241. package/tools/flattener/stats.helpers.js +395 -0
  242. package/tools/flattener/stats.js +64 -14
  243. package/tools/flattener/test-matrix.js +413 -0
  244. package/tools/flattener/xml.js +33 -31
  245. package/tools/installer/bin/bmad.js +156 -113
  246. package/tools/installer/config/ide-agent-config.yaml +1 -1
  247. package/tools/installer/config/install.config.yaml +13 -3
  248. package/tools/installer/lib/config-loader.js +46 -42
  249. package/tools/installer/lib/file-manager.js +91 -113
  250. package/tools/installer/lib/ide-base-setup.js +57 -56
  251. package/tools/installer/lib/ide-setup.js +545 -399
  252. package/tools/installer/lib/installer.js +875 -714
  253. package/tools/installer/lib/memory-profiler.js +54 -53
  254. package/tools/installer/lib/module-manager.js +19 -15
  255. package/tools/installer/lib/resource-locator.js +26 -28
  256. package/tools/installer/package.json +19 -19
  257. package/tools/lib/dependency-resolver.js +26 -30
  258. package/tools/lib/yaml-utils.js +7 -7
  259. package/tools/preview-release-notes.js +66 -0
  260. package/tools/shared/bannerArt.js +3 -3
  261. package/tools/sync-installer-version.js +7 -9
  262. package/tools/update-expansion-version.js +14 -15
  263. package/tools/upgraders/v3-to-v4-upgrader.js +203 -294
  264. package/tools/version-bump.js +41 -26
  265. package/tools/yaml-format.js +56 -43
  266. package/.github/workflows/release.yaml +0 -60
  267. package/.releaserc.json +0 -21
  268. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/Complete AI Agent System - Flowchart.svg +0 -102
  269. 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
  270. 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
  271. 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
  272. 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
  273. 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
  274. 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
  275. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/README.md +0 -109
  276. package/tools/semantic-release-sync-installer.js +0 -30
@@ -0,0 +1,148 @@
1
+ # apply-qa-fixes
2
+
3
+ Implement fixes based on QA results (gate and assessments) for a specific story. This task is for the Dev agent to systematically consume QA outputs and apply code/test changes while only updating allowed sections in the story file.
4
+
5
+ ## Purpose
6
+
7
+ - Read QA outputs for a story (gate YAML + assessment markdowns)
8
+ - Create a prioritized, deterministic fix plan
9
+ - Apply code and test changes to close gaps and address issues
10
+ - Update only the allowed story sections for the Dev agent
11
+
12
+ ## Inputs
13
+
14
+ ```yaml
15
+ required:
16
+ - story_id: '{epic}.{story}' # e.g., "2.2"
17
+ - qa_root: from `bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
18
+ - story_root: from `bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
19
+
20
+ optional:
21
+ - story_title: '{title}' # derive from story H1 if missing
22
+ - story_slug: '{slug}' # derive from title (lowercase, hyphenated) if missing
23
+ ```
24
+
25
+ ## QA Sources to Read
26
+
27
+ - Gate (YAML): `{qa_root}/gates/{epic}.{story}-*.yml`
28
+ - If multiple, use the most recent by modified time
29
+ - Assessments (Markdown):
30
+ - Test Design: `{qa_root}/assessments/{epic}.{story}-test-design-*.md`
31
+ - Traceability: `{qa_root}/assessments/{epic}.{story}-trace-*.md`
32
+ - Risk Profile: `{qa_root}/assessments/{epic}.{story}-risk-*.md`
33
+ - NFR Assessment: `{qa_root}/assessments/{epic}.{story}-nfr-*.md`
34
+
35
+ ## Prerequisites
36
+
37
+ - Repository builds and tests run locally (Deno 2)
38
+ - Lint and test commands available:
39
+ - `deno lint`
40
+ - `deno test -A`
41
+
42
+ ## Process (Do not skip steps)
43
+
44
+ ### 0) Load Core Config & Locate Story
45
+
46
+ - Read `bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
47
+ - Locate story file in `{story_root}/{epic}.{story}.*.md`
48
+ - HALT if missing and ask for correct story id/path
49
+
50
+ ### 1) Collect QA Findings
51
+
52
+ - Parse the latest gate YAML:
53
+ - `gate` (PASS|CONCERNS|FAIL|WAIVED)
54
+ - `top_issues[]` with `id`, `severity`, `finding`, `suggested_action`
55
+ - `nfr_validation.*.status` and notes
56
+ - `trace` coverage summary/gaps
57
+ - `test_design.coverage_gaps[]`
58
+ - `risk_summary.recommendations.must_fix[]` (if present)
59
+ - Read any present assessment markdowns and extract explicit gaps/recommendations
60
+
61
+ ### 2) Build Deterministic Fix Plan (Priority Order)
62
+
63
+ Apply in order, highest priority first:
64
+
65
+ 1. High severity items in `top_issues` (security/perf/reliability/maintainability)
66
+ 2. NFR statuses: all FAIL must be fixed → then CONCERNS
67
+ 3. Test Design `coverage_gaps` (prioritize P0 scenarios if specified)
68
+ 4. Trace uncovered requirements (AC-level)
69
+ 5. Risk `must_fix` recommendations
70
+ 6. Medium severity issues, then low
71
+
72
+ Guidance:
73
+
74
+ - Prefer tests closing coverage gaps before/with code changes
75
+ - Keep changes minimal and targeted; follow project architecture and TS/Deno rules
76
+
77
+ ### 3) Apply Changes
78
+
79
+ - Implement code fixes per plan
80
+ - Add missing tests to close coverage gaps (unit first; integration where required by AC)
81
+ - Keep imports centralized via `deps.ts` (see `docs/project/typescript-rules.md`)
82
+ - Follow DI boundaries in `src/core/di.ts` and existing patterns
83
+
84
+ ### 4) Validate
85
+
86
+ - Run `deno lint` and fix issues
87
+ - Run `deno test -A` until all tests pass
88
+ - Iterate until clean
89
+
90
+ ### 5) Update Story (Allowed Sections ONLY)
91
+
92
+ CRITICAL: Dev agent is ONLY authorized to update these sections of the story file. Do not modify any other sections (e.g., QA Results, Story, Acceptance Criteria, Dev Notes, Testing):
93
+
94
+ - Tasks / Subtasks Checkboxes (mark any fix subtask you added as done)
95
+ - Dev Agent Record →
96
+ - Agent Model Used (if changed)
97
+ - Debug Log References (commands/results, e.g., lint/tests)
98
+ - Completion Notes List (what changed, why, how)
99
+ - File List (all added/modified/deleted files)
100
+ - Change Log (new dated entry describing applied fixes)
101
+ - Status (see Rule below)
102
+
103
+ Status Rule:
104
+
105
+ - If gate was PASS and all identified gaps are closed → set `Status: Ready for Done`
106
+ - Otherwise → set `Status: Ready for Review` and notify QA to re-run the review
107
+
108
+ ### 6) Do NOT Edit Gate Files
109
+
110
+ - Dev does not modify gate YAML. If fixes address issues, request QA to re-run `review-story` to update the gate
111
+
112
+ ## Blocking Conditions
113
+
114
+ - Missing `bmad-core/core-config.yaml`
115
+ - Story file not found for `story_id`
116
+ - No QA artifacts found (neither gate nor assessments)
117
+ - HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)
118
+
119
+ ## Completion Checklist
120
+
121
+ - deno lint: 0 problems
122
+ - deno test -A: all tests pass
123
+ - All high severity `top_issues` addressed
124
+ - NFR FAIL → resolved; CONCERNS minimized or documented
125
+ - Coverage gaps closed or explicitly documented with rationale
126
+ - Story updated (allowed sections only) including File List and Change Log
127
+ - Status set according to Status Rule
128
+
129
+ ## Example: Story 2.2
130
+
131
+ Given gate `docs/project/qa/gates/2.2-*.yml` shows
132
+
133
+ - `coverage_gaps`: Back action behavior untested (AC2)
134
+ - `coverage_gaps`: Centralized dependencies enforcement untested (AC4)
135
+
136
+ Fix plan:
137
+
138
+ - Add a test ensuring the Toolkit Menu "Back" action returns to Main Menu
139
+ - Add a static test verifying imports for service/view go through `deps.ts`
140
+ - Re-run lint/tests and update Dev Agent Record + File List accordingly
141
+
142
+ ## Key Principles
143
+
144
+ - Deterministic, risk-first prioritization
145
+ - Minimal, maintainable changes
146
+ - Tests validate behavior and close gaps
147
+ - Strict adherence to allowed story update areas
148
+ - Gate ownership remains with QA; Dev signals readiness via Status
@@ -128,7 +128,7 @@ Critical: For brownfield, ALWAYS include criteria about maintaining existing fun
128
128
  Standard structure:
129
129
 
130
130
  1. New functionality works as specified
131
- 2. Existing {{affected feature}} continues to work unchanged
131
+ 2. Existing {{affected feature}} continues to work unchanged
132
132
  3. Integration with {{existing system}} maintains current behavior
133
133
  4. No regression in {{related area}}
134
134
  5. Performance remains within acceptable bounds
@@ -139,16 +139,19 @@ Critical: This is where you'll need to be interactive with the user if informati
139
139
 
140
140
  Create Dev Technical Guidance section with available information:
141
141
 
142
- ```markdown
142
+ ````markdown
143
143
  ## Dev Technical Guidance
144
144
 
145
145
  ### Existing System Context
146
+
146
147
  [Extract from available documentation]
147
148
 
148
149
  ### Integration Approach
150
+
149
151
  [Based on patterns found or ask user]
150
152
 
151
153
  ### Technical Constraints
154
+
152
155
  [From documentation or user input]
153
156
 
154
157
  ### Missing Information
@@ -191,6 +194,7 @@ Example task structure for brownfield:
191
194
  - [ ] Integration test for {{integration point}}
192
195
  - [ ] Update existing tests if needed
193
196
  ```
197
+ ````
194
198
 
195
199
  ### 5. Risk Assessment and Mitigation
196
200
 
@@ -202,14 +206,17 @@ Add section for brownfield-specific risks:
202
206
  ## Risk Assessment
203
207
 
204
208
  ### Implementation Risks
209
+
205
210
  - **Primary Risk**: {{main risk to existing system}}
206
211
  - **Mitigation**: {{how to address}}
207
212
  - **Verification**: {{how to confirm safety}}
208
213
 
209
214
  ### Rollback Plan
215
+
210
216
  - {{Simple steps to undo changes if needed}}
211
217
 
212
218
  ### Safety Checks
219
+
213
220
  - [ ] Existing {{feature}} tested before changes
214
221
  - [ ] Changes can be feature-flagged or isolated
215
222
  - [ ] Rollback procedure documented
@@ -252,6 +259,7 @@ Include header noting documentation context:
252
259
  <!-- Context: Brownfield enhancement to {{existing system}} -->
253
260
 
254
261
  ## Status: Draft
262
+
255
263
  [Rest of story content...]
256
264
  ```
257
265
 
@@ -272,7 +280,7 @@ Key Integration Points Identified:
272
280
  Risks Noted:
273
281
  - {{primary risk}}
274
282
 
275
- {{If missing info}}:
283
+ {{If missing info}}:
276
284
  Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
277
285
 
278
286
  Next Steps:
@@ -21,63 +21,54 @@ CRITICAL: First, help the user select the most appropriate research focus based
21
21
  Present these numbered options to the user:
22
22
 
23
23
  1. **Product Validation Research**
24
-
25
24
  - Validate product hypotheses and market fit
26
25
  - Test assumptions about user needs and solutions
27
26
  - Assess technical and business feasibility
28
27
  - Identify risks and mitigation strategies
29
28
 
30
29
  2. **Market Opportunity Research**
31
-
32
30
  - Analyze market size and growth potential
33
31
  - Identify market segments and dynamics
34
32
  - Assess market entry strategies
35
33
  - Evaluate timing and market readiness
36
34
 
37
35
  3. **User & Customer Research**
38
-
39
36
  - Deep dive into user personas and behaviors
40
37
  - Understand jobs-to-be-done and pain points
41
38
  - Map customer journeys and touchpoints
42
39
  - Analyze willingness to pay and value perception
43
40
 
44
41
  4. **Competitive Intelligence Research**
45
-
46
42
  - Detailed competitor analysis and positioning
47
43
  - Feature and capability comparisons
48
44
  - Business model and strategy analysis
49
45
  - Identify competitive advantages and gaps
50
46
 
51
47
  5. **Technology & Innovation Research**
52
-
53
48
  - Assess technology trends and possibilities
54
49
  - Evaluate technical approaches and architectures
55
50
  - Identify emerging technologies and disruptions
56
51
  - Analyze build vs. buy vs. partner options
57
52
 
58
53
  6. **Industry & Ecosystem Research**
59
-
60
54
  - Map industry value chains and dynamics
61
55
  - Identify key players and relationships
62
56
  - Analyze regulatory and compliance factors
63
57
  - Understand partnership opportunities
64
58
 
65
59
  7. **Strategic Options Research**
66
-
67
60
  - Evaluate different strategic directions
68
61
  - Assess business model alternatives
69
62
  - Analyze go-to-market strategies
70
63
  - Consider expansion and scaling paths
71
64
 
72
65
  8. **Risk & Feasibility Research**
73
-
74
66
  - Identify and assess various risk factors
75
67
  - Evaluate implementation challenges
76
68
  - Analyze resource requirements
77
69
  - Consider regulatory and legal implications
78
70
 
79
71
  9. **Custom Research Focus**
80
-
81
72
  - User-defined research objectives
82
73
  - Specialized domain investigation
83
74
  - Cross-functional research needs
@@ -246,13 +237,11 @@ CRITICAL: collaborate with the user to develop specific, actionable research que
246
237
  ### 5. Review and Refinement
247
238
 
248
239
  1. **Present Complete Prompt**
249
-
250
240
  - Show the full research prompt
251
241
  - Explain key elements and rationale
252
242
  - Highlight any assumptions made
253
243
 
254
244
  2. **Gather Feedback**
255
-
256
245
  - Are the objectives clear and correct?
257
246
  - Do the questions address all concerns?
258
247
  - Is the scope appropriate?
@@ -111,9 +111,9 @@ This document captures the CURRENT STATE of the [Project Name] codebase, includi
111
111
 
112
112
  ### Change Log
113
113
 
114
- | Date | Version | Description | Author |
115
- |------|---------|-------------|--------|
116
- | [Date] | 1.0 | Initial brownfield analysis | [Analyst] |
114
+ | Date | Version | Description | Author |
115
+ | ------ | ------- | --------------------------- | --------- |
116
+ | [Date] | 1.0 | Initial brownfield analysis | [Analyst] |
117
117
 
118
118
  ## Quick Reference - Key Files and Entry Points
119
119
 
@@ -136,11 +136,11 @@ This document captures the CURRENT STATE of the [Project Name] codebase, includi
136
136
 
137
137
  ### Actual Tech Stack (from package.json/requirements.txt)
138
138
 
139
- | Category | Technology | Version | Notes |
140
- |----------|------------|---------|--------|
141
- | Runtime | Node.js | 16.x | [Any constraints] |
142
- | Framework | Express | 4.18.2 | [Custom middleware?] |
143
- | Database | PostgreSQL | 13 | [Connection pooling setup] |
139
+ | Category | Technology | Version | Notes |
140
+ | --------- | ---------- | ------- | -------------------------- |
141
+ | Runtime | Node.js | 16.x | [Any constraints] |
142
+ | Framework | Express | 4.18.2 | [Custom middleware?] |
143
+ | Database | PostgreSQL | 13 | [Connection pooling setup] |
144
144
 
145
145
  etc...
146
146
 
@@ -179,6 +179,7 @@ project-root/
179
179
  ### Data Models
180
180
 
181
181
  Instead of duplicating, reference actual model files:
182
+
182
183
  - **User Model**: See `src/models/User.js`
183
184
  - **Order Model**: See `src/models/Order.js`
184
185
  - **Related Types**: TypeScript definitions in `src/types/`
@@ -208,10 +209,10 @@ Instead of duplicating, reference actual model files:
208
209
 
209
210
  ### External Services
210
211
 
211
- | Service | Purpose | Integration Type | Key Files |
212
- |---------|---------|------------------|-----------|
213
- | Stripe | Payments | REST API | `src/integrations/stripe/` |
214
- | SendGrid | Emails | SDK | `src/services/emailService.js` |
212
+ | Service | Purpose | Integration Type | Key Files |
213
+ | -------- | -------- | ---------------- | ------------------------------ |
214
+ | Stripe | Payments | REST API | `src/integrations/stripe/` |
215
+ | SendGrid | Emails | SDK | `src/services/emailService.js` |
215
216
 
216
217
  etc...
217
218
 
@@ -256,6 +257,7 @@ npm run test:integration # Runs integration tests (requires local DB)
256
257
  ### Files That Will Need Modification
257
258
 
258
259
  Based on the enhancement requirements, these files will be affected:
260
+
259
261
  - `src/services/userService.js` - Add new user fields
260
262
  - `src/models/User.js` - Update schema
261
263
  - `src/routes/userRoutes.js` - New endpoints
@@ -338,4 +340,4 @@ Apply the advanced elicitation task after major sections to refine based on user
338
340
  - References actual files rather than duplicating content when possible
339
341
  - Documents technical debt, workarounds, and constraints honestly
340
342
  - For brownfield projects with PRD: Provides clear enhancement impact analysis
341
- - The goal is PRACTICAL documentation for AI agents doing real work
343
+ - The goal is PRACTICAL documentation for AI agents doing real work
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  docOutputLocation: docs/brainstorming-session-results.md
3
- template: "{root}/templates/brainstorming-output-tmpl.yaml"
3
+ template: '{root}/templates/brainstorming-output-tmpl.yaml'
4
4
  ---
5
5
 
6
6
  # Facilitate Brainstorming Session Task
@@ -43,7 +43,7 @@ If user selects Option 1, present numbered list of techniques from the brainstor
43
43
  1. Apply selected technique according to data file description
44
44
  2. Keep engaging with technique until user indicates they want to:
45
45
  - Choose a different technique
46
- - Apply current ideas to a new technique
46
+ - Apply current ideas to a new technique
47
47
  - Move to convergent phase
48
48
  - End session
49
49
 
@@ -11,14 +11,12 @@ You are now operating as a Documentation Indexer. Your goal is to ensure all doc
11
11
  ### Required Steps
12
12
 
13
13
  1. First, locate and scan:
14
-
15
14
  - The `docs/` directory and all subdirectories
16
15
  - The existing `docs/index.md` file (create if absent)
17
16
  - All markdown (`.md`) and text (`.txt`) files in the documentation structure
18
17
  - Note the folder structure for hierarchical organization
19
18
 
20
19
  2. For the existing `docs/index.md`:
21
-
22
20
  - Parse current entries
23
21
  - Note existing file references and descriptions
24
22
  - Identify any broken links or missing files
@@ -26,7 +24,6 @@ You are now operating as a Documentation Indexer. Your goal is to ensure all doc
26
24
  - Preserve existing folder sections
27
25
 
28
26
  3. For each documentation file found:
29
-
30
27
  - Extract the title (from first heading or filename)
31
28
  - Generate a brief description by analyzing the content
32
29
  - Create a relative markdown link to the file
@@ -35,7 +32,6 @@ You are now operating as a Documentation Indexer. Your goal is to ensure all doc
35
32
  - If missing or outdated, prepare an update
36
33
 
37
34
  4. For any missing or non-existent files found in index:
38
-
39
35
  - Present a list of all entries that reference non-existent files
40
36
  - For each entry:
41
37
  - Show the full entry details (title, path, description)
@@ -88,7 +84,6 @@ Documents within the `another-folder/` directory:
88
84
  ### [Nested Document](./another-folder/document.md)
89
85
 
90
86
  Description of nested document.
91
-
92
87
  ```
93
88
 
94
89
  ### Index Entry Format
@@ -157,7 +152,6 @@ For each file referenced in the index but not found in the filesystem:
157
152
  ### Special Cases
158
153
 
159
154
  1. **Sharded Documents**: If a folder contains an `index.md` file, treat it as a sharded document:
160
-
161
155
  - Use the folder's `index.md` title as the section title
162
156
  - List the folder's documents as subsections
163
157
  - Note in the description that this is a multi-part document
@@ -6,7 +6,7 @@ Provide a user-friendly interface to the BMad knowledge base without overwhelmin
6
6
 
7
7
  ## Instructions
8
8
 
9
- When entering KB mode (*kb-mode), follow these steps:
9
+ When entering KB mode (\*kb-mode), follow these steps:
10
10
 
11
11
  ### 1. Welcome and Guide
12
12
 
@@ -48,12 +48,12 @@ Or ask me about anything else related to BMad-Method!
48
48
  When user is done or wants to exit KB mode:
49
49
 
50
50
  - Summarize key points discussed if helpful
51
- - Remind them they can return to KB mode anytime with *kb-mode
51
+ - Remind them they can return to KB mode anytime with \*kb-mode
52
52
  - Suggest next steps based on what was discussed
53
53
 
54
54
  ## Example Interaction
55
55
 
56
- **User**: *kb-mode
56
+ **User**: \*kb-mode
57
57
 
58
58
  **Assistant**: I've entered KB mode and have access to the full BMad knowledge base. I can help you with detailed information about any aspect of BMad-Method.
59
59