@zeyue0329/xiaoma-cli 1.0.7 → 1.0.10

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 (321) 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 +26 -1
  11. package/CHANGELOG.md +686 -0
  12. package/CONTRIBUTING.md +250 -0
  13. package/LICENSE +6 -1
  14. package/common/tasks/create-doc.md +2 -0
  15. package/common/tasks/execute-checklist.md +2 -7
  16. package/common/utils/bmad-doc-template.md +7 -5
  17. package/common/utils/workflow-management.md +2 -0
  18. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2103 -0
  19. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1627 -0
  20. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +822 -0
  21. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +8486 -0
  22. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +3210 -0
  23. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3244 -0
  24. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +317 -0
  25. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +982 -0
  26. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +12854 -0
  27. package/dist/expansion-packs/bmad-creative-writing/agents/beta-reader.txt +921 -0
  28. package/dist/expansion-packs/bmad-creative-writing/agents/book-critic.txt +81 -0
  29. package/dist/expansion-packs/bmad-creative-writing/agents/character-psychologist.txt +886 -0
  30. package/dist/expansion-packs/bmad-creative-writing/agents/cover-designer.txt +85 -0
  31. package/dist/expansion-packs/bmad-creative-writing/agents/dialog-specialist.txt +903 -0
  32. package/dist/expansion-packs/bmad-creative-writing/agents/editor.txt +837 -0
  33. package/dist/expansion-packs/bmad-creative-writing/agents/genre-specialist.txt +989 -0
  34. package/dist/expansion-packs/bmad-creative-writing/agents/narrative-designer.txt +888 -0
  35. package/dist/expansion-packs/bmad-creative-writing/agents/plot-architect.txt +1173 -0
  36. package/dist/expansion-packs/bmad-creative-writing/agents/world-builder.txt +914 -0
  37. package/dist/expansion-packs/bmad-creative-writing/teams/agent-team.txt +6071 -0
  38. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2079 -0
  39. package/docs/GUIDING-PRINCIPLES.md +91 -0
  40. package/docs/core-architecture.md +219 -0
  41. package/docs/enhanced-ide-development-workflow.md +248 -0
  42. package/docs/expansion-packs.md +200 -0
  43. package/docs/how-to-contribute-with-pull-requests.md +158 -0
  44. package/docs/user-guide.md +530 -0
  45. package/docs/versioning-and-releases.md +155 -0
  46. package/docs/versions.md +48 -0
  47. package/docs/working-in-the-brownfield.md +597 -0
  48. package/eslint.config.mjs +119 -0
  49. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +14 -0
  50. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +73 -0
  51. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +80 -0
  52. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +66 -0
  53. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +203 -0
  54. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +162 -0
  55. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +9 -0
  56. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +252 -0
  57. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +649 -0
  58. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +112 -0
  59. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +218 -0
  60. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +292 -0
  61. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +614 -0
  62. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +357 -0
  63. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +344 -0
  64. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +254 -0
  65. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  66. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  67. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +176 -0
  68. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +15 -0
  69. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +82 -0
  70. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +79 -0
  71. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +80 -0
  72. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +67 -0
  73. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +393 -0
  74. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +205 -0
  75. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +203 -0
  76. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +126 -0
  77. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +7 -0
  78. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +771 -0
  79. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +588 -0
  80. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +112 -0
  81. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +143 -0
  82. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +186 -0
  83. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +292 -0
  84. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +202 -0
  85. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1031 -0
  86. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +357 -0
  87. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +706 -0
  88. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +257 -0
  89. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  90. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  91. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +176 -0
  92. package/expansion-packs/bmad-creative-writing/README.md +146 -0
  93. package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +20 -0
  94. package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +94 -0
  95. package/expansion-packs/bmad-creative-writing/agents/book-critic.md +40 -0
  96. package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +93 -0
  97. package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +46 -0
  98. package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +92 -0
  99. package/expansion-packs/bmad-creative-writing/agents/editor.md +93 -0
  100. package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +95 -0
  101. package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +93 -0
  102. package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +95 -0
  103. package/expansion-packs/bmad-creative-writing/agents/world-builder.md +94 -0
  104. package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +23 -0
  105. package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +23 -0
  106. package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +23 -0
  107. package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +23 -0
  108. package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +21 -0
  109. package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +23 -0
  110. package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +23 -0
  111. package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +22 -0
  112. package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +22 -0
  113. package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +23 -0
  114. package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +23 -0
  115. package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +25 -0
  116. package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +23 -0
  117. package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +23 -0
  118. package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +23 -0
  119. package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +23 -0
  120. package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +59 -0
  121. package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +23 -0
  122. package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +23 -0
  123. package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +23 -0
  124. package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +22 -0
  125. package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +23 -0
  126. package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +23 -0
  127. package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +23 -0
  128. package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +23 -0
  129. package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +23 -0
  130. package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +23 -0
  131. package/expansion-packs/bmad-creative-writing/config.yaml +12 -0
  132. package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +209 -0
  133. package/expansion-packs/bmad-creative-writing/data/story-structures.md +67 -0
  134. package/expansion-packs/bmad-creative-writing/docs/brief.md +212 -0
  135. package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +119 -0
  136. package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +23 -0
  137. package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +67 -0
  138. package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +29 -0
  139. package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +23 -0
  140. package/expansion-packs/bmad-creative-writing/tasks/build-world.md +24 -0
  141. package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +22 -0
  142. package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +103 -0
  143. package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +26 -0
  144. package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +26 -0
  145. package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +24 -0
  146. package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +88 -0
  147. package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +23 -0
  148. package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +23 -0
  149. package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +23 -0
  150. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +25 -0
  151. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +26 -0
  152. package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +23 -0
  153. package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +25 -0
  154. package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +23 -0
  155. package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +24 -0
  156. package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +23 -0
  157. package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +22 -0
  158. package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +23 -0
  159. package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +64 -0
  160. package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +97 -0
  161. package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +82 -0
  162. package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
  163. package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +98 -0
  164. package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +78 -0
  165. package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +55 -0
  166. package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
  167. package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +89 -0
  168. package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +218 -0
  169. package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +56 -0
  170. package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +50 -0
  171. package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
  172. package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +91 -0
  173. package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +85 -0
  174. package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +78 -0
  175. package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +64 -0
  176. package/expansion-packs/bmad-infrastructure-devops/README.md +147 -0
  177. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +73 -0
  178. package/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +486 -0
  179. package/expansion-packs/bmad-infrastructure-devops/config.yaml +10 -0
  180. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +307 -0
  181. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +161 -0
  182. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +155 -0
  183. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +425 -0
  184. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +630 -0
  185. package/implement-fork-friendly-ci.sh +229 -0
  186. package/package.json +75 -45
  187. package/prettier.config.mjs +32 -0
  188. package/test.md +1 -0
  189. package/tools/builders/web-builder.js +143 -149
  190. package/tools/bump-all-versions.js +42 -33
  191. package/tools/bump-expansion-version.js +23 -16
  192. package/tools/cli.js +15 -15
  193. package/tools/flattener/aggregate.js +76 -0
  194. package/tools/flattener/binary.js +80 -0
  195. package/tools/flattener/discovery.js +71 -0
  196. package/tools/flattener/files.js +35 -0
  197. package/tools/flattener/ignoreRules.js +176 -0
  198. package/tools/flattener/main.js +458 -460
  199. package/tools/flattener/projectRoot.js +206 -0
  200. package/tools/flattener/prompts.js +44 -0
  201. package/tools/flattener/stats.helpers.js +395 -0
  202. package/tools/flattener/stats.js +80 -0
  203. package/tools/flattener/test-matrix.js +413 -0
  204. package/tools/flattener/xml.js +88 -0
  205. package/tools/installer/README.md +1 -1
  206. package/tools/installer/bin/xiaoma.js +392 -99
  207. package/tools/installer/config/ide-agent-config.yaml +1 -1
  208. package/tools/installer/config/install.config.yaml +60 -9
  209. package/tools/installer/lib/config-loader.js +55 -51
  210. package/tools/installer/lib/file-manager.js +92 -114
  211. package/tools/installer/lib/ide-base-setup.js +57 -56
  212. package/tools/installer/lib/ide-setup.js +821 -414
  213. package/tools/installer/lib/installer.js +924 -696
  214. package/tools/installer/lib/memory-profiler.js +54 -53
  215. package/tools/installer/lib/module-manager.js +19 -15
  216. package/tools/installer/lib/resource-locator.js +31 -33
  217. package/tools/installer/package.json +24 -23
  218. package/tools/lib/dependency-resolver.js +39 -43
  219. package/tools/lib/yaml-utils.js +7 -7
  220. package/tools/md-assets/web-agent-startup-instructions.md +6 -6
  221. package/tools/preview-release-notes.js +66 -0
  222. package/tools/setup-hooks.sh +37 -0
  223. package/tools/shared/bannerArt.js +105 -0
  224. package/tools/sync-installer-version.js +7 -9
  225. package/tools/sync-version.sh +23 -0
  226. package/tools/update-expansion-version.js +14 -15
  227. package/tools/upgraders/v3-to-v4-upgrader.js +203 -294
  228. package/tools/version-bump.js +41 -26
  229. package/tools/xiaoma-npx-wrapper.js +14 -14
  230. package/tools/yaml-format.js +56 -43
  231. package/xiaoma-core/agent-teams/team-all.yaml +3 -2
  232. package/xiaoma-core/agent-teams/team-fullstack.yaml +2 -1
  233. package/xiaoma-core/agent-teams/team-ide-minimal.yaml +1 -0
  234. package/xiaoma-core/agent-teams/team-no-ui.yaml +2 -1
  235. package/xiaoma-core/agents/analyst.md +20 -17
  236. package/xiaoma-core/agents/architect.md +15 -14
  237. package/xiaoma-core/agents/{xiaoma-master.md → bmad-master.md} +29 -27
  238. package/xiaoma-core/agents/{xiaoma-orchestrator.md → bmad-orchestrator.md} +36 -39
  239. package/xiaoma-core/agents/dev.md +23 -18
  240. package/xiaoma-core/agents/pm.md +18 -15
  241. package/xiaoma-core/agents/po.md +13 -10
  242. package/xiaoma-core/agents/qa.md +46 -24
  243. package/xiaoma-core/agents/sm.md +11 -8
  244. package/xiaoma-core/agents/ux-expert.md +10 -7
  245. package/xiaoma-core/checklists/architect-checklist.md +2 -5
  246. package/xiaoma-core/checklists/change-checklist.md +4 -2
  247. package/xiaoma-core/checklists/pm-checklist.md +2 -5
  248. package/xiaoma-core/checklists/po-master-checklist.md +2 -9
  249. package/xiaoma-core/checklists/story-dod-checklist.md +2 -7
  250. package/xiaoma-core/checklists/story-draft-checklist.md +2 -3
  251. package/xiaoma-core/core-config.yaml +4 -1
  252. package/xiaoma-core/data/{xiaoma-kb.md → bmad-kb.md} +48 -42
  253. package/xiaoma-core/data/brainstorming-techniques.md +2 -0
  254. package/xiaoma-core/data/elicitation-methods.md +22 -0
  255. package/xiaoma-core/data/technical-preferences.md +2 -0
  256. package/xiaoma-core/data/test-levels-framework.md +148 -0
  257. package/xiaoma-core/data/test-priorities-matrix.md +174 -0
  258. package/xiaoma-core/tasks/advanced-elicitation.md +2 -0
  259. package/xiaoma-core/tasks/apply-qa-fixes.md +150 -0
  260. package/xiaoma-core/tasks/brownfield-create-epic.md +2 -0
  261. package/xiaoma-core/tasks/brownfield-create-story.md +2 -0
  262. package/xiaoma-core/tasks/correct-course.md +2 -0
  263. package/xiaoma-core/tasks/create-brownfield-story.md +14 -4
  264. package/xiaoma-core/tasks/create-deep-research-prompt.md +2 -11
  265. package/xiaoma-core/tasks/create-next-story.md +3 -1
  266. package/xiaoma-core/tasks/document-project.md +17 -13
  267. package/xiaoma-core/tasks/facilitate-brainstorming-session.md +5 -3
  268. package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +2 -0
  269. package/xiaoma-core/tasks/index-docs.md +2 -6
  270. package/xiaoma-core/tasks/kb-mode-interaction.md +17 -15
  271. package/xiaoma-core/tasks/nfr-assess.md +345 -0
  272. package/xiaoma-core/tasks/qa-gate.md +163 -0
  273. package/xiaoma-core/tasks/review-story.md +245 -74
  274. package/xiaoma-core/tasks/risk-profile.md +355 -0
  275. package/xiaoma-core/tasks/shard-doc.md +2 -2
  276. package/xiaoma-core/tasks/test-design.md +176 -0
  277. package/xiaoma-core/tasks/trace-requirements.md +266 -0
  278. package/xiaoma-core/tasks/validate-next-story.md +5 -3
  279. package/xiaoma-core/templates/architecture-tmpl.yaml +50 -49
  280. package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +5 -5
  281. package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +32 -31
  282. package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +14 -13
  283. package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +20 -6
  284. package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +22 -9
  285. package/xiaoma-core/templates/front-end-spec-tmpl.yaml +25 -24
  286. package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +123 -104
  287. package/xiaoma-core/templates/market-research-tmpl.yaml +3 -2
  288. package/xiaoma-core/templates/prd-tmpl.yaml +10 -9
  289. package/xiaoma-core/templates/project-brief-tmpl.yaml +5 -4
  290. package/xiaoma-core/templates/qa-gate-tmpl.yaml +103 -0
  291. package/xiaoma-core/templates/story-tmpl.yaml +13 -12
  292. package/xiaoma-core/workflows/brownfield-fullstack.yaml +13 -12
  293. package/xiaoma-core/workflows/brownfield-service.yaml +5 -4
  294. package/xiaoma-core/workflows/brownfield-ui.yaml +5 -4
  295. package/xiaoma-core/workflows/greenfield-fullstack.yaml +7 -6
  296. package/xiaoma-core/workflows/greenfield-service.yaml +5 -4
  297. package/xiaoma-core/workflows/greenfield-ui.yaml +6 -5
  298. package/.releaserc.json +0 -18
  299. package/README.md +0 -532
  300. package/dist/agents/analyst.txt +0 -2882
  301. package/dist/agents/architect.txt +0 -3543
  302. package/dist/agents/dev.txt +0 -428
  303. package/dist/agents/pm.txt +0 -2229
  304. package/dist/agents/po.txt +0 -1364
  305. package/dist/agents/qa.txt +0 -386
  306. package/dist/agents/sm.txt +0 -668
  307. package/dist/agents/ux-expert.txt +0 -701
  308. package/dist/agents/xiaoma-master.txt +0 -8756
  309. package/dist/agents/xiaoma-orchestrator.txt +0 -1490
  310. package/dist/teams/team-all.txt +0 -11062
  311. package/dist/teams/team-fullstack.txt +0 -10392
  312. package/dist/teams/team-ide-minimal.txt +0 -3507
  313. package/dist/teams/team-no-ui.txt +0 -8951
  314. package/docs/quick-start.md +0 -179
  315. package/tools/bmad-npx-wrapper.js +0 -39
  316. package/tools/installer/package-lock.json +0 -704
  317. package/tools/semantic-release-sync-installer.js +0 -30
  318. package/xiaoma-core/bmad-core/user-guide.md +0 -0
  319. package/xiaoma-core/enhanced-ide-development-workflow.md +0 -43
  320. package/xiaoma-core/user-guide.md +0 -251
  321. package/xiaoma-core/working-in-the-brownfield.md +0 -364
