bmad-method 6.12.4 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +107 -54
  3. package/agents.json +640 -0
  4. package/bin/bmad-method.js +4 -0
  5. package/messages.yaml +267 -0
  6. package/modules.yaml +56 -0
  7. package/package.json +32 -110
  8. package/src/agent-picks.js +77 -0
  9. package/src/agents.js +141 -0
  10. package/src/bmad-scripts.js +167 -0
  11. package/src/cli.js +266 -0
  12. package/src/commands/agent-choice.js +67 -0
  13. package/src/commands/apply.js +38 -0
  14. package/src/commands/deps.js +25 -0
  15. package/src/commands/ending.js +66 -0
  16. package/src/commands/existing-install.js +50 -0
  17. package/src/commands/install-plan.js +130 -0
  18. package/src/commands/install-steps.js +66 -0
  19. package/src/commands/install.js +86 -0
  20. package/src/commands/status.js +39 -0
  21. package/src/commands/update.js +106 -0
  22. package/src/installed.js +48 -0
  23. package/src/messages.js +84 -0
  24. package/src/modules.js +221 -0
  25. package/src/preflight.js +124 -0
  26. package/src/project-lock.js +68 -0
  27. package/src/prompts.js +626 -0
  28. package/src/report.js +199 -0
  29. package/src/run.js +128 -0
  30. package/src/self-update.js +88 -0
  31. package/src/skills-cli.js +133 -0
  32. package/src/version.js +11 -0
  33. package/.claude-plugin/marketplace.json +0 -53
  34. package/AGENTS.md +0 -24
  35. package/CLAUDE.md +0 -1
  36. package/README_CN.md +0 -98
  37. package/README_KR.md +0 -90
  38. package/README_VN.md +0 -99
  39. package/bmad-modules.yaml +0 -140
  40. package/body.md +0 -17
  41. package/greptile.json +0 -52
  42. package/pr2.md +0 -11
  43. package/removals.txt +0 -87
  44. package/src/bmm-skills/agents/bmad-agent-analyst/SKILL.md +0 -76
  45. package/src/bmm-skills/agents/bmad-agent-analyst/customize.toml +0 -103
  46. package/src/bmm-skills/agents/bmad-agent-architect/SKILL.md +0 -76
  47. package/src/bmm-skills/agents/bmad-agent-architect/customize.toml +0 -63
  48. package/src/bmm-skills/agents/bmad-agent-dev/SKILL.md +0 -76
  49. package/src/bmm-skills/agents/bmad-agent-dev/customize.toml +0 -81
  50. package/src/bmm-skills/agents/bmad-agent-pm/SKILL.md +0 -76
  51. package/src/bmm-skills/agents/bmad-agent-pm/customize.toml +0 -73
  52. package/src/bmm-skills/agents/bmad-agent-ux-designer/SKILL.md +0 -76
  53. package/src/bmm-skills/agents/bmad-agent-ux-designer/customize.toml +0 -58
  54. package/src/bmm-skills/module-help.csv +0 -19
  55. package/src/bmm-skills/module.yaml +0 -85
  56. package/src/bmm-skills/plan/bmad-architecture/SKILL.md +0 -85
  57. package/src/bmm-skills/plan/bmad-architecture/assets/spine-template.md +0 -79
  58. package/src/bmm-skills/plan/bmad-architecture/customize.toml +0 -101
  59. package/src/bmm-skills/plan/bmad-architecture/references/headless.md +0 -26
  60. package/src/bmm-skills/plan/bmad-architecture/references/reviewer-gate.md +0 -13
  61. package/src/bmm-skills/plan/bmad-architecture/scripts/lint_spine.py +0 -261
  62. package/src/bmm-skills/plan/bmad-architecture/scripts/tests/test_lint_spine.py +0 -270
  63. package/src/bmm-skills/plan/bmad-create-epics-and-stories/SKILL.md +0 -93
  64. package/src/bmm-skills/plan/bmad-create-epics-and-stories/customize.toml +0 -39
  65. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -263
  66. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -242
  67. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -255
  68. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -141
  69. package/src/bmm-skills/plan/bmad-create-epics-and-stories/templates/epics-template.md +0 -62
  70. package/src/bmm-skills/plan/bmad-generate-project-context/SKILL.md +0 -12
  71. package/src/bmm-skills/plan/bmad-prd/SKILL.md +0 -94
  72. package/src/bmm-skills/plan/bmad-prd/assets/headless-schemas.md +0 -76
  73. package/src/bmm-skills/plan/bmad-prd/assets/prd-template.md +0 -165
  74. package/src/bmm-skills/plan/bmad-prd/assets/prd-validation-checklist.md +0 -135
  75. package/src/bmm-skills/plan/bmad-prd/assets/validation-report-template.html +0 -325
  76. package/src/bmm-skills/plan/bmad-prd/customize.toml +0 -148
  77. package/src/bmm-skills/plan/bmad-prd/references/headless.md +0 -39
  78. package/src/bmm-skills/plan/bmad-prd/references/validate.md +0 -97
  79. package/src/bmm-skills/plan/bmad-prfaq/SKILL.md +0 -135
  80. package/src/bmm-skills/plan/bmad-prfaq/agents/artifact-analyzer.md +0 -60
  81. package/src/bmm-skills/plan/bmad-prfaq/agents/web-researcher.md +0 -49
  82. package/src/bmm-skills/plan/bmad-prfaq/assets/prfaq-template.md +0 -62
  83. package/src/bmm-skills/plan/bmad-prfaq/bmad-manifest.json +0 -16
  84. package/src/bmm-skills/plan/bmad-prfaq/customize.toml +0 -39
  85. package/src/bmm-skills/plan/bmad-prfaq/references/customer-faq.md +0 -55
  86. package/src/bmm-skills/plan/bmad-prfaq/references/internal-faq.md +0 -51
  87. package/src/bmm-skills/plan/bmad-prfaq/references/press-release.md +0 -60
  88. package/src/bmm-skills/plan/bmad-prfaq/references/verdict.md +0 -83
  89. package/src/bmm-skills/plan/bmad-product-brief/SKILL.md +0 -91
  90. package/src/bmm-skills/plan/bmad-product-brief/assets/brief-template.md +0 -41
  91. package/src/bmm-skills/plan/bmad-product-brief/customize.toml +0 -100
  92. package/src/bmm-skills/plan/bmad-project-context/SKILL.md +0 -121
  93. package/src/bmm-skills/plan/bmad-project-context/customize.toml +0 -24
  94. package/src/bmm-skills/plan/bmad-project-context/references/best-practices.md +0 -84
  95. package/src/bmm-skills/plan/bmad-project-context/references/template.md +0 -55
  96. package/src/bmm-skills/plan/bmad-spec/SKILL.md +0 -160
  97. package/src/bmm-skills/plan/bmad-spec/assets/headless-schemas.md +0 -33
  98. package/src/bmm-skills/plan/bmad-spec/assets/spec-template.md +0 -49
  99. package/src/bmm-skills/plan/bmad-spec/assets/stories-schema.md +0 -44
  100. package/src/bmm-skills/plan/bmad-spec/customize.toml +0 -52
  101. package/src/bmm-skills/plan/bmad-sprint-planning/SKILL.md +0 -62
  102. package/src/bmm-skills/plan/bmad-sprint-planning/customize.toml +0 -39
  103. package/src/bmm-skills/plan/bmad-sprint-planning/references/fix-sprint-status.md +0 -30
  104. package/src/bmm-skills/plan/bmad-sprint-planning/references/generate-tracking.md +0 -25
  105. package/src/bmm-skills/plan/bmad-sprint-planning/references/readiness-gate.md +0 -20
  106. package/src/bmm-skills/plan/bmad-sprint-planning/references/status-view.md +0 -14
  107. package/src/bmm-skills/plan/bmad-sprint-planning/references/validate.md +0 -10
  108. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/__pycache__/sprint_plan.cpython-311.pyc +0 -0
  109. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/sprint_plan.py +0 -701
  110. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/__pycache__/test_sprint_plan.cpython-311-pytest-9.1.1.pyc +0 -0
  111. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/test_sprint_plan.py +0 -524
  112. package/src/bmm-skills/plan/bmad-sprint-planning/sprint-status-template.yaml +0 -71
  113. package/src/bmm-skills/plan/bmad-ux/SKILL.md +0 -90
  114. package/src/bmm-skills/plan/bmad-ux/assets/color-themes.md +0 -9
  115. package/src/bmm-skills/plan/bmad-ux/assets/design-directions.md +0 -9
  116. package/src/bmm-skills/plan/bmad-ux/assets/design-example-editorial.md +0 -158
  117. package/src/bmm-skills/plan/bmad-ux/assets/design-example-mobile.md +0 -93
  118. package/src/bmm-skills/plan/bmad-ux/assets/design-example-shadcn.md +0 -109
  119. package/src/bmm-skills/plan/bmad-ux/assets/excalidraw-wireframe.md +0 -19
  120. package/src/bmm-skills/plan/bmad-ux/assets/experience-example-mobile.md +0 -112
  121. package/src/bmm-skills/plan/bmad-ux/assets/experience-example-shadcn.md +0 -133
  122. package/src/bmm-skills/plan/bmad-ux/assets/headless-schemas.md +0 -84
  123. package/src/bmm-skills/plan/bmad-ux/assets/key-screens.md +0 -29
  124. package/src/bmm-skills/plan/bmad-ux/assets/validation-report-template.html +0 -319
  125. package/src/bmm-skills/plan/bmad-ux/customize.toml +0 -100
  126. package/src/bmm-skills/plan/bmad-ux/references/creative-tools.md +0 -19
  127. package/src/bmm-skills/plan/bmad-ux/references/design-md-spec.md +0 -50
  128. package/src/bmm-skills/plan/bmad-ux/references/headless.md +0 -37
  129. package/src/bmm-skills/plan/bmad-ux/references/validate.md +0 -115
  130. package/src/bmm-skills/ship/bmad-build/SKILL.md +0 -13
  131. package/src/bmm-skills/ship/bmad-build/compile-epic-context.md +0 -62
  132. package/src/bmm-skills/ship/bmad-build/customize.toml +0 -152
  133. package/src/bmm-skills/ship/bmad-build/references/claims-check.md +0 -14
  134. package/src/bmm-skills/ship/bmad-build/references/deletion-check.md +0 -14
  135. package/src/bmm-skills/ship/bmad-build/review-prompts/edge-case-hunter.md +0 -112
  136. package/src/bmm-skills/ship/bmad-build/review-prompts/verification-gap.md +0 -113
  137. package/src/bmm-skills/ship/bmad-build/spec-template.md +0 -111
  138. package/src/bmm-skills/ship/bmad-build/step-01-clarify-and-route.md +0 -100
  139. package/src/bmm-skills/ship/bmad-build/step-02-plan.md +0 -62
  140. package/src/bmm-skills/ship/bmad-build/step-03-implement.md +0 -51
  141. package/src/bmm-skills/ship/bmad-build/step-04-review.md +0 -85
  142. package/src/bmm-skills/ship/bmad-build/step-05-present.md +0 -43
  143. package/src/bmm-skills/ship/bmad-build/step-oneshot.md +0 -107
  144. package/src/bmm-skills/ship/bmad-build/sync-sprint-status.md +0 -5
  145. package/src/bmm-skills/ship/bmad-build/workflow.md +0 -84
  146. package/src/bmm-skills/ship/bmad-build-auto/SKILL.md +0 -13
  147. package/src/bmm-skills/ship/bmad-build-auto/compile-epic-context.md +0 -62
  148. package/src/bmm-skills/ship/bmad-build-auto/customize.toml +0 -119
  149. package/src/bmm-skills/ship/bmad-build-auto/references/claims-check.md +0 -14
  150. package/src/bmm-skills/ship/bmad-build-auto/references/deletion-check.md +0 -14
  151. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/edge-case-hunter.md +0 -112
  152. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/verification-gap.md +0 -113
  153. package/src/bmm-skills/ship/bmad-build-auto/spec-template.md +0 -96
  154. package/src/bmm-skills/ship/bmad-build-auto/step-01-clarify-and-route.md +0 -84
  155. package/src/bmm-skills/ship/bmad-build-auto/step-02-plan.md +0 -27
  156. package/src/bmm-skills/ship/bmad-build-auto/step-03-implement.md +0 -48
  157. package/src/bmm-skills/ship/bmad-build-auto/step-04-review.md +0 -116
  158. package/src/bmm-skills/ship/bmad-build-auto/workflow.md +0 -104
  159. package/src/bmm-skills/ship/bmad-code-review/SKILL.md +0 -90
  160. package/src/bmm-skills/ship/bmad-code-review/customize.toml +0 -110
  161. package/src/bmm-skills/ship/bmad-code-review/references/claims-check.md +0 -14
  162. package/src/bmm-skills/ship/bmad-code-review/references/deletion-check.md +0 -14
  163. package/src/bmm-skills/ship/bmad-code-review/review-prompts/edge-case-hunter.md +0 -112
  164. package/src/bmm-skills/ship/bmad-code-review/review-prompts/verification-gap.md +0 -113
  165. package/src/bmm-skills/ship/bmad-code-review/steps/step-01-gather-context.md +0 -94
  166. package/src/bmm-skills/ship/bmad-code-review/steps/step-02-review.md +0 -32
  167. package/src/bmm-skills/ship/bmad-code-review/steps/step-03-triage.md +0 -54
  168. package/src/bmm-skills/ship/bmad-code-review/steps/step-04-present.md +0 -134
  169. package/src/bmm-skills/ship/bmad-correct-course/SKILL.md +0 -308
  170. package/src/bmm-skills/ship/bmad-correct-course/checklist.md +0 -288
  171. package/src/bmm-skills/ship/bmad-correct-course/customize.toml +0 -39
  172. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/SKILL.md +0 -176
  173. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/checklist.md +0 -33
  174. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/customize.toml +0 -39
  175. package/src/bmm-skills/ship/bmad-retrospective/SKILL.md +0 -94
  176. package/src/bmm-skills/ship/bmad-retrospective/customize.toml +0 -39
  177. package/src/bmm-skills/ship/bmad-retrospective/references/acceptance-verdict.md +0 -55
  178. package/src/bmm-skills/ship/bmad-retrospective/references/aggregate-views.md +0 -17
  179. package/src/bmm-skills/ship/bmad-retrospective/references/evidence-gathering.md +0 -30
  180. package/src/bmm-skills/ship/bmad-retrospective/references/retro-document.md +0 -84
  181. package/src/bmm-skills/ship/bmad-retrospective/references/team-discussion.md +0 -22
  182. package/src/bmm-skills/ship/bmad-retrospective/scripts/__pycache__/sprint_status.cpython-311.pyc +0 -0
  183. package/src/bmm-skills/ship/bmad-retrospective/scripts/git_evidence.py +0 -308
  184. package/src/bmm-skills/ship/bmad-retrospective/scripts/sprint_status.py +0 -750
  185. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_git_evidence.cpython-311-pytest-9.1.1.pyc +0 -0
  186. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_sprint_status.cpython-311-pytest-9.1.1.pyc +0 -0
  187. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/fixtures/sprint-status-template.yaml +0 -71
  188. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_git_evidence.py +0 -750
  189. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_sprint_status.py +0 -1579
  190. package/src/bmm-skills/ship/bmad-walkthrough/SKILL.md +0 -68
  191. package/src/bmm-skills/ship/bmad-walkthrough/customize.toml +0 -39
  192. package/src/bmm-skills/ship/bmad-walkthrough/generate-trail.md +0 -38
  193. package/src/bmm-skills/ship/bmad-walkthrough/step-01-orientation.md +0 -105
  194. package/src/bmm-skills/ship/bmad-walkthrough/step-02-walkthrough.md +0 -89
  195. package/src/bmm-skills/ship/bmad-walkthrough/step-03-detail-pass.md +0 -106
  196. package/src/bmm-skills/ship/bmad-walkthrough/step-04-testing.md +0 -74
  197. package/src/bmm-skills/ship/bmad-walkthrough/step-05-wrapup.md +0 -30
  198. package/src/bmm-skills/v6-shims/README.md +0 -29
  199. package/src/bmm-skills/v6-shims/bmad-checkpoint-preview/SKILL.md +0 -21
  200. package/src/bmm-skills/v6-shims/bmad-create-architecture/SKILL.md +0 -32
  201. package/src/bmm-skills/v6-shims/bmad-create-architecture/customize.toml +0 -39
  202. package/src/bmm-skills/v6-shims/bmad-create-prd/SKILL.md +0 -32
  203. package/src/bmm-skills/v6-shims/bmad-create-prd/customize.toml +0 -39
  204. package/src/bmm-skills/v6-shims/bmad-create-story/SKILL.md +0 -436
  205. package/src/bmm-skills/v6-shims/bmad-create-story/checklist.md +0 -357
  206. package/src/bmm-skills/v6-shims/bmad-create-story/customize.toml +0 -39
  207. package/src/bmm-skills/v6-shims/bmad-create-story/discover-inputs.md +0 -88
  208. package/src/bmm-skills/v6-shims/bmad-create-story/template.md +0 -49
  209. package/src/bmm-skills/v6-shims/bmad-dev-auto/SKILL.md +0 -21
  210. package/src/bmm-skills/v6-shims/bmad-dev-story/SKILL.md +0 -504
  211. package/src/bmm-skills/v6-shims/bmad-dev-story/checklist.md +0 -80
  212. package/src/bmm-skills/v6-shims/bmad-dev-story/customize.toml +0 -39
  213. package/src/bmm-skills/v6-shims/bmad-document-project/SKILL.md +0 -16
  214. package/src/bmm-skills/v6-shims/bmad-domain-research/SKILL.md +0 -16
  215. package/src/bmm-skills/v6-shims/bmad-edit-prd/SKILL.md +0 -32
  216. package/src/bmm-skills/v6-shims/bmad-edit-prd/customize.toml +0 -40
  217. package/src/bmm-skills/v6-shims/bmad-market-research/SKILL.md +0 -16
  218. package/src/bmm-skills/v6-shims/bmad-quick-dev/SKILL.md +0 -21
  219. package/src/bmm-skills/v6-shims/bmad-sprint-status/SKILL.md +0 -28
  220. package/src/bmm-skills/v6-shims/bmad-sprint-status/customize.toml +0 -39
  221. package/src/bmm-skills/v6-shims/bmad-technical-research/SKILL.md +0 -16
  222. package/src/bmm-skills/v6-shims/bmad-validate-prd/SKILL.md +0 -32
  223. package/src/bmm-skills/v6-shims/bmad-validate-prd/customize.toml +0 -40
  224. package/src/core-skills/bmad-advanced-elicitation/SKILL.md +0 -64
  225. package/src/core-skills/bmad-advanced-elicitation/assets/methods.csv +0 -72
  226. package/src/core-skills/bmad-advanced-elicitation/customize.toml +0 -54
  227. package/src/core-skills/bmad-advanced-elicitation/scripts/pick_methods.py +0 -233
  228. package/src/core-skills/bmad-advanced-elicitation/scripts/tests/test_pick_methods.py +0 -228
  229. package/src/core-skills/bmad-brainstorming/SKILL.md +0 -80
  230. package/src/core-skills/bmad-brainstorming/assets/brain-icons.json +0 -166
  231. package/src/core-skills/bmad-brainstorming/assets/brain-methods.csv +0 -109
  232. package/src/core-skills/bmad-brainstorming/assets/brain-selector.html +0 -328
  233. package/src/core-skills/bmad-brainstorming/customize.toml +0 -83
  234. package/src/core-skills/bmad-brainstorming/references/converge.md +0 -24
  235. package/src/core-skills/bmad-brainstorming/references/finalize.md +0 -26
  236. package/src/core-skills/bmad-brainstorming/references/headless.md +0 -54
  237. package/src/core-skills/bmad-brainstorming/references/in-chat-techniques.md +0 -18
  238. package/src/core-skills/bmad-brainstorming/references/mode-autonomous.md +0 -10
  239. package/src/core-skills/bmad-brainstorming/references/mode-facilitator.md +0 -11
  240. package/src/core-skills/bmad-brainstorming/references/mode-partner.md +0 -16
  241. package/src/core-skills/bmad-brainstorming/references/resume.md +0 -5
  242. package/src/core-skills/bmad-brainstorming/scripts/brain.py +0 -789
  243. package/src/core-skills/bmad-brainstorming/scripts/tests/test_brain.py +0 -289
  244. package/src/core-skills/bmad-customize/SKILL.md +0 -111
  245. package/src/core-skills/bmad-customize/scripts/list_customizable_skills.py +0 -235
  246. package/src/core-skills/bmad-customize/scripts/tests/test_list_customizable_skills.py +0 -249
  247. package/src/core-skills/bmad-deep-recon/SKILL.md +0 -82
  248. package/src/core-skills/bmad-deep-recon/assets/research.template.md +0 -18
  249. package/src/core-skills/bmad-deep-recon/customize.toml +0 -212
  250. package/src/core-skills/bmad-deep-recon/references/draft.md +0 -8
  251. package/src/core-skills/bmad-deep-recon/references/finalize.md +0 -11
  252. package/src/core-skills/bmad-deep-recon/references/html-briefing.md +0 -16
  253. package/src/core-skills/bmad-deep-recon/references/lifecycle.md +0 -11
  254. package/src/core-skills/bmad-deep-recon/references/process.md +0 -10
  255. package/src/core-skills/bmad-deep-recon/references/run.md +0 -73
  256. package/src/core-skills/bmad-deep-recon/references/selection.md +0 -13
  257. package/src/core-skills/bmad-deep-recon/references/synthesis.md +0 -16
  258. package/src/core-skills/bmad-deep-recon/references/verification.md +0 -29
  259. package/src/core-skills/bmad-deep-recon/scripts/recon_kit.py +0 -326
  260. package/src/core-skills/bmad-deep-recon/scripts/tests/test_recon_kit.py +0 -144
  261. package/src/core-skills/bmad-deep-recon/types/academic-lit.md +0 -19
  262. package/src/core-skills/bmad-deep-recon/types/competitive.md +0 -19
  263. package/src/core-skills/bmad-deep-recon/types/domain.md +0 -19
  264. package/src/core-skills/bmad-deep-recon/types/market.md +0 -19
  265. package/src/core-skills/bmad-deep-recon/types/technical.md +0 -19
  266. package/src/core-skills/bmad-deep-recon/types/user-voice.md +0 -19
  267. package/src/core-skills/bmad-forge-idea/SKILL.md +0 -107
  268. package/src/core-skills/bmad-forge-idea/customize.toml +0 -41
  269. package/src/core-skills/bmad-forge-idea/scripts/resolve_personas.py +0 -277
  270. package/src/core-skills/bmad-forge-idea/scripts/tests/test_resolve_personas.py +0 -160
  271. package/src/core-skills/bmad-help/SKILL.md +0 -77
  272. package/src/core-skills/bmad-party-mode/SKILL.md +0 -60
  273. package/src/core-skills/bmad-party-mode/customize.toml +0 -211
  274. package/src/core-skills/bmad-party-mode/references/create-party.md +0 -70
  275. package/src/core-skills/bmad-party-mode/references/mode-agent-team.md +0 -13
  276. package/src/core-skills/bmad-party-mode/references/mode-auto.md +0 -13
  277. package/src/core-skills/bmad-party-mode/references/mode-subagent.md +0 -31
  278. package/src/core-skills/bmad-party-mode/references/party-memory.md +0 -51
  279. package/src/core-skills/bmad-party-mode/scripts/resolve_party.py +0 -300
  280. package/src/core-skills/bmad-party-mode/scripts/tests/test_resolve_party.py +0 -183
  281. package/src/core-skills/bmad-review/SKILL.md +0 -50
  282. package/src/core-skills/bmad-review/customize.toml +0 -141
  283. package/src/core-skills/bmad-review/references/editorial-common.md +0 -56
  284. package/src/core-skills/bmad-review/references/lens-adversarial.md +0 -19
  285. package/src/core-skills/bmad-review/references/lens-edge-case-hunter.md +0 -72
  286. package/src/core-skills/bmad-review/references/lens-prose.md +0 -7
  287. package/src/core-skills/bmad-review/references/lens-structure.md +0 -9
  288. package/src/core-skills/bmad-review/references/lens-verification-gap.md +0 -92
  289. package/src/core-skills/bmad-review/references/structure-models.md +0 -44
  290. package/src/core-skills/bmad-review/scripts/tests/test_word_metrics.py +0 -62
  291. package/src/core-skills/bmad-review/scripts/word_metrics.py +0 -102
  292. package/src/core-skills/module-help.csv +0 -10
  293. package/src/core-skills/module.yaml +0 -38
  294. package/src/core-skills/v6-shims/README.md +0 -25
  295. package/src/core-skills/v6-shims/bmad-editorial-review/SKILL.md +0 -8
  296. package/src/core-skills/v6-shims/bmad-editorial-review/customize.toml +0 -31
  297. package/src/core-skills/v6-shims/bmad-editorial-review-prose/SKILL.md +0 -8
  298. package/src/core-skills/v6-shims/bmad-editorial-review-structure/SKILL.md +0 -8
  299. package/src/core-skills/v6-shims/bmad-review-adversarial-general/SKILL.md +0 -8
  300. package/src/core-skills/v6-shims/bmad-review-edge-case-hunter/SKILL.md +0 -8
  301. package/src/core-skills/v6-shims/bmad-review-verification-gap/SKILL.md +0 -8
  302. package/src/scripts/__pycache__/config_utils.cpython-311.pyc +0 -0
  303. package/src/scripts/config_utils.py +0 -119
  304. package/src/scripts/memlog.py +0 -228
  305. package/src/scripts/render_skill.py +0 -401
  306. package/src/scripts/resolve_config.py +0 -82
  307. package/src/scripts/resolve_customization.py +0 -164
  308. package/src/scripts/tests/__pycache__/test_config_utils.cpython-311.pyc +0 -0
  309. package/src/scripts/tests/__pycache__/test_resolve_config.cpython-311.pyc +0 -0
  310. package/src/scripts/tests/__pycache__/test_resolve_customization.cpython-311.pyc +0 -0
  311. package/src/scripts/tests/test_config_utils.py +0 -85
  312. package/src/scripts/tests/test_memlog.py +0 -306
  313. package/src/scripts/tests/test_resolve_config.py +0 -117
  314. package/src/scripts/tests/test_resolve_customization.py +0 -179
  315. package/tools/bundle-web-bundles.js +0 -117
  316. package/tools/format-workflow-md.js +0 -263
  317. package/tools/installer/README.md +0 -60
  318. package/tools/installer/bmad-cli.js +0 -105
  319. package/tools/installer/cli-utils.js +0 -57
  320. package/tools/installer/commands/install.js +0 -151
  321. package/tools/installer/commands/status.js +0 -65
  322. package/tools/installer/commands/uninstall.js +0 -167
  323. package/tools/installer/core/config.js +0 -76
  324. package/tools/installer/core/existing-install.js +0 -121
  325. package/tools/installer/core/install-paths.js +0 -132
  326. package/tools/installer/core/installer.js +0 -1826
  327. package/tools/installer/core/legacy-warnings.js +0 -151
  328. package/tools/installer/core/manifest-generator.js +0 -883
  329. package/tools/installer/core/manifest.js +0 -439
  330. package/tools/installer/core/shim-policy.js +0 -159
  331. package/tools/installer/core/uv-check.js +0 -195
  332. package/tools/installer/core/wsl-node-check.js +0 -109
  333. package/tools/installer/file-ops.js +0 -204
  334. package/tools/installer/fs-native.js +0 -116
  335. package/tools/installer/ide/_config-driven.js +0 -972
  336. package/tools/installer/ide/manager.js +0 -324
  337. package/tools/installer/ide/platform-codes.js +0 -80
  338. package/tools/installer/ide/platform-codes.yaml +0 -363
  339. package/tools/installer/ide/shared/installed-skills.js +0 -50
  340. package/tools/installer/ide/shared/path-utils.js +0 -219
  341. package/tools/installer/ide/shared/skill-manifest.js +0 -57
  342. package/tools/installer/install-messages.yaml +0 -44
  343. package/tools/installer/list-options.js +0 -210
  344. package/tools/installer/message-loader.js +0 -83
  345. package/tools/installer/modules/channel-plan.js +0 -216
  346. package/tools/installer/modules/channel-resolver.js +0 -241
  347. package/tools/installer/modules/custom-module-manager.js +0 -924
  348. package/tools/installer/modules/external-manager.js +0 -673
  349. package/tools/installer/modules/git-env.js +0 -47
  350. package/tools/installer/modules/module-help-schema.js +0 -13
  351. package/tools/installer/modules/official-modules.js +0 -2289
  352. package/tools/installer/modules/plugin-resolver.js +0 -398
  353. package/tools/installer/modules/version-resolver.js +0 -336
  354. package/tools/installer/project-root.js +0 -224
  355. package/tools/installer/prompts.js +0 -804
  356. package/tools/installer/set-overrides.js +0 -330
  357. package/tools/installer/ui.js +0 -2262
  358. package/tools/installer/yaml-format.js +0 -245
  359. package/tools/javascript-conventions.md +0 -5
  360. package/tools/migrate-custom-module-paths.js +0 -124
  361. package/tools/skill-validator.md +0 -312
  362. package/tools/tests/__pycache__/test_validate_skills.cpython-311.pyc +0 -0
  363. package/tools/tests/fixtures/validate-skills/bmad/SKILL.md +0 -8
  364. package/tools/tests/fixtures/validate-skills/deprecated-shim/SKILL.md +0 -9
  365. package/tools/tests/fixtures/validate-skills/missing-trigger/SKILL.md +0 -9
  366. package/tools/tests/fixtures/validate-skills/with-trigger/SKILL.md +0 -8
  367. package/tools/tests/test_validate_skills.py +0 -476
  368. package/tools/validate-published-implementation-model.mjs +0 -59
  369. package/tools/validate-sidebar-order.js +0 -388
  370. package/tools/validate-svg-changes.sh +0 -356
  371. package/tools/validate_skills.py +0 -698
  372. package/web-bundles/README.md +0 -46
  373. package/web-bundles/brainstorming-coach/INSTRUCTIONS.md +0 -86
  374. package/web-bundles/brainstorming-coach/SKILL.md +0 -83
  375. package/web-bundles/brainstorming-coach/brain-methods.csv +0 -62
  376. package/web-bundles/bundles.json +0 -139
  377. package/web-bundles/market-and-industry-research/INSTRUCTIONS.md +0 -88
  378. package/web-bundles/market-and-industry-research/SKILL.md +0 -59
  379. package/web-bundles/prd-coach/INSTRUCTIONS.md +0 -86
  380. package/web-bundles/prd-coach/SKILL.md +0 -101
  381. package/web-bundles/prd-coach/prd-template.md +0 -165
  382. package/web-bundles/prd-coach/prd-validation-checklist.md +0 -135
  383. package/web-bundles/prfaq-coach/INSTRUCTIONS.md +0 -86
  384. package/web-bundles/prfaq-coach/SKILL.md +0 -139
  385. package/web-bundles/product-brief-coach/INSTRUCTIONS.md +0 -86
  386. package/web-bundles/product-brief-coach/SKILL.md +0 -113
  387. package/web-bundles/ux-coach/INSTRUCTIONS.md +0 -92
  388. package/web-bundles/ux-coach/SKILL.md +0 -187
  389. package/web-bundles/ux-coach/ux-validation.md +0 -100
