@zeyue0329/xiaoma-cli 1.0.8 → 1.0.9

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 (315) hide show
  1. package/CHANGELOG.md +686 -0
  2. package/LICENSE +6 -1
  3. package/README.md +173 -460
  4. package/common/tasks/create-doc.md +3 -1
  5. package/common/tasks/execute-checklist.md +2 -7
  6. package/common/utils/bmad-doc-template.md +7 -5
  7. package/common/utils/workflow-management.md +2 -0
  8. package/dist/agents/analyst.txt +1143 -1118
  9. package/dist/agents/architect.txt +1555 -1531
  10. package/dist/agents/dev.txt +170 -22
  11. package/dist/agents/pm.txt +1103 -1106
  12. package/dist/agents/po.txt +329 -334
  13. package/dist/agents/qa.txt +1773 -154
  14. package/dist/agents/sm.txt +101 -102
  15. package/dist/agents/ux-expert.txt +93 -91
  16. package/dist/agents/xiaoma-master.txt +745 -673
  17. package/dist/agents/xiaoma-orchestrator.txt +107 -77
  18. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2386 -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 +11008 -0
  22. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4031 -0
  23. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3717 -0
  24. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +456 -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 +15450 -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 +6511 -0
  38. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2087 -0
  39. package/dist/teams/team-all.txt +5710 -3857
  40. package/dist/teams/team-fullstack.txt +3242 -3157
  41. package/dist/teams/team-ide-minimal.txt +2330 -534
  42. package/dist/teams/team-no-ui.txt +2935 -2857
  43. package/docs/GUIDING-PRINCIPLES.md +91 -0
  44. package/docs/core-architecture.md +219 -0
  45. package/docs/enhanced-ide-development-workflow.md +248 -0
  46. package/docs/expansion-packs.md +200 -0
  47. package/docs/how-to-contribute-with-pull-requests.md +158 -0
  48. package/docs/user-guide.md +530 -0
  49. package/docs/versioning-and-releases.md +155 -0
  50. package/docs/versions.md +48 -0
  51. package/docs/working-in-the-brownfield.md +597 -0
  52. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +14 -0
  53. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +73 -0
  54. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +80 -0
  55. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +66 -0
  56. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +203 -0
  57. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +162 -0
  58. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +9 -0
  59. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +252 -0
  60. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +649 -0
  61. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +112 -0
  62. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +218 -0
  63. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +292 -0
  64. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +614 -0
  65. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +357 -0
  66. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +344 -0
  67. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +254 -0
  68. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  69. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  70. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +176 -0
  71. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +15 -0
  72. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +82 -0
  73. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +79 -0
  74. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +80 -0
  75. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +67 -0
  76. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +393 -0
  77. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +205 -0
  78. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +203 -0
  79. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +126 -0
  80. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +7 -0
  81. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +771 -0
  82. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +588 -0
  83. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +112 -0
  84. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +143 -0
  85. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +186 -0
  86. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +292 -0
  87. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +202 -0
  88. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1031 -0
  89. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +357 -0
  90. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +706 -0
  91. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +257 -0
  92. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  93. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  94. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +176 -0
  95. package/expansion-packs/bmad-creative-writing/README.md +146 -0
  96. package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +20 -0
  97. package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +94 -0
  98. package/expansion-packs/bmad-creative-writing/agents/book-critic.md +40 -0
  99. package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +93 -0
  100. package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +46 -0
  101. package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +92 -0
  102. package/expansion-packs/bmad-creative-writing/agents/editor.md +93 -0
  103. package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +95 -0
  104. package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +93 -0
  105. package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +95 -0
  106. package/expansion-packs/bmad-creative-writing/agents/world-builder.md +94 -0
  107. package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +23 -0
  108. package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +23 -0
  109. package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +23 -0
  110. package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +23 -0
  111. package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +21 -0
  112. package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +23 -0
  113. package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +23 -0
  114. package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +22 -0
  115. package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +22 -0
  116. package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +23 -0
  117. package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +23 -0
  118. package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +25 -0
  119. package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +23 -0
  120. package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +23 -0
  121. package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +23 -0
  122. package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +23 -0
  123. package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +59 -0
  124. package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +23 -0
  125. package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +23 -0
  126. package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +23 -0
  127. package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +22 -0
  128. package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +23 -0
  129. package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +23 -0
  130. package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +23 -0
  131. package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +23 -0
  132. package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +23 -0
  133. package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +23 -0
  134. package/expansion-packs/bmad-creative-writing/config.yaml +12 -0
  135. package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +209 -0
  136. package/expansion-packs/bmad-creative-writing/data/story-structures.md +67 -0
  137. package/expansion-packs/bmad-creative-writing/docs/brief.md +212 -0
  138. package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +119 -0
  139. package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +23 -0
  140. package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +67 -0
  141. package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +29 -0
  142. package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +23 -0
  143. package/expansion-packs/bmad-creative-writing/tasks/build-world.md +24 -0
  144. package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +22 -0
  145. package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +103 -0
  146. package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +26 -0
  147. package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +26 -0
  148. package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +24 -0
  149. package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +88 -0
  150. package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +23 -0
  151. package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +23 -0
  152. package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +23 -0
  153. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +25 -0
  154. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +26 -0
  155. package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +23 -0
  156. package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +25 -0
  157. package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +23 -0
  158. package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +24 -0
  159. package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +23 -0
  160. package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +22 -0
  161. package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +23 -0
  162. package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +64 -0
  163. package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +97 -0
  164. package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +82 -0
  165. package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
  166. package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +98 -0
  167. package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +78 -0
  168. package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +55 -0
  169. package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
  170. package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +89 -0
  171. package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +218 -0
  172. package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +56 -0
  173. package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +50 -0
  174. package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
  175. package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +91 -0
  176. package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +85 -0
  177. package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +78 -0
  178. package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +64 -0
  179. package/expansion-packs/bmad-infrastructure-devops/README.md +147 -0
  180. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +73 -0
  181. package/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +486 -0
  182. package/expansion-packs/bmad-infrastructure-devops/config.yaml +10 -0
  183. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +307 -0
  184. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +161 -0
  185. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +155 -0
  186. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +425 -0
  187. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +630 -0
  188. package/implement-fork-friendly-ci.sh +229 -0
  189. package/package.json +75 -45
  190. package/prettier.config.mjs +32 -0
  191. package/test.md +1 -0
  192. package/tools/builders/web-builder.js +128 -129
  193. package/tools/bump-all-versions.js +42 -33
  194. package/tools/bump-expansion-version.js +23 -16
  195. package/tools/cli.js +15 -15
  196. package/tools/flattener/aggregate.js +76 -0
  197. package/tools/flattener/binary.js +80 -0
  198. package/tools/flattener/discovery.js +71 -0
  199. package/tools/flattener/files.js +35 -0
  200. package/tools/flattener/ignoreRules.js +176 -0
  201. package/tools/flattener/main.js +458 -460
  202. package/tools/flattener/projectRoot.js +206 -0
  203. package/tools/flattener/prompts.js +44 -0
  204. package/tools/flattener/stats.helpers.js +395 -0
  205. package/tools/flattener/stats.js +80 -0
  206. package/tools/flattener/test-matrix.js +413 -0
  207. package/tools/flattener/xml.js +88 -0
  208. package/tools/installer/README.md +1 -1
  209. package/tools/installer/bin/xiaoma.js +377 -137
  210. package/tools/installer/config/ide-agent-config.yaml +3 -3
  211. package/tools/installer/config/install.config.yaml +73 -22
  212. package/tools/installer/lib/config-loader.js +48 -44
  213. package/tools/installer/lib/file-manager.js +91 -116
  214. package/tools/installer/lib/ide-base-setup.js +57 -56
  215. package/tools/installer/lib/ide-setup.js +816 -407
  216. package/tools/installer/lib/installer.js +915 -690
  217. package/tools/installer/lib/memory-profiler.js +54 -53
  218. package/tools/installer/lib/module-manager.js +19 -15
  219. package/tools/installer/lib/resource-locator.js +26 -28
  220. package/tools/installer/package-lock.json +67 -56
  221. package/tools/installer/package.json +24 -23
  222. package/tools/lib/dependency-resolver.js +30 -34
  223. package/tools/lib/yaml-utils.js +7 -7
  224. package/tools/md-assets/web-agent-startup-instructions.md +1 -1
  225. package/tools/preview-release-notes.js +66 -0
  226. package/tools/setup-hooks.sh +37 -0
  227. package/tools/shared/bannerArt.js +105 -0
  228. package/tools/sync-installer-version.js +7 -9
  229. package/tools/sync-version.sh +23 -0
  230. package/tools/update-expansion-version.js +14 -15
  231. package/tools/upgraders/v3-to-v4-upgrader.js +208 -299
  232. package/tools/version-bump.js +41 -26
  233. package/tools/xiaoma-npx-wrapper.js +11 -11
  234. package/tools/yaml-format.js +56 -43
  235. package/xiaoma-core/agent-teams/team-all.yaml +2 -1
  236. package/xiaoma-core/agent-teams/team-fullstack.yaml +1 -0
  237. package/xiaoma-core/agent-teams/team-ide-minimal.yaml +1 -0
  238. package/xiaoma-core/agent-teams/team-no-ui.yaml +1 -0
  239. package/xiaoma-core/agents/analyst.md +20 -17
  240. package/xiaoma-core/agents/architect.md +15 -14
  241. package/xiaoma-core/agents/dev.md +23 -18
  242. package/xiaoma-core/agents/pm.md +18 -15
  243. package/xiaoma-core/agents/po.md +13 -10
  244. package/xiaoma-core/agents/qa.md +46 -24
  245. package/xiaoma-core/agents/sm.md +11 -8
  246. package/xiaoma-core/agents/ux-expert.md +10 -7
  247. package/xiaoma-core/agents/xiaoma-master.md +24 -22
  248. package/xiaoma-core/agents/xiaoma-orchestrator.md +30 -33
  249. package/xiaoma-core/checklists/architect-checklist.md +2 -5
  250. package/xiaoma-core/checklists/change-checklist.md +4 -2
  251. package/xiaoma-core/checklists/pm-checklist.md +2 -5
  252. package/xiaoma-core/checklists/po-master-checklist.md +2 -9
  253. package/xiaoma-core/checklists/story-dod-checklist.md +2 -7
  254. package/xiaoma-core/checklists/story-draft-checklist.md +2 -3
  255. package/xiaoma-core/core-config.yaml +4 -1
  256. package/xiaoma-core/data/{xiaoma-kb.md → bmad-kb.md} +43 -37
  257. package/xiaoma-core/data/brainstorming-techniques.md +2 -0
  258. package/xiaoma-core/data/elicitation-methods.md +22 -0
  259. package/xiaoma-core/data/technical-preferences.md +2 -0
  260. package/xiaoma-core/data/test-levels-framework.md +148 -0
  261. package/xiaoma-core/data/test-priorities-matrix.md +174 -0
  262. package/xiaoma-core/tasks/advanced-elicitation.md +2 -0
  263. package/xiaoma-core/tasks/apply-qa-fixes.md +150 -0
  264. package/xiaoma-core/tasks/brownfield-create-epic.md +2 -0
  265. package/xiaoma-core/tasks/brownfield-create-story.md +2 -0
  266. package/xiaoma-core/tasks/correct-course.md +2 -0
  267. package/xiaoma-core/tasks/create-brownfield-story.md +14 -4
  268. package/xiaoma-core/tasks/create-deep-research-prompt.md +2 -11
  269. package/xiaoma-core/tasks/create-next-story.md +3 -1
  270. package/xiaoma-core/tasks/document-project.md +17 -13
  271. package/xiaoma-core/tasks/facilitate-brainstorming-session.md +5 -3
  272. package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +2 -0
  273. package/xiaoma-core/tasks/index-docs.md +2 -6
  274. package/xiaoma-core/tasks/kb-mode-interaction.md +17 -15
  275. package/xiaoma-core/tasks/nfr-assess.md +345 -0
  276. package/xiaoma-core/tasks/qa-gate.md +163 -0
  277. package/xiaoma-core/tasks/review-story.md +245 -74
  278. package/xiaoma-core/tasks/risk-profile.md +355 -0
  279. package/xiaoma-core/tasks/shard-doc.md +2 -2
  280. package/xiaoma-core/tasks/test-design.md +176 -0
  281. package/xiaoma-core/tasks/trace-requirements.md +266 -0
  282. package/xiaoma-core/tasks/validate-next-story.md +2 -0
  283. package/xiaoma-core/templates/architecture-tmpl.yaml +50 -49
  284. package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +5 -5
  285. package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +32 -31
  286. package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +14 -13
  287. package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +20 -6
  288. package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +22 -9
  289. package/xiaoma-core/templates/front-end-spec-tmpl.yaml +25 -24
  290. package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +123 -104
  291. package/xiaoma-core/templates/market-research-tmpl.yaml +3 -2
  292. package/xiaoma-core/templates/prd-tmpl.yaml +10 -9
  293. package/xiaoma-core/templates/project-brief-tmpl.yaml +5 -4
  294. package/xiaoma-core/templates/qa-gate-tmpl.yaml +103 -0
  295. package/xiaoma-core/templates/story-tmpl.yaml +13 -12
  296. package/xiaoma-core/workflows/brownfield-fullstack.yaml +13 -12
  297. package/xiaoma-core/workflows/brownfield-service.yaml +5 -4
  298. package/xiaoma-core/workflows/brownfield-ui.yaml +5 -4
  299. package/xiaoma-core/workflows/greenfield-fullstack.yaml +7 -6
  300. package/xiaoma-core/workflows/greenfield-service.yaml +5 -4
  301. package/xiaoma-core/workflows/greenfield-ui.yaml +6 -5
  302. package/.releaserc.json +0 -18
  303. package/.vscode/settings.json +0 -44
  304. package/XiaoMa-Web/345/244/232/346/231/272/350/203/275/344/275/2230-1/351/241/271/347/233/256/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -977
  305. package/XiaoMa-Web/347/216/260/346/234/211/351/241/271/347/233/256/351/234/200/346/261/202/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -873
  306. package/XiaoMa-Web/347/272/257/345/211/215/347/253/257/351/241/271/347/233/256Claude-Code/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -372
  307. package/XiaoMa-Web/351/241/271/347/233/256/346/200/273/347/273/223/346/212/245/345/221/212.md +0 -310
  308. package/dist/agents/dev-cn.txt +0 -428
  309. package/docs/quick-start.md +0 -179
  310. package/tools/bmad-npx-wrapper.js +0 -39
  311. package/tools/semantic-release-sync-installer.js +0 -30
  312. package/xiaoma-core/bmad-core/user-guide.md +0 -0
  313. package/xiaoma-core/enhanced-ide-development-workflow.md +0 -43
  314. package/xiaoma-core/user-guide.md +0 -251
  315. package/xiaoma-core/working-in-the-brownfield.md +0 -364