@@ -1,3 +1,4 @@
1
+ # <!-- Powered by BMAD™ Core -->
1
2
  template:
2
3
  id: fullstack-architecture-template-v2
3
4
  name: Fullstack Architecture Document
@@ -19,33 +20,33 @@ sections:
19
20
  elicit: true
20
21
  content: |
21
22
  This document outlines the complete fullstack architecture for {{project_name}}, including backend systems, frontend implementation, and their integration. It serves as the single source of truth for AI-driven development, ensuring consistency across the entire technology stack.
22
-
23
+
23
24
  This unified approach combines what would traditionally be separate backend and frontend architecture documents, streamlining the development process for modern fullstack applications where these concerns are increasingly intertwined.
24
25
  sections:
25
26
  - id: starter-template
26
27
  title: Starter Template or Existing Project
27
28
  instruction: |
28
29
  Before proceeding with architecture design, check if the project is based on any starter templates or existing codebases:
29
-
30
+
30
31
  1. Review the PRD and other documents for mentions of:
31
32
  - Fullstack starter templates (e.g., T3 Stack, MEAN/MERN starters, Django + React templates)
32
33
  - Monorepo templates (e.g., Nx, Turborepo starters)
33
34
  - Platform-specific starters (e.g., Vercel templates, AWS Amplify starters)
