bmad-method 6.12.3 → 7.0.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 (388) 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 +260 -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 +54 -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 +124 -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/removals.txt +0 -87
  43. package/src/bmm-skills/agents/bmad-agent-analyst/SKILL.md +0 -76
  44. package/src/bmm-skills/agents/bmad-agent-analyst/customize.toml +0 -103
  45. package/src/bmm-skills/agents/bmad-agent-architect/SKILL.md +0 -76
  46. package/src/bmm-skills/agents/bmad-agent-architect/customize.toml +0 -63
  47. package/src/bmm-skills/agents/bmad-agent-dev/SKILL.md +0 -76
  48. package/src/bmm-skills/agents/bmad-agent-dev/customize.toml +0 -81
  49. package/src/bmm-skills/agents/bmad-agent-pm/SKILL.md +0 -76
  50. package/src/bmm-skills/agents/bmad-agent-pm/customize.toml +0 -73
  51. package/src/bmm-skills/agents/bmad-agent-ux-designer/SKILL.md +0 -76
  52. package/src/bmm-skills/agents/bmad-agent-ux-designer/customize.toml +0 -58
  53. package/src/bmm-skills/module-help.csv +0 -19
  54. package/src/bmm-skills/module.yaml +0 -85
  55. package/src/bmm-skills/plan/bmad-architecture/SKILL.md +0 -85
  56. package/src/bmm-skills/plan/bmad-architecture/assets/spine-template.md +0 -79
  57. package/src/bmm-skills/plan/bmad-architecture/customize.toml +0 -101
  58. package/src/bmm-skills/plan/bmad-architecture/references/headless.md +0 -26
  59. package/src/bmm-skills/plan/bmad-architecture/references/reviewer-gate.md +0 -13
  60. package/src/bmm-skills/plan/bmad-architecture/scripts/lint_spine.py +0 -261
  61. package/src/bmm-skills/plan/bmad-architecture/scripts/tests/test_lint_spine.py +0 -270
  62. package/src/bmm-skills/plan/bmad-create-epics-and-stories/SKILL.md +0 -93
  63. package/src/bmm-skills/plan/bmad-create-epics-and-stories/customize.toml +0 -39
  64. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -263
  65. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -242
  66. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -255
  67. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -141
  68. package/src/bmm-skills/plan/bmad-create-epics-and-stories/templates/epics-template.md +0 -62
  69. package/src/bmm-skills/plan/bmad-generate-project-context/SKILL.md +0 -12
  70. package/src/bmm-skills/plan/bmad-prd/SKILL.md +0 -94
  71. package/src/bmm-skills/plan/bmad-prd/assets/headless-schemas.md +0 -76
  72. package/src/bmm-skills/plan/bmad-prd/assets/prd-template.md +0 -165
  73. package/src/bmm-skills/plan/bmad-prd/assets/prd-validation-checklist.md +0 -135
  74. package/src/bmm-skills/plan/bmad-prd/assets/validation-report-template.html +0 -325
  75. package/src/bmm-skills/plan/bmad-prd/customize.toml +0 -148
  76. package/src/bmm-skills/plan/bmad-prd/references/headless.md +0 -39
  77. package/src/bmm-skills/plan/bmad-prd/references/validate.md +0 -97
  78. package/src/bmm-skills/plan/bmad-prfaq/SKILL.md +0 -135
  79. package/src/bmm-skills/plan/bmad-prfaq/agents/artifact-analyzer.md +0 -60
  80. package/src/bmm-skills/plan/bmad-prfaq/agents/web-researcher.md +0 -49
  81. package/src/bmm-skills/plan/bmad-prfaq/assets/prfaq-template.md +0 -62
  82. package/src/bmm-skills/plan/bmad-prfaq/bmad-manifest.json +0 -16
  83. package/src/bmm-skills/plan/bmad-prfaq/customize.toml +0 -39
  84. package/src/bmm-skills/plan/bmad-prfaq/references/customer-faq.md +0 -55
  85. package/src/bmm-skills/plan/bmad-prfaq/references/internal-faq.md +0 -51
  86. package/src/bmm-skills/plan/bmad-prfaq/references/press-release.md +0 -60
  87. package/src/bmm-skills/plan/bmad-prfaq/references/verdict.md +0 -83
  88. package/src/bmm-skills/plan/bmad-product-brief/SKILL.md +0 -91
  89. package/src/bmm-skills/plan/bmad-product-brief/assets/brief-template.md +0 -41
  90. package/src/bmm-skills/plan/bmad-product-brief/customize.toml +0 -100
  91. package/src/bmm-skills/plan/bmad-project-context/SKILL.md +0 -121
  92. package/src/bmm-skills/plan/bmad-project-context/customize.toml +0 -24
  93. package/src/bmm-skills/plan/bmad-project-context/references/best-practices.md +0 -84
  94. package/src/bmm-skills/plan/bmad-project-context/references/template.md +0 -55
  95. package/src/bmm-skills/plan/bmad-spec/SKILL.md +0 -160
  96. package/src/bmm-skills/plan/bmad-spec/assets/headless-schemas.md +0 -33
  97. package/src/bmm-skills/plan/bmad-spec/assets/spec-template.md +0 -49
  98. package/src/bmm-skills/plan/bmad-spec/assets/stories-schema.md +0 -44
  99. package/src/bmm-skills/plan/bmad-spec/customize.toml +0 -52
  100. package/src/bmm-skills/plan/bmad-sprint-planning/SKILL.md +0 -62
  101. package/src/bmm-skills/plan/bmad-sprint-planning/customize.toml +0 -39
  102. package/src/bmm-skills/plan/bmad-sprint-planning/references/fix-sprint-status.md +0 -30
  103. package/src/bmm-skills/plan/bmad-sprint-planning/references/generate-tracking.md +0 -25
  104. package/src/bmm-skills/plan/bmad-sprint-planning/references/readiness-gate.md +0 -20
  105. package/src/bmm-skills/plan/bmad-sprint-planning/references/status-view.md +0 -14
  106. package/src/bmm-skills/plan/bmad-sprint-planning/references/validate.md +0 -10
  107. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/__pycache__/sprint_plan.cpython-311.pyc +0 -0
  108. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/sprint_plan.py +0 -701
  109. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/__pycache__/test_sprint_plan.cpython-311-pytest-9.1.1.pyc +0 -0
  110. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/test_sprint_plan.py +0 -524
  111. package/src/bmm-skills/plan/bmad-sprint-planning/sprint-status-template.yaml +0 -71
  112. package/src/bmm-skills/plan/bmad-ux/SKILL.md +0 -90
  113. package/src/bmm-skills/plan/bmad-ux/assets/color-themes.md +0 -9
  114. package/src/bmm-skills/plan/bmad-ux/assets/design-directions.md +0 -9
  115. package/src/bmm-skills/plan/bmad-ux/assets/design-example-editorial.md +0 -158
  116. package/src/bmm-skills/plan/bmad-ux/assets/design-example-mobile.md +0 -93
  117. package/src/bmm-skills/plan/bmad-ux/assets/design-example-shadcn.md +0 -109
  118. package/src/bmm-skills/plan/bmad-ux/assets/excalidraw-wireframe.md +0 -19
  119. package/src/bmm-skills/plan/bmad-ux/assets/experience-example-mobile.md +0 -112
  120. package/src/bmm-skills/plan/bmad-ux/assets/experience-example-shadcn.md +0 -133
  121. package/src/bmm-skills/plan/bmad-ux/assets/headless-schemas.md +0 -84
  122. package/src/bmm-skills/plan/bmad-ux/assets/key-screens.md +0 -29
  123. package/src/bmm-skills/plan/bmad-ux/assets/validation-report-template.html +0 -319
  124. package/src/bmm-skills/plan/bmad-ux/customize.toml +0 -100
  125. package/src/bmm-skills/plan/bmad-ux/references/creative-tools.md +0 -19
  126. package/src/bmm-skills/plan/bmad-ux/references/design-md-spec.md +0 -50
  127. package/src/bmm-skills/plan/bmad-ux/references/headless.md +0 -37
  128. package/src/bmm-skills/plan/bmad-ux/references/validate.md +0 -115
  129. package/src/bmm-skills/ship/bmad-build/SKILL.md +0 -13
  130. package/src/bmm-skills/ship/bmad-build/compile-epic-context.md +0 -62
  131. package/src/bmm-skills/ship/bmad-build/customize.toml +0 -152
  132. package/src/bmm-skills/ship/bmad-build/references/claims-check.md +0 -14
  133. package/src/bmm-skills/ship/bmad-build/references/deletion-check.md +0 -14
  134. package/src/bmm-skills/ship/bmad-build/review-prompts/edge-case-hunter.md +0 -112
  135. package/src/bmm-skills/ship/bmad-build/review-prompts/verification-gap.md +0 -113
  136. package/src/bmm-skills/ship/bmad-build/spec-template.md +0 -111
  137. package/src/bmm-skills/ship/bmad-build/step-01-clarify-and-route.md +0 -100
  138. package/src/bmm-skills/ship/bmad-build/step-02-plan.md +0 -62
  139. package/src/bmm-skills/ship/bmad-build/step-03-implement.md +0 -51
  140. package/src/bmm-skills/ship/bmad-build/step-04-review.md +0 -85
  141. package/src/bmm-skills/ship/bmad-build/step-05-present.md +0 -43
  142. package/src/bmm-skills/ship/bmad-build/step-oneshot.md +0 -107
  143. package/src/bmm-skills/ship/bmad-build/sync-sprint-status.md +0 -5
  144. package/src/bmm-skills/ship/bmad-build/workflow.md +0 -84
  145. package/src/bmm-skills/ship/bmad-build-auto/SKILL.md +0 -13
  146. package/src/bmm-skills/ship/bmad-build-auto/compile-epic-context.md +0 -62
  147. package/src/bmm-skills/ship/bmad-build-auto/customize.toml +0 -119
  148. package/src/bmm-skills/ship/bmad-build-auto/references/claims-check.md +0 -14
  149. package/src/bmm-skills/ship/bmad-build-auto/references/deletion-check.md +0 -14
  150. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/edge-case-hunter.md +0 -112
  151. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/verification-gap.md +0 -113
  152. package/src/bmm-skills/ship/bmad-build-auto/spec-template.md +0 -96
  153. package/src/bmm-skills/ship/bmad-build-auto/step-01-clarify-and-route.md +0 -84
  154. package/src/bmm-skills/ship/bmad-build-auto/step-02-plan.md +0 -27
  155. package/src/bmm-skills/ship/bmad-build-auto/step-03-implement.md +0 -48
  156. package/src/bmm-skills/ship/bmad-build-auto/step-04-review.md +0 -116
  157. package/src/bmm-skills/ship/bmad-build-auto/workflow.md +0 -104
  158. package/src/bmm-skills/ship/bmad-code-review/SKILL.md +0 -90
  159. package/src/bmm-skills/ship/bmad-code-review/customize.toml +0 -110
  160. package/src/bmm-skills/ship/bmad-code-review/references/claims-check.md +0 -14
  161. package/src/bmm-skills/ship/bmad-code-review/references/deletion-check.md +0 -14
  162. package/src/bmm-skills/ship/bmad-code-review/review-prompts/edge-case-hunter.md +0 -112
  163. package/src/bmm-skills/ship/bmad-code-review/review-prompts/verification-gap.md +0 -113
  164. package/src/bmm-skills/ship/bmad-code-review/steps/step-01-gather-context.md +0 -94
  165. package/src/bmm-skills/ship/bmad-code-review/steps/step-02-review.md +0 -32
  166. package/src/bmm-skills/ship/bmad-code-review/steps/step-03-triage.md +0 -54
  167. package/src/bmm-skills/ship/bmad-code-review/steps/step-04-present.md +0 -134
  168. package/src/bmm-skills/ship/bmad-correct-course/SKILL.md +0 -308
  169. package/src/bmm-skills/ship/bmad-correct-course/checklist.md +0 -288
  170. package/src/bmm-skills/ship/bmad-correct-course/customize.toml +0 -39
  171. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/SKILL.md +0 -176
  172. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/checklist.md +0 -33
  173. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/customize.toml +0 -39
  174. package/src/bmm-skills/ship/bmad-retrospective/SKILL.md +0 -94
  175. package/src/bmm-skills/ship/bmad-retrospective/customize.toml +0 -39
  176. package/src/bmm-skills/ship/bmad-retrospective/references/acceptance-verdict.md +0 -55
  177. package/src/bmm-skills/ship/bmad-retrospective/references/aggregate-views.md +0 -17
  178. package/src/bmm-skills/ship/bmad-retrospective/references/evidence-gathering.md +0 -30
  179. package/src/bmm-skills/ship/bmad-retrospective/references/retro-document.md +0 -84
  180. package/src/bmm-skills/ship/bmad-retrospective/references/team-discussion.md +0 -22
  181. package/src/bmm-skills/ship/bmad-retrospective/scripts/__pycache__/sprint_status.cpython-311.pyc +0 -0
  182. package/src/bmm-skills/ship/bmad-retrospective/scripts/git_evidence.py +0 -308
  183. package/src/bmm-skills/ship/bmad-retrospective/scripts/sprint_status.py +0 -750
  184. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_git_evidence.cpython-311-pytest-9.1.1.pyc +0 -0
  185. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_sprint_status.cpython-311-pytest-9.1.1.pyc +0 -0
  186. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/fixtures/sprint-status-template.yaml +0 -71
  187. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_git_evidence.py +0 -750
  188. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_sprint_status.py +0 -1579
  189. package/src/bmm-skills/ship/bmad-walkthrough/SKILL.md +0 -68
  190. package/src/bmm-skills/ship/bmad-walkthrough/customize.toml +0 -39
  191. package/src/bmm-skills/ship/bmad-walkthrough/generate-trail.md +0 -38
  192. package/src/bmm-skills/ship/bmad-walkthrough/step-01-orientation.md +0 -105
  193. package/src/bmm-skills/ship/bmad-walkthrough/step-02-walkthrough.md +0 -89
  194. package/src/bmm-skills/ship/bmad-walkthrough/step-03-detail-pass.md +0 -106
  195. package/src/bmm-skills/ship/bmad-walkthrough/step-04-testing.md +0 -74
  196. package/src/bmm-skills/ship/bmad-walkthrough/step-05-wrapup.md +0 -30
  197. package/src/bmm-skills/v6-shims/README.md +0 -29
  198. package/src/bmm-skills/v6-shims/bmad-checkpoint-preview/SKILL.md +0 -21
  199. package/src/bmm-skills/v6-shims/bmad-create-architecture/SKILL.md +0 -32
  200. package/src/bmm-skills/v6-shims/bmad-create-architecture/customize.toml +0 -39
  201. package/src/bmm-skills/v6-shims/bmad-create-prd/SKILL.md +0 -32
  202. package/src/bmm-skills/v6-shims/bmad-create-prd/customize.toml +0 -39
  203. package/src/bmm-skills/v6-shims/bmad-create-story/SKILL.md +0 -436
  204. package/src/bmm-skills/v6-shims/bmad-create-story/checklist.md +0 -357
  205. package/src/bmm-skills/v6-shims/bmad-create-story/customize.toml +0 -39
  206. package/src/bmm-skills/v6-shims/bmad-create-story/discover-inputs.md +0 -88
  207. package/src/bmm-skills/v6-shims/bmad-create-story/template.md +0 -49
  208. package/src/bmm-skills/v6-shims/bmad-dev-auto/SKILL.md +0 -21
  209. package/src/bmm-skills/v6-shims/bmad-dev-story/SKILL.md +0 -504
  210. package/src/bmm-skills/v6-shims/bmad-dev-story/checklist.md +0 -80
  211. package/src/bmm-skills/v6-shims/bmad-dev-story/customize.toml +0 -39
  212. package/src/bmm-skills/v6-shims/bmad-document-project/SKILL.md +0 -16
  213. package/src/bmm-skills/v6-shims/bmad-domain-research/SKILL.md +0 -16
  214. package/src/bmm-skills/v6-shims/bmad-edit-prd/SKILL.md +0 -32
  215. package/src/bmm-skills/v6-shims/bmad-edit-prd/customize.toml +0 -40
  216. package/src/bmm-skills/v6-shims/bmad-market-research/SKILL.md +0 -16
  217. package/src/bmm-skills/v6-shims/bmad-quick-dev/SKILL.md +0 -21
  218. package/src/bmm-skills/v6-shims/bmad-sprint-status/SKILL.md +0 -28
  219. package/src/bmm-skills/v6-shims/bmad-sprint-status/customize.toml +0 -39
  220. package/src/bmm-skills/v6-shims/bmad-technical-research/SKILL.md +0 -16
  221. package/src/bmm-skills/v6-shims/bmad-validate-prd/SKILL.md +0 -32
  222. package/src/bmm-skills/v6-shims/bmad-validate-prd/customize.toml +0 -40
  223. package/src/core-skills/bmad-advanced-elicitation/SKILL.md +0 -64
  224. package/src/core-skills/bmad-advanced-elicitation/assets/methods.csv +0 -72
  225. package/src/core-skills/bmad-advanced-elicitation/customize.toml +0 -54
  226. package/src/core-skills/bmad-advanced-elicitation/scripts/pick_methods.py +0 -233
  227. package/src/core-skills/bmad-advanced-elicitation/scripts/tests/test_pick_methods.py +0 -228
  228. package/src/core-skills/bmad-brainstorming/SKILL.md +0 -80
  229. package/src/core-skills/bmad-brainstorming/assets/brain-icons.json +0 -166
  230. package/src/core-skills/bmad-brainstorming/assets/brain-methods.csv +0 -109
  231. package/src/core-skills/bmad-brainstorming/assets/brain-selector.html +0 -328
  232. package/src/core-skills/bmad-brainstorming/customize.toml +0 -83
  233. package/src/core-skills/bmad-brainstorming/references/converge.md +0 -24
  234. package/src/core-skills/bmad-brainstorming/references/finalize.md +0 -26
  235. package/src/core-skills/bmad-brainstorming/references/headless.md +0 -54
  236. package/src/core-skills/bmad-brainstorming/references/in-chat-techniques.md +0 -18
  237. package/src/core-skills/bmad-brainstorming/references/mode-autonomous.md +0 -10
  238. package/src/core-skills/bmad-brainstorming/references/mode-facilitator.md +0 -11
  239. package/src/core-skills/bmad-brainstorming/references/mode-partner.md +0 -16
  240. package/src/core-skills/bmad-brainstorming/references/resume.md +0 -5
  241. package/src/core-skills/bmad-brainstorming/scripts/brain.py +0 -789
  242. package/src/core-skills/bmad-brainstorming/scripts/tests/test_brain.py +0 -289
  243. package/src/core-skills/bmad-customize/SKILL.md +0 -111
  244. package/src/core-skills/bmad-customize/scripts/list_customizable_skills.py +0 -235
  245. package/src/core-skills/bmad-customize/scripts/tests/test_list_customizable_skills.py +0 -249
  246. package/src/core-skills/bmad-deep-recon/SKILL.md +0 -82
  247. package/src/core-skills/bmad-deep-recon/assets/research.template.md +0 -18
  248. package/src/core-skills/bmad-deep-recon/customize.toml +0 -212
  249. package/src/core-skills/bmad-deep-recon/references/draft.md +0 -8
  250. package/src/core-skills/bmad-deep-recon/references/finalize.md +0 -11
  251. package/src/core-skills/bmad-deep-recon/references/html-briefing.md +0 -16
  252. package/src/core-skills/bmad-deep-recon/references/lifecycle.md +0 -11
  253. package/src/core-skills/bmad-deep-recon/references/process.md +0 -10
  254. package/src/core-skills/bmad-deep-recon/references/run.md +0 -73
  255. package/src/core-skills/bmad-deep-recon/references/selection.md +0 -13
  256. package/src/core-skills/bmad-deep-recon/references/synthesis.md +0 -16
  257. package/src/core-skills/bmad-deep-recon/references/verification.md +0 -29
  258. package/src/core-skills/bmad-deep-recon/scripts/recon_kit.py +0 -326
  259. package/src/core-skills/bmad-deep-recon/scripts/tests/test_recon_kit.py +0 -144
  260. package/src/core-skills/bmad-deep-recon/types/academic-lit.md +0 -19
  261. package/src/core-skills/bmad-deep-recon/types/competitive.md +0 -19
  262. package/src/core-skills/bmad-deep-recon/types/domain.md +0 -19
  263. package/src/core-skills/bmad-deep-recon/types/market.md +0 -19
  264. package/src/core-skills/bmad-deep-recon/types/technical.md +0 -19
  265. package/src/core-skills/bmad-deep-recon/types/user-voice.md +0 -19
  266. package/src/core-skills/bmad-forge-idea/SKILL.md +0 -107
  267. package/src/core-skills/bmad-forge-idea/customize.toml +0 -41
  268. package/src/core-skills/bmad-forge-idea/scripts/resolve_personas.py +0 -277
  269. package/src/core-skills/bmad-forge-idea/scripts/tests/test_resolve_personas.py +0 -160
  270. package/src/core-skills/bmad-help/SKILL.md +0 -77
  271. package/src/core-skills/bmad-party-mode/SKILL.md +0 -60
  272. package/src/core-skills/bmad-party-mode/customize.toml +0 -211
  273. package/src/core-skills/bmad-party-mode/references/create-party.md +0 -70
  274. package/src/core-skills/bmad-party-mode/references/mode-agent-team.md +0 -13
  275. package/src/core-skills/bmad-party-mode/references/mode-auto.md +0 -13
  276. package/src/core-skills/bmad-party-mode/references/mode-subagent.md +0 -31
  277. package/src/core-skills/bmad-party-mode/references/party-memory.md +0 -51
  278. package/src/core-skills/bmad-party-mode/scripts/resolve_party.py +0 -300
  279. package/src/core-skills/bmad-party-mode/scripts/tests/test_resolve_party.py +0 -183
  280. package/src/core-skills/bmad-review/SKILL.md +0 -50
  281. package/src/core-skills/bmad-review/customize.toml +0 -141
  282. package/src/core-skills/bmad-review/references/editorial-common.md +0 -56
  283. package/src/core-skills/bmad-review/references/lens-adversarial.md +0 -19
  284. package/src/core-skills/bmad-review/references/lens-edge-case-hunter.md +0 -72
  285. package/src/core-skills/bmad-review/references/lens-prose.md +0 -7
  286. package/src/core-skills/bmad-review/references/lens-structure.md +0 -9
  287. package/src/core-skills/bmad-review/references/lens-verification-gap.md +0 -92
  288. package/src/core-skills/bmad-review/references/structure-models.md +0 -44
  289. package/src/core-skills/bmad-review/scripts/tests/test_word_metrics.py +0 -62
  290. package/src/core-skills/bmad-review/scripts/word_metrics.py +0 -102
  291. package/src/core-skills/module-help.csv +0 -10
  292. package/src/core-skills/module.yaml +0 -38
  293. package/src/core-skills/v6-shims/README.md +0 -25
  294. package/src/core-skills/v6-shims/bmad-editorial-review/SKILL.md +0 -8
  295. package/src/core-skills/v6-shims/bmad-editorial-review/customize.toml +0 -31
  296. package/src/core-skills/v6-shims/bmad-editorial-review-prose/SKILL.md +0 -8
  297. package/src/core-skills/v6-shims/bmad-editorial-review-structure/SKILL.md +0 -8
  298. package/src/core-skills/v6-shims/bmad-review-adversarial-general/SKILL.md +0 -8
  299. package/src/core-skills/v6-shims/bmad-review-edge-case-hunter/SKILL.md +0 -8
  300. package/src/core-skills/v6-shims/bmad-review-verification-gap/SKILL.md +0 -8
  301. package/src/scripts/__pycache__/config_utils.cpython-311.pyc +0 -0
  302. package/src/scripts/config_utils.py +0 -119
  303. package/src/scripts/memlog.py +0 -228
  304. package/src/scripts/render_skill.py +0 -401
  305. package/src/scripts/resolve_config.py +0 -82
  306. package/src/scripts/resolve_customization.py +0 -164
  307. package/src/scripts/tests/__pycache__/test_config_utils.cpython-311.pyc +0 -0
  308. package/src/scripts/tests/__pycache__/test_resolve_config.cpython-311.pyc +0 -0
  309. package/src/scripts/tests/__pycache__/test_resolve_customization.cpython-311.pyc +0 -0
  310. package/src/scripts/tests/test_config_utils.py +0 -85
  311. package/src/scripts/tests/test_memlog.py +0 -306
  312. package/src/scripts/tests/test_resolve_config.py +0 -117
  313. package/src/scripts/tests/test_resolve_customization.py +0 -179
  314. package/tools/bundle-web-bundles.js +0 -117
  315. package/tools/format-workflow-md.js +0 -263
  316. package/tools/installer/README.md +0 -60
  317. package/tools/installer/bmad-cli.js +0 -105
  318. package/tools/installer/cli-utils.js +0 -57
  319. package/tools/installer/commands/install.js +0 -151
  320. package/tools/installer/commands/status.js +0 -65
  321. package/tools/installer/commands/uninstall.js +0 -167
  322. package/tools/installer/core/config.js +0 -76
  323. package/tools/installer/core/existing-install.js +0 -121
  324. package/tools/installer/core/install-paths.js +0 -132
  325. package/tools/installer/core/installer.js +0 -1826
  326. package/tools/installer/core/legacy-warnings.js +0 -151
  327. package/tools/installer/core/manifest-generator.js +0 -883
  328. package/tools/installer/core/manifest.js +0 -439
  329. package/tools/installer/core/shim-policy.js +0 -159
  330. package/tools/installer/core/uv-check.js +0 -195
  331. package/tools/installer/core/wsl-node-check.js +0 -109
  332. package/tools/installer/file-ops.js +0 -204
  333. package/tools/installer/fs-native.js +0 -116
  334. package/tools/installer/ide/_config-driven.js +0 -972
  335. package/tools/installer/ide/manager.js +0 -324
  336. package/tools/installer/ide/platform-codes.js +0 -80
  337. package/tools/installer/ide/platform-codes.yaml +0 -363
  338. package/tools/installer/ide/shared/installed-skills.js +0 -50
  339. package/tools/installer/ide/shared/path-utils.js +0 -219
  340. package/tools/installer/ide/shared/skill-manifest.js +0 -57
  341. package/tools/installer/install-messages.yaml +0 -44
  342. package/tools/installer/list-options.js +0 -210
  343. package/tools/installer/message-loader.js +0 -83
  344. package/tools/installer/modules/channel-plan.js +0 -216
  345. package/tools/installer/modules/channel-resolver.js +0 -241
  346. package/tools/installer/modules/custom-module-manager.js +0 -924
  347. package/tools/installer/modules/external-manager.js +0 -673
  348. package/tools/installer/modules/git-env.js +0 -47
  349. package/tools/installer/modules/module-help-schema.js +0 -13
  350. package/tools/installer/modules/official-modules.js +0 -2289
  351. package/tools/installer/modules/plugin-resolver.js +0 -398
  352. package/tools/installer/modules/version-resolver.js +0 -336
  353. package/tools/installer/project-root.js +0 -224
  354. package/tools/installer/prompts.js +0 -804
  355. package/tools/installer/set-overrides.js +0 -330
  356. package/tools/installer/ui.js +0 -2225
  357. package/tools/installer/yaml-format.js +0 -245
  358. package/tools/javascript-conventions.md +0 -5
  359. package/tools/migrate-custom-module-paths.js +0 -124
  360. package/tools/skill-validator.md +0 -312
  361. package/tools/tests/__pycache__/test_validate_skills.cpython-311.pyc +0 -0
  362. package/tools/tests/fixtures/validate-skills/bmad/SKILL.md +0 -8
  363. package/tools/tests/fixtures/validate-skills/deprecated-shim/SKILL.md +0 -9
  364. package/tools/tests/fixtures/validate-skills/missing-trigger/SKILL.md +0 -9
  365. package/tools/tests/fixtures/validate-skills/with-trigger/SKILL.md +0 -8
  366. package/tools/tests/test_validate_skills.py +0 -476
  367. package/tools/validate-published-implementation-model.mjs +0 -59
  368. package/tools/validate-sidebar-order.js +0 -388
  369. package/tools/validate-svg-changes.sh +0 -356
  370. package/tools/validate_skills.py +0 -698
  371. package/web-bundles/README.md +0 -46
  372. package/web-bundles/brainstorming-coach/INSTRUCTIONS.md +0 -86
  373. package/web-bundles/brainstorming-coach/SKILL.md +0 -83
  374. package/web-bundles/brainstorming-coach/brain-methods.csv +0 -62
  375. package/web-bundles/bundles.json +0 -139
  376. package/web-bundles/market-and-industry-research/INSTRUCTIONS.md +0 -88
  377. package/web-bundles/market-and-industry-research/SKILL.md +0 -59
  378. package/web-bundles/prd-coach/INSTRUCTIONS.md +0 -86
  379. package/web-bundles/prd-coach/SKILL.md +0 -101
  380. package/web-bundles/prd-coach/prd-template.md +0 -165
  381. package/web-bundles/prd-coach/prd-validation-checklist.md +0 -135
  382. package/web-bundles/prfaq-coach/INSTRUCTIONS.md +0 -86
  383. package/web-bundles/prfaq-coach/SKILL.md +0 -139
  384. package/web-bundles/product-brief-coach/INSTRUCTIONS.md +0 -86
  385. package/web-bundles/product-brief-coach/SKILL.md +0 -113
  386. package/web-bundles/ux-coach/INSTRUCTIONS.md +0 -92
  387. package/web-bundles/ux-coach/SKILL.md +0 -187
  388. package/web-bundles/ux-coach/ux-validation.md +0 -100