@@ -1,31 +0,0 @@
1
- # Subagent Mode
2
-
3
- Active when `{workflow.party_mode}` resolves to `subagent` (or a `--mode subagent` override). Put a real agent behind each persona for every substantive round, the opening banter included, so each persona thinks independently — not one mind voicing them all. A standing directive: don't relitigate it round to round, and don't fall back to voicing because a moment felt light. If your harness can't spawn agents, fall back to `session`.
4
-
5
- ## Lifecycle
6
-
7
- Where your harness keeps agents alive across turns, the cast is **standing**: spawn one agent per persona and reuse that same handle round after round — hand it the new turn plus the room context it needs — instead of a throwaway each time. That continuity is what lets a persona's grudges, alliances, and callbacks accrue. Keep a visible roster mapping each persona to its live handle, and reuse it.
8
-
9
- Keep the cast alive for the whole session. A member that finished the one thing you handed it is **idle, not done** — don't close, retire, or disband it. Serving the opening intent doesn't end the party; only the user ending it does, or an explicit `--non-interactive` run wrapping up. Release agents only at wrap-up. If one gets closed by accident, resume it; if it won't resume, say so and respawn just that member.
10
-
11
- Where the harness can't hold agents between turns, spawn fresh each round and re-establish each persona's brief and the thread so far — that per-round spawn is the fallback, not the goal.
12
-
13
- ## One shared room
14
-
15
- It's one room, not parallel one-on-ones. Every standing member hears everything said each round — the user's turn and every other persona's turn — even when it's not their turn to speak. A persona sitting a round out is still in the room listening, so when it next speaks it's caught up: it can pick up a dropped thread, hold a grudge, call back. Route the whole exchange to all of them each round; never hand a persona only the slice it's about to answer. Skip this and they drift out of sync — separate consultations wearing a party's clothes.
16
-
17
- ## Spawning
18
-
19
- Give each agent the objective, their persona, and the room so far — what the user said and what the others said, whether or not they're reacting to it. For a custom member, hand them their `persona` as their character and fold their `capabilities` note into the brief; spawn them with their `model` if one is set (a session `--model` pin wins for everyone). Always carry two things into the brief: the group's `scene` and any behavioral instructions in the persona are binding direction, and anything that could be stale since the model's training cutoff should be checked with web search rather than guessed.
20
-
21
- Trust their *thinking*: let them decide what to read and how to reach a view; don't script their substance with do-and-don't checklists — that's what produces lifeless blobs. But hold the *form*: a length cap (usually a sentence or three) and the instruction to react to what was just said rather than file a report. Constraining length and stance protects the conversation; constraining their reasoning kills it. Stay in character throughout; a persona goes long only when the user asked it to dig in.
22
-
23
- Run them in parallel for independent first-takes; run them sequentially when you want them reacting to each other's actual words. Keep it to a few voices a round — more reads as a crowd, not a conversation.
24
-
25
- ## Weave the replies into one conversation
26
-
27
- Even with everyone caught up on the room, a round taken in parallel means no agent has yet seen the others' turns from that same round — so left raw they reply alongside one another, not to one another. Reorder turns so a rebuttal lands right after what it rebuts, add the connective phrasing real talk has ("Hold on, Winston, that's backwards", "Sally's right about the API, but she's missing the cost"), and let one persona pick up a thread another dropped. Never change what an agent argued — weave delivery, preserve substance.
28
-
29
- ## Model choice
30
-
31
- Match the model to the round: something quick for banter, something stronger for deep work. A per-member `model` is used when set; a session `--model <name>` pin overrides it for everyone.
@@ -1,51 +0,0 @@
1
- # Party Memory
2
-
3
- The room remembers its past sessions with this user and brings them back to life — in character. Memory is per-party and append-only.
4
-
5
- Memory is on when the active party's `memory_enabled` is true — the default room follows `{workflow.party_memory}`, a named group its own `memory` flag (both resolved by `resolve_party.py`); ad-hoc inline casts have none. Read on entry and on any mid-session room switch; write through the session.
6
-
7
- ## Where it lives
8
-
9
- One memlog per party: `{workflow.memory_dir}/{active}/.memlog.md`, where `{active}` is the key `resolve_party.py` already returned — the group id (e.g. `code-review-crew`), or `installed` for the default room. The folder is named after the party.
10
-
11
- ## Read it on entry — distill, don't dump
12
-
13
- The log is append-only and grows every session, so don't pull the raw file into the party. Hand a reader subagent the memlog path (`{workflow.memory_dir}/{active}/.memlog.md`) and have it return a compact brief — a few hundred tokens of *where things stand now*, ready to play in character.
14
-
15
- Then let the brief shape the room from the first beat, **in character**: behavioral state resumes (a cold pair opens cold, an alliance opens warm), threads pick up, callbacks land when they fit — organically, not recited on sight. Never break the fourth wall: the room *remembers*; it never announces it loaded anything, and forces nothing that doesn't fit.
16
-
17
- ## When to write
18
-
19
- - **When a memorable beat lands** — a clash that shifts the room's temperature, an alliance forming, a line worth a future callback, a decision, an outcome.
20
- - **A floor.** Once a couple of real exchanges are in from the start, even if nothing dramatic happened, capture what it's about and the opening dynamic.
21
-
22
- At wrap-up, if the user does signal done, top up with the final outcome and anything memorable not yet captured.
23
-
24
- Writes are silent. The room never announces "noted" or "I'll remember".
25
-
26
- ## What's worth remembering
27
-
28
- The test for every entry: *would this color a future session, or make a callback land, or improve the party?* If not, leave it out. A handful of entries, never a recap, never a transcript. keep each entry as brief as possible but usable by future llm.
29
-
30
- ## New faces
31
-
32
- When a character shows up who isn't in the party's roster — cast from an open-cast scene, or one the user adds on the fly — name them in the entry that captures the moment ("<name> turned up and …") so a recurring face can return next session. At wrap-up these are the faces the room offers to keep, saved into the party's roster through `references/create-party.md` (which writes via `bmad-customize`). Until saved they live only in the memlog, and the room re-conjures them from there.
33
-
34
- ## Write it
35
-
36
- ```
37
- uv run {project-root}/_bmad/scripts/memlog.py append \
38
- --workspace {workflow.memory_dir}/{active} \
39
- --type <dynamic|moment|callback|outcome> \
40
- --text "<one succinct line, in the room's own read of it>"
41
- ```
42
-
43
- Add `--by <persona-code>` when a memory belongs to one character. Choose `init` vs `append` from the existence fact you already hold: the entry-read (and, on a mid-session room switch, that room's read) told you whether the memlog exists — `init --workspace {workflow.memory_dir}/{active}` once before the first append when it doesn't, plain `append` when it does. (`init` errors if the file already exists, so don't call it blind.)
44
-
45
- If `memlog.py` is unavailable or a write errors, skip it silently and never stall the party on a failed write.
46
-
47
- ## Forget
48
-
49
- The memlog is append-only by design — no surgical delete. To wipe a party's memory, delete its folder (`{workflow.memory_dir}/{active}/`). To correct a wrong memory, append a new entry that supersedes it; the room reads the latest state.
50
-
51
- Keep entries sparse. The distilled read keeps the *room* lean no matter how big the log gets, but the on-disk file still grows append-only.
@@ -1,300 +0,0 @@
1
- #!/usr/bin/env python3
2
- # /// script
3
- # requires-python = ">=3.11"
4
- # ///
5
- """Resolve the party-mode roster, lazily.
6
-
7
- Merges the installed BMAD agents with the user's custom `party_members`
8
- into one collective, then projects only what the moment needs:
9
-
10
- * default (no flag) — the active roster to load on entry: the
11
- `default_party` group if one is configured, else the whole collective.
12
- Other groups come back as names only, so nothing you aren't using is
13
- loaded into the party.
14
- * --list-groups — just id + name + size for every configured group. The
15
- cheap menu for "which room?", with no member detail.
16
- * --party <id> — full member detail for one chosen group, on demand
17
- (e.g. when the user switches rooms). Unknown id returns the available
18
- names instead of an error wall.
19
- * --list-codes — every token that resolves to a member (code, alias,
20
- lower-cased name, custom-only codes) mapped to that member's code and
21
- name. The collision check before adding custom members.
22
-
23
- The merge is deterministic (a keyed union; a custom member whose code
24
- matches an installed agent overrides it), so the orchestrator consumes a
25
- resolved roster instead of re-deriving it every session.
26
-
27
- Stdlib only (Python 3.11+ for tomllib). Shells out to the project's
28
- resolve_config.py and resolve_customization.py; falls back to reading
29
- customize.toml directly if the customization resolver is unavailable.
30
-
31
- resolve_party.py --project-root P --skill S
32
- resolve_party.py --project-root P --skill S --list-groups
33
- resolve_party.py --project-root P --skill S --party writers-room
34
- resolve_party.py --project-root P --skill S --list-codes
35
- """
36
-
37
- import argparse
38
- import json
39
- import subprocess
40
- import sys
41
- from pathlib import Path
42
-
43
- try:
44
- import tomllib
45
- except ImportError: # pragma: no cover - guarded for <3.11
46
- sys.stderr.write("error: Python 3.11+ is required (stdlib `tomllib`).\n")
47
- sys.exit(3)
48
-
49
-
50
- def _run_json(cmd):
51
- """Run a resolver script and parse its JSON stdout. None on any failure."""
52
- try:
53
- out = subprocess.run(
54
- cmd, capture_output=True, text=True, encoding="utf-8", timeout=60
55
- )
56
- except (OSError, subprocess.SubprocessError):
57
- return None
58
- if out.returncode != 0 or not out.stdout.strip():
59
- return None
60
- try:
61
- return json.loads(out.stdout)
62
- except json.JSONDecodeError:
63
- return None
64
-
65
-
66
- def load_agents(project_root: Path):
67
- """Installed agents as {code: entry}. Empty dict (with a flag) on failure."""
68
- script = project_root / "_bmad" / "scripts" / "resolve_config.py"
69
- data = _run_json([sys.executable, str(script), "--project-root", str(project_root), "--key", "agents"])
70
- if data is None:
71
- return {}, False
72
- return data.get("agents", {}) or {}, True
73
-
74
-
75
- def load_workflow(project_root: Path, skill_root: Path):
76
- """Merged [workflow] table. Falls back to the skill's base customize.toml."""
77
- script = project_root / "_bmad" / "scripts" / "resolve_customization.py"
78
- data = _run_json(
79
- [sys.executable, str(script), "--skill", str(skill_root), "--project-root", str(project_root), "--key", "workflow"]
80
- )
81
- if data is not None and "workflow" in data:
82
- return data["workflow"]
83
- # Fallback: read the skill's base customize.toml directly (no override merge).
84
- toml_path = skill_root / "customize.toml"
85
- if toml_path.exists():
86
- try:
87
- with toml_path.open("rb") as f:
88
- return tomllib.load(f).get("workflow", {})
89
- except (OSError, tomllib.TOMLDecodeError):
90
- pass
91
- return {}
92
-
93
-
94
- def _alias(code: str) -> str:
95
- """Short alias for an installed agent code: bmad-agent-analyst -> analyst."""
96
- for prefix in ("bmad-agent-", "bmad-"):
97
- if code.startswith(prefix):
98
- return code[len(prefix):]
99
- return code
100
-
101
-
102
- def build_collective(agents: dict, party_members: list):
103
- """One pool keyed by code. Custom members override matching installed agents.
104
-
105
- Returns (collective, index, installed_codes):
106
- * collective — every member (installed + custom), the pool groups draw
107
- from and the orchestrator can summon by name.
108
- * index — maps every resolvable token (code, prefix-stripped alias,
109
- lower-cased name) to a canonical code.
110
- * installed_codes — the codes occupying an installed-agent slot, in
111
- order. This is the DEFAULT room: installed agents (with any custom
112
- override applied in place), and NOT the pure-custom additions. So
113
- shipping or defining custom members grows the pool without crowding
114
- the default party.
115
- """
116
- collective = {}
117
- index = {}
118
- installed_codes = []
119
-
120
- def register(code, entry):
121
- collective[code] = entry
122
- index[code] = code
123
- index[code.lower()] = code
124
- index[_alias(code).lower()] = code
125
- name = entry.get("name")
126
- if name:
127
- index[name.lower()] = code
128
-
129
- for code, info in agents.items():
130
- register(code, {
131
- "code": code,
132
- "name": info.get("name", code),
133
- "icon": info.get("icon", ""),
134
- "title": info.get("title", ""),
135
- "description": info.get("description", ""),
136
- "module": info.get("module", ""),
137
- "team": info.get("team", ""),
138
- "source": "installed",
139
- })
140
- installed_codes.append(code)
141
-
142
- for m in (party_members if isinstance(party_members, list) else []):
143
- if not isinstance(m, dict):
144
- continue
145
- code = m.get("code")
146
- if not code:
147
- continue
148
- # A custom member overrides an installed agent it matches by code/alias/name.
149
- canonical = index.get(code) or index.get(code.lower()) or code
150
- # Start from the installed entry so fields the override omits
151
- # (icon, title, description, module, team) survive.
152
- entry = dict(collective.get(canonical, {}))
153
- entry.update({"code": canonical, "source": "custom"})
154
- for field in ("name", "icon", "title", "persona", "capabilities", "model"):
155
- if m.get(field) is not None:
156
- entry[field] = m[field]
157
- entry.setdefault("name", canonical)
158
- register(canonical, entry)
159
- # An override keeps the installed slot; a brand-new custom does not join it.
160
-
161
- return collective, index, installed_codes
162
-
163
-
164
- def resolve_members(member_tokens, collective, index):
165
- """(resolved entries in listed order, unresolved tokens)."""
166
- resolved, unresolved = [], []
167
- for token in member_tokens or []:
168
- if not isinstance(token, str):
169
- unresolved.append(token) # malformed config value — never a key lookup
170
- continue
171
- code = index.get(token) or index.get(token.lower())
172
- if code and code in collective:
173
- resolved.append(collective[code])
174
- else:
175
- unresolved.append(token)
176
- return resolved, unresolved
177
-
178
-
179
- def code_map(collective, index):
180
- """Every resolvable token -> the member it resolves to (code + name)."""
181
- return {token: {"code": code, "name": collective[code].get("name", code)}
182
- for token, code in sorted(index.items()) if code in collective}
183
-
184
-
185
- def group_menu(groups):
186
- """Names only — the cheap menu. Open-cast groups (no roster) are flagged."""
187
- out = []
188
- for g in groups or []:
189
- if not isinstance(g, dict) or not g.get("id"):
190
- continue
191
- members = g.get("members", []) or []
192
- entry = {"id": g["id"], "name": g.get("name", g["id"]),
193
- "member_count": len(members)}
194
- if not members:
195
- entry["open_cast"] = True
196
- out.append(entry)
197
- return out
198
-
199
-
200
- def find_group(groups, group_id):
201
- for g in groups or []:
202
- if isinstance(g, dict) and g.get("id") == group_id:
203
- return g
204
- return None
205
-
206
-
207
- def group_detail(g, collective, index):
208
- """Full detail for one group: resolved members + the optional scene.
209
-
210
- `scene` is a freeform line the orchestrator plays — setting, what's
211
- happening, room dynamics, in-the-moment character notes. Surfaced only
212
- here (when a group is the active/chosen roster), never in the menu.
213
-
214
- `members` is optional. With none, the group is open-cast: `open_cast`
215
- is flagged and the scene describes the pool the orchestrator casts from
216
- on the fly (e.g. "figures from the Star Wars Rebels universe"). A few
217
- listed members anchor the room; the scene can still invite more.
218
- """
219
- raw_members = g.get("members", []) or []
220
- members, unresolved = resolve_members(raw_members, collective, index)
221
- detail = {"active": g["id"], "name": g.get("name", g["id"]),
222
- "members": members, "unresolved": unresolved,
223
- "memory_enabled": bool(g.get("memory", False))}
224
- if g.get("scene"):
225
- detail["scene"] = g["scene"]
226
- if not raw_members:
227
- detail["open_cast"] = True
228
- return detail
229
-
230
-
231
- def main():
232
- ap = argparse.ArgumentParser(description="Resolve the party-mode roster, lazily.")
233
- ap.add_argument("--project-root", required=True)
234
- ap.add_argument("--skill", required=True, help="Path to the bmad-party-mode skill dir")
235
- ap.add_argument("--party", help="Resolve full detail for this group id")
236
- ap.add_argument("--list-groups", action="store_true", help="Group names only")
237
- ap.add_argument("--list-codes", action="store_true",
238
- help="Every code, alias and name in the collective, for collision checks")
239
- args = ap.parse_args()
240
-
241
- project_root = Path(args.project_root).resolve()
242
- skill_root = Path(args.skill).resolve()
243
-
244
- workflow = load_workflow(project_root, skill_root)
245
- groups = workflow.get("party_groups", []) or []
246
- default_party = workflow.get("default_party", "") or ""
247
- party_mode = workflow.get("party_mode", "session") or "session"
248
- # The global party_memory flag governs only the DEFAULT installed-agent room;
249
- # a named group carries its own `memory` flag (resolved in group_detail).
250
- party_memory = bool(workflow.get("party_memory", True))
251
-
252
- # Group menu never needs the (more expensive) installed-agent resolve.
253
- if args.list_groups:
254
- _emit({
255
- "party_mode": party_mode,
256
- "default_party": default_party,
257
- "groups": group_menu(groups),
258
- })
259
- return
260
-
261
- agents, agents_ok = load_agents(project_root)
262
- collective, index, installed_codes = build_collective(agents, workflow.get("party_members", []))
263
-
264
- if args.list_codes:
265
- _emit({"installed_agents_resolved": agents_ok, "codes": code_map(collective, index)})
266
- return
267
-
268
- if args.party:
269
- g = find_group(groups, args.party)
270
- if g is None:
271
- _emit({"error": "unknown_group", "requested": args.party,
272
- "available": group_menu(groups)})
273
- return
274
- _emit({**group_detail(g, collective, index), "party_mode": party_mode})
275
- return
276
-
277
- # Default: the active roster to load on entry.
278
- result = {"party_mode": party_mode, "groups": group_menu(groups),
279
- "installed_agents_resolved": agents_ok}
280
- g = find_group(groups, default_party) if default_party else None
281
- if g is not None:
282
- result.update(group_detail(g, collective, index))
283
- else:
284
- # No default group: the installed agents (custom additions stay in the
285
- # pool but don't crowd the default room), exactly like a plain install.
286
- result.update({"active": "installed",
287
- "members": [collective[c] for c in installed_codes],
288
- "memory_enabled": party_memory})
289
- _emit(result)
290
-
291
-
292
- def _emit(obj):
293
- reconfigure = getattr(sys.stdout, "reconfigure", None)
294
- if reconfigure is not None:
295
- reconfigure(encoding="utf-8")
296
- sys.stdout.write(json.dumps(obj, indent=2, ensure_ascii=False) + "\n")
297
-
298
-
299
- if __name__ == "__main__":
300
- main()
@@ -1,183 +0,0 @@
1
- #!/usr/bin/env python3
2
- # /// script
3
- # requires-python = ">=3.11"
4
- # ///
5
- """Unit tests for resolve_party.py — merge, alias, override, group resolution."""
6
-
7
- import sys
8
- import tempfile
9
- import unittest
10
- from pathlib import Path
11
-
12
- sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
13
- import resolve_party as rp # noqa: E402
14
-
15
- AGENTS = {
16
- "bmad-agent-analyst": {"name": "Mary", "icon": "📊", "title": "Analyst"},
17
- "bmad-agent-pm": {"name": "John", "icon": "📋", "title": "PM"},
18
- }
19
-
20
-
21
- class TestAlias(unittest.TestCase):
22
- def test_strips_known_prefixes(self):
23
- self.assertEqual(rp._alias("bmad-agent-analyst"), "analyst")
24
- self.assertEqual(rp._alias("bmad-foo"), "foo")
25
-
26
- def test_passes_through_unprefixed(self):
27
- self.assertEqual(rp._alias("morpheus"), "morpheus")
28
-
29
-
30
- class TestBuildCollective(unittest.TestCase):
31
- def test_installed_agents_indexed_by_code_alias_and_name(self):
32
- col, idx, _ = rp.build_collective(AGENTS, [])
33
- self.assertEqual(set(col), {"bmad-agent-analyst", "bmad-agent-pm"})
34
- self.assertEqual(idx["analyst"], "bmad-agent-analyst") # alias
35
- self.assertEqual(idx["mary"], "bmad-agent-analyst") # name (ci)
36
- self.assertEqual(idx["bmad-agent-pm"], "bmad-agent-pm") # full code
37
- self.assertEqual(col["bmad-agent-analyst"]["source"], "installed")
38
-
39
- def test_custom_member_appends(self):
40
- col, _, _ = rp.build_collective(AGENTS, [{"code": "morpheus", "name": "Morpheus", "persona": "riddles"}])
41
- self.assertIn("morpheus", col)
42
- self.assertEqual(col["morpheus"]["source"], "custom")
43
- self.assertEqual(col["morpheus"]["persona"], "riddles")
44
-
45
- def test_custom_overrides_installed_by_alias(self):
46
- col, _, _ = rp.build_collective(AGENTS, [{"code": "analyst", "name": "Mary-Custom", "persona": "p"}])
47
- # Override lands on the canonical installed code, not a new "analyst" entry.
48
- self.assertNotIn("analyst", col)
49
- self.assertEqual(col["bmad-agent-analyst"]["source"], "custom")
50
- self.assertEqual(col["bmad-agent-analyst"]["name"], "Mary-Custom")
51
-
52
- def test_member_without_code_skipped(self):
53
- col, _, _ = rp.build_collective(AGENTS, [{"name": "Nameless"}])
54
- self.assertEqual(set(col), {"bmad-agent-analyst", "bmad-agent-pm"})
55
-
56
-
57
- class TestResolveMembers(unittest.TestCase):
58
- def setUp(self):
59
- self.col, self.idx, _ = rp.build_collective(AGENTS, [{"code": "morpheus", "name": "Morpheus"}])
60
-
61
- def test_resolves_in_listed_order_and_flags_unknowns(self):
62
- resolved, unresolved = rp.resolve_members(["morpheus", "analyst", "ghost"], self.col, self.idx)
63
- self.assertEqual([m["code"] for m in resolved], ["morpheus", "bmad-agent-analyst"])
64
- self.assertEqual(unresolved, ["ghost"])
65
-
66
- def test_empty(self):
67
- self.assertEqual(rp.resolve_members([], self.col, self.idx), ([], []))
68
-
69
-
70
- class TestCodeMap(unittest.TestCase):
71
- def test_maps_aliases_names_and_custom_only_codes_to_their_member(self):
72
- col, idx, _ = rp.build_collective(AGENTS, [{"code": "morpheus", "name": "Morpheus"}])
73
- codes = rp.code_map(col, idx)
74
- self.assertEqual(codes["analyst"], {"code": "bmad-agent-analyst", "name": "Mary"})
75
- self.assertEqual(codes["mary"]["code"], "bmad-agent-analyst")
76
- self.assertEqual(codes["bmad-agent-pm"]["code"], "bmad-agent-pm")
77
- self.assertEqual(codes["morpheus"], {"code": "morpheus", "name": "Morpheus"})
78
-
79
- def test_override_reports_the_overriding_name(self):
80
- col, idx, _ = rp.build_collective(AGENTS, [{"code": "analyst", "name": "Mary-Custom"}])
81
- self.assertEqual(rp.code_map(col, idx)["analyst"],
82
- {"code": "bmad-agent-analyst", "name": "Mary-Custom"})
83
-
84
-
85
- class TestGroups(unittest.TestCase):
86
- GROUPS = [
87
- {"id": "wr", "name": "Writers", "members": ["analyst", "morpheus"]},
88
- {"id": "bad"}, # no name -> falls back to id; no members -> count 0
89
- {"name": "no-id"}, # dropped from menu
90
- ]
91
-
92
- def test_menu_is_names_only_with_counts_and_open_cast_flag(self):
93
- menu = rp.group_menu(self.GROUPS)
94
- self.assertEqual(menu, [
95
- {"id": "wr", "name": "Writers", "member_count": 2},
96
- {"id": "bad", "name": "bad", "member_count": 0, "open_cast": True},
97
- ])
98
-
99
- def test_find_group(self):
100
- self.assertEqual(rp.find_group(self.GROUPS, "wr")["name"], "Writers")
101
- self.assertIsNone(rp.find_group(self.GROUPS, "missing"))
102
-
103
-
104
- class TestGroupDetail(unittest.TestCase):
105
- def setUp(self):
106
- self.col, self.idx, _ = rp.build_collective(AGENTS, [{"code": "morpheus", "name": "Morpheus"}])
107
-
108
- def test_scene_passes_through_when_present(self):
109
- g = {"id": "tos-10-forward", "name": "Ten Forward", "members": ["morpheus"],
110
- "scene": "Late evening, a few rounds in."}
111
- d = rp.group_detail(g, self.col, self.idx)
112
- self.assertEqual(d["scene"], "Late evening, a few rounds in.")
113
- self.assertEqual([m["code"] for m in d["members"]], ["morpheus"])
114
-
115
- def test_scene_omitted_when_absent_or_empty(self):
116
- for g in ({"id": "g", "members": ["morpheus"]},
117
- {"id": "g", "members": ["morpheus"], "scene": ""}):
118
- self.assertNotIn("scene", rp.group_detail(g, self.col, self.idx))
119
-
120
- def test_anchored_group_is_not_open_cast(self):
121
- g = {"id": "g", "members": ["morpheus"]}
122
- self.assertNotIn("open_cast", rp.group_detail(g, self.col, self.idx))
123
-
124
- def test_open_cast_group_flagged_with_empty_members(self):
125
- g = {"id": "rebels", "name": "Star Wars Rebels",
126
- "scene": "Figures from the Rebels universe drop in as the topic calls for them."}
127
- d = rp.group_detail(g, self.col, self.idx)
128
- self.assertTrue(d["open_cast"])
129
- self.assertEqual(d["members"], [])
130
- self.assertEqual(d["scene"][:7], "Figures")
131
-
132
- def test_memory_enabled_follows_group_flag_and_defaults_off(self):
133
- on = rp.group_detail({"id": "g", "members": ["morpheus"], "memory": True}, self.col, self.idx)
134
- self.assertTrue(on["memory_enabled"])
135
- off = rp.group_detail({"id": "g", "members": ["morpheus"], "memory": False}, self.col, self.idx)
136
- self.assertFalse(off["memory_enabled"])
137
- absent = rp.group_detail({"id": "g", "members": ["morpheus"]}, self.col, self.idx)
138
- self.assertFalse(absent["memory_enabled"]) # opt-in per named group
139
-
140
-
141
- class TestInstalledCodesIsDefaultRoom(unittest.TestCase):
142
- """The default room is installed agents only; pure customs stay in the pool."""
143
-
144
- def test_pure_custom_excluded_override_kept_in_default_room(self):
145
- col, _, installed = rp.build_collective(AGENTS, [
146
- {"code": "morpheus", "name": "Morpheus"}, # pure custom
147
- {"code": "analyst", "name": "Mary-Custom", "persona": "p"}, # override
148
- {"code": "sec-hawk", "name": "Vex"}, # shipped crew member
149
- ])
150
- # Pure customs are in the pool...
151
- self.assertIn("morpheus", col)
152
- self.assertIn("sec-hawk", col)
153
- # ...but NOT in the default room.
154
- self.assertEqual(installed, ["bmad-agent-analyst", "bmad-agent-pm"])
155
- default_room = [col[c]["code"] for c in installed]
156
- self.assertEqual(default_room, ["bmad-agent-analyst", "bmad-agent-pm"])
157
- # An override keeps its installed slot (and its custom content).
158
- self.assertEqual(col["bmad-agent-analyst"]["name"], "Mary-Custom")
159
-
160
-
161
- class TestResolverInvocation(unittest.TestCase):
162
- """The wrapper knows the project root, so it must not let the resolver
163
- infer one from the working directory (#2796)."""
164
-
165
- def _captured_command(self, tmp):
166
- captured = []
167
- original = rp._run_json
168
- rp._run_json = lambda cmd: captured.append(cmd) or {"workflow": {}}
169
- try:
170
- rp.load_workflow(Path(tmp) / "project", Path(tmp) / "skill")
171
- finally:
172
- rp._run_json = original
173
- return captured[0]
174
-
175
- def test_passes_project_root_to_the_customization_resolver(self):
176
- with tempfile.TemporaryDirectory() as tmp:
177
- cmd = self._captured_command(tmp)
178
- self.assertIn("--project-root", cmd)
179
- self.assertEqual(cmd[cmd.index("--project-root") + 1], str(Path(tmp) / "project"))
180
-
181
-
182
- if __name__ == "__main__":
183
- unittest.main()
@@ -1,50 +0,0 @@
1
- ---
2
- name: bmad-review
3
- description: 'Runs one or more installed review lenses — adversarial critique, edge cases, verification gaps, structure, prose — and reports triaged findings. Use when, and only when, the user asks you to review a diff, a pull request, or an artifact — code or documents, one or many — and actually says "review"; an explicit skill:bmad-review directive from another skill counts as that ask. A request to act on feedback from an earlier review is a change, not a review. Never invoke this uninvited, including on edits you just made.'
4
- ---
5
-
6
- # BMad Review
7
-
8
- Review content through lenses — each a distinct method and stance — and report findings in one canonical shape. Report what is real — never pad to look thorough. Each lens sets its own stance toward the content and toward zero findings: for most an empty result is valid; the adversarial lens requires at least ten concrete findings and treats an empty list as a signal to re-check; the editorial lenses hold content sacrosanct and critique only how it is organized and expressed.
9
-
10
- The lens set is whatever `{workflow.lenses}` resolves to, not a fixed list — overrides add lenses and replace shipped ones. Never claim a capability from this file; read the resolved lenses and work from those.
11
-
12
- ## Inputs
13
-
14
- - **content** — what to review: a diff, branch, uncommitted changes, file, spec, story, or any document. Args: `[path]`.
15
- - **lenses** (optional) — one or more lens codes or names, however the caller expresses them: a spoken request, or a directive of the form `skill:bmad-review lenses=<code>[,<code>...]` (the form bmm's `doc_standards` uses). Default: every applicable lens (a full review).
16
- - **also_consider** (optional) — areas to keep in mind alongside each lens's normal analysis.
17
- - **claims** (optional) — the change's own narrative: the commit messages it covers, or whatever description of it the caller supplied. Goes to the edge-case lens alone.
18
- - **pre-resolved customization** (optional) — `[workflow]` field values supplied by a forwarding caller. See Execution step 1.
19
-
20
- ## Conventions
21
-
22
- - Bare paths (e.g. `references/lens-edge-case-hunter.md`) resolve from `{skill-root}` — this skill's installed directory, where `customize.toml` lives. `{project-root}` resolves to the project working directory.
23
- - `{workflow.<name>}` resolves to fields in `customize.toml`'s `[workflow]` table (overrides win per BMad merge rules).
24
- - In `style_guide`, `review_guidance`, and `persistent_facts`, a value prefixed `file:` is a path or glob — load that file's contents. If a `file:` value cannot be read, name the failed file in the output header and continue: the shipped baseline for `style_guide`, the remaining entries otherwise.
25
-
26
- ## Execution
27
-
28
- 1. **Resolve customization:** `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`. On failure, read `{skill-root}/customize.toml` directly and use defaults. **Forwarded activation:** if a caller invoked you with pre-resolved customization fields (e.g. the `bmad-editorial-review` shim), honor them verbatim for those named fields — they already carry the user's overrides — and resolve only the remaining fields from your own `customize.toml`. Then execute each `{workflow.activation_steps_prepend}` entry in order, hold `{workflow.persistent_facts}` as standing context for the session, and treat `{workflow.review_guidance}` entries as standing review directives for every lens.
29
- 2. **Load the content.** Stage it once as a file: when the content is a branch, uncommitted work, or a commit range, use the repository's version-control tooling to write the unified diff to a uniquely-named file in the system temp directory and take that file's absolute path as the content. A branch means its diff against the merge base with its base branch; uncommitted work includes untracked files. Stage `claims` to its own file the same way — it is input for one lens, staged separately precisely so the other lenses never see it. If the content is empty or cannot be decoded as text: when the caller expects the raw findings JSON array (e.g. the legacy edge-case forwarder), return `[{"location":"N/A","trigger_condition":"Input empty or undecodable","guard_snippet":"Provide valid content to review","potential_consequence":"Review skipped — no analysis performed"}]` (no `lens` field) and stop; otherwise say what's wrong and ask for reviewable content. Classify the content — diff, source file, function, or document — and whether it is **code** or **docs**; scope rules and lens applicability both depend on it. A document that defines behavior (spec, requirements, plan, story) is `docs` that a behavioral lens may still apply to; judge by `when`.
30
- 3. **Select lenses** from `{workflow.lenses}`. A lens with an empty `instruction` is disabled. If the user or caller named lenses, run exactly those only — `applies_to` and `when` do not filter an explicit request. Otherwise run every enabled lens whose `applies_to` covers the content class (`any` always covers) and whose `when` applies.
31
- 4. **Announce the plan** in one line before running anything: the content class, the lenses about to run, and — when any lens has `after` set — that it runs on top of the named lens's findings. Skip the announcement entirely when the caller pinned an exact output contract (the legacy forwarders that demand raw JSON or one exact line) — their contract covers everything you emit, not just the findings block. Then execute each `{workflow.activation_steps_append}` entry in order.
32
- 5. **Run the independent lenses** — every selected lens without `after`. Each sees the content and `also_consider`, never another lens's findings. Follow each lens's `instruction`; the shipped lenses load their reference file just-in-time, so load only what runs. When subagents are available, launch every independent lens before handling any lens's result. Try running them simultaneously: spawn one per lens; give it the lens `instruction` with `{skill-root}` and paths resolved absolute, the absolute path of the staged content file (a lens prompt carries the path and the lens reads the file, never the content bytes; inline the content only when it was never staged as a file), any `also_consider` areas, the standing review directives, the `claims` path to the edge-case lens alone (marked to leave unread until its instructions call for it), and the constraint "Return ONLY your findings — no other output. Do not invoke any skill, and do not spawn subagents of your own — you are the reviewer. Return your findings as text in your final message; do not route them through any findings-reporting tool the host may offer." Otherwise run the lenses sequentially yourself, completing one before starting the next.
33
- 6. **Run the dependent lenses** — every selected lens with `after`, once the lens it names has completed, passing that lens's findings in. A lens whose `after` target was not selected or produced nothing still runs, with no prior findings. Dependent lenses that name different targets are independent of each other: launch every ready one before handling any of their results. Try running them simultaneously. When subagents are available, spawn them with the same constraint as independent lenses: "Return ONLY your findings — no other output. Do not invoke any skill, and do not spawn subagents of your own — you are the reviewer. Return your findings as text in your final message; do not route them through any findings-reporting tool the host may offer."
34
- 7. **Assemble and present** per Output below. Keep every lens's findings — overlap between lenses is signal, not duplication; note it in the markdown report rather than deduping. Execute `{workflow.on_complete}` if set.
35
-
36
- ## Output
37
-
38
- One JSON array holding every finding from every lens. Each finding carries:
39
-
40
- - `lens` — the code of the lens that produced it
41
- - `location` — where in the content (file:line-range for code, section for documents)
42
- - `trigger_condition` — the problem, or the condition that exposes it, in one line
43
- - `guard_snippet` — the concrete fix, guard, or missing check
44
- - `potential_consequence` — what goes wrong if it ships as-is
45
-
46
- Each lens file refines these semantics for its findings and may add lens-specific fields (e.g. `kind`/`confidence` on deletion findings, `gap_shape`/`consumer`/`evidence` on verification-gap findings). A lens file may instead declare its own findings shape and rendering — the editorial lenses render a findings table — and that shape wins for that lens's findings. `[]` is valid when nothing is found. No severity, priority, or ranking anywhere.
47
-
48
- Present per `{workflow.output_format}` — `"json"` (the raw array in a fenced json block), `"markdown"`, or `"both"` — unless the caller requested a specific shape; a legacy forwarder's output contract always wins, and governs everything you emit rather than the findings block alone. The markdown report groups findings by lens, each rendered in its declared shape: a short block per finding rendering the fields plus any extras worth surfacing, one line for a lens that found nothing, and a plain clean statement when the whole review is clean. Shape the report per `{workflow.output_preferences}`.
49
-
50
- When `{workflow.report_path}` is set, write the report there; otherwise present it in chat.