34
35
  - Existing projects being extended or cloned
35
-
36
+
36
37
  2. If starter templates or existing projects are mentioned:
37
38
  - Ask the user to provide access (links, repos, or files)
38
39
  - Analyze to understand pre-configured choices and constraints
39
40
  - Note any architectural decisions already made
40
41
  - Identify what can be modified vs what must be retained
41
-
42
+
42
43
  3. If no starter is mentioned but this is greenfield:
43
44
  - Suggest appropriate fullstack starters based on tech preferences
44
45
  - Consider platform-specific options (Vercel, AWS, etc.)
45
46
  - Let user decide whether to use one
46
-
47
+
47
48
  4. Document the decision and any constraints it imposes
48
-
49
+
49
50
  If none, state "N/A - Greenfield project"
50
51
  - id: changelog
51
52
  title: Change Log
@@ -71,17 +72,17 @@ sections:
71
72
  title: Platform and Infrastructure Choice
72
73
  instruction: |
73
74
  Based on PRD requirements and technical assumptions, make a platform recommendation:
74
-
75
+
75
76
  1. Consider common patterns (not an exhaustive list, use your own best judgement and search the web as needed for emerging trends):
76
77
  - **Vercel + Supabase**: For rapid development with Next.js, built-in auth/storage
77
78
  - **AWS Full Stack**: For enterprise scale with Lambda, API Gateway, S3, Cognito