@@ -0,0 +1,64 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Workshop Dialog
4
+
5
+ ## Purpose
6
+
7
+ Refine dialog for authenticity, character voice, and dramatic effectiveness.
8
+
9
+ ## Process
10
+
11
+ ### 1. Voice Audit
12
+
13
+ For each character, assess:
14
+
15
+ - Vocabulary level and word choice
16
+ - Sentence structure preferences
17
+ - Speech rhythms and patterns
18
+ - Catchphrases or verbal tics
19
+ - Educational/cultural markers
20
+ - Emotional expression style
21
+
22
+ ### 2. Subtext Analysis
23
+
24
+ For each exchange:
25
+
26
+ - What's being said directly
27
+ - What's really being communicated
28
+ - Power dynamics at play
29
+ - Emotional undercurrents
30
+ - Character objectives
31
+ - Obstacles to directness
32
+
33
+ ### 3. Flow Enhancement
34
+
35
+ - Remove unnecessary dialogue tags
36
+ - Vary attribution methods
37
+ - Add action beats
38
+ - Incorporate silence/pauses
39
+ - Balance dialog with narrative
40
+ - Ensure natural interruptions
41
+
42
+ ### 4. Conflict Injection
43
+
44
+ Where dialog lacks tension:
45
+
46
+ - Add opposing goals
47
+ - Insert misunderstandings
48
+ - Create subtext conflicts
49
+ - Use indirect responses
50
+ - Build through escalation
51
+ - Add environmental pressure
52
+
53
+ ### 5. Polish Pass
54
+
55
+ - Read aloud for rhythm
56
+ - Check period authenticity
57
+ - Verify character consistency
58
+ - Eliminate on-the-nose dialog
59
+ - Strengthen opening/closing lines
60
+ - Add distinctive character markers
61
+
62
+ ## Output
63
+
64
+ Refined dialog with stronger voices and dramatic impact
@@ -0,0 +1,97 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ ---
3
+ template:
4
+ id: beta-feedback-form-tmpl
5
+ name: Beta Feedback Form
6
+ version: 1.0
7
+ description: Structured questionnaire for beta readers
8
+ output:
9
+ format: markdown
10
+ filename: "beta-feedback-{{reader_name}}.md"
11
+
12
+ workflow:
13
+ elicitation: true
14
+ allow_skip: true
15
+
16
+ sections:
17
+ - id: reader_info
18
+ title: Reader Information
19
+ instruction: |
20
+ Collect reader details:
21
+ - Reader name
22
+ - Reading experience level
23
+ - Genre preferences
24
+ - Date of feedback
25
+ elicit: true
26
+
27
+ - id: overall_impressions
28
+ title: Overall Impressions
29
+ instruction: |
30
+ Gather general reactions:
31
+ - What worked well overall
32
+ - What confused or bored you
33
+ - Most memorable moments
34
+ - Overall rating (1-10)
35
+ elicit: true
36
+
37
+ - id: characters
38
+ title: Character Feedback
39
+ instruction: |
40
+ Evaluate character development:
41
+ - Favorite character and why
42
+ - Least engaging character and why
43
+ - Character believability
44
+ - Character arc satisfaction
45
+ - Dialogue authenticity
46
+ elicit: true
47
+
48
+ - id: plot_pacing
49
+ title: Plot & Pacing
50
+ instruction: |
51
+ Assess story structure:
52
+ - High-point scenes
53
+ - Slowest sections
54
+ - Plot holes or confusion
55
+ - Pacing issues
56
+ - Predictability concerns
57
+ elicit: true
58
+
59
+ - id: world_setting
60
+ title: World & Setting
61
+ instruction: |
62
+ Review world-building:
63
+ - Setting clarity
64
+ - World consistency
65
+ - Immersion level
66
+ - Description balance
67
+ elicit: true
68
+
69
+ - id: emotional_response
70
+ title: Emotional Response
71
+ instruction: |
72
+ Document emotional impact:
73
+ - Strong emotions felt
74
+ - Scenes that moved you
75
+ - Connection to characters
76
+ - Satisfaction with ending
77
+ elicit: true
78
+
79
+ - id: technical_issues
80
+ title: Technical Issues
81
+ instruction: |
82
+ Note any technical problems:
83
+ - Grammar/spelling errors
84
+ - Continuity issues
85
+ - Formatting problems
86
+ - Confusing passages
87
+ elicit: true
88
+
89
+ - id: suggestions
90
+ title: Final Suggestions
91
+ instruction: |
92
+ Provide improvement recommendations:
93
+ - Top three improvements needed
94
+ - Would you recommend to others
95
+ - Comparison to similar books
96
+ - Additional comments
97
+ elicit: true
@@ -0,0 +1,82 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ ---
3
+ template:
4
+ id: chapter-draft-tmpl
5
+ name: Chapter Draft
6
+ version: 1.0
7
+ description: Guided structure for writing a full chapter
8
+ output:
9
+ format: markdown
10
+ filename: "chapter-{{chapter_number}}.md"
11
+
12
+ workflow:
13
+ elicitation: true
14
+ allow_skip: false
15
+
16
+ sections:
17
+ - id: chapter_header
18
+ title: Chapter Header
19
+ instruction: |
20
+ Define chapter metadata:
21
+ - Chapter number
22
+ - Chapter title
23
+ - POV character
24
+ - Timeline/date
25
+ - Word count target
26
+ elicit: true
27
+
28
+ - id: opening_hook
29
+ title: Opening Hook
30
+ instruction: |
31
+ Create compelling opening (1-2 paragraphs):
32
+ - Grab reader attention
33
+ - Establish scene setting
34
+ - Connect to previous chapter
35
+ - Set chapter tone
36
+ - Introduce chapter conflict
37
+ elicit: true
38
+
39
+ - id: rising_action
40
+ title: Rising Action
41
+ instruction: |
42
+ Develop the chapter body:
43
+ - Build tension progressively
44
+ - Develop character interactions
45
+ - Advance plot threads
46
+ - Include sensory details
47
+ - Balance dialogue and narrative
48
+ - Create mini-conflicts
49
+ elicit: true
50
+
51
+ - id: climax_turn
52
+ title: Climax/Turning Point
53
+ instruction: |
54
+ Create chapter peak moment:
55
+ - Major revelation or decision
56
+ - Conflict confrontation
57
+ - Emotional high point
58
+ - Plot twist or reversal
59
+ - Character growth moment
60
+ elicit: true
61
+
62
+ - id: resolution
63
+ title: Resolution/Cliffhanger
64
+ instruction: |
65
+ End chapter effectively:
66
+ - Resolve immediate conflict
67
+ - Set up next chapter
68
+ - Leave question or tension
69
+ - Emotional resonance
70
+ - Page-turner element
71
+ elicit: true
72
+
73
+ - id: dialogue_review
74
+ title: Dialogue Review
75
+ instruction: |
76
+ Review and enhance dialogue:
77
+ - Character voice consistency
78
+ - Subtext and tension
79
+ - Natural flow
80
+ - Action beats
81
+ - Dialect/speech patterns
82
+ elicit: true
@@ -0,0 +1,92 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ ---
3
+ template:
4
+ id: character-profile
5
+ name: Character Profile Template
6
+ version: 1.0
7
+ description: Deep character development worksheet
8
+ output:
9
+ format: markdown
10
+ filename: "{{character_name}}-profile.md"
11
+
12
+ workflow:
13
+ elicitation: true
14
+ allow_skip: false
15
+ sections:
16
+ - id: basics
17
+ title: Basic Information
18
+ instruction: |
19
+ Create character foundation:
20
+ - Full name and nicknames
21
+ - Age and birthday
22
+ - Physical description
23
+ - Occupation/role
24
+ - Social status
25
+ - First impression
26
+ - id: psychology
27
+ title: Psychological Profile
28
+ instruction: |
29
+ Develop internal landscape:
30
+ - Core wound/ghost
31
+ - Lie they believe
32
+ - Want (external goal)
33
+ - Need (internal growth)
34
+ - Fear (greatest)
35
+ - Personality type/temperament
36
+ - Defense mechanisms
37
+ elicit: true
38
+ - id: backstory
39
+ title: Backstory
40
+ instruction: |
41
+ Create formative history:
42
+ - Family dynamics
43
+ - Defining childhood event
44
+ - Education/training
45
+ - Past relationships
46
+ - Failures and successes
47
+ - Secrets held
48
+ elicit: true
49
+ - id: voice
50
+ title: Voice & Dialog
51
+ instruction: |
52
+ Define speaking patterns:
53
+ - Vocabulary level
54
+ - Speech rhythm
55
+ - Favorite phrases
56
+ - Topics they avoid
57
+ - How they argue
58
+ - Humor style
59
+ - Three sample lines
60
+ elicit: true
61
+ - id: relationships
62
+ title: Relationships
63
+ instruction: |
64
+ Map connections:
65
+ - Family relationships
66
+ - Romantic history/interests
67
+ - Friends and allies
68
+ - Enemies and rivals
69
+ - Mentor figures
70
+ - Power dynamics
71
+ - id: arc
72
+ title: Character Arc
73
+ instruction: |
74
+ Design transformation:
75
+ - Starting state
76
+ - Inciting incident impact
77
+ - Resistance to change
78
+ - Turning points
79
+ - Dark moment
80
+ - Breakthrough
81
+ - End state
82
+ elicit: true
83
+ - id: details
84
+ title: Unique Details
85
+ instruction: |
86
+ Add memorable specifics:
87
+ - Habits and mannerisms
88
+ - Prized possessions
89
+ - Daily routine
90
+ - Pet peeves
91
+ - Hidden talents
92
+ - Contradictions
@@ -0,0 +1,98 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ ---
3
+ template:
4
+ id: cover-design-brief-tmpl
5
+ name: Cover Design Brief
6
+ version: 1.0
7
+ description: Structured form capturing creative and technical details for cover design
8
+ output:
9
+ format: markdown
10
+ filename: "{{title}}-cover-brief.md"
11
+
12
+ workflow:
13
+ elicitation: true
14
+ allow_skip: false
15
+
16
+ sections:
17
+ - id: book_metadata
18
+ title: Book Metadata
19
+ instruction: |
20
+ Define book information:
21
+ - Title and subtitle
22
+ - Author name
23
+ - Series name and number (if applicable)
24
+ - Genre and subgenre
25
+ - Target audience demographics
26
+ - Publication date
27
+ elicit: true
28
+
29
+ - id: technical_specs
30
+ title: Technical Specifications
31
+ instruction: |
32
+ Specify print requirements:
33
+ - Trim size (e.g., 6x9 inches)
34
+ - Page count estimate
35
+ - Paper type and color
36
+ - Print type (POD, offset)
37
+ - Cover finish (matte/glossy)
38
+ - Spine width calculation
39
+ elicit: true
40
+
41
+ - id: creative_direction
42
+ title: Creative Direction
43
+ instruction: |
44
+ Define visual style:
45
+ - Mood/tone keywords (3-5 words)
46
+ - Primary imagery concepts
47
+ - Color palette preferences
48
+ - Font style direction
49
+ - Competitor covers for reference
50
+ - What to avoid
51
+ elicit: true
52
+
53
+ - id: front_cover
54
+ title: Front Cover Elements
55
+ instruction: |
56
+ Specify front cover components:
57
+ - Title treatment style
58
+ - Author name placement
59
+ - Series branding
60
+ - Tagline or quote
61
+ - Visual hierarchy
62
+ - Special effects (foil, embossing)
63
+ elicit: true
64
+
65
+ - id: spine_design
66
+ title: Spine Design
67
+ instruction: |
68
+ Design spine layout:
69
+ - Title orientation
70
+ - Author name
71
+ - Publisher logo
72
+ - Series numbering
73
+ - Color/pattern continuation
74
+ elicit: true
75
+
76
+ - id: back_cover
77
+ title: Back Cover Content
78
+ instruction: |
79
+ Plan back cover elements:
80
+ - Book blurb (150-200 words)
81
+ - Review quotes (2-3)
82
+ - Author bio (50 words)
83
+ - Author photo placement
84
+ - ISBN/barcode location
85
+ - Publisher information
86
+ - Website/social media
87
+ elicit: true
88
+
89
+ - id: digital_versions
90
+ title: Digital Versions
91
+ instruction: |
92
+ Specify digital adaptations:
93
+ - Ebook cover requirements
94
+ - Thumbnail optimization
95
+ - Social media versions
96
+ - Website banner version
97
+ - Resolution requirements
98
+ elicit: true
@@ -0,0 +1,78 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ ---
3
+ template:
4
+ id: premise-brief-tmpl
5
+ name: Premise Brief
6
+ version: 1.0
7
+ description: One-page document expanding a 1-sentence idea into a paragraph with stakes
8
+ output:
9
+ format: markdown
10
+ filename: "{{title}}-premise.md"
11
+
12
+ workflow:
13
+ elicitation: true
14
+ allow_skip: false
15
+
16
+ sections:
17
+ - id: one_sentence
18
+ title: One-Sentence Summary
19
+ instruction: |
20
+ Create a compelling one-sentence summary that captures:
21
+ - The protagonist
22
+ - The central conflict
23
+ - The stakes
24
+ Example: "When [inciting incident], [protagonist] must [goal] or else [stakes]."
25
+ elicit: true
26
+
27
+ - id: expanded_paragraph
28
+ title: Expanded Paragraph
29
+ instruction: |
30
+ Expand the premise into a full paragraph (5-7 sentences) including:
31
+ - Setup and world context
32
+ - Protagonist introduction
33
+ - Inciting incident
34
+ - Central conflict
35
+ - Stakes and urgency
36
+ - Hint at resolution path
37
+ elicit: true
38
+
39
+ - id: protagonist
40
+ title: Protagonist Profile
41
+ instruction: |
42
+ Define the main character:
43
+ - Name and role
44
+ - Core desire/goal
45
+ - Internal conflict
46
+ - What makes them unique
47
+ - Why readers will care
48
+ elicit: true
49
+
50
+ - id: antagonist
51
+ title: Antagonist/Opposition
52
+ instruction: |
53
+ Define the opposing force:
54
+ - Nature of opposition (person, society, nature, self)
55
+ - Antagonist's goal
56
+ - Why they oppose protagonist
57
+ - Their power/advantage
58
+ elicit: true
59
+
60
+ - id: stakes
61
+ title: Stakes
62
+ instruction: |
63
+ Clarify what's at risk:
64
+ - Personal stakes for protagonist
65
+ - Broader implications
66
+ - Ticking clock element
67
+ - Consequences of failure
68
+ elicit: true
69
+
70
+ - id: unique_hook
71
+ title: Unique Hook
72
+ instruction: |
73
+ What makes this story special:
74
+ - Fresh angle or twist
75
+ - Unique world element
76
+ - Unexpected character aspect
77
+ - Genre-blending elements
78
+ elicit: true
@@ -0,0 +1,55 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ ---
3
+ template:
4
+ id: scene-list-tmpl
5
+ name: Scene List
6
+ version: 1.0
7
+ description: Table summarizing every scene for outlining phase
8
+ output:
9
+ format: markdown
10
+ filename: "{{title}}-scene-list.md"
11
+
12
+ workflow:
13
+ elicitation: true
14
+ allow_skip: false
15
+
16
+ sections:
17
+ - id: overview
18
+ title: Scene List Overview
19
+ instruction: |
20
+ Create overview of scene structure:
21
+ - Total number of scenes
22
+ - Act breakdown
23
+ - Pacing considerations
24
+ - Key turning points
25
+ elicit: true
26
+
27
+ - id: scenes
28
+ title: Scene Details
29
+ instruction: |
30
+ For each scene, define:
31
+ - Scene number and title
32
+ - POV character
33
+ - Setting (time and place)
34
+ - Scene goal
35
+ - Conflict/obstacle
36
+ - Outcome/disaster
37
+ - Emotional arc
38
+ - Hook for next scene
39
+ repeatable: true
40
+ elicit: true
41
+ sections:
42
+ - id: scene_entry
43
+ title: "Scene {{scene_number}}: {{scene_title}}"
44
+ template: |
45
+ **POV:** {{pov_character}}
46
+ **Setting:** {{time_place}}
47
+
48
+ **Goal:** {{scene_goal}}
49
+ **Conflict:** {{scene_conflict}}
50
+ **Outcome:** {{scene_outcome}}
51
+
52
+ **Emotional Arc:** {{emotional_journey}}
53
+ **Hook:** {{next_scene_hook}}
54
+
55
+ **Notes:** {{additional_notes}}
@@ -0,0 +1,96 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ ---
3
+ template:
4
+ id: story-outline
5
+ name: Story Outline Template
6
+ version: 1.0
7
+ description: Comprehensive outline for narrative works
8
+ output:
9
+ format: markdown
10
+ filename: "{{title}}-outline.md"
11
+
12
+ workflow:
13
+ elicitation: true
14
+ allow_skip: false
15
+ sections:
16
+ - id: overview
17
+ title: Story Overview
18
+ instruction: |
19
+ Create high-level story summary including:
20
+ - Premise in one sentence
21
+ - Core conflict
22
+ - Genre and tone
23
+ - Target audience
24
+ - Unique selling proposition
25
+ - id: structure
26
+ title: Three-Act Structure
27
+ subsections:
28
+ - id: act1
29
+ title: Act 1 - Setup
30
+ instruction: |
31
+ Detail Act 1 including:
32
+ - Opening image/scene
33
+ - World establishment
34
+ - Character introductions
35
+ - Inciting incident
36
+ - Debate/refusal
37
+ - Break into Act 2
38
+ elicit: true
39
+ - id: act2a
40
+ title: Act 2A - Fun and Games
41
+ instruction: |
42
+ Map first half of Act 2:
43
+ - Promise of premise delivery
44
+ - B-story introduction
45
+ - Rising complications
46
+ - Midpoint approach
47
+ elicit: true
48
+ - id: act2b
49
+ title: Act 2B - Raising Stakes
50
+ instruction: |
51
+ Map second half of Act 2:
52
+ - Midpoint reversal
53
+ - Stakes escalation
54
+ - Bad guys close in
55
+ - All is lost moment
56
+ - Dark night of the soul
57
+ elicit: true
58
+ - id: act3
59
+ title: Act 3 - Resolution
60
+ instruction: |
61
+ Design climax and resolution:
62
+ - Break into Act 3
63
+ - Climax preparation
64
+ - Final confrontation
65
+ - Resolution
66
+ - Final image
67
+ elicit: true
68
+ - id: characters
69
+ title: Character Arcs
70
+ instruction: |
71
+ Map transformation arcs for main characters:
72
+ - Starting point (flaws/wounds)
73
+ - Catalyst for change
74
+ - Resistance/setbacks
75
+ - Breakthrough moment
76
+ - End state (growth achieved)
77
+ elicit: true
78
+ - id: themes
79
+ title: Themes & Meaning
80
+ instruction: |
81
+ Identify thematic elements:
82
+ - Central theme/question
83
+ - How plot explores theme
84
+ - Character relationships to theme
85
+ - Symbolic representations
86
+ - Thematic resolution
87
+ - id: scenes
88
+ title: Scene Breakdown
89
+ instruction: |
90
+ Create scene-by-scene outline with:
91
+ - Scene purpose (advance plot/character)
92
+ - Key events
93
+ - Emotional trajectory
94
+ - Hook/cliffhanger
95
+ repeatable: true
96
+ elicit: true