@@ -1,330 +0,0 @@
1
- // `--set <module>.<key>=<value>` is a post-install patch. The installer runs
2
- // its normal flow and writes `_bmad/config.toml`, `_bmad/config.user.toml`,
3
- // and `_bmad/<module>/config.yaml`; afterwards `applySetOverrides` upserts
4
- // each override into those files.
5
- //
6
- // This is intentionally NOT integrated with the prompt/template/schema
7
- // system. Tradeoffs:
8
- // - No `result:` template rendering: `--set bmm.project_knowledge=research`
9
- // writes "research" verbatim. Pass `--set bmm.project_knowledge='{project-root}/research'`
10
- // if you want the rendered form.
11
- // - Carry-forward across installs is best-effort: declared schema keys
12
- // persist via the existingValue path on the next interactive run; values
13
- // for keys outside any module's schema may need to be re-passed on each
14
- // install (or edited directly in `_bmad/config.toml`).
15
- // - No "key not in schema" validation: whatever you assert, we write.
16
- //
17
- // Names that, when used as object keys, can mutate `Object.prototype` and
18
- // cascade into every plain-object lookup in the process. The `--set` pipeline
19
- // assigns into plain `{}` maps keyed by user input, so `--set __proto__.x=1`
20
- // would otherwise reach `overrides.__proto__[x] = 1` and pollute every plain
21
- // object. We reject the names at parse time and harden the maps in
22
- // `parseSetEntries` with `Object.create(null)` for defense-in-depth.
23
- const PROTOTYPE_POLLUTING_NAMES = new Set(['__proto__', 'prototype', 'constructor']);
24
-
25
- const path = require('node:path');
26
- const fs = require('./fs-native');
27
- const yaml = require('yaml');
28
-
29
- /**
30
- * Parse a single `--set <module>.<key>=<value>` entry.
31
- * @param {string} entry - raw flag value
32
- * @returns {{module: string, key: string, value: string}}
33
- * @throws {Error} on malformed input
34
- */
35
- function parseSetEntry(entry) {
36
- if (typeof entry !== 'string' || entry.length === 0) {
37
- throw new Error('--set: empty entry. Expected <module>.<key>=<value>');
38
- }
39
- const eq = entry.indexOf('=');
40
- if (eq === -1) {
41
- throw new Error(`--set "${entry}": missing '='. Expected <module>.<key>=<value>`);
42
- }
43
- const lhs = entry.slice(0, eq);
44
- // Note: only the LHS is trimmed. Values may legitimately contain leading
45
- // or trailing whitespace (paths with spaces, quoted strings); module / key
46
- // names cannot, so it's safe to be strict on the left.
47
- const value = entry.slice(eq + 1);
48
- const dot = lhs.indexOf('.');
49
- if (dot === -1) {
50
- throw new Error(`--set "${entry}": missing '.'. Expected <module>.<key>=<value>`);
51
- }
52
- const moduleCode = lhs.slice(0, dot).trim();
53
- const key = lhs.slice(dot + 1).trim();
54
- if (!moduleCode || !key) {
55
- throw new Error(`--set "${entry}": empty module or key. Expected <module>.<key>=<value>`);
56
- }
57
- if (PROTOTYPE_POLLUTING_NAMES.has(moduleCode) || PROTOTYPE_POLLUTING_NAMES.has(key)) {
58
- throw new Error(
59
- `--set "${entry}": '__proto__', 'prototype', and 'constructor' are reserved and cannot be used as a module or key name.`,
60
- );
61
- }
62
- return { module: moduleCode, key, value };
63
- }
64
-
65
- /**
66
- * Parse repeated `--set` entries into a `{ module: { key: value } }` map.
67
- * Later entries overwrite earlier ones for the same key. Both the outer
68
- * map and the per-module inner maps are `Object.create(null)` so callers
69
- * that bypass `parseSetEntry`'s name check still can't pollute prototypes.
70
- *
71
- * @param {string[]} entries
72
- * @returns {Object<string, Object<string, string>>}
73
- */
74
- function parseSetEntries(entries) {
75
- const overrides = Object.create(null);
76
- if (!Array.isArray(entries)) return overrides;
77
- for (const entry of entries) {
78
- const { module: moduleCode, key, value } = parseSetEntry(entry);
79
- if (!overrides[moduleCode]) overrides[moduleCode] = Object.create(null);
80
- overrides[moduleCode][key] = value;
81
- }
82
- return overrides;
83
- }
84
-
85
- /**
86
- * Encode a JS string as a TOML basic string (double-quoted with escapes).
87
- * @param {string} value
88
- */
89
- function tomlString(value) {
90
- const s = String(value);
91
- // Per the TOML spec, basic strings escape `\`, `"`, and control characters.
92
- return (
93
- '"' +
94
- s
95
- .replaceAll('\\', '\\\\')
96
- .replaceAll('"', String.raw`\"`)
97
- .replaceAll('\b', String.raw`\b`)
98
- .replaceAll('\f', String.raw`\f`)
99
- .replaceAll('\n', String.raw`\n`)
100
- .replaceAll('\r', String.raw`\r`)
101
- .replaceAll('\t', String.raw`\t`) +
102
- '"'
103
- );
104
- }
105
-
106
- /**
107
- * Section header for a given module code.
108
- * - `core` → `[core]`
109
- * - `<other>` → `[modules.<other>]`
110
- *
111
- * Mirrors the layout `manifest-generator.writeCentralConfig` produces.
112
- */
113
- function sectionHeader(moduleCode) {
114
- return moduleCode === 'core' ? '[core]' : `[modules.${moduleCode}]`;
115
- }
116
-
117
- /**
118
- * Insert or update `key = value` inside a TOML section, returning the new
119
- * file content. The format produced by the installer is regular and small
120
- * enough that a line scanner is more reliable than pulling in a TOML
121
- * round-tripper that would normalize the file's existing whitespace and
122
- * comment structure.
123
- *
124
- * - If `[section]` exists and contains `key`, replace the value on that
125
- * line (preserving any inline comment after the value).
126
- * - If `[section]` exists but `key` doesn't, append `key = value` at the
127
- * end of the section (before the next `[...]` header or EOF, skipping
128
- * trailing blank lines so the section stays tidy).
129
- * - If `[section]` doesn't exist, append a new section block at EOF.
130
- *
131
- * @param {string} content existing file content (may be empty)
132
- * @param {string} section exact `[section]` header to target
133
- * @param {string} key
134
- * @param {string} valueToml already TOML-encoded value (e.g. `"foo"`)
135
- * @returns {string} new content
136
- */
137
- function upsertTomlKey(content, section, key, valueToml) {
138
- const lines = content.split('\n');
139
- // Track whether the file already ended with a newline so we can preserve
140
- // that. `split('\n')` on `"a\n"` yields `['a', '']`, which gives us the
141
- // marker we need.
142
- const hadTrailingNewline = lines.length > 0 && lines.at(-1) === '';
143
- if (hadTrailingNewline) lines.pop();
144
-
145
- // Locate the target section.
146
- const sectionStart = lines.findIndex((line) => line.trim() === section);
147
- if (sectionStart === -1) {
148
- // Section doesn't exist — append a new block. Pad with a blank line if
149
- // the file is non-empty so sections stay visually separated.
150
- if (lines.length > 0 && lines.at(-1).trim() !== '') lines.push('');
151
- lines.push(section, `${key} = ${valueToml}`);
152
- return lines.join('\n') + (hadTrailingNewline ? '\n' : '');
153
- }
154
-
155
- // Find the section's end (next `[...]` header or EOF).
156
- let sectionEnd = lines.length;
157
- for (let i = sectionStart + 1; i < lines.length; i++) {
158
- if (/^\s*\[/.test(lines[i])) {
159
- sectionEnd = i;
160
- break;
161
- }
162
- }
163
-
164
- // Look for the key inside the section. Match `<key> = ...` allowing
165
- // optional leading whitespace; preserve the comment tail (`# ...`) if any.
166
- const keyPattern = new RegExp(`^(\\s*)${escapeRegExp(key)}\\s*=\\s*(.*)$`);
167
- for (let i = sectionStart + 1; i < sectionEnd; i++) {
168
- const match = lines[i].match(keyPattern);
169
- if (match) {
170
- const indent = match[1];
171
- // Preserve trailing comment if present. We split on the first `#` that
172
- // is preceded by whitespace — TOML strings can't contain unescaped `#`
173
- // in basic-string form so this is safe for the values we emit.
174
- const tail = match[2];
175
- const commentIdx = tail.search(/\s+#/);
176
- const commentSuffix = commentIdx === -1 ? '' : tail.slice(commentIdx);
177
- lines[i] = `${indent}${key} = ${valueToml}${commentSuffix}`;
178
- return lines.join('\n') + (hadTrailingNewline ? '\n' : '');
179
- }
180
- }
181
-
182
- // Section exists but key doesn't. Insert before the next section header,
183
- // skipping trailing blank lines inside the current section so the new
184
- // entry sits with its siblings.
185
- let insertAt = sectionEnd;
186
- while (insertAt > sectionStart + 1 && lines[insertAt - 1].trim() === '') {
187
- insertAt--;
188
- }
189
- lines.splice(insertAt, 0, `${key} = ${valueToml}`);
190
- return lines.join('\n') + (hadTrailingNewline ? '\n' : '');
191
- }
192
-
193
- function escapeRegExp(s) {
194
- return s.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`);
195
- }
196
-
197
- /**
198
- * Look up `[section] key` in a TOML file. Returns true if the file exists,
199
- * the section is present, and `key` is set within it. Used by
200
- * `applySetOverrides` to route an override to the file that already owns
201
- * the key (so user-scope keys land in `config.user.toml`, team-scope keys
202
- * land in `config.toml`).
203
- */
204
- async function tomlHasKey(filePath, section, key) {
205
- if (!(await fs.pathExists(filePath))) return false;
206
- const content = await fs.readFile(filePath, 'utf8');
207
- const lines = content.split('\n');
208
- const sectionStart = lines.findIndex((line) => line.trim() === section);
209
- if (sectionStart === -1) return false;
210
- const keyPattern = new RegExp(`^\\s*${escapeRegExp(key)}\\s*=`);
211
- for (let i = sectionStart + 1; i < lines.length; i++) {
212
- if (/^\s*\[/.test(lines[i])) return false;
213
- if (keyPattern.test(lines[i])) return true;
214
- }
215
- return false;
216
- }
217
-
218
- /**
219
- * Apply parsed `--set` overrides to the central TOML files written by the
220
- * installer. Called at the end of an install / quick-update.
221
- *
222
- * Routing per (module, key):
223
- * 1. If `_bmad/config.user.toml` already has `[section] key`, update there
224
- * (user-scope key like `core.user_name`, `bmm.user_skill_level`).
225
- * 2. Otherwise update `_bmad/config.toml` (team scope, the default).
226
- *
227
- * The schema-correct user/team partition lives in `manifest-generator`. We
228
- * intentionally don't re-read module schemas here — the only goal is to
229
- * match the file the installer just wrote the key to. For brand-new keys
230
- * (not in either file yet), team scope is the safe default.
231
- *
232
- * @param {Object<string, Object<string, string>>} overrides
233
- * @param {string} bmadDir absolute path to `_bmad/`
234
- * @returns {Promise<Array<{module:string,key:string,scope:'team'|'user',file:string}>>}
235
- * a list of applied entries (for caller logging)
236
- */
237
- async function applySetOverrides(overrides, bmadDir) {
238
- const applied = [];
239
- if (!overrides || typeof overrides !== 'object') return applied;
240
-
241
- const teamPath = path.join(bmadDir, 'config.toml');
242
- const userPath = path.join(bmadDir, 'config.user.toml');
243
-
244
- for (const moduleCode of Object.keys(overrides)) {
245
- // Skip overrides for modules not actually installed. The installer writes
246
- // `_bmad/<module>/config.yaml` for every installed module (including core),
247
- // so its presence is a reliable "is this module here?" signal that works
248
- // for both fresh installs and quick-updates without coupling to caller-
249
- // supplied module lists.
250
- const moduleConfigYaml = path.join(bmadDir, moduleCode, 'config.yaml');
251
- if (!(await fs.pathExists(moduleConfigYaml))) {
252
- continue;
253
- }
254
-
255
- const section = sectionHeader(moduleCode);
256
- const moduleOverrides = overrides[moduleCode] || {};
257
- for (const key of Object.keys(moduleOverrides)) {
258
- const value = moduleOverrides[key];
259
- const valueToml = tomlString(value);
260
-
261
- const userOwnsIt = await tomlHasKey(userPath, section, key);
262
- const targetPath = userOwnsIt ? userPath : teamPath;
263
-
264
- // The team file always exists post-install; the user file only exists
265
- // if the install wrote at least one user-scope key. If we're routing to
266
- // it but it doesn't exist yet, create it with a minimal header so it
267
- // has the same shape as installer-written user toml.
268
- let content = '';
269
- if (await fs.pathExists(targetPath)) {
270
- content = await fs.readFile(targetPath, 'utf8');
271
- } else {
272
- content = '# Personal overrides for _bmad/config.toml.\n';
273
- }
274
-
275
- const next = upsertTomlKey(content, section, key, valueToml);
276
- await fs.writeFile(targetPath, next, 'utf8');
277
- applied.push({
278
- module: moduleCode,
279
- key,
280
- scope: userOwnsIt ? 'user' : 'team',
281
- file: path.basename(targetPath),
282
- });
283
- }
284
-
285
- // Also patch the per-module yaml (`_bmad/<module>/config.yaml`). The
286
- // installer reads this file as `_existingConfig` on subsequent runs and
287
- // surfaces declared values as prompt defaults — under `--yes` those
288
- // defaults are accepted, so patching here gives `--set` natural
289
- // carry-forward for declared keys without needing schema-strict
290
- // partition exemptions in the manifest writer. For undeclared keys the
291
- // value lives in the per-module yaml but won't be re-emitted into
292
- // config.toml on the next install (the schema-strict partition drops
293
- // it); re-pass `--set` if you need it sticky.
294
- const moduleYamlPath = path.join(bmadDir, moduleCode, 'config.yaml');
295
- if (await fs.pathExists(moduleYamlPath)) {
296
- try {
297
- const text = await fs.readFile(moduleYamlPath, 'utf8');
298
- const parsed = yaml.parse(text);
299
- if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) {
300
- // Preserve the installer's banner header (everything up to the
301
- // first non-comment line) so `_bmad/<module>/config.yaml` keeps
302
- // its provenance comments after we round-trip it.
303
- const headerLines = [];
304
- for (const line of text.split('\n')) {
305
- if (line.startsWith('#') || line.trim() === '') {
306
- headerLines.push(line);
307
- } else {
308
- break;
309
- }
310
- }
311
- for (const key of Object.keys(moduleOverrides)) {
312
- parsed[key] = moduleOverrides[key];
313
- }
314
- const body = yaml.stringify(parsed, { indent: 2, lineWidth: 0, minContentWidth: 0 });
315
- const header = headerLines.length > 0 ? headerLines.join('\n') + '\n' : '';
316
- await fs.writeFile(moduleYamlPath, header + body, 'utf8');
317
- }
318
- } catch {
319
- // Per-module yaml unparseable — skip silently. The central toml was
320
- // already patched above, which is the user-visible state for the
321
- // current install. Carry-forward will fail next install but the
322
- // current install reflects the override.
323
- }
324
- }
325
- }
326
-
327
- return applied;
328
- }
329
-
330
- module.exports = { parseSetEntry, parseSetEntries, applySetOverrides, upsertTomlKey, tomlString };