78
79
  - **Azure**: For .NET ecosystems or enterprise Microsoft environments
79
80
  - **Google Cloud**: For ML/AI heavy applications or Google ecosystem integration
80
-
81
+
81
82
  2. Present 2-3 viable options with clear pros/cons
82
83
  3. Make a recommendation with rationale
83
84
  4. Get explicit user confirmation
84
-
85
+
85
86
  Document the choice and key services that will be used.
86
87
  template: |
87
88
  **Platform:** {{selected_platform}}
@@ -91,7 +92,7 @@ sections:
91
92
  title: Repository Structure
92
93
  instruction: |
93
94
  Define the repository approach based on PRD requirements and platform choice, explain your rationale or ask questions to the user if unsure:
94
-
95
+
95
96
  1. For modern fullstack apps, monorepo is often preferred
96
97
  2. Consider tooling (Nx, Turborepo, Lerna, npm workspaces)
97
98
  3. Define package/app boundaries
@@ -113,7 +114,7 @@ sections:
113
114
  - Databases and storage
114
115
  - External integrations
115
116
  - CDN and caching layers
116
-
117
+
117
118
  Use appropriate diagram type for clarity.
118
119
  - id: architectural-patterns
119
120
  title: Architectural Patterns
@@ -123,7 +124,7 @@ sections:
123
124
  - Frontend patterns (e.g., Component-based, State management)
124
125
  - Backend patterns (e.g., Repository, CQRS, Event-driven)
125
126
  - Integration patterns (e.g., BFF, API Gateway)
126
-
127
+
127
128
  For each pattern, provide recommendation and rationale.
128
129
  repeatable: true
129
130
  template: "- **{{pattern_name}}:** {{pattern_description}} - _Rationale:_ {{rationale}}"
@@ -137,7 +138,7 @@ sections:
137
138
  title: Tech Stack
138
139
  instruction: |
139
140
  This is the DEFINITIVE technology selection for the entire project. Work with user to finalize all choices. This table is the single source of truth - all development must use these exact versions.
140
-
141
+
141
142
  Key areas to cover:
142
143
  - Frontend and backend languages/frameworks
143
144
  - Databases and caching
@@ -146,7 +147,7 @@ sections:
146
147
  - Testing tools for both frontend and backend
147
148
  - Build and deployment tools
