@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
@@ -0,0 +1,307 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # BMad Infrastructure DevOps Expansion Pack Knowledge Base
4
+
5
+ ## Overview
6
+
7
+ The BMad Infrastructure DevOps expansion pack extends the BMad Method framework with comprehensive infrastructure and DevOps capabilities. It enables teams to design, implement, validate, and maintain modern cloud-native infrastructure alongside their application development efforts.
8
+
9
+ **Version**: 1.7.0
10
+ **BMad Compatibility**: v4+
11
+ **Author**: Brian (BMad)
12
+
13
+ ## Core Purpose
14
+
15
+ This expansion pack addresses the critical need for systematic infrastructure planning and implementation in modern software projects. It provides:
16
+
17
+ - Structured approach to infrastructure architecture design
18
+ - Platform engineering implementation guidance
19
+ - Comprehensive validation and review processes
20
+ - Integration with core BMad development workflows
21
+ - Support for cloud-native and traditional infrastructure patterns
22
+
23
+ ## When to Use This Expansion Pack
24
+
25
+ Use the BMad Infrastructure DevOps expansion pack when your project involves:
26
+
27
+ - **Cloud Infrastructure Design**: AWS, Azure, GCP, or multi-cloud architectures
28
+ - **Kubernetes and Container Orchestration**: Container platform design and implementation
29
+ - **Infrastructure as Code**: Terraform, CloudFormation, Pulumi implementations
30
+ - **GitOps Workflows**: ArgoCD, Flux, or similar continuous deployment patterns
31
+ - **Platform Engineering**: Building internal developer platforms and self-service capabilities
32
+ - **Service Mesh Implementation**: Istio, Linkerd, or similar service mesh architectures
33
+ - **DevOps Transformation**: Establishing or improving DevOps practices and culture
34
+
35
+ ## Key Components
36
+
37
+ ### 1. DevOps Agent: Alex
38
+
39
+ **Role**: DevOps Infrastructure Specialist
40
+ **Experience**: 15+ years in infrastructure and platform engineering
41
+
42
+ **Core Principles**:
43
+
44
+ - Infrastructure as Code (IaC) First
45
+ - Automation and Repeatability
46
+ - Reliability and Scalability
47
+ - Security by Design
48
+ - Cost Optimization
49
+ - Developer Experience Focus
50
+
51
+ **Commands**:
52
+
53
+ - `*help` - Display available commands and capabilities
54
+ - `*chat-mode` - Interactive conversation mode for infrastructure discussions
55
+ - `*create-doc` - Generate infrastructure documentation from templates
56
+ - `*review-infrastructure` - Conduct systematic infrastructure review
57
+ - `*validate-infrastructure` - Validate infrastructure against comprehensive checklist
58
+ - `*checklist` - Access the 16-section infrastructure validation checklist
59
+ - `*exit` - Return to normal context
60
+
61
+ ### 2. Infrastructure Templates
62
+
63
+ #### Infrastructure Architecture Template
64
+
65
+ **Purpose**: Design comprehensive infrastructure architecture
66
+ **Key Sections**:
67
+
68
+ - Infrastructure Overview (providers, regions, environments)
69
+ - Infrastructure as Code approach and tooling
70
+ - Network Architecture with visual diagrams
71
+ - Compute Resources planning
72
+ - Security Architecture design
73
+ - Monitoring and Observability strategy
74
+ - CI/CD Pipeline architecture
75
+ - Disaster Recovery planning
76
+ - BMad Integration points
77
+
78
+ #### Platform Implementation Template
79
+
80
+ **Purpose**: Implement platform infrastructure based on approved architecture
81
+ **Key Sections**:
82
+
83
+ - Foundation Infrastructure Layer
84
+ - Container Platform (Kubernetes) setup
85
+ - GitOps Workflow implementation
86
+ - Service Mesh configuration
87
+ - Developer Experience Platform
88
+ - Security hardening procedures
89
+ - Platform validation and testing
90
+
91
+ ### 3. Tasks
92
+
93
+ #### Review Infrastructure Task
94
+
95
+ **Purpose**: Systematic infrastructure review process
96
+ **Features**:
97
+
98
+ - Incremental or rapid assessment modes
99
+ - Architectural escalation for complex issues
100
+ - Advanced elicitation for deep analysis
101
+ - Prioritized findings and recommendations
102
+ - Integration with BMad Architecture phase
103
+
104
+ #### Validate Infrastructure Task
105
+
106
+ **Purpose**: Comprehensive infrastructure validation
107
+ **Features**:
108
+
109
+ - 16-section validation checklist
110
+ - Architecture Design Review Gate
111
+ - Compliance percentage tracking
112
+ - Remediation planning
113
+ - BMad integration assessment
114
+
115
+ ### 4. Infrastructure Validation Checklist
116
+
117
+ A comprehensive 16-section checklist covering:
118
+
119
+ **Foundation Infrastructure (Sections 1-12)**:
120
+
121
+ 1. Security Foundation - IAM, encryption, compliance
122
+ 2. Infrastructure as Code - Version control, testing, documentation
123
+ 3. Resilience & High Availability - Multi-AZ, failover, SLAs
124
+ 4. Backup & Disaster Recovery - Strategies, testing, RTO/RPO
125
+ 5. Monitoring & Observability - Metrics, logging, alerting
126
+ 6. Performance & Scalability - Auto-scaling, load testing
127
+ 7. Infrastructure Operations - Patching, maintenance, runbooks
128
+ 8. CI/CD Infrastructure - Pipelines, environments, deployments
129
+ 9. Networking & Connectivity - Architecture, security, DNS
130
+ 10. Compliance & Governance - Standards, auditing, policies
131
+ 11. BMad Integration - Agent support, workflow alignment
132
+ 12. Architecture Documentation - Diagrams, decisions, maintenance
133
+
134
+ **Platform Engineering (Sections 13-16)**: 13. Container Platform - Kubernetes setup, RBAC, networking 14. GitOps Workflows - Repository structure, deployment patterns 15. Service Mesh - Traffic management, security, observability 16. Developer Experience - Self-service, documentation, tooling
135
+
136
+ ## Integration with BMad Flow
137
+
138
+ ### Workflow Integration Points
139
+
140
+ 1. **After Architecture Phase**: Infrastructure design begins after application architecture is defined
141
+ 2. **Parallel to Development**: Infrastructure implementation runs alongside application development
142
+ 3. **Before Production**: Infrastructure validation gates before production deployment
143
+ 4. **Continuous Operation**: Ongoing infrastructure reviews and improvements
144
+
145
+ ### Agent Collaboration
146
+
147
+ - **With Architect (Sage)**: Joint planning sessions, design reviews, architectural alignment
148
+ - **With Developer (Blake)**: Platform capabilities, development environment setup
149
+ - **With Product Manager (Finley)**: Infrastructure requirements, cost considerations
150
+ - **With Creator Agents**: Infrastructure for creative workflows and asset management
151
+
152
+ ## Best Practices
153
+
154
+ ### Infrastructure Design
155
+
156
+ 1. **Start with Requirements**: Understand application needs before designing infrastructure
157
+ 2. **Design for Scale**: Plan for 10x growth from day one
158
+ 3. **Security First**: Implement defense in depth at every layer
159
+ 4. **Cost Awareness**: Balance performance with budget constraints
160
+ 5. **Document Everything**: Maintain comprehensive documentation
161
+
162
+ ### Implementation Approach
163
+
164
+ 1. **Incremental Rollout**: Deploy infrastructure in stages with validation gates
165
+ 2. **Automation Focus**: Automate repetitive tasks and deployments
166
+ 3. **Testing Strategy**: Include infrastructure testing in CI/CD pipelines
167
+ 4. **Monitoring Setup**: Implement observability before production
168
+ 5. **Team Training**: Ensure team understanding of infrastructure
169
+
170
+ ### Validation Process
171
+
172
+ 1. **Regular Reviews**: Schedule periodic infrastructure assessments
173
+ 2. **Checklist Compliance**: Maintain high compliance with validation checklist
174
+ 3. **Performance Baselines**: Establish and monitor performance metrics
175
+ 4. **Security Audits**: Regular security assessments and penetration testing
176
+ 5. **Cost Optimization**: Monthly cost reviews and optimization
177
+
178
+ ## Common Use Cases
179
+
180
+ ### 1. New Project Infrastructure
181
+
182
+ **Scenario**: Starting a new cloud-native application
183
+ **Process**:
184
+
185
+ 1. Use Infrastructure Architecture template for design
186
+ 2. Review with Architect agent
187
+ 3. Implement using Platform Implementation template
188
+ 4. Validate with comprehensive checklist
189
+ 5. Deploy incrementally with monitoring
190
+
191
+ ### 2. Infrastructure Modernization
192
+
193
+ **Scenario**: Migrating legacy infrastructure to cloud
194
+ **Process**:
195
+
196
+ 1. Review existing infrastructure
197
+ 2. Design target architecture
198
+ 3. Plan migration phases
199
+ 4. Implement with validation gates
200
+ 5. Monitor and optimize
201
+
202
+ ### 3. Platform Engineering Initiative
203
+
204
+ **Scenario**: Building internal developer platform
205
+ **Process**:
206
+
207
+ 1. Assess developer needs
208
+ 2. Design platform architecture
209
+ 3. Implement Kubernetes/GitOps foundation
210
+ 4. Build self-service capabilities
211
+ 5. Enable developer adoption
212
+
213
+ ### 4. Multi-Cloud Strategy
214
+
215
+ **Scenario**: Implementing multi-cloud architecture
216
+ **Process**:
217
+
218
+ 1. Define cloud strategy and requirements
219
+ 2. Design cloud-agnostic architecture
220
+ 3. Implement with IaC abstraction
221
+ 4. Validate cross-cloud functionality
222
+ 5. Establish unified monitoring
223
+
224
+ ## Advanced Features
225
+
226
+ ### GitOps Workflows
227
+
228
+ - **Repository Structure**: Organized by environment and application
229
+ - **Deployment Patterns**: Progressive delivery, canary deployments
230
+ - **Secret Management**: External secrets operator integration
231
+ - **Policy Enforcement**: OPA/Gatekeeper for compliance
232
+
233
+ ### Service Mesh Capabilities
234
+
235
+ - **Traffic Management**: Load balancing, circuit breaking, retries
236
+ - **Security**: mTLS, authorization policies
237
+ - **Observability**: Distributed tracing, service maps
238
+ - **Multi-Cluster**: Cross-cluster communication
239
+
240
+ ### Developer Self-Service
241
+
242
+ - **Portal Features**: Resource provisioning, environment management
243
+ - **API Gateway**: Centralized API management
244
+ - **Documentation**: Automated API docs, runbooks
245
+ - **Tooling**: CLI tools, IDE integrations
246
+
247
+ ## Troubleshooting Guide
248
+
249
+ ### Common Issues
250
+
251
+ 1. **Infrastructure Drift**
252
+ - Solution: Implement drift detection in IaC pipelines
253
+ - Prevention: Restrict manual changes, enforce GitOps
254
+
255
+ 2. **Cost Overruns**
256
+ - Solution: Implement cost monitoring and alerts
257
+ - Prevention: Resource tagging, budget limits
258
+
259
+ 3. **Performance Problems**
260
+ - Solution: Review monitoring data, scale resources
261
+ - Prevention: Load testing, capacity planning
262
+
263
+ 4. **Security Vulnerabilities**
264
+ - Solution: Immediate patching, security reviews
265
+ - Prevention: Automated scanning, compliance checks
266
+
267
+ ## Metrics and KPIs
268
+
269
+ ### Infrastructure Metrics
270
+
271
+ - **Availability**: Target 99.9%+ uptime
272
+ - **Performance**: Response time < 100ms
273
+ - **Cost Efficiency**: Cost per transaction trending down
274
+ - **Security**: Zero critical vulnerabilities
275
+ - **Automation**: 90%+ automated deployments
276
+
277
+ ### Platform Metrics
278
+
279
+ - **Developer Satisfaction**: NPS > 50
280
+ - **Self-Service Adoption**: 80%+ platform usage
281
+ - **Deployment Frequency**: Multiple per day
282
+ - **Lead Time**: < 1 hour from commit to production
283
+ - **MTTR**: < 30 minutes for incidents
284
+
285
+ ## Future Enhancements
286
+
287
+ ### Planned Features
288
+
289
+ 1. **AI-Driven Optimization**: Automated infrastructure tuning
290
+ 2. **Enhanced Security**: Zero-trust architecture templates
291
+ 3. **Edge Computing**: Support for edge infrastructure patterns
292
+ 4. **Sustainability**: Carbon footprint optimization
293
+ 5. **Advanced Compliance**: Industry-specific compliance templates
294
+
295
+ ### Integration Roadmap
296
+
297
+ 1. **Cloud Provider APIs**: Direct integration with AWS, Azure, GCP
298
+ 2. **IaC Tools**: Native support for Terraform, Pulumi
299
+ 3. **Monitoring Platforms**: Integration with Datadog, New Relic
300
+ 4. **Security Tools**: SIEM and vulnerability scanner integration
301
+ 5. **Cost Management**: FinOps platform integration
302
+
303
+ ## Conclusion
304
+
305
+ The BMad Infrastructure DevOps expansion pack provides a comprehensive framework for modern infrastructure and platform engineering. By following its structured approach and leveraging the provided tools and templates, teams can build reliable, scalable, and secure infrastructure that accelerates application delivery while maintaining operational excellence.
306
+
307
+ For support and updates, refer to the main BMad Method documentation or contact the BMad community.
@@ -0,0 +1,161 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Infrastructure Review Task
4
+
5
+ ## Purpose
6
+
7
+ To conduct a thorough review of existing infrastructure to identify improvement opportunities, security concerns, and alignment with best practices. This task helps maintain infrastructure health, optimize costs, and ensure continued alignment with organizational requirements.
8
+
9
+ ## Inputs
10
+
11
+ - Current infrastructure documentation
12
+ - Monitoring and logging data
13
+ - Recent incident reports
14
+ - Cost and performance metrics
15
+ - `infrastructure-checklist.md` (primary review framework)
16
+
17
+ ## Key Activities & Instructions
18
+
19
+ ### 1. Confirm Interaction Mode
20
+
21
+ - Ask the user: "How would you like to proceed with the infrastructure review? We can work:
22
+ A. **Incrementally (Default & Recommended):** We'll work through each section of the checklist methodically, documenting findings for each item before moving to the next section. This provides a thorough review.
23
+ B. **"YOLO" Mode:** I can perform a rapid assessment of all infrastructure components and present a comprehensive findings report. This is faster but may miss nuanced details."
24
+ - Request the user to select their preferred mode and proceed accordingly.
25
+
26
+ ### 2. Prepare for Review
27
+
28
+ - Gather and organize current infrastructure documentation
29
+ - Access monitoring and logging systems for operational data
30
+ - Review recent incident reports for recurring issues
31
+ - Collect cost and performance metrics
32
+ - <critical_rule>Establish review scope and boundaries with the user before proceeding</critical_rule>
33
+
34
+ ### 3. Conduct Systematic Review
35
+
36
+ - **If "Incremental Mode" was selected:**
37
+ - For each section of the infrastructure checklist:
38
+ - **a. Present Section Focus:** Explain what aspects of infrastructure this section reviews
39
+ - **b. Work Through Items:** Examine each checklist item against current infrastructure
40
+ - **c. Document Current State:** Record how current implementation addresses or fails to address each item
41
+ - **d. Identify Gaps:** Document improvement opportunities with specific recommendations
42
+ - **e. [Offer Advanced Self-Refinement & Elicitation Options](#offer-advanced-self-refinement--elicitation-options)**
43
+ - **f. Section Summary:** Provide an assessment summary before moving to the next section
44
+
45
+ - **If "YOLO Mode" was selected:**
46
+ - Rapidly assess all infrastructure components
47
+ - Document key findings and improvement opportunities
48
+ - Present a comprehensive review report
49
+ - <important_note>After presenting the full review in YOLO mode, you MAY still offer the 'Advanced Reflective & Elicitation Options' menu for deeper investigation of specific areas with issues.</important_note>
50
+
51
+ ### 4. Generate Findings Report
52
+
53
+ - Summarize review findings by category (Security, Performance, Cost, Reliability, etc.)
54
+ - Prioritize identified issues (Critical, High, Medium, Low)
55
+ - Document recommendations with estimated effort and impact
56
+ - Create an improvement roadmap with suggested timelines
57
+ - Highlight cost optimization opportunities
58
+
59
+ ### 5. BMad Integration Assessment
60
+
61
+ - Evaluate how current infrastructure supports other BMad agents:
62
+ - **Development Support:** Assess how infrastructure enables Frontend Dev (Mira), Backend Dev (Enrique), and Full Stack Dev workflows
63
+ - **Product Alignment:** Verify infrastructure supports PRD requirements from Product Owner (Oli)
64
+ - **Architecture Compliance:** Check if implementation follows Architect (Alphonse) decisions
65
+ - Document any gaps in BMad integration
66
+
67
+ ### 6. Architectural Escalation Assessment
68
+
69
+ - **DevOps/Platform → Architect Escalation Review:**
70
+ - Evaluate review findings for issues requiring architectural intervention:
71
+ - **Technical Debt Escalation:**
72
+ - Identify infrastructure technical debt that impacts system architecture
73
+ - Document technical debt items that require architectural redesign vs. operational fixes
74
+ - Assess cumulative technical debt impact on system maintainability and scalability
75
+ - **Performance/Security Issue Escalation:**
76
+ - Identify performance bottlenecks that require architectural solutions (not just operational tuning)
77
+ - Document security vulnerabilities that need architectural security pattern changes
78
+ - Assess capacity and scalability issues requiring architectural scaling strategy revision
79
+ - **Technology Evolution Escalation:**
80
+ - Identify outdated technologies that need architectural migration planning
81
+ - Document new technology opportunities that could improve system architecture
82
+ - Assess technology compatibility issues requiring architectural integration strategy changes
83
+ - **Escalation Decision Matrix:**
84
+ - **Critical Architectural Issues:** Require immediate Architect Agent involvement for system redesign
85
+ - **Significant Architectural Concerns:** Recommend Architect Agent review for potential architecture evolution
86
+ - **Operational Issues:** Can be addressed through operational improvements without architectural changes
87
+ - **Unclear/Ambiguous Issues:** When escalation level is uncertain, consult with user for guidance and decision
88
+ - Document escalation recommendations with clear justification and impact assessment
89
+ - <critical_rule>If escalation classification is unclear or ambiguous, HALT and ask user for guidance on appropriate escalation level and approach</critical_rule>
90
+
91
+ ### 7. Present and Plan
92
+
93
+ - Prepare an executive summary of key findings
94
+ - Create detailed technical documentation for implementation teams
95
+ - Develop an action plan for critical and high-priority items
96
+ - **Prepare Architectural Escalation Report** (if applicable):
97
+ - Document all findings requiring Architect Agent attention
98
+ - Provide specific recommendations for architectural changes or reviews
99
+ - Include impact assessment and priority levels for architectural work
100
+ - Prepare escalation summary for Architect Agent collaboration
101
+ - Schedule follow-up reviews for specific areas
102
+ - <important_note>Present findings in a way that enables clear decision-making on next steps and escalation needs.</important_note>
103
+
104
+ ### 8. Execute Escalation Protocol
105
+
106
+ - **If Critical Architectural Issues Identified:**
107
+ - **Immediate Escalation to Architect Agent:**
108
+ - Present architectural escalation report with critical findings
109
+ - Request architectural review and potential redesign for identified issues
110
+ - Collaborate with Architect Agent on priority and timeline for architectural changes
111
+ - Document escalation outcomes and planned architectural work
112
+ - **If Significant Architectural Concerns Identified:**
113
+ - **Scheduled Architectural Review:**
114
+ - Prepare detailed technical findings for Architect Agent review
115
+ - Request architectural assessment of identified concerns
116
+ - Schedule collaborative planning session for potential architectural evolution
117
+ - Document architectural recommendations and planned follow-up
118
+ - **If Only Operational Issues Identified:**
119
+ - Proceed with operational improvement planning without architectural escalation
120
+ - Monitor for future architectural implications of operational changes
121
+ - **If Unclear/Ambiguous Escalation Needed:**
122
+ - **User Consultation Required:**
123
+ - Present unclear findings and escalation options to user
124
+ - Request user guidance on appropriate escalation level and approach
125
+ - Document user decision and rationale for escalation approach
126
+ - Proceed with user-directed escalation path
127
+ - <critical_rule>All critical architectural escalations must be documented and acknowledged by Architect Agent before proceeding with implementation</critical_rule>
128
+
129
+ ## Output
130
+
131
+ A comprehensive infrastructure review report that includes:
132
+
133
+ 1. **Current state assessment** for each infrastructure component
134
+ 2. **Prioritized findings** with severity ratings
135
+ 3. **Detailed recommendations** with effort/impact estimates
136
+ 4. **Cost optimization opportunities**
137
+ 5. **BMad integration assessment**
138
+ 6. **Architectural escalation assessment** with clear escalation recommendations
139
+ 7. **Action plan** for critical improvements and architectural work
140
+ 8. **Escalation documentation** for Architect Agent collaboration (if applicable)
141
+
142
+ ## Offer Advanced Self-Refinement & Elicitation Options
143
+
144
+ Present the user with the following list of 'Advanced Reflective, Elicitation & Brainstorming Actions'. Explain that these are optional steps to help ensure quality, explore alternatives, and deepen the understanding of the current section before finalizing it and moving on. The user can select an action by number, or choose to skip this and proceed to finalize the section.
145
+
146
+ "To ensure the quality of the current section: **[Specific Section Name]** and to ensure its robustness, explore alternatives, and consider all angles, I can perform any of the following actions. Please choose a number (8 to finalize and proceed):
147
+
148
+ **Advanced Reflective, Elicitation & Brainstorming Actions I Can Take:**
149
+
150
+ 1. **Root Cause Analysis & Pattern Recognition**
151
+ 2. **Industry Best Practice Comparison**
152
+ 3. **Future Scalability & Growth Impact Assessment**
153
+ 4. **Security Vulnerability & Threat Model Analysis**
154
+ 5. **Operational Efficiency & Automation Opportunities**
155
+ 6. **Cost Structure Analysis & Optimization Strategy**
156
+ 7. **Compliance & Governance Gap Assessment**
157
+ 8. **Finalize this Section and Proceed.**
158
+
159
+ After I perform the selected action, we can discuss the outcome and decide on any further revisions for this section."
160
+
161
+ REPEAT by Asking the user if they would like to perform another Reflective, Elicitation & Brainstorming Action UNTIL the user indicates it is time to proceed to the next section (or selects #8)
@@ -0,0 +1,155 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Infrastructure Validation Task
4
+
5
+ ## Purpose
6
+
7
+ To comprehensively validate platform infrastructure changes against security, reliability, operational, and compliance requirements before deployment. This task ensures all platform infrastructure meets organizational standards, follows best practices, and properly integrates with the broader BMad ecosystem.
8
+
9
+ ## Inputs
10
+
11
+ - Infrastructure Change Request (`docs/infrastructure/{ticketNumber}.change.md`)
12
+ - **Infrastructure Architecture Document** (`docs/infrastructure-architecture.md` - from Architect Agent)
13
+ - Infrastructure Guidelines (`docs/infrastructure/guidelines.md`)
14
+ - Technology Stack Document (`docs/tech-stack.md`)
15
+ - `infrastructure-checklist.md` (primary validation framework - 16 comprehensive sections)
16
+
17
+ ## Key Activities & Instructions
18
+
19
+ ### 1. Confirm Interaction Mode
20
+
21
+ - Ask the user: "How would you like to proceed with platform infrastructure validation? We can work:
22
+ A. **Incrementally (Default & Recommended):** We'll work through each section of the checklist step-by-step, documenting compliance or gaps for each item before moving to the next section. This is best for thorough validation and detailed documentation of the complete platform stack.
23
+ B. **"YOLO" Mode:** I can perform a rapid assessment of all checklist items and present a comprehensive validation report for review. This is faster but may miss nuanced details that would be caught in the incremental approach."
24
+ - Request the user to select their preferred mode (e.g., "Please let me know if you'd prefer A or B.").
25
+ - Once the user chooses, confirm the selected mode and proceed accordingly.
26
+
27
+ ### 2. Initialize Platform Validation
28
+
29
+ - Review the infrastructure change documentation to understand platform implementation scope and purpose
30
+ - Analyze the infrastructure architecture document for platform design patterns and compliance requirements
31
+ - Examine infrastructure guidelines for organizational standards across all platform components
32
+ - Prepare the validation environment and tools for comprehensive platform testing
33
+ - <critical_rule>Verify the infrastructure change request is approved for validation. If not, HALT and inform the user.</critical_rule>
34
+
35
+ ### 3. Architecture Design Review Gate
36
+
37
+ - **DevOps/Platform → Architect Design Review:**
38
+ - Conduct systematic review of infrastructure architecture document for implementability
39
+ - Evaluate architectural decisions against operational constraints and capabilities:
40
+ - **Implementation Complexity:** Assess if proposed architecture can be implemented with available tools and expertise
41
+ - **Operational Feasibility:** Validate that operational patterns are achievable within current organizational maturity
42
+ - **Resource Availability:** Confirm required infrastructure resources are available and within budget constraints
43
+ - **Technology Compatibility:** Verify selected technologies integrate properly with existing infrastructure
44
+ - **Security Implementation:** Validate that security patterns can be implemented with current security toolchain
45
+ - **Maintenance Overhead:** Assess ongoing operational burden and maintenance requirements
46
+ - Document design review findings and recommendations:
47
+ - **Approved Aspects:** Document architectural decisions that are implementable as designed
48
+ - **Implementation Concerns:** Identify architectural decisions that may face implementation challenges
49
+ - **Required Modifications:** Recommend specific changes needed to make architecture implementable
50
+ - **Alternative Approaches:** Suggest alternative implementation patterns where needed
51
+ - **Collaboration Decision Point:**
52
+ - If **critical implementation blockers** identified: HALT validation and escalate to Architect Agent for architectural revision
53
+ - If **minor concerns** identified: Document concerns and proceed with validation, noting required implementation adjustments
54
+ - If **architecture approved**: Proceed with comprehensive platform validation
55
+ - <critical_rule>All critical design review issues must be resolved before proceeding to detailed validation</critical_rule>
56
+
57
+ ### 4. Execute Comprehensive Platform Validation Process
58
+
59
+ - **If "Incremental Mode" was selected:**
60
+ - For each section of the infrastructure checklist (Sections 1-16):
61
+ - **a. Present Section Purpose:** Explain what this section validates and why it's important for platform operations
62
+ - **b. Work Through Items:** Present each checklist item, guide the user through validation, and document compliance or gaps
63
+ - **c. Evidence Collection:** For each compliant item, document how compliance was verified
64
+ - **d. Gap Documentation:** For each non-compliant item, document specific issues and proposed remediation
65
+ - **e. Platform Integration Testing:** For platform engineering sections (13-16), validate integration between platform components
66
+ - **f. [Offer Advanced Self-Refinement & Elicitation Options](#offer-advanced-self-refinement--elicitation-options)**
67
+ - **g. Section Summary:** Provide a compliance percentage and highlight critical findings before moving to the next section
68
+
69
+ - **If "YOLO Mode" was selected:**
70
+ - Work through all checklist sections rapidly (foundation infrastructure sections 1-12 + platform engineering sections 13-16)
71
+ - Document compliance status for each item across all platform components
72
+ - Identify and document critical non-compliance issues affecting platform operations
73
+ - Present a comprehensive validation report for all sections
74
+ - <important_note>After presenting the full validation report in YOLO mode, you MAY still offer the 'Advanced Reflective & Elicitation Options' menu for deeper investigation of specific sections with issues.</important_note>
75
+
76
+ ### 5. Generate Comprehensive Platform Validation Report
77
+
78
+ - Summarize validation findings by section across all 16 checklist areas
79
+ - Calculate and present overall compliance percentage for complete platform stack
80
+ - Clearly document all non-compliant items with remediation plans prioritized by platform impact
81
+ - Highlight critical security or operational risks affecting platform reliability
82
+ - Include design review findings and architectural implementation recommendations
83
+ - Provide validation signoff recommendation based on complete platform assessment
84
+ - Document platform component integration validation results
85
+
86
+ ### 6. BMad Integration Assessment
87
+
88
+ - Review how platform infrastructure changes support other BMad agents:
89
+ - **Development Agent Alignment:** Verify platform infrastructure supports Frontend Dev, Backend Dev, and Full Stack Dev requirements including:
90
+ - Container platform development environment provisioning
91
+ - GitOps workflows for application deployment
92
+ - Service mesh integration for development testing
93
+ - Developer experience platform self-service capabilities
94
+ - **Product Alignment:** Ensure platform infrastructure implements PRD requirements from Product Owner including:
95
+ - Scalability and performance requirements through container platform
96
+ - Deployment automation through GitOps workflows
97
+ - Service reliability through service mesh implementation
98
+ - **Architecture Alignment:** Validate that platform implementation aligns with architecture decisions including:
99
+ - Technology selections implemented correctly across all platform components
100
+ - Security architecture implemented in container platform, service mesh, and GitOps
101
+ - Integration patterns properly implemented between platform components
102
+ - Document all integration points and potential impacts on other agents' workflows
103
+
104
+ ### 7. Next Steps Recommendation
105
+
106
+ - If validation successful:
107
+ - Prepare platform deployment recommendation with component dependencies
108
+ - Outline monitoring requirements for complete platform stack
109
+ - Suggest knowledge transfer activities for platform operations
110
+ - Document platform readiness certification
111
+ - If validation failed:
112
+ - Prioritize remediation actions by platform component and integration impact
113
+ - Recommend blockers vs. non-blockers for platform deployment
114
+ - Schedule follow-up validation with focus on failed platform components
115
+ - Document platform risks and mitigation strategies
116
+ - If design review identified architectural issues:
117
+ - **Escalate to Architect Agent** for architectural revision and re-design
118
+ - Document specific architectural changes required for implementability
119
+ - Schedule follow-up design review after architectural modifications
120
+ - Update documentation with validation results across all platform components
121
+ - <important_note>Always ensure the Infrastructure Change Request status is updated to reflect the platform validation outcome.</important_note>
122
+
123
+ ## Output
124
+
125
+ A comprehensive platform validation report documenting:
126
+
127
+ 1. **Architecture Design Review Results** - Implementability assessment and architectural recommendations
128
+ 2. **Compliance percentage by checklist section** (all 16 sections including platform engineering)
129
+ 3. **Detailed findings for each non-compliant item** across foundation and platform components
130
+ 4. **Platform integration validation results** documenting component interoperability
131
+ 5. **Remediation recommendations with priority levels** based on platform impact
132
+ 6. **BMad integration assessment results** for complete platform stack
133
+ 7. **Clear signoff recommendation** for platform deployment readiness or architectural revision requirements
134
+ 8. **Next steps for implementation or remediation** prioritized by platform dependencies
135
+
136
+ ## Offer Advanced Self-Refinement & Elicitation Options
137
+
138
+ Present the user with the following list of 'Advanced Reflective, Elicitation & Brainstorming Actions'. Explain that these are optional steps to help ensure quality, explore alternatives, and deepen the understanding of the current section before finalizing it and moving on. The user can select an action by number, or choose to skip this and proceed to finalize the section.
139
+
140
+ "To ensure the quality of the current section: **[Specific Section Name]** and to ensure its robustness, explore alternatives, and consider all angles, I can perform any of the following actions. Please choose a number (8 to finalize and proceed):
141
+
142
+ **Advanced Reflective, Elicitation & Brainstorming Actions I Can Take:**
143
+
144
+ 1. **Critical Security Assessment & Risk Analysis**
145
+ 2. **Platform Integration & Component Compatibility Evaluation**
146
+ 3. **Cross-Environment Consistency Review**
147
+ 4. **Technical Debt & Maintainability Analysis**
148
+ 5. **Compliance & Regulatory Alignment Deep Dive**
149
+ 6. **Cost Optimization & Resource Efficiency Analysis**
150
+ 7. **Operational Resilience & Platform Failure Mode Testing (Theoretical)**
151
+ 8. **Finalize this Section and Proceed.**
152
+
153
+ After I perform the selected action, we can discuss the outcome and decide on any further revisions for this section."
154
+
155
+ REPEAT by Asking the user if they would like to perform another Reflective, Elicitation & Brainstorming Action UNTIL the user indicates it is time to proceed to the next section (or selects #8)