bmad-method 6.10.1-next.2 → 6.10.1-next.20

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 (155) hide show
  1. package/.claude-plugin/marketplace.json +52 -27
  2. package/package.json +4 -3
  3. package/removals.txt +5 -0
  4. package/src/bmm-skills/1-analysis/bmad-agent-analyst/customize.toml +19 -4
  5. package/src/bmm-skills/1-analysis/bmad-product-brief/SKILL.md +1 -1
  6. package/src/bmm-skills/1-analysis/bmad-product-brief/customize.toml +5 -3
  7. package/src/bmm-skills/2-plan-workflows/bmad-prd/SKILL.md +2 -0
  8. package/src/bmm-skills/2-plan-workflows/bmad-prd/customize.toml +5 -3
  9. package/src/{core-skills → bmm-skills/2-plan-workflows}/bmad-spec/SKILL.md +18 -3
  10. package/src/{core-skills → bmm-skills/2-plan-workflows}/bmad-spec/assets/spec-template.md +1 -1
  11. package/src/bmm-skills/2-plan-workflows/bmad-spec/assets/stories-schema.md +44 -0
  12. package/src/{core-skills → bmm-skills/2-plan-workflows}/bmad-spec/customize.toml +3 -4
  13. package/src/bmm-skills/2-plan-workflows/bmad-ux/customize.toml +4 -2
  14. package/src/bmm-skills/3-solutioning/bmad-architecture/SKILL.md +2 -2
  15. package/src/bmm-skills/3-solutioning/bmad-architecture/customize.toml +4 -2
  16. package/src/bmm-skills/4-implementation/bmad-agent-dev/customize.toml +3 -0
  17. package/src/bmm-skills/4-implementation/bmad-code-review/SKILL.md +2 -4
  18. package/src/bmm-skills/4-implementation/bmad-code-review/customize.toml +52 -0
  19. package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-01-gather-context.md +0 -1
  20. package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-02-review.md +10 -24
  21. package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-03-triage.md +3 -4
  22. package/src/bmm-skills/4-implementation/bmad-dev-auto/SKILL.md +33 -12
  23. package/src/bmm-skills/4-implementation/bmad-dev-auto/customize.toml +75 -0
  24. package/src/bmm-skills/4-implementation/bmad-dev-auto/spec-template.md +2 -2
  25. package/src/bmm-skills/4-implementation/bmad-dev-auto/step-01-clarify-and-route.md +22 -4
  26. package/src/bmm-skills/4-implementation/bmad-dev-auto/step-02-plan.md +4 -5
  27. package/src/bmm-skills/4-implementation/bmad-dev-auto/step-03-implement.md +8 -4
  28. package/src/bmm-skills/4-implementation/bmad-dev-auto/step-04-review.md +13 -19
  29. package/src/bmm-skills/4-implementation/bmad-dev-story/customize.toml +3 -0
  30. package/src/bmm-skills/4-implementation/bmad-quick-dev/SKILL.md +6 -108
  31. package/src/bmm-skills/4-implementation/bmad-quick-dev/customize.toml +50 -0
  32. package/src/bmm-skills/4-implementation/bmad-quick-dev/render.py +381 -0
  33. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-01-clarify-and-route.md +11 -13
  34. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-02-plan.md +4 -9
  35. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-03-implement.md +7 -3
  36. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-04-review.md +8 -20
  37. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-05-present.md +4 -4
  38. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-oneshot.md +12 -13
  39. package/src/bmm-skills/4-implementation/bmad-quick-dev/sync-sprint-status.md +6 -6
  40. package/src/bmm-skills/4-implementation/bmad-quick-dev/workflow.md +85 -0
  41. package/src/bmm-skills/module-help.csv +2 -4
  42. package/src/bmm-skills/module.yaml +2 -5
  43. package/src/bmm-skills/v6-shims/README.md +24 -0
  44. package/src/bmm-skills/{3-solutioning → v6-shims}/bmad-create-architecture/SKILL.md +1 -1
  45. package/src/bmm-skills/{2-plan-workflows → v6-shims}/bmad-create-prd/SKILL.md +3 -3
  46. package/src/bmm-skills/v6-shims/bmad-domain-research/SKILL.md +14 -0
  47. package/src/bmm-skills/{2-plan-workflows → v6-shims}/bmad-edit-prd/SKILL.md +3 -3
  48. package/src/bmm-skills/v6-shims/bmad-market-research/SKILL.md +14 -0
  49. package/src/bmm-skills/v6-shims/bmad-technical-research/SKILL.md +14 -0
  50. package/src/bmm-skills/{2-plan-workflows → v6-shims}/bmad-validate-prd/SKILL.md +3 -3
  51. package/src/core-skills/bmad-advanced-elicitation/SKILL.md +26 -103
  52. package/src/core-skills/bmad-advanced-elicitation/customize.toml +54 -0
  53. package/src/core-skills/bmad-advanced-elicitation/scripts/pick_methods.py +233 -0
  54. package/src/core-skills/bmad-advanced-elicitation/scripts/tests/test_pick_methods.py +228 -0
  55. package/src/core-skills/bmad-brainstorming/SKILL.md +3 -3
  56. package/src/core-skills/bmad-brainstorming/assets/brain-selector.html +2 -0
  57. package/src/core-skills/bmad-brainstorming/references/mode-autonomous.md +1 -1
  58. package/src/core-skills/bmad-brainstorming/scripts/brain.py +36 -6
  59. package/src/core-skills/bmad-brainstorming/scripts/tests/test_brain.py +22 -0
  60. package/src/core-skills/bmad-customize/SKILL.md +2 -2
  61. package/src/core-skills/bmad-deep-recon/SKILL.md +82 -0
  62. package/src/core-skills/bmad-deep-recon/assets/research.template.md +18 -0
  63. package/src/core-skills/bmad-deep-recon/customize.toml +212 -0
  64. package/src/core-skills/bmad-deep-recon/references/draft.md +8 -0
  65. package/src/core-skills/bmad-deep-recon/references/finalize.md +11 -0
  66. package/src/core-skills/bmad-deep-recon/references/html-briefing.md +16 -0
  67. package/src/core-skills/bmad-deep-recon/references/lifecycle.md +11 -0
  68. package/src/core-skills/bmad-deep-recon/references/process.md +10 -0
  69. package/src/core-skills/bmad-deep-recon/references/run.md +73 -0
  70. package/src/core-skills/bmad-deep-recon/references/selection.md +13 -0
  71. package/src/core-skills/bmad-deep-recon/references/synthesis.md +16 -0
  72. package/src/core-skills/bmad-deep-recon/references/verification.md +29 -0
  73. package/src/core-skills/bmad-deep-recon/scripts/recon_kit.py +322 -0
  74. package/src/core-skills/bmad-deep-recon/scripts/tests/test_recon_kit.py +144 -0
  75. package/src/core-skills/bmad-deep-recon/types/academic-lit.md +19 -0
  76. package/src/core-skills/bmad-deep-recon/types/competitive.md +19 -0
  77. package/src/core-skills/bmad-deep-recon/types/domain.md +19 -0
  78. package/src/core-skills/bmad-deep-recon/types/market.md +19 -0
  79. package/src/core-skills/bmad-deep-recon/types/technical.md +19 -0
  80. package/src/core-skills/bmad-deep-recon/types/user-voice.md +19 -0
  81. package/src/core-skills/bmad-forge-idea/SKILL.md +2 -2
  82. package/src/core-skills/bmad-forge-idea/scripts/resolve_personas.py +4 -1
  83. package/src/core-skills/bmad-help/SKILL.md +1 -1
  84. package/src/core-skills/bmad-party-mode/SKILL.md +2 -2
  85. package/src/core-skills/bmad-party-mode/scripts/resolve_party.py +11 -3
  86. package/src/core-skills/bmad-review/SKILL.md +49 -0
  87. package/src/core-skills/bmad-review/customize.toml +141 -0
  88. package/src/core-skills/bmad-review/references/editorial-common.md +56 -0
  89. package/src/core-skills/bmad-review/references/lens-adversarial.md +18 -0
  90. package/src/core-skills/bmad-review/references/lens-edge-case-hunter.md +54 -0
  91. package/src/core-skills/bmad-review/references/lens-prose.md +7 -0
  92. package/src/core-skills/bmad-review/references/lens-structure.md +9 -0
  93. package/src/core-skills/{bmad-review-verification-gap/SKILL.md → bmad-review/references/lens-verification-gap.md} +15 -39
  94. package/src/core-skills/bmad-review/references/structure-models.md +44 -0
  95. package/src/core-skills/bmad-review/scripts/tests/test_word_metrics.py +62 -0
  96. package/src/core-skills/bmad-review/scripts/word_metrics.py +102 -0
  97. package/src/core-skills/module-help.csv +3 -7
  98. package/src/core-skills/module.yaml +5 -0
  99. package/src/core-skills/v6-shims/README.md +25 -0
  100. package/src/core-skills/v6-shims/bmad-editorial-review/SKILL.md +6 -0
  101. package/src/core-skills/v6-shims/bmad-editorial-review/customize.toml +31 -0
  102. package/src/core-skills/v6-shims/bmad-editorial-review-prose/SKILL.md +6 -0
  103. package/src/core-skills/v6-shims/bmad-editorial-review-structure/SKILL.md +6 -0
  104. package/src/core-skills/v6-shims/bmad-review-adversarial-general/SKILL.md +6 -0
  105. package/src/core-skills/v6-shims/bmad-review-edge-case-hunter/SKILL.md +6 -0
  106. package/src/core-skills/v6-shims/bmad-review-verification-gap/SKILL.md +6 -0
  107. package/tools/installer/ide/platform-codes.yaml +7 -0
  108. package/tools/installer/modules/custom-module-manager.js +12 -6
  109. package/tools/installer/modules/external-manager.js +12 -8
  110. package/tools/installer/modules/git-env.js +47 -0
  111. package/tools/skill-validator.md +11 -1
  112. package/tools/validate-skills.js +33 -0
  113. package/src/bmm-skills/1-analysis/research/bmad-domain-research/SKILL.md +0 -96
  114. package/src/bmm-skills/1-analysis/research/bmad-domain-research/customize.toml +0 -41
  115. package/src/bmm-skills/1-analysis/research/bmad-domain-research/domain-steps/step-01-init.md +0 -137
  116. package/src/bmm-skills/1-analysis/research/bmad-domain-research/domain-steps/step-02-domain-analysis.md +0 -229
  117. package/src/bmm-skills/1-analysis/research/bmad-domain-research/domain-steps/step-03-competitive-landscape.md +0 -238
  118. package/src/bmm-skills/1-analysis/research/bmad-domain-research/domain-steps/step-04-regulatory-focus.md +0 -206
  119. package/src/bmm-skills/1-analysis/research/bmad-domain-research/domain-steps/step-05-technical-trends.md +0 -234
  120. package/src/bmm-skills/1-analysis/research/bmad-domain-research/domain-steps/step-06-research-synthesis.md +0 -450
  121. package/src/bmm-skills/1-analysis/research/bmad-domain-research/research.template.md +0 -29
  122. package/src/bmm-skills/1-analysis/research/bmad-market-research/SKILL.md +0 -96
  123. package/src/bmm-skills/1-analysis/research/bmad-market-research/customize.toml +0 -41
  124. package/src/bmm-skills/1-analysis/research/bmad-market-research/research.template.md +0 -29
  125. package/src/bmm-skills/1-analysis/research/bmad-market-research/steps/step-01-init.md +0 -184
  126. package/src/bmm-skills/1-analysis/research/bmad-market-research/steps/step-02-customer-behavior.md +0 -239
  127. package/src/bmm-skills/1-analysis/research/bmad-market-research/steps/step-03-customer-pain-points.md +0 -251
  128. package/src/bmm-skills/1-analysis/research/bmad-market-research/steps/step-04-customer-decisions.md +0 -261
  129. package/src/bmm-skills/1-analysis/research/bmad-market-research/steps/step-05-competitive-analysis.md +0 -173
  130. package/src/bmm-skills/1-analysis/research/bmad-market-research/steps/step-06-research-completion.md +0 -484
  131. package/src/bmm-skills/1-analysis/research/bmad-technical-research/SKILL.md +0 -96
  132. package/src/bmm-skills/1-analysis/research/bmad-technical-research/customize.toml +0 -41
  133. package/src/bmm-skills/1-analysis/research/bmad-technical-research/research.template.md +0 -29
  134. package/src/bmm-skills/1-analysis/research/bmad-technical-research/technical-steps/step-01-init.md +0 -137
  135. package/src/bmm-skills/1-analysis/research/bmad-technical-research/technical-steps/step-02-technical-overview.md +0 -239
  136. package/src/bmm-skills/1-analysis/research/bmad-technical-research/technical-steps/step-03-integration-patterns.md +0 -248
  137. package/src/bmm-skills/1-analysis/research/bmad-technical-research/technical-steps/step-04-architectural-patterns.md +0 -202
  138. package/src/bmm-skills/1-analysis/research/bmad-technical-research/technical-steps/step-05-implementation-research.md +0 -233
  139. package/src/bmm-skills/1-analysis/research/bmad-technical-research/technical-steps/step-06-research-synthesis.md +0 -493
  140. package/src/core-skills/bmad-brainstorming/analysis/catalog-analysis.md +0 -239
  141. package/src/core-skills/bmad-brainstorming/analysis/method-matrix.csv +0 -109
  142. package/src/core-skills/bmad-editorial-review-prose/SKILL.md +0 -86
  143. package/src/core-skills/bmad-editorial-review-structure/SKILL.md +0 -179
  144. package/src/core-skills/bmad-index-docs/SKILL.md +0 -66
  145. package/src/core-skills/bmad-review-adversarial-general/SKILL.md +0 -37
  146. package/src/core-skills/bmad-review-edge-case-hunter/SKILL.md +0 -73
  147. package/src/core-skills/bmad-review-edge-case-hunter/references/deletion-check.md +0 -14
  148. package/src/core-skills/bmad-shard-doc/SKILL.md +0 -105
  149. /package/src/{core-skills → bmm-skills/2-plan-workflows}/bmad-spec/assets/headless-schemas.md +0 -0
  150. /package/src/bmm-skills/{3-solutioning → v6-shims}/bmad-create-architecture/customize.toml +0 -0
  151. /package/src/bmm-skills/{2-plan-workflows → v6-shims}/bmad-create-prd/customize.toml +0 -0
  152. /package/src/bmm-skills/{2-plan-workflows → v6-shims}/bmad-edit-prd/customize.toml +0 -0
  153. /package/src/bmm-skills/{2-plan-workflows → v6-shims}/bmad-validate-prd/customize.toml +0 -0
  154. /package/src/core-skills/bmad-advanced-elicitation/{methods.csv → assets/methods.csv} +0 -0
  155. /package/src/core-skills/bmad-party-mode/scripts/tests/{test-resolve_party.py → test_resolve_party.py} +0 -0