148
149
  - Monitoring and logging
149
-
150
+
150
151
  Upon render, elicit feedback immediately.
151
152
  elicit: true
152
153
  sections:
@@ -156,11 +157,29 @@ sections:
156
157
  columns: [Category, Technology, Version, Purpose, Rationale]
157
158
  rows:
158
159
  - ["Frontend Language", "{{fe_language}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
159
- - ["Frontend Framework", "{{fe_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
160
- - ["UI Component Library", "{{ui_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
160
+ - [
161
+ "Frontend Framework",
162
+ "{{fe_framework}}",
163
+ "{{version}}",
164
+ "{{purpose}}",
165
+ "{{why_chosen}}",
166
+ ]
167
+ - [
168
+ "UI Component Library",
169
+ "{{ui_library}}",
170
+ "{{version}}",
171
+ "{{purpose}}",
172
+ "{{why_chosen}}",
173
+ ]
161
174
  - ["State Management", "{{state_mgmt}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
162
175
  - ["Backend Language", "{{be_language}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
163
- - ["Backend Framework", "{{be_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
176
+ - [
177
+ "Backend Framework",
178
+ "{{be_framework}}",
179
+ "{{version}}",
180
+ "{{purpose}}",
181
+ "{{why_chosen}}",
182
+ ]
164
183
  - ["API Style", "{{api_style}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
165
184
  - ["Database", "{{database}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
166
185
  - ["Cache", "{{cache}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
@@ -181,14 +200,14 @@ sections:
181
200
  title: Data Models
182
201
  instruction: |
183
202
  Define the core data models/entities that will be shared between frontend and backend:
184
-
203
+
185
204
  1. Review PRD requirements and identify key business entities
186
205
  2. For each model, explain its purpose and relationships
187
206
  3. Include key attributes and data types
188
207
  4. Show relationships between models
189
208
  5. Create TypeScript interfaces that can be shared
190
209
  6. Discuss design decisions with user
191
-
210
+
192
211
  Create a clear conceptual model before moving to database schema.
193
212
  elicit: true
194
213
  repeatable: true
@@ -197,7 +216,7 @@ sections:
197
216
  title: "{{model_name}}"
198
217
  template: |
199
218
  **Purpose:** {{model_purpose}}
200
-
219
+
201
220
  **Key Attributes:**
202
221
  - {{attribute_1}}: {{type_1}} - {{description_1}}
203
222
  - {{attribute_2}}: {{type_2}} - {{description_2}}
@@ -216,7 +235,7 @@ sections:
216
235
  title: API Specification
217
236
  instruction: |
218
237
  Based on the chosen API style from Tech Stack:
219
-
238
+
220
239
  1. If REST API, create an OpenAPI 3.0 specification
221
240
  2. If GraphQL, provide the GraphQL schema
222
241
  3. If tRPC, show router definitions
@@ -224,7 +243,7 @@ sections:
224
243
  5. Define request/response schemas based on data models
225
244
  6. Document authentication requirements
226
245
  7. Include example requests/responses
227
-
246
+
228
247
  Use appropriate format for the chosen API style. If no API (e.g., static site), skip this section.
229
248
  elicit: true
230
249
  sections:
@@ -259,7 +278,7 @@ sections:
259
278
  title: Components
260
279
  instruction: |
261
280
  Based on the architectural patterns, tech stack, and data models from above:
262
-
281
+
263
282
  1. Identify major logical components/services across the fullstack
264
283
  2. Consider both frontend and backend components
265
284
  3. Define clear boundaries and interfaces between components
@@ -268,7 +287,7 @@ sections:
268
287
  - Key interfaces/APIs exposed
269
288
  - Dependencies on other components
270
289
  - Technology specifics based on tech stack choices
271
-
290
+
272
291
  5. Create component diagrams where helpful
273
292
  elicit: true
274
293
  sections:
@@ -277,13 +296,13 @@ sections:
277
296
  title: "{{component_name}}"
278
297
  template: |
279
298
  **Responsibility:** {{component_description}}
280
-
299
+
281
300
  **Key Interfaces:**
282
301
  - {{interface_1}}
283
302
  - {{interface_2}}
284
-
303
+
285
304
  **Dependencies:** {{dependencies}}
286
-
305
+
287
306
  **Technology Stack:** {{component_tech_details}}
288
307
  - id: component-diagrams
289
308
  title: Component Diagrams
@@ -300,13 +319,13 @@ sections:
300
319
  condition: Project requires external API integrations
301
320
  instruction: |
302
321
  For each external service integration:
303
-
322
+
304
323
  1. Identify APIs needed based on PRD requirements and component design
305
324
  2. If documentation URLs are unknown, ask user for specifics
306
325
  3. Document authentication methods and security considerations
307
326
  4. List specific endpoints that will be used
308
327
  5. Note any rate limits or usage constraints
309
-
328
+
310
329
  If no external APIs are needed, state this explicitly and skip to next section.
311
330
  elicit: true
312
331
  repeatable: true
@@ -319,10 +338,10 @@ sections:
319
338
  - **Base URL(s):** {{api_base_url}}
320
339
  - **Authentication:** {{auth_method}}
321
340
  - **Rate Limits:** {{rate_limits}}
322
-
341
+
323
342
  **Key Endpoints Used:**
324
343
  - `{{method}} {{endpoint_path}}` - {{endpoint_purpose}}
325
-
344
+
326
345
  **Integration Notes:** {{integration_considerations}}
327
346
 
328
347
  - id: core-workflows
@@ -331,14 +350,14 @@ sections:
331
350
  mermaid_type: sequence
332
351
  instruction: |
333
352
  Illustrate key system workflows using sequence diagrams:
334
-
353
+
335
354
  1. Identify critical user journeys from PRD
336
355
  2. Show component interactions including external APIs
337
356
  3. Include both frontend and backend flows
338
357
  4. Include error handling paths
339
358
  5. Document async operations
340
359
  6. Create both high-level and detailed diagrams as needed
341
-
360
+
342
361
  Focus on workflows that clarify architecture decisions or complex interactions.
343
362
  elicit: true
344
363
 
@@ -346,13 +365,13 @@ sections:
346
365
  title: Database Schema
347
366
  instruction: |
348
367
  Transform the conceptual data models into concrete database schemas:
349
-
368
+
350
369
  1. Use the database type(s) selected in Tech Stack
351
370
  2. Create schema definitions using appropriate notation
352
371
  3. Include indexes, constraints, and relationships
353
372
  4. Consider performance and scalability
354
373
  5. For NoSQL, show document structures
355
-
374
+
356
375
  Present schema in format appropriate to database type (SQL DDL, JSON schema, etc.)
357
376
  elicit: true
358
377
 
@@ -488,60 +507,60 @@ sections:
488
507
  type: code
489
508
  language: plaintext
490
509
  examples:
491
- - |
492
- {{project-name}}/
493
- ├── .github/ # CI/CD workflows
494
- │ └── workflows/
495
- │ ├── ci.yaml
496
- │ └── deploy.yaml
497
- ├── apps/ # Application packages
498
- │ ├── web/ # Frontend application
499
- │ │ ├── src/
500
- │ │ │ ├── components/ # UI components
501
- │ │ │ ├── pages/ # Page components/routes
502
- │ │ │ ├── hooks/ # Custom React hooks
503
- │ │ │ ├── services/ # API client services
504
- │ │ │ ├── stores/ # State management
505
- │ │ │ ├── styles/ # Global styles/themes
506
- │ │ │ └── utils/ # Frontend utilities
507
- │ │ ├── public/ # Static assets
508
- │ │ ├── tests/ # Frontend tests
509
- │ │ └── package.json
510
- │ └── api/ # Backend application
511
- │ ├── src/
512
- │ │ ├── routes/ # API routes/controllers
513
- │ │ ├── services/ # Business logic
514
- │ │ ├── models/ # Data models
515
- │ │ ├── middleware/ # Express/API middleware
516
- │ │ ├── utils/ # Backend utilities
517
- │ │ └── {{serverless_or_server_entry}}
518
- │ ├── tests/ # Backend tests
519
- │ └── package.json
520
- ├── packages/ # Shared packages
521
- │ ├── shared/ # Shared types/utilities
522
- │ │ ├── src/
523
- │ │ │ ├── types/ # TypeScript interfaces
524
- │ │ │ ├── constants/ # Shared constants
525
- │ │ │ └── utils/ # Shared utilities
526
- │ │ └── package.json
527
- │ ├── ui/ # Shared UI components
528
- │ │ ├── src/
529
- │ │ └── package.json
530
- │ └── config/ # Shared configuration
531
- │ ├── eslint/
532
- │ ├── typescript/
533
- │ └── jest/
534
- ├── infrastructure/ # IaC definitions
535
- │ └── {{iac_structure}}
536
- ├── scripts/ # Build/deploy scripts
537
- ├── docs/ # Documentation
538
- │ ├── prd.md
539
- │ ├── front-end-spec.md
540
- │ └── fullstack-architecture.md
541
- ├── .env.example # Environment template
542
- ├── package.json # Root package.json
543
- ├── {{monorepo_config}} # Monorepo configuration
544
- └── README.md
510
+ - |
511
+ {{project-name}}/
512
+ ├── .github/ # CI/CD workflows
513
+ │ └── workflows/
514
+ │ ├── ci.yaml
515
+ │ └── deploy.yaml
516
+ ├── apps/ # Application packages
517
+ │ ├── web/ # Frontend application
518
+ │ │ ├── src/
519
+ │ │ │ ├── components/ # UI components
520
+ │ │ │ ├── pages/ # Page components/routes
521
+ │ │ │ ├── hooks/ # Custom React hooks
522
+ │ │ │ ├── services/ # API client services
523
+ │ │ │ ├── stores/ # State management
524
+ │ │ │ ├── styles/ # Global styles/themes
525
+ │ │ │ └── utils/ # Frontend utilities
526
+ │ │ ├── public/ # Static assets
527
+ │ │ ├── tests/ # Frontend tests
528
+ │ │ └── package.json
529
+ │ └── api/ # Backend application
530
+ │ ├── src/
531
+ │ │ ├── routes/ # API routes/controllers
532
+ │ │ ├── services/ # Business logic
533
+ │ │ ├── models/ # Data models
534
+ │ │ ├── middleware/ # Express/API middleware
535
+ │ │ ├── utils/ # Backend utilities
536
+ │ │ └── {{serverless_or_server_entry}}
537
+ │ ├── tests/ # Backend tests
538
+ │ └── package.json
539
+ ├── packages/ # Shared packages
540
+ │ ├── shared/ # Shared types/utilities
541
+ │ │ ├── src/
542
+ │ │ │ ├── types/ # TypeScript interfaces
543
+ │ │ │ ├── constants/ # Shared constants
544
+ │ │ │ └── utils/ # Shared utilities
545
+ │ │ └── package.json
546
+ │ ├── ui/ # Shared UI components
547
+ │ │ ├── src/
548
+ │ │ └── package.json
549
+ │ └── config/ # Shared configuration
550
+ │ ├── eslint/
551
+ │ ├── typescript/
552
+ │ └── jest/
553
+ ├── infrastructure/ # IaC definitions
554
+ │ └── {{iac_structure}}
555
+ ├── scripts/ # Build/deploy scripts
556
+ ├── docs/ # Documentation
557
+ │ ├── prd.md
558
+ │ ├── front-end-spec.md
559
+ │ └── fullstack-architecture.md
560
+ ├── .env.example # Environment template
561
+ ├── package.json # Root package.json
562
+ ├── {{monorepo_config}} # Monorepo configuration
563
+ └── README.md
545
564
 
546
565
  - id: development-workflow
547
566
  title: Development Workflow
@@ -568,13 +587,13 @@ sections:
568
587
  template: |
569
588
  # Start all services
570
589
  {{start_all_command}}
571
-
590
+
572
591
  # Start frontend only
573
592
  {{start_frontend_command}}
574
-
593
+
575
594
  # Start backend only
576
595
  {{start_backend_command}}
577
-
596
+
578
597
  # Run tests
579
598
  {{test_commands}}
580
599
  - id: environment-config
@@ -587,10 +606,10 @@ sections:
587
606
  template: |
588
607
  # Frontend (.env.local)
589
608
  {{frontend_env_vars}}
590
-
609
+
591
610
  # Backend (.env)
592
611
  {{backend_env_vars}}
593
-
612
+
594
613
  # Shared
595
614
  {{shared_env_vars}}
596
615
 
@@ -607,7 +626,7 @@ sections:
607
626
  - **Build Command:** {{frontend_build_command}}
608
627
  - **Output Directory:** {{frontend_output_dir}}
609
628
  - **CDN/Edge:** {{cdn_strategy}}
610
-
629
+
611
630
  **Backend Deployment:**
612
631
  - **Platform:** {{backend_deploy_platform}}
613
632
  - **Build Command:** {{backend_build_command}}
@@ -638,12 +657,12 @@ sections:
638
657
  - CSP Headers: {{csp_policy}}
639
658
  - XSS Prevention: {{xss_strategy}}
640
659
  - Secure Storage: {{storage_strategy}}
641
-
660
+
642
661
  **Backend Security:**
643
662
  - Input Validation: {{validation_approach}}
644
663
  - Rate Limiting: {{rate_limit_config}}
645
664
  - CORS Policy: {{cors_config}}
646
-
665
+
647
666
  **Authentication Security:**
648
667
  - Token Storage: {{token_strategy}}
649
668
  - Session Management: {{session_approach}}
@@ -655,7 +674,7 @@ sections:
655
674
  - Bundle Size Target: {{bundle_size}}
656
675
  - Loading Strategy: {{loading_approach}}
657
676
  - Caching Strategy: {{fe_cache_strategy}}
658
-
677
+
659
678
  **Backend Performance:**
660
679
  - Response Time Target: {{response_target}}
661
680
  - Database Optimization: {{db_optimization}}
@@ -671,10 +690,10 @@ sections:
671
690
  type: code
672
691
  language: text
673
692
  template: |
674
- E2E Tests
675
- / \
676
- Integration Tests
677
- / \
693
+ E2E Tests
694
+ / \
695
+ Integration Tests
696
+ / \
678
697
  Frontend Unit Backend Unit
679
698
  - id: test-organization
680
699
  title: Test Organization
@@ -793,7 +812,7 @@ sections:
793
812
  - JavaScript errors
794
813
  - API response times
795
814
  - User interactions
796
-
815
+
797
816
  **Backend Metrics:**
798
817
  - Request rate
799
818
  - Error rate
@@ -802,4 +821,4 @@ sections:
802
821
 
803
822
  - id: checklist-results
804
823
  title: Checklist Results Report
805
- instruction: Before running the checklist, offer to output the full architecture document. Once user confirms, execute the architect-checklist and populate results here.
824
+ instruction: Before running the checklist, offer to output the full architecture document. Once user confirms, execute the architect-checklist and populate results here.
@@ -1,3 +1,4 @@
1
+ # <!-- Powered by BMAD™ Core -->
1
2
  template:
2
3
  id: market-research-template-v2
3
4
  name: Market Research Report
@@ -130,7 +131,7 @@ sections:
130
131
  instruction: Map the end-to-end customer experience for primary segments
131
132
  template: |
132
133
  For primary customer segment:
133
-
134
+
134
135
  1. **Awareness:** {{discovery_process}}
135
136
  2. **Consideration:** {{evaluation_criteria}}
136
137
  3. **Purchase:** {{decision_triggers}}
@@ -249,4 +250,4 @@ sections:
249
250
  instruction: Include any complex calculations or models
250
251
  - id: additional-analysis
251
252
  title: C. Additional Analysis
252
- instruction: Any supplementary analysis not included in main body
253
+ instruction: Any supplementary analysis not included in main body
@@ -1,3 +1,4 @@
1
+ # <!-- Powered by BMAD™ Core -->
1
2
  template:
2
3
  id: prd-template-v2
3
4
  name: Product Requirements Document
@@ -56,7 +57,7 @@ sections:
56
57
  condition: PRD has UX/UI requirements
57
58
  instruction: |
58
59
  Capture high-level UI/UX vision to guide Design Architect and to inform story creation. Steps:
59
-
60
+
60
61
  1. Pre-fill all subsections with educated guesses based on project context
61
62
  2. Present the complete rendered section to user
62
63
  3. Clearly let the user know where assumptions were made
@@ -98,7 +99,7 @@ sections:
98
99
  title: Technical Assumptions
99
100
  instruction: |
100
101
  Gather technical decisions that will guide the Architect. Steps:
101
-
102
+
102
103
  1. Check if {root}/data/technical-preferences.yaml or an attached technical-preferences file exists - use it to pre-populate choices
103
104
  2. Ask user about: languages, frameworks, starter templates, libraries, APIs, deployment targets
104
105
  3. For unknowns, offer guidance based on project goals and MVP scope
@@ -126,9 +127,9 @@ sections:
126
127
  title: Epic List
127
128
  instruction: |
128
129
  Present a high-level list of all epics for user approval. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
129
-
130
+
130
131
  CRITICAL: Epics MUST be logically sequential following agile best practices:
131
-
132
+
132
133
  - Each epic should deliver a significant, end-to-end, fully deployable increment of testable functionality
133
134
  - Epic 1 must establish foundational project infrastructure (app setup, Git, CI/CD, core services) unless we are adding new functionality to an existing app, while also delivering an initial piece of functionality, even as simple as a health-check route or display of a simple canary page - remember this when we produce the stories for the first epic!
134
135
  - Each subsequent epic builds upon previous epics' functionality delivering major blocks of functionality that provide tangible value to users or business when deployed
@@ -147,11 +148,11 @@ sections:
147
148
  repeatable: true
148
149
  instruction: |
149
150
  After the epic list is approved, present each epic with all its stories and acceptance criteria as a complete review unit.
150
-
151
+
151
152
  For each epic provide expanded goal (2-3 sentences describing the objective and value all the stories will achieve).
152
-
153
+
153
154
  CRITICAL STORY SEQUENCING REQUIREMENTS:
154
-
155
+
155
156
  - Stories within each epic MUST be logically sequential
156
157
  - Each story should be a "vertical slice" delivering complete functionality aside from early enabler stories for project foundation
157
158
  - No story should depend on work from a later story or epic
@@ -179,7 +180,7 @@ sections:
179
180
  repeatable: true
180
181
  instruction: |
181
182
  Define clear, comprehensive, and testable acceptance criteria that:
182
-
183
+
183
184
  - Precisely define what "done" means from a functional perspective
184
185
  - Are unambiguous and serve as basis for verification
185
186
  - Include any critical non-functional requirements from the PRD
@@ -199,4 +200,4 @@ sections:
199
200
  instruction: This section will contain the prompt for the UX Expert, keep it short and to the point to initiate create architecture mode using this document as input.
200
201
  - id: architect-prompt
201
202
  title: Architect Prompt
202
- instruction: This section will contain the prompt for the Architect, keep it short and to the point to initiate create architecture mode using this document as input.
203
+ instruction: This section will contain the prompt for the Architect, keep it short and to the point to initiate create architecture mode using this document as input.
@@ -1,3 +1,4 @@
1
+ # <!-- Powered by BMAD™ Core -->
1
2
  template:
2
3
  id: project-brief-template-v2
3
4
  name: Project Brief
@@ -28,12 +29,12 @@ sections:
28
29
  - id: introduction
29
30
  instruction: |
30
31
  This template guides creation of a comprehensive Project Brief that serves as the foundational input for product development.
31
-
32
+
32
33
  Start by asking the user which mode they prefer:
33
-
34
+
34
35
  1. **Interactive Mode** - Work through each section collaboratively
35
36
  2. **YOLO Mode** - Generate complete draft for review and refinement
36
-
37
+
37
38
  Before beginning, understand what inputs are available (brainstorming results, market research, competitive analysis, initial ideas) and gather project context.
38
39
 
39
40
  - id: executive-summary
@@ -218,4 +219,4 @@ sections:
218
219
  - id: pm-handoff
219
220
  title: PM Handoff
220
221
  content: |
221
- This Project Brief provides the full context for {{project_name}}. Please start in 'PRD Generation Mode', review the brief thoroughly to work with the user to create the PRD section by section as the template indicates, asking for any necessary clarification or suggesting improvements.
222
+ This Project Brief provides the full context for {{project_name}}. Please start in 'PRD Generation Mode', review the brief thoroughly to work with the user to create the PRD section by section as the template indicates, asking for any necessary clarification or suggesting improvements.