@@ -7,59 +7,84 @@
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/bmad-code-org/BMAD-METHOD",
9
9
  "repository": "https://github.com/bmad-code-org/BMAD-METHOD",
10
- "keywords": ["bmad", "agile", "ai", "orchestrator", "development", "methodology", "agents"],
10
+ "keywords": ["bmad", "agile", "ai", "orchestrator", "development", "methodology", "agents", "brainstorming", "thinking"],
11
11
  "plugins": [
12
12
  {
13
- "name": "bmad-pro-skills",
13
+ "name": "bmad-brainstorming",
14
14
  "source": "./",
15
- "description": "Next level skills for power usersadvanced prompting techniques, agent management, and more.",
16
- "version": "6.8.0",
15
+ "description": "Facilitated brainstorming with a curated technique library diverge, converge, and capture ideas with a visual technique picker.",
16
+ "version": "6.10.0",
17
17
  "author": {
18
18
  "name": "Brian (BMad) Madison"
19
19
  },
20
- "skills": [
21
- "./src/core-skills/bmad-help",
22
- "./src/core-skills/bmad-brainstorming",
23
- "./src/core-skills/bmad-customize",
24
- "./src/core-skills/bmad-spec",
25
- "./src/core-skills/bmad-party-mode",
26
- "./src/core-skills/bmad-shard-doc",
27
- "./src/core-skills/bmad-advanced-elicitation",
28
- "./src/core-skills/bmad-editorial-review-prose",
29
- "./src/core-skills/bmad-editorial-review-structure",
30
- "./src/core-skills/bmad-index-docs",
31
- "./src/core-skills/bmad-review-adversarial-general",
32
- "./src/core-skills/bmad-review-edge-case-hunter",
33
- "./src/core-skills/bmad-review-verification-gap"
34
- ]
20
+ "skills": ["./src/core-skills/bmad-brainstorming"]
21
+ },
22
+ {
23
+ "name": "bmad-party-mode",
24
+ "source": "./",
25
+ "description": "Multi-perspective roundtable discussions — collide viewpoints between agents or custom personas to stress-test any topic.",
26
+ "version": "6.10.0",
27
+ "author": {
28
+ "name": "Brian (BMad) Madison"
29
+ },
30
+ "skills": ["./src/core-skills/bmad-party-mode"]
31
+ },
32
+ {
33
+ "name": "bmad-forge-idea",
34
+ "source": "./",
35
+ "description": "Pressure-test an idea with persona-driven interrogation until it hardens, proves out, or dies cheaply.",
36
+ "version": "6.10.0",
37
+ "author": {
38
+ "name": "Brian (BMad) Madison"
39
+ },
40
+ "skills": ["./src/core-skills/bmad-forge-idea"]
41
+ },
42
+ {
43
+ "name": "bmad-deep-recon",
44
+ "source": "./",
45
+ "description": "Decision-grade research harness — draft deep-research prompts for your own AI tools, process finished reports into downstream-ready cited summaries, or run the research directly; six research types, claim verification, and a living refresh cycle.",
46
+ "version": "6.10.0",
47
+ "author": {
48
+ "name": "Brian (BMad) Madison"
49
+ },
50
+ "skills": ["./src/core-skills/bmad-deep-recon"]
51
+ },
52
+ {
53
+ "name": "bmad-analysis",
54
+ "source": "./",
55
+ "description": "The BMad thinking pack — structured brainstorming, idea pressure-testing, and multi-perspective agent roundtables in one install.",
56
+ "version": "6.10.0",
57
+ "author": {
58
+ "name": "Brian (BMad) Madison"
59
+ },
60
+ "skills": ["./src/core-skills/bmad-brainstorming", "./src/core-skills/bmad-party-mode", "./src/core-skills/bmad-forge-idea"]
35
61
  },
36
62
  {
37
63
  "name": "bmad-method-lifecycle",
38
64
  "source": "./",
39
65
  "description": "Full-lifecycle AI development framework — agents and workflows for product analysis, planning, architecture, and implementation.",
40
- "version": "6.8.0",
66
+ "version": "6.10.0",
41
67
  "author": {
42
68
  "name": "Brian (BMad) Madison"
43
69
  },
44
70
  "skills": [
71
+ "./src/core-skills/bmad-help",
72
+ "./src/core-skills/bmad-customize",
73
+ "./src/core-skills/bmad-advanced-elicitation",
74
+ "./src/core-skills/bmad-review",
45
75
  "./src/bmm-skills/1-analysis/bmad-product-brief",
46
76
  "./src/bmm-skills/1-analysis/bmad-prfaq",
47
77
  "./src/bmm-skills/1-analysis/bmad-agent-analyst",
48
78
  "./src/bmm-skills/1-analysis/bmad-agent-tech-writer",
49
79
  "./src/bmm-skills/1-analysis/bmad-document-project",
50
- "./src/bmm-skills/1-analysis/research/bmad-domain-research",
51
- "./src/bmm-skills/1-analysis/research/bmad-market-research",
52
- "./src/bmm-skills/1-analysis/research/bmad-technical-research",
80
+ "./src/core-skills/bmad-deep-recon",
53
81
  "./src/bmm-skills/2-plan-workflows/bmad-agent-pm",
54
82
  "./src/bmm-skills/2-plan-workflows/bmad-agent-ux-designer",
55
83
  "./src/bmm-skills/2-plan-workflows/bmad-prd",
56
- "./src/bmm-skills/2-plan-workflows/bmad-create-prd",
57
- "./src/bmm-skills/2-plan-workflows/bmad-edit-prd",
58
- "./src/bmm-skills/2-plan-workflows/bmad-validate-prd",
84
+ "./src/bmm-skills/2-plan-workflows/bmad-spec",
59
85
  "./src/bmm-skills/2-plan-workflows/bmad-ux",
60
86
  "./src/bmm-skills/3-solutioning/bmad-agent-architect",
61
87
  "./src/bmm-skills/3-solutioning/bmad-architecture",
62
- "./src/bmm-skills/3-solutioning/bmad-create-architecture",
63
88
  "./src/bmm-skills/3-solutioning/bmad-check-implementation-readiness",
64
89
  "./src/bmm-skills/3-solutioning/bmad-create-epics-and-stories",
65
90
  "./src/bmm-skills/3-solutioning/bmad-generate-project-context",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "bmad-method",
4
- "version": "6.10.1-next.2",
4
+ "version": "6.10.1-next.20",
5
5
  "description": "Breakthrough Method of Agile AI-driven Development",
6
6
  "keywords": [
7
7
  "agile",
@@ -40,12 +40,13 @@
40
40
  "lint:fix": "eslint . --ext .js,.cjs,.mjs,.yaml --fix",
41
41
  "lint:md": "markdownlint-cli2 \"**/*.md\"",
42
42
  "prepare": "command -v husky >/dev/null 2>&1 && husky || exit 0",
43
- "quality": "npm run format:check && npm run lint && npm run lint:md && npm run docs:build && npm run test:install && npm run test:urls && npm run validate:refs && npm run validate:skills && npm run docs:validate-sidebar",
43
+ "quality": "npm run format:check && npm run lint && npm run lint:md && npm run docs:build && npm run test:install && npm run test:urls && npm run test:renderer && npm run validate:refs && npm run validate:skills && npm run docs:validate-sidebar",
44
44
  "rebundle": "node tools/installer/bundlers/bundle-web.js rebundle",
45
- "test": "npm run test:refs && npm run test:install && npm run test:urls && npm run test:channels && npm run test:skills && npm run lint && npm run lint:md && npm run format:check",
45
+ "test": "npm run test:refs && npm run test:install && npm run test:urls && npm run test:channels && npm run test:renderer && npm run test:skills && npm run lint && npm run lint:md && npm run format:check",
46
46
  "test:channels": "node test/test-installer-channels.js",
47
47
  "test:install": "node test/test-installation-components.js",
48
48
  "test:refs": "node test/test-file-refs-csv.js",
49
+ "test:renderer": "node test/test-quick-dev-renderer.js",
49
50
  "test:skills": "node test/test-validate-skills.js",
50
51
  "test:urls": "node test/test-parse-source-urls.js",
51
52
  "validate:refs": "node tools/validate-file-refs.js --strict",
package/removals.txt CHANGED
@@ -68,3 +68,8 @@ bmad-investigate
68
68
  # bmad-auto-setup: renamed to bmad-loop-setup as part of the bmad-auto ->
69
69
  # bmad-loop module rename (BMad Automator's replacement).
70
70
  bmad-auto-setup
71
+
72
+ # Removed skills (core streamline, post-v6.10.0)
73
+ # bmad-index-docs, bmad-shard-doc: retired outright.
74
+ bmad-index-docs
75
+ bmad-shard-doc
@@ -62,17 +62,32 @@ skill = "bmad-brainstorming"
62
62
  [[agent.menu]]
63
63
  code = "MR"
64
64
  description = "Market analysis, competitive landscape, customer needs and trends"
65
- skill = "bmad-market-research"
65
+ prompt = "Invoke the `bmad-deep-recon` skill with the market research type pre-selected (forwarded activation: skip type inference)."
66
66
 
67
67
  [[agent.menu]]
68
68
  code = "DR"
69
69
  description = "Industry domain deep dive, subject matter expertise and terminology"
70
- skill = "bmad-domain-research"
70
+ prompt = "Invoke the `bmad-deep-recon` skill with the domain research type pre-selected (forwarded activation: skip type inference)."
71
71
 
72
72
  [[agent.menu]]
73
73
  code = "TR"
74
- description = "Technical feasibility, architecture options and implementation approaches"
75
- skill = "bmad-technical-research"
74
+ description = "Technical landscape, architecture patterns and implementation reality"
75
+ prompt = "Invoke the `bmad-deep-recon` skill with the technical research type pre-selected (forwarded activation: skip type inference)."
76
+
77
+ [[agent.menu]]
78
+ code = "TS"
79
+ description = "Choose between technologies, vendors, or tools — decision matrix and recommendation"
80
+ prompt = "Invoke the `bmad-deep-recon` skill in the select decision shape (forwarded activation: shape select; infer the subject type from the candidates)."
81
+
82
+ [[agent.menu]]
83
+ code = "CR"
84
+ description = "Competitive teardown of named competitors — offers, pricing, positioning, trajectory"
85
+ prompt = "Invoke the `bmad-deep-recon` skill with the competitive research type pre-selected (forwarded activation: skip type inference)."
86
+
87
+ [[agent.menu]]
88
+ code = "UV"
89
+ description = "User-voice research — reviews, communities, jobs-to-be-done"
90
+ prompt = "Invoke the `bmad-deep-recon` skill with the user-voice research type pre-selected (forwarded activation: skip type inference)."
76
91
 
77
92
  [[agent.menu]]
78
93
  code = "CB"
@@ -64,7 +64,7 @@ Omit keys for artifacts that were not produced.
64
64
 
65
65
  ## Discovery
66
66
 
67
- Conversationally surface what the user brings, why this brief exists, the domain, and the form-factor (mobile / web / desktop / multi-surface / hardware / API — what *is* this thing) — echo back how each shapes your approach. Open with space for the full picture: invite a brain dump and ask up front for any source material they already have (memo, deck, transcript, prior brief, slack thread). Read what exists first; ask only what is missing. After the dump, a simple "anything else?" often surfaces what they almost forgot. Drill into specifics only after the broad shape is on the table; premature granular questions interrupt the dump and miss the room. Get a read on stakes early (passion project, internal pitch, investor input, public launch), and let that calibrate how hard you push. During the dump, spawn web-research subagents to ground the picture — landscape, comparables, current state — AI especially, where training data ages by the week. Subagent searches; parent gets a digest. Deep work (full market sizing, exhaustive teardowns) → suggest `bmad-market-research` or `bmad-domain-research`.
67
+ Conversationally surface what the user brings, why this brief exists, the domain, and the form-factor (mobile / web / desktop / multi-surface / hardware / API — what *is* this thing) — echo back how each shapes your approach. Open with space for the full picture: invite a brain dump and ask up front for any source material they already have (memo, deck, transcript, prior brief, slack thread). Read what exists first; ask only what is missing. After the dump, a simple "anything else?" often surfaces what they almost forgot. Drill into specifics only after the broad shape is on the table; premature granular questions interrupt the dump and miss the room. Get a read on stakes early (passion project, internal pitch, investor input, public launch), and let that calibrate how hard you push. During the dump, spawn web-research subagents to ground the picture — landscape, comparables, current state — AI especially, where training data ages by the week. Subagent searches; parent gets a digest. Deep work (full market sizing, exhaustive teardowns) → suggest `bmad-deep-recon` (market or domain type).
68
68
 
69
69
  Once stakes are read and the dump is captured, offer the working mode in the user's language:
70
70
 
@@ -53,7 +53,7 @@ run_folder_pattern = "brief-{project_name}-{date}"
53
53
  # findings before the user sees the draft. Encodes standards, not options.
54
54
  #
55
55
  # Examples:
56
- # "skill:bmad-editorial-review-prose"
56
+ # "skill:bmad-review lenses=structure,prose"
57
57
  # "file:{project-root}/_bmad/style-guides/company-voice.md"
58
58
  # "Convert all dates to ISO 8601 format."
59
59
  #
@@ -64,9 +64,11 @@ run_folder_pattern = "brief-{project_name}-{date}"
64
64
  #
65
65
  # Override the array in team/user TOML to add additional standards. Append-only:
66
66
  # base entries cannot be removed or replaced (resolver has no removal mechanism).
67
+ # The default entry runs bmad-review's two editorial lenses in order:
68
+ # structure, then prose on top of the structure findings. The `lenses=` suffix
69
+ # names them; drop it to let bmad-review pick what fits the content.
67
70
  doc_standards = [
68
- "skill:bmad-editorial-review-structure",
69
- "skill:bmad-editorial-review-prose",
71
+ "skill:bmad-review lenses=structure,prose",
70
72
  ]
71
73
 
72
74
  # External-source registry. Natural-language directives describing knowledge
@@ -15,6 +15,8 @@ You are a master facilitator and coach helping the user create, edit, or validat
15
15
 
16
16
  ## On Activation
17
17
 
18
+ **Forwarded activation:** if a caller invoked you with a stated intent and pre-resolved customization fields (e.g. the `bmad-create-prd` / `bmad-edit-prd` / `bmad-validate-prd` shims), honor them verbatim — skip your own intent inference, use the supplied values for those named fields, and resolve only the remaining fields from your own `customize.toml`.
19
+
18
20
  1. Resolve customization: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`. On failure, read `{skill-root}/customize.toml` directly and use defaults.
19
21
  2. Run `{workflow.activation_steps_prepend}`. Treat `{workflow.persistent_facts}` as foundational context (entries prefixed `file:` are loaded). `{workflow.external_sources}` is an org-configured registry of internal tools (knowledge bases, MCP tools); consult them alongside generic web research on the same triggers, org tools preferred when their directive matches. Research itself fires during Discovery — see **Research subagents**.
20
22
  3. Load `{project-root}/_bmad/bmm/config.yaml` (+ `config.user.yaml` if present). Resolve `{user_name}`, `{communication_language}`, `{document_output_language}`, `{planning_artifacts}`, `{project_name}`, `{date}`. Missing keys → neutral defaults; never block.
@@ -71,7 +71,7 @@ run_folder_pattern = "prd-{project_name}-{date}"
71
71
  # findings before the user sees the draft. Encodes standards, not options.
72
72
  #
73
73
  # Examples:
74
- # "skill:bmad-editorial-review-prose"
74
+ # "skill:bmad-review lenses=structure,prose"
75
75
  # "file:{project-root}/_bmad/style-guides/company-voice.md"
76
76
  # "Convert all dates to ISO 8601 format."
77
77
  #
@@ -82,9 +82,11 @@ run_folder_pattern = "prd-{project_name}-{date}"
82
82
  #
83
83
  # Override the array in team/user TOML to add additional standards. Append-only:
84
84
  # base entries cannot be removed or replaced (resolver has no removal mechanism).
85
+ # The default entry runs bmad-review's two editorial lenses in order:
86
+ # structure, then prose on top of the structure findings. The `lenses=` suffix
87
+ # names them; drop it to let bmad-review pick what fits the content.
85
88
  doc_standards = [
86
- "skill:bmad-editorial-review-structure",
87
- "skill:bmad-editorial-review-prose",
89
+ "skill:bmad-review lenses=structure,prose",
88
90
  ]
89
91
 
90
92
  # External-source registry. Natural-language directives describing knowledge
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bmad-spec
3
- description: Distill any intent input into the SPEC kernel + companions — the canonical, preservation-validated machine contract for downstream work. Use when the user says "create a spec", "distill this into a spec", "validate this spec", or "update the spec".
3
+ description: Distill any intent input into the SPEC kernel + companions — the canonical, preservation-validated machine contract for downstream work. Use when the user says "create a spec", "distill this into a spec", "validate this spec", "update the spec", or "break this into stories".
4
4
  ---
5
5
 
6
6
  # BMad Spec
@@ -20,7 +20,7 @@ Multiple skills may call to update the same spec over time.
20
20
 
21
21
  1. Resolve customization: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`. On failure, read `{skill-root}/customize.toml` directly.
22
22
  2. Run `{workflow.activation_steps_prepend}`. Treat `{workflow.persistent_facts}` as foundational context (`file:` entries are loaded).
23
- 3. Load `{project-root}/_bmad/core/config.yaml` (and `config.user.yaml` if present), root level and `bmm` section. Resolve `{user_name}`, `{communication_language}`, `{document_output_language}`, `{planning_artifacts}`, `{project_name}`, `{date}`.
23
+ 3. Resolve config: `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root}` (merges `_bmad/config.toml`, `_bmad/config.user.toml`, and the `_bmad/custom/` overrides). From the merged JSON resolve `{user_name}`, `{communication_language}`, `{document_output_language}`, `{project_name}`, `{output_folder}` (under `core`), and `{date}`.
24
24
  4. Detect mode. **Headless** when any of: no TTY, programmatic caller (another skill or non-interactive runner), or the first message pre-supplies all inputs and asks for an artifact path back. **Interactive** otherwise. In interactive mode, greet by `{user_name}` in `{communication_language}`, stay in that language, and mention that `bmad-party-mode` and `bmad-advanced-elicitation` are available for deeper exploration on any field.
25
25
 
26
26
  Run `{workflow.activation_steps_append}`.
@@ -46,6 +46,7 @@ Inside the spec folder:
46
46
  SPEC.md ← uppercase, the kernel — DERIVED from .memlog.md, never hand-edited
47
47
  <companion-1>.md ← optional, content-typed (e.g. glossary.md); spec-authored ones are derived too
48
48
  <companion-2>.md
49
+ stories.yaml ← optional, written only by Story Breakdown — fixed name, never in companions:
49
50
  .memlog.md ← canonical, append-only memory; what SPEC.md is distilled from
50
51
  ```
51
52
 
@@ -99,6 +100,8 @@ Two rules govern companions:
99
100
 
100
101
  Pre-existing project-wide docs (e.g. `project-context.md`) that downstream needs are listed as **adopted companions**, never duplicated into SPEC.md or a spec-authored companion.
101
102
 
103
+ `stories.yaml`, when produced, is spec-authored but deliberately **not** a companion — see Story Breakdown below.
104
+
102
105
  ## Spec Law
103
106
 
104
107
  Every spec must satisfy these eight rules. The operation aims for them; the self-validate sweep enforces them.
@@ -126,9 +129,21 @@ Record the verdict for each pass to `.memlog.md` (`append --type event`). In int
126
129
 
127
130
  When the user points the skill at an existing spec folder (or its SPEC.md) with no change signal, offer to review assumptions or open questions, or determine what they want to do.
128
131
 
132
+ ## Story Breakdown (optional, interactive-only)
133
+
134
+ Requires `SPEC.md` on disk — run the normal Operation first if it doesn't exist yet. Headless runs never do this, even when the invocation text asks for it: if mode detection (On Activation, step 4) resolved headless, skip this section entirely and proceed with the normal headless response. In interactive mode, offer it at most once per run when the input reads as multiple independently shippable slices; a decline ends the offer for this run, not forever. Also run it on direct request ("break this into stories") whenever `SPEC.md` exists. When a spec update runs and `stories.yaml` exists, check the story descriptions against the updated spec; if any no longer matches, say so and offer to re-run Story Breakdown. The update itself never rewrites `stories.yaml`.
135
+
136
+ Either way, walk the capabilities and constraints with the user and propose a story per independently reviewable slice — this is a conversation, not a silent render. For each story, ask the user for `spec_checkpoint`, `done_checkpoint`, and any `invoke_dev_with` note rather than defaulting them silently; capturing that human judgment is what the fields are for. If the conversation surfaces load-bearing detail beyond dispatch notes (a constraint, a design decision), route it into SPEC.md or a companion — `invoke_dev_with` carries dispatch notes only (Spec Law rule 7 still applies).
137
+
138
+ The output is `stories.yaml`, a sibling of `SPEC.md` inside the spec folder, discovered by that fixed name — same convention as `SPEC.md` and `.memlog.md`. Never list it in `companions:` and never point a frontmatter key at it: companions carry the what-to-build contract every consumer reads; `stories.yaml` is input for whichever tool dispatches the stories.
139
+
140
+ Field definitions, the validity rules, and a worked example live in `assets/stories-schema.md`. Before writing or re-writing the file, check every entry against those rules; fix violations rather than presenting a file that fails them. Record the check's verdict to `.memlog.md` (`append --type event`), the same discipline as Self-Validate.
141
+
142
+ Derive `stories.yaml` from `.memlog.md` exactly like any other spec-authored artifact: log each proposed story (`--type decision`) as the user agrees to it, then render. On a later run against the same spec folder, re-derive the same way, handling ids per the schema's update semantics.
143
+
129
144
  ## Output
130
145
 
131
- **Interactive** — share the spec folder path conversationally. Name the capability count, the companions produced, and the verdict in one or two sentences. If `assumptions[]` or `open_questions[]` are non-empty, list them (short — one line each) and invite the user to walk through them. Make clear that addressing them can update the source input (if it was a file), the spec, or both — whichever combination the user prefers. Do not dump JSON or present a wall of output.
146
+ **Interactive** — share the spec folder path conversationally. Name the capability count, the companions produced, and the verdict in one or two sentences. Name the story count too if `stories.yaml` was written this run. If `assumptions[]` or `open_questions[]` are non-empty, list them (short — one line each) and invite the user to walk through them. Make clear that addressing them can update the source input (if it was a file), the spec, or both — whichever combination the user prefers. Do not dump JSON or present a wall of output.
132
147
 
133
148
  **Headless** — return JSON per `assets/headless-schemas.md`.
134
149
 
@@ -4,7 +4,7 @@ companions: [] # files downstream MUST read alongside SPEC.md. Paths may poi
4
4
  sources: [] # files fully absorbed into the SPEC (audit only; downstream does NOT read these). Never the memlog.
5
5
  ---
6
6
 
7
- > **Canonical contract.** This SPEC and the files in `companions:` are the complete, preservation-validated contract for what to build, test, and validate. Source documents listed in frontmatter are for traceability only — consult them only if you need narrative rationale or prose color this contract intentionally omits.
7
+ > **Canonical contract.** This SPEC and the files in `companions:` are the complete, preservation-validated contract for what to build, test, and validate. Source documents listed in frontmatter are for traceability — consult them only if you need narrative rationale or prose color this contract intentionally omits.
8
8
 
9
9
  # {Spec Title}
10
10
 
@@ -0,0 +1,44 @@
1
+ # Stories schema
2
+
3
+ `stories.yaml` — the optional output of Story Breakdown: a top-level YAML list, one entry per story, in execution order — stories run top to bottom. Sibling of `SPEC.md`, discovered by its fixed filename (same convention as `SPEC.md` and `.memlog.md`); never listed in `companions:`, never referenced from frontmatter.
4
+
5
+ ## Fields
6
+
7
+ | Field | Type | Required | Meaning |
8
+ |---|---|---|---|
9
+ | `id` | string | yes | Identity, unique within the file. Compared for equality and used as a filename prefix; carries no other meaning. Use unpadded integers (`"1"`), or composites (`"3-2"`) when the epic sits inside a larger project spec. No zero-padding — execution order is the list order, not filename sort. Pinned once the story's spec file exists (see Update semantics); until then it may be renumbered. |
10
+ | `title` | string, one line | yes | Display name; becomes the story's heading downstream. |
11
+ | `description` | string | yes | What this story covers, pointing into `SPEC.md` — not a story spec. Keep it to two sentences; a writing rule, not something tooling enforces. |
12
+ | `spec_checkpoint` | boolean | no (default `false`) | Set by the human at breakdown time; read only by the dispatching caller, never by the implementing dev skill. When true, a human reviews the story spec between planning and implementation. |
13
+ | `done_checkpoint` | boolean | no (default `false`) | Caller-only, like `spec_checkpoint`. When true, dispatch pauses after this story completes, before anything further runs. |
14
+ | `invoke_dev_with` | string | no (default `""`) | Free text appended verbatim to the prompt that dispatches this story; the implementing dev skill reads it as part of its prompt, and nothing else interprets it. If the text needs structure, put it inside the string. Which dev skill to invoke is the caller's configuration, never data in this file. |
15
+
16
+ ## Validity rules
17
+
18
+ 1. Every entry parses with all required fields; ids unique.
19
+ 2. Ids are prefix-free under the `<id>-` filename-matching convention: no id may equal another id plus a dash-suffix (`"3"` and `"3-2"` cannot coexist).
20
+ 3. No `status` field, ever.
21
+ 4. Ids are YAML strings, always quoted, containing only letters, digits, and dashes. An unquoted `id: 1` parses as a number and breaks string comparison; characters like `/` or `*` break the filename match.
22
+
23
+ ## Example
24
+
25
+ ```yaml
26
+ - id: "1"
27
+ title: Add rate limiting to the public API
28
+ description: >-
29
+ Introduce a token-bucket limiter in front of the public endpoints;
30
+ return 429 with a Retry-After header on limit breach.
31
+ spec_checkpoint: true
32
+ invoke_dev_with: >-
33
+ Rate limit state must be shared across instances; use the existing
34
+ Redis client, not in-process memory.
35
+ - id: "2"
36
+ title: Expose limiter metrics to the ops dashboard
37
+ description: >-
38
+ Emit per-route accept/reject counters the existing dashboard can
39
+ scrape; no new dashboard panels in this story.
40
+ ```
41
+
42
+ ## Update semantics
43
+
44
+ Updates to `stories.yaml` go through Story Breakdown: append the change to `.memlog.md`, then re-derive. An id is pinned once its story spec file exists (any `stories/<id>-*.md` in the spec folder): a pinned story keeps its id through edits, its removal retires the id, and retired ids are never reassigned. Stories with no spec file yet may be renumbered, reordered, or removed freely on re-derive — typically so ids keep following list order. Never give a story an id that collides with a `stories/` file belonging to a different story.
@@ -38,10 +38,9 @@ spec_template = "assets/spec-template.md"
38
38
  # Uppercase by convention to signal "the central source of truth."
39
39
  spec_filename = "SPEC.md"
40
40
 
41
- # Output path for spec folders. Lands directly under {output_folder}
42
- # so bmad-spec works in core-only installs and matches the
43
- # long-term BMad direction of grouping artifacts as siblings under
44
- # {output_folder}/<type>/ rather than nested inside planning vs
41
+ # Output path for spec folders. Lands directly under {output_folder},
42
+ # matching the long-term BMad direction of grouping artifacts as siblings
43
+ # under {output_folder}/<type>/ rather than nested inside planning vs
45
44
  # implementation folders.
46
45
  spec_output_path = "{output_folder}/specs"
47
46
 
@@ -78,9 +78,11 @@ creative_tools = [
78
78
  # Polish passes applied to DESIGN.md and EXPERIENCE.md at finalize.
79
79
  # Entries: `skill:NAME`, `file:PATH`, or plain text directive.
80
80
  # Suggested order: structural → content/voice → prose mechanics.
81
+ # The default entry runs bmad-review's two editorial lenses in order:
82
+ # structure, then prose on top of the structure findings. The `lenses=` suffix
83
+ # names them; drop it to let bmad-review pick what fits the content.
81
84
  doc_standards = [
82
- "skill:bmad-editorial-review-structure",
83
- "skill:bmad-editorial-review-prose",
85
+ "skill:bmad-review lenses=structure,prose",
84
86
  ]
85
87
 
86
88
  # Information retrieval registry. Consulted on demand when the conversation
@@ -48,10 +48,10 @@ Writes go through the shared script (don't read the file back except on resume):
48
48
 
49
49
  ## On Activation
50
50
 
51
- **Forwarded activation:** if a caller (e.g. the `bmad-create-architecture` shim) invoked you with a stated intent and pre-resolved customization fields, honor them verbatim — skip your own intent inference, use the supplied values for those named fields, and resolve only the remaining fields from your own `customize.toml`.
51
+ **Forwarded activation:** if a caller invoked you with a stated intent and pre-resolved customization fields, honor them verbatim — skip your own intent inference, use the supplied values for those named fields, and resolve only the remaining fields from your own `customize.toml`.
52
52
 
53
53
  1. Resolve customization: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow` (on failure read `{skill-root}/customize.toml`, use defaults). Run `{workflow.activation_steps_prepend}`, then `{workflow.activation_steps_append}`. Hold `{workflow.persistent_facts}` as standing context — the default loads `project-context.md`, load-bearing for brownfield — and consult `{workflow.external_sources}` on demand.
54
- 2. Load `{project-root}/_bmad/bmm/config.yaml` (+ `config.user.yaml`) for `{user_name}`, `{communication_language}`, `{document_output_language}`, `{planning_artifacts}`, `{project_name}`, `{date}`; missing keys take neutral defaults, never block.
54
+ 2. Resolve config: `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root}` (merges `_bmad/config.toml`, `_bmad/config.user.toml`, and the `_bmad/custom/` overrides). From the merged JSON resolve `{user_name}`, `{communication_language}`, `{document_output_language}`, `{project_name}` (under `core`), `{planning_artifacts}` (under `modules.bmm`), and `{date}`; missing keys take neutral defaults, never block.
55
55
  3. Headless (no interactive user) → follow `references/headless.md` for the whole run. Otherwise greet `{user_name}` in `{communication_language}`. Detect the intent from the conversation and input — **create** (the default), **update** an existing spine, or **validate** one (see those sections). If the real ask is requirements / UX / a capability contract / epic breakdown / an agent, invoke the `bmad-prd`, `bmad-ux`, `bmad-spec`, `bmad-create-epics-and-stories`, or `bmad-workflow-builder` (if the BMad Builder module is installed) skill instead.
56
56
  4. If a run folder for this target already exists under `{workflow.spine_output_path}`, offer to resume from its memlog rather than restart.
57
57
  5. Interactive create: offer the working mode in `{communication_language}` — **Coaching path** (default) or **Fast path** (see *How you work*) — before any drafting; default to Coaching unless the user asks for speed.
@@ -59,9 +59,11 @@ run_folder_pattern = "architecture-{project_name}-{date}"
59
59
  # short, structured outputs, which are terse and carry decisions in AD-n blocks and diagrams by
60
60
  # design. Each entry is a `skill:`, `file:`, or plain-text directive applied before the user sees
61
61
  # the polished draft. Suggested order: structural passes first, prose mechanics last. Append-only.
62
+ # The default entry runs bmad-review's two editorial lenses in order:
63
+ # structure, then prose on top of the structure findings. The `lenses=` suffix
64
+ # names them; drop it to let bmad-review pick what fits the content.
62
65
  doc_standards = [
63
- "skill:bmad-editorial-review-structure",
64
- "skill:bmad-editorial-review-prose",
66
+ "skill:bmad-review lenses=structure,prose",
65
67
  ]
66
68
 
67
69
  # External-source registry. Natural-language directives describing knowledge bases, MCP tools, or
@@ -48,6 +48,9 @@ principles = [
48
48
  "No task complete without passing tests.",
49
49
  "Red, green, refactor — in that order.",
50
50
  "Tasks executed in the sequence written.",
51
+ "Never add epic or story references as inline code comments (e.g. # Epic: X, # Story: PROJ-42).",
52
+ "Code comments explain why, not what — no AI workflow metadata, planning refs, or story tracking in source code.",
53
+ "Generated code must be production-ready: clean, minimal, and free of AI-generated noise.",
51
54
  ]
52
55
 
53
56
  # Capabilities menu. Overrides merge by `code`: matching codes replace the item
@@ -1,13 +1,11 @@
1
1
  ---
2
2
  name: bmad-code-review
3
- description: 'Review code changes adversarially using parallel review layers (Blind Hunter, Edge Case Hunter, Acceptance Auditor) with structured triage into actionable categories. Use when the user says "run code review" or "review this code"'
3
+ description: 'Adversarial code review using parallel review layers and structured triage. Use when the user says "run code review" or "review this code"'
4
4
  ---
5
5
 
6
6
  # Code Review Workflow
7
7
 
8
- **Goal:** Review code changes adversarially using parallel review layers and structured triage.
9
-
10
- **Your Role:** You are an elite code reviewer. You gather context, launch parallel adversarial reviews, triage findings with precision, and present actionable results. No noise, no filler.
8
+ **Goal:** Review code changes adversarially. No noise, no filler.
11
9
 
12
10
  Subagents, when the capability is available, are an important part of this workflow. Use them as directed by the workflow steps.
13
11
  If you need an explicit user instruction to run them, ask once now for the whole workflow run.
@@ -39,3 +39,55 @@ persistent_facts = [
39
39
  # Leave empty for no custom post-completion behavior.
40
40
 
41
41
  on_complete = ""
42
+
43
+ # Review layers for the review step. `instruction` is the layer's whole
44
+ # execution recipe — subagents by default, but an override may run anything
45
+ # (e.g. an external reviewer via bash). {diff_output} and {spec_file} are
46
+ # substituted at run time. `when` (optional) gates a layer; empty
47
+ # `instruction` disables it.
48
+
49
+ [[workflow.review_layers]]
50
+ id = "blind-hunter"
51
+ name = "Blind Hunter"
52
+ instruction = """
53
+ Launch a subagent with no prior conversation context, with this prompt:
54
+
55
+ > Invoke the `bmad-review` skill with only the `adversarial` lens on this diff:
56
+ >
57
+ > {diff_output}
58
+ """
59
+
60
+ [[workflow.review_layers]]
61
+ id = "edge-case-hunter"
62
+ name = "Edge Case Hunter"
63
+ instruction = """
64
+ Launch a subagent with no prior conversation context, with this prompt:
65
+
66
+ > Invoke the `bmad-review` skill with only the `edge-case-hunter` lens on this diff:
67
+ >
68
+ > {diff_output}
69
+ """
70
+
71
+ [[workflow.review_layers]]
72
+ id = "verification-gap"
73
+ name = "Verification Gap Reviewer"
74
+ instruction = """
75
+ Launch a subagent with no prior conversation context, with this prompt:
76
+
77
+ > Invoke the `bmad-review` skill with only the `verification-gap` lens on this diff:
78
+ >
79
+ > {diff_output}
80
+ """
81
+
82
+ [[workflow.review_layers]]
83
+ id = "acceptance-auditor"
84
+ name = "Acceptance Auditor"
85
+ when = 'Only when {review_mode} = "full".'
86
+ instruction = """
87
+ Launch a subagent with no prior conversation context, with this prompt:
88
+
89
+ > You are an Acceptance Auditor. Review the provided diff against `{spec_file}` and any loaded context docs. Check for: violations of acceptance criteria, deviations from spec intent, missing implementation of specified behavior, contradictions between spec constraints and actual code. Output findings as a Markdown list. Each finding: one-line title, which AC/constraint it violates, and evidence from the diff.
90
+ >
91
+ > Diff:
92
+ > {diff_output}
93
+ """
@@ -79,7 +79,6 @@ story_key: '' # set at runtime when discovered from sprint status
79
79
 
80
80
  Present a summary before proceeding: diff stats (files changed, lines added/removed), `{review_mode}`, and loaded spec/context docs (if any). HALT and wait for user confirmation to proceed.
81
81
 
82
-
83
82
  ## NEXT
84
83
 
85
84
  Read fully and follow `./step-02-review.md`
@@ -8,38 +8,24 @@ failed_layers: '' # set at runtime: comma-separated list of layers that failed o
8
8
 
9
9
  - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
10
10
  - All review subagents must run at the same model capability as the current session.
11
+ - Run subagents synchronously: launch them together, then wait for all results before continuing.
11
12
 
12
13
  ## INSTRUCTIONS
13
14
 
14
- 1. If `{review_mode}` = `"no-spec"`, note to the user: "Acceptance Auditor skipped — no spec file provided."
15
+ 1. The review layers are `{workflow.review_layers}`, resolved during activation.
15
16
 
16
- 2. Launch Blind Hunter, Edge Case Hunter, and Verification Gap Reviewer in parallel without prior conversation context. If `{review_mode}` = `"full"`, include the Acceptance Auditor in the same parallel launch. If subagents are not available, generate prompt files in `{implementation_artifacts}` for each applicable reviewer role and HALT. Ask the user to run each in a separate session (ideally a different LLM) and paste back the findings. When findings are pasted, resume from this point and proceed to step 3.
17
+ 2. For each layer in `{workflow.review_layers}`:
18
+ - `instruction` empty or missing → drop the layer silently (an override disabled it).
19
+ - `when` condition present and not satisfied by the current context (`{review_mode}`, `{spec_file}`) → drop the layer and tell the user, e.g. "Acceptance Auditor skipped — no spec file provided."
20
+ - otherwise → the layer is active.
17
21
 
18
- - **Blind Hunter** prompt:
19
- > Invoke the `bmad-review-adversarial-general` skill on this diff:
20
- >
21
- > {diff_output}
22
+ If no layer is active, HALT with status `blocked` and blocking condition `no active review layers`.
22
23
 
23
- - **Edge Case Hunter** prompt:
24
- > Invoke the `bmad-review-edge-case-hunter` skill on this diff:
25
- >
26
- > {diff_output}
24
+ 3. Execute all active layers in parallel wherever their execution methods allow: substitute the runtime placeholders (`{diff_output}`, `{spec_file}`) into each layer's `instruction`, then follow it verbatim. If a layer's instruction requires subagents and subagents are not available, generate prompt files in `{implementation_artifacts}` for each such layer and HALT. Ask the user to run each in a separate session (ideally a different LLM) and paste back the findings. When findings are pasted, treat them as those layers' findings and resume from this point.
27
25
 
28
- - **Verification Gap Reviewer** prompt:
29
- > Invoke the `bmad-review-verification-gap` skill on this diff:
30
- >
31
- > {diff_output}
32
-
33
- - **Acceptance Auditor** (only if `{review_mode}` = `"full"`) — prompt:
34
- > You are an Acceptance Auditor. Review the provided diff against `{spec_file}` and any loaded context docs. Check for: violations of acceptance criteria, deviations from spec intent, missing implementation of specified behavior, contradictions between spec constraints and actual code. Output findings as a Markdown list. Each finding: one-line title, which AC/constraint it violates, and evidence from the diff.
35
- >
36
- > Diff:
37
- > {diff_output}
38
-
39
- 3. **Subagent failure handling**: If any subagent fails, times out, or returns empty results, append the layer name to `{failed_layers}` (comma-separated) and proceed with findings from the remaining layers.
40
-
41
- 4. Collect all findings from the completed layers.
26
+ 4. **Layer failure handling**: If any layer fails, times out, or returns empty results, append the layer's `name` to `{failed_layers}` (comma-separated) and proceed with findings from the remaining layers.
42
27
 
28
+ 5. Collect all findings from the completed layers, keeping track of each finding's originating layer `id`.
43
29
 
44
30
  ## NEXT
45
31
 
@@ -11,15 +11,15 @@
11
11
 
12
12
  1. **Normalize** findings from all layers into a unified list where each finding has:
13
13
  - `id` -- sequential integer
14
- - `source` -- `blind`, `edge`, `vgap`, `auditor`, or merged sources (e.g., `blind+edge`)
14
+ - `source` -- the `id` of the layer that produced the finding (e.g., `blind-hunter`), or merged sources joined with `+` (e.g., `blind-hunter+edge-case-hunter`)
15
15
  - `title` -- one-line summary
16
16
  - `detail` -- full description
17
17
  - `location` -- file and line reference (if available)
18
18
 
19
19
  2. **Deduplicate.** Deduplicate only findings with the same claim and same required action. If two or more findings meet both conditions, merge them into one:
20
- - Use the most specific finding as the base (prefer edge-case JSON with location over adversarial prose).
20
+ - Use the most specific finding as the base (prefer findings with a precise location over prose-only findings).
21
21
  - Append any unique detail, reasoning, or location references from the other finding(s) into the surviving `detail` field.
22
- - Set `source` to the merged sources (e.g., `blind+edge`).
22
+ - Set `source` to the merged sources (e.g., `blind-hunter+edge-case-hunter`).
23
23
 
24
24
  3. Then evaluate each remaining finding independently. Do not reject a finding because a related finding was rejected.
25
25
 
@@ -45,7 +45,6 @@
45
45
 
46
46
  9. If zero findings remain after triage (all rejected or none raised): state "✅ Clean review — all layers passed." (Step 3 already warned if any review layers failed via `{failed_layers}`.)
47
47
 
48
-
49
48
  ## NEXT
50
49
 
51
50
  Read fully and follow `./step-04-present.md`