bmad-method 6.11.1-next.3 → 6.11.1-next.30

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 (126) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/README.md +9 -14
  3. package/README_CN.md +0 -10
  4. package/README_VN.md +0 -10
  5. package/package.json +5 -4
  6. package/src/bmm-skills/agents/bmad-agent-analyst/customize.toml +1 -3
  7. package/src/bmm-skills/agents/bmad-agent-architect/customize.toml +1 -3
  8. package/src/bmm-skills/agents/bmad-agent-dev/customize.toml +1 -3
  9. package/src/bmm-skills/agents/bmad-agent-pm/customize.toml +1 -3
  10. package/src/bmm-skills/agents/bmad-agent-ux-designer/customize.toml +1 -3
  11. package/src/bmm-skills/module-help.csv +2 -2
  12. package/src/bmm-skills/plan/bmad-architecture/SKILL.md +1 -1
  13. package/src/bmm-skills/plan/bmad-architecture/customize.toml +5 -6
  14. package/src/bmm-skills/plan/bmad-create-epics-and-stories/customize.toml +1 -3
  15. package/src/bmm-skills/plan/bmad-generate-project-context/SKILL.md +2 -0
  16. package/src/bmm-skills/plan/bmad-prd/customize.toml +5 -6
  17. package/src/bmm-skills/plan/bmad-prfaq/customize.toml +1 -3
  18. package/src/bmm-skills/plan/bmad-product-brief/customize.toml +5 -6
  19. package/src/bmm-skills/plan/bmad-project-context/SKILL.md +23 -12
  20. package/src/bmm-skills/plan/bmad-project-context/references/best-practices.md +26 -7
  21. package/src/bmm-skills/plan/bmad-project-context/references/template.md +1 -1
  22. package/src/bmm-skills/plan/bmad-spec/customize.toml +5 -5
  23. package/src/bmm-skills/plan/bmad-sprint-planning/customize.toml +1 -3
  24. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/__pycache__/sprint_plan.cpython-311.pyc +0 -0
  25. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/__pycache__/test_sprint_plan.cpython-311-pytest-9.1.1.pyc +0 -0
  26. package/src/bmm-skills/plan/bmad-ux/customize.toml +1 -3
  27. package/src/bmm-skills/ship/bmad-build/SKILL.md +1 -1
  28. package/src/bmm-skills/ship/bmad-build/customize.toml +14 -17
  29. package/src/bmm-skills/ship/bmad-build/references/claims-check.md +14 -0
  30. package/src/bmm-skills/ship/bmad-build/review-prompts/edge-case-hunter.md +29 -7
  31. package/src/bmm-skills/ship/bmad-build/review-prompts/verification-gap.md +1 -1
  32. package/src/bmm-skills/ship/bmad-build/spec-template.md +25 -4
  33. package/src/bmm-skills/ship/bmad-build/step-01-clarify-and-route.md +20 -25
  34. package/src/bmm-skills/ship/bmad-build/step-02-plan.md +31 -16
  35. package/src/bmm-skills/ship/bmad-build/step-03-implement.md +4 -2
  36. package/src/bmm-skills/ship/bmad-build/step-04-review.md +17 -14
  37. package/src/bmm-skills/ship/bmad-build/step-05-present.md +6 -1
  38. package/src/bmm-skills/ship/bmad-build/step-oneshot.md +26 -18
  39. package/src/bmm-skills/ship/bmad-build/sync-sprint-status.md +1 -1
  40. package/src/bmm-skills/ship/bmad-build-auto/customize.toml +16 -18
  41. package/src/bmm-skills/ship/bmad-build-auto/references/claims-check.md +14 -0
  42. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/edge-case-hunter.md +29 -7
  43. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/verification-gap.md +1 -1
  44. package/src/bmm-skills/ship/bmad-build-auto/spec-template.md +4 -7
  45. package/src/bmm-skills/ship/bmad-build-auto/step-03-implement.md +5 -1
  46. package/src/bmm-skills/ship/bmad-build-auto/step-04-review.md +23 -19
  47. package/src/bmm-skills/ship/bmad-build-auto/workflow.md +1 -1
  48. package/src/bmm-skills/ship/bmad-code-review/customize.toml +14 -17
  49. package/src/bmm-skills/ship/bmad-code-review/references/claims-check.md +14 -0
  50. package/src/bmm-skills/ship/bmad-code-review/review-prompts/edge-case-hunter.md +29 -7
  51. package/src/bmm-skills/ship/bmad-code-review/review-prompts/verification-gap.md +1 -1
  52. package/src/bmm-skills/ship/bmad-code-review/steps/step-01-gather-context.md +22 -15
  53. package/src/bmm-skills/ship/bmad-code-review/steps/step-02-review.md +2 -2
  54. package/src/bmm-skills/ship/bmad-code-review/steps/step-03-triage.md +14 -21
  55. package/src/bmm-skills/ship/bmad-code-review/steps/step-04-present.md +3 -1
  56. package/src/bmm-skills/ship/bmad-correct-course/SKILL.md +11 -3
  57. package/src/bmm-skills/ship/bmad-correct-course/customize.toml +1 -3
  58. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/customize.toml +1 -3
  59. package/src/bmm-skills/ship/bmad-retrospective/customize.toml +1 -3
  60. package/src/bmm-skills/ship/bmad-retrospective/scripts/__pycache__/sprint_status.cpython-311.pyc +0 -0
  61. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_git_evidence.cpython-311-pytest-9.1.1.pyc +0 -0
  62. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_sprint_status.cpython-311-pytest-9.1.1.pyc +0 -0
  63. package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/SKILL.md +3 -3
  64. package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/customize.toml +2 -4
  65. package/src/bmm-skills/v6-shims/README.md +1 -0
  66. package/src/bmm-skills/v6-shims/bmad-checkpoint-preview/SKILL.md +21 -0
  67. package/src/bmm-skills/v6-shims/bmad-create-architecture/SKILL.md +2 -0
  68. package/src/bmm-skills/v6-shims/bmad-create-architecture/customize.toml +1 -3
  69. package/src/bmm-skills/v6-shims/bmad-create-prd/SKILL.md +2 -0
  70. package/src/bmm-skills/v6-shims/bmad-create-prd/customize.toml +1 -3
  71. package/src/bmm-skills/v6-shims/bmad-create-story/SKILL.md +3 -1
  72. package/src/bmm-skills/v6-shims/bmad-create-story/customize.toml +1 -3
  73. package/src/bmm-skills/v6-shims/bmad-dev-auto/SKILL.md +2 -0
  74. package/src/bmm-skills/v6-shims/bmad-dev-story/SKILL.md +2 -0
  75. package/src/bmm-skills/v6-shims/bmad-dev-story/customize.toml +1 -6
  76. package/src/bmm-skills/v6-shims/bmad-document-project/SKILL.md +2 -0
  77. package/src/bmm-skills/v6-shims/bmad-domain-research/SKILL.md +2 -0
  78. package/src/bmm-skills/v6-shims/bmad-edit-prd/SKILL.md +2 -0
  79. package/src/bmm-skills/v6-shims/bmad-edit-prd/customize.toml +1 -3
  80. package/src/bmm-skills/v6-shims/bmad-market-research/SKILL.md +2 -0
  81. package/src/bmm-skills/v6-shims/bmad-quick-dev/SKILL.md +2 -0
  82. package/src/bmm-skills/v6-shims/bmad-sprint-status/SKILL.md +2 -0
  83. package/src/bmm-skills/v6-shims/bmad-sprint-status/customize.toml +1 -3
  84. package/src/bmm-skills/v6-shims/bmad-technical-research/SKILL.md +2 -0
  85. package/src/bmm-skills/v6-shims/bmad-validate-prd/SKILL.md +2 -0
  86. package/src/bmm-skills/v6-shims/bmad-validate-prd/customize.toml +1 -3
  87. package/src/core-skills/bmad-advanced-elicitation/SKILL.md +21 -22
  88. package/src/core-skills/bmad-brainstorming/customize.toml +5 -6
  89. package/src/core-skills/bmad-brainstorming/scripts/brain.py +19 -0
  90. package/src/core-skills/bmad-brainstorming/scripts/tests/test_brain.py +50 -0
  91. package/src/core-skills/bmad-forge-idea/customize.toml +5 -6
  92. package/src/core-skills/bmad-help/SKILL.md +1 -1
  93. package/src/core-skills/bmad-party-mode/customize.toml +4 -4
  94. package/src/core-skills/bmad-review/SKILL.md +5 -4
  95. package/src/core-skills/bmad-review/customize.toml +1 -1
  96. package/src/core-skills/bmad-review/references/lens-edge-case-hunter.md +16 -0
  97. package/src/core-skills/module-help.csv +1 -1
  98. package/src/core-skills/v6-shims/bmad-editorial-review/SKILL.md +2 -0
  99. package/src/core-skills/v6-shims/bmad-editorial-review-prose/SKILL.md +2 -0
  100. package/src/core-skills/v6-shims/bmad-editorial-review-structure/SKILL.md +2 -0
  101. package/src/core-skills/v6-shims/bmad-review-adversarial-general/SKILL.md +2 -0
  102. package/src/core-skills/v6-shims/bmad-review-edge-case-hunter/SKILL.md +2 -0
  103. package/src/core-skills/v6-shims/bmad-review-verification-gap/SKILL.md +2 -0
  104. package/src/scripts/__pycache__/config_utils.cpython-311.pyc +0 -0
  105. package/src/scripts/resolve_config.py +9 -1
  106. package/src/scripts/tests/__pycache__/test_config_utils.cpython-311.pyc +0 -0
  107. package/src/scripts/tests/__pycache__/test_resolve_config.cpython-311.pyc +0 -0
  108. package/src/scripts/tests/__pycache__/test_resolve_customization.cpython-311.pyc +0 -0
  109. package/src/scripts/tests/test_resolve_config.py +28 -0
  110. package/tools/installer/commands/install.js +2 -0
  111. package/tools/installer/core/config.js +3 -0
  112. package/tools/installer/core/installer.js +57 -1
  113. package/tools/installer/core/manifest-generator.js +6 -0
  114. package/tools/installer/core/manifest.js +6 -0
  115. package/tools/installer/core/shim-policy.js +159 -0
  116. package/tools/installer/ide/platform-codes.yaml +7 -0
  117. package/tools/installer/modules/official-modules.js +38 -6
  118. package/tools/installer/prompts.js +15 -2
  119. package/tools/installer/ui.js +68 -3
  120. package/tools/validate-published-implementation-model.mjs +0 -9
  121. /package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/generate-trail.md +0 -0
  122. /package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/step-01-orientation.md +0 -0
  123. /package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/step-02-walkthrough.md +0 -0
  124. /package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/step-03-detail-pass.md +0 -0
  125. /package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/step-04-testing.md +0 -0
  126. /package/src/bmm-skills/ship/{bmad-checkpoint-preview → bmad-walkthrough}/step-05-wrapup.md +0 -0
@@ -34,11 +34,11 @@
34
34
  "./src/bmm-skills/plan/bmad-sprint-planning",
35
35
  "./src/bmm-skills/plan/bmad-ux",
36
36
  "./src/bmm-skills/ship/bmad-build",
37
- "./src/bmm-skills/ship/bmad-checkpoint-preview",
38
37
  "./src/bmm-skills/ship/bmad-code-review",
39
38
  "./src/bmm-skills/ship/bmad-correct-course",
40
39
  "./src/bmm-skills/ship/bmad-qa-generate-e2e-tests",
41
40
  "./src/bmm-skills/ship/bmad-retrospective",
41
+ "./src/bmm-skills/ship/bmad-walkthrough",
42
42
  "./src/core-skills/bmad-advanced-elicitation",
43
43
  "./src/core-skills/bmad-brainstorming",
44
44
  "./src/core-skills/bmad-customize",
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ![BMad Method](banner-bmad-method.png)
2
2
 
3
+
4
+ [![Version](https://img.shields.io/npm/v/bmad-method?color=blue&label=version)](https://www.npmjs.com/package/bmad-method)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
+ [![Discord](https://img.shields.io/badge/Discord-Join%20Community-7289da?logo=discord&logoColor=white)](https://discord.gg/gk8jAdXWmj)
7
+
3
8
  **Agile Ai Driven Development — turn an idea or change request into working software without giving up the thinking.**
4
9
 
5
10
  Ai Driven Development (AiDD) covers the whole effort, not only the code: what to build, how it holds together, and how it changes as you learn. BMad Method is the agile way to do it — decisions stay explicit, context carries forward, and the process sizes itself to the work. Small changes go straight to build. Complex work gets the depth it needs. The same method covers a weekend prototype and a system with years of history behind it.
@@ -18,11 +23,11 @@ npx bmad-method install
18
23
 
19
24
  Open your project in your AI coding tool, invoke `bmad-build` with what you want to change, and keep making the decisions that matter. Run `bmad-help` whenever you want guidance on what comes next or what is optional.
20
25
 
21
- **[Build your first project with BMad →](https://docs.bmad-method.org/tutorials/getting-started/)**
26
+ **[Build your first project with BMad →](https://docs.bmad-method.org/start/build-your-first-change/)**
22
27
 
23
28
  **[Add BMad to an existing codebase →](https://docs.bmad-method.org/how-to/established-projects/)**
24
29
 
25
- BMad is free and open source, with no paywalled workflows or gated community. For prerelease builds, CI/CD, configuration overrides, and non-interactive setup, see the [installation guide](https://docs.bmad-method.org/how-to/install-bmad/).
30
+ BMad is free and open source, with no paywalled workflows or gated community. For installation prerequisites, updates, prerelease builds, and the installer's live automation help, see the [installation guide](https://docs.bmad-method.org/start/install-bmad/).
26
31
 
27
32
  ## Why BMad?
28
33
 
@@ -56,15 +61,11 @@ Install the core method or add official modules for specialized work.
56
61
 
57
62
  ## Documentation
58
63
 
59
- - **[Getting Started](https://docs.bmad-method.org/tutorials/getting-started/)** — Install BMad and build a small project.
64
+ - **[Build Your First Change](https://docs.bmad-method.org/start/build-your-first-change/)** — Install BMad and build a small project.
60
65
  - **[Workflow Map](https://docs.bmad-method.org/reference/workflow-map/)** — Understand the available paths and outputs.
61
66
  - **[Established Projects](https://docs.bmad-method.org/how-to/established-projects/)** — Add BMad to an existing codebase.
62
67
  - **[Upgrade to V6](https://docs.bmad-method.org/how-to/upgrade-to-v6/)** — Migrate from an earlier version.
63
68
 
64
- ## Roadmap
65
-
66
- See what is in progress and what is planned on the [public roadmap](https://docs.bmad-method.org/roadmap/).
67
-
68
69
  ## Community
69
70
 
70
71
  - [Discord](https://discord.gg/gk8jAdXWmj) — Get help, share ideas, and collaborate.
@@ -85,10 +86,4 @@ MIT License — see [LICENSE](LICENSE) for details.
85
86
 
86
87
  **BMad** and **BMAD-METHOD** are trademarks of BMad Code, LLC. See [TRADEMARK.md](TRADEMARK.md) for details.
87
88
 
88
- [![Contributors](https://contrib.rocks/image?repo=bmad-code-org/BMAD-METHOD)](https://github.com/bmad-code-org/BMAD-METHOD/graphs/contributors)
89
-
90
- See [CONTRIBUTORS.md](CONTRIBUTORS.md) for contributor information.
91
-
92
- [![Version](https://img.shields.io/npm/v/bmad-method?color=blue&label=version)](https://www.npmjs.com/package/bmad-method)
93
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
94
- [![Discord](https://img.shields.io/badge/Discord-Join%20Community-7289da?logo=discord&logoColor=white)](https://discord.gg/gk8jAdXWmj)
89
+ If you would like to contribute, join us in the discord and read [CONTRIBUTORS.md](CONTRIBUTORS.md) first.
package/README_CN.md CHANGED
@@ -24,14 +24,6 @@
24
24
 
25
25
  ---
26
26
 
27
- ## 🚀 BMad 的下一步是什么?
28
-
29
- **V6 已经上线,而这只是开始。** BMad 仍在快速演进:跨平台智能体团队与子智能体集成、Skills 架构、BMad Builder v1、Dev Loop 自动化等能力都在持续推进。
30
-
31
- **[📍 查看完整路线图 →](https://docs.bmad-method.org/zh-cn/roadmap/)**
32
-
33
- ---
34
-
35
27
  ## 快速开始
36
28
 
37
29
  **先决条件**:[Node.js](https://nodejs.org) v20+
@@ -103,6 +95,4 @@ MIT 许可证 — 详见 [LICENSE](LICENSE)。
103
95
 
104
96
  **BMad** 和 **BMAD-METHOD** 是 BMad Code, LLC 的商标。详见 [TRADEMARK.md](TRADEMARK.md)。
105
97
 
106
- [![Contributors](https://contrib.rocks/image?repo=bmad-code-org/BMAD-METHOD)](https://github.com/bmad-code-org/BMAD-METHOD/graphs/contributors)
107
-
108
98
  请参阅 [CONTRIBUTORS.md](CONTRIBUTORS.md) 了解贡献者信息。
package/README_VN.md CHANGED
@@ -28,14 +28,6 @@ Các công cụ AI truyền thống thường làm thay phần suy nghĩ của b
28
28
 
29
29
  ---
30
30
 
31
- ## 🚀 Điều gì tiếp theo cho BMad?
32
-
33
- **V6 đã có mặt và đây mới chỉ là khởi đầu!** BMad Method đang phát triển rất nhanh với các cải tiến như đội agent đa nền tảng và tích hợp sub-agent, kiến trúc Skills, BMad Builder v1, tự động hóa vòng lặp phát triển và nhiều thứ khác vẫn đang được xây dựng.
34
-
35
- **[📍 Xem lộ trình đầy đủ →](https://docs.bmad-method.org/vi-vn/roadmap/)**
36
-
37
- ---
38
-
39
31
  ## Bắt đầu nhanh
40
32
 
41
33
  **Điều kiện tiên quyết**: [Node.js](https://nodejs.org) v20+ · [Python](https://www.python.org) 3.10+ · [uv](https://docs.astral.sh/uv/)
@@ -104,6 +96,4 @@ Giấy phép MIT - xem [LICENSE](LICENSE) để biết chi tiết.
104
96
 
105
97
  **BMad** và **BMAD-METHOD** là các nhãn hiệu của BMad Code, LLC. Xem [TRADEMARK.md](TRADEMARK.md) để biết chi tiết.
106
98
 
107
- [![Contributors](https://contrib.rocks/image?repo=bmad-code-org/BMAD-METHOD)](https://github.com/bmad-code-org/BMAD-METHOD/graphs/contributors)
108
-
109
99
  Xem [CONTRIBUTORS.md](CONTRIBUTORS.md) để biết thông tin về những người đóng góp.
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.11.1-next.3",
4
+ "version": "6.11.1-next.30",
5
5
  "description": "Breakthrough Method of Agile AI-driven Development",
6
6
  "keywords": [
7
7
  "agile",
@@ -40,11 +40,12 @@
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:site-url && npm run test:install && npm run test:urls && npm run test:renderer && npm run test:retrospective && npm run test:sprint-planning && 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:site-url && npm run test:implementation-model && npm run test:install && npm run test:urls && npm run test:renderer && npm run test:retrospective && npm run test:sprint-planning && 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:site-url && npm run test:channels && npm run test:renderer && npm run test:retrospective && npm run test:sprint-planning && 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:site-url && npm run test:implementation-model && npm run test:channels && npm run test:renderer && npm run test:retrospective && npm run test:sprint-planning && 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
- "test:install": "node test/test-installation-components.js",
47
+ "test:implementation-model": "node test/test-validate-published-implementation-model.mjs",
48
+ "test:install": "node test/test-installation-components.js && node test/test-shim-policy.js",
48
49
  "test:refs": "node test/test-file-refs-csv.js",
49
50
  "test:renderer": "uv run --python 3.11 python -m unittest src/scripts/tests/test_config_utils.py src/scripts/tests/test_resolve_config.py src/scripts/tests/test_resolve_customization.py && node test/test-build-auto-renderer.js",
50
51
  "test:retrospective": "uv run --python 3.11 src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_git_evidence.py && uv run --python 3.11 src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_sprint_status.py",
@@ -35,9 +35,7 @@ activation_steps_append = []
35
35
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
36
36
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
37
37
 
38
- persistent_facts = [
39
- "file:{project-root}/**/project-context.md",
40
- ]
38
+ persistent_facts = []
41
39
 
42
40
  role = "Help the user ideate research and analyze before committing to a project in the BMad Method analysis phase."
43
41
  identity = "Channels Michael Porter's strategic rigor and Barbara Minto's Pyramid Principle discipline."
@@ -35,9 +35,7 @@ activation_steps_append = []
35
35
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
36
36
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
37
37
 
38
- persistent_facts = [
39
- "file:{project-root}/**/project-context.md",
40
- ]
38
+ persistent_facts = []
41
39
 
42
40
  role = "Convert the PRD and UX into technical architecture decisions that keep implementation on track during the BMad Method solutioning phase."
43
41
  identity = "Channels Martin Fowler's pragmatism and Werner Vogels's cloud-scale realism."
@@ -35,9 +35,7 @@ activation_steps_append = []
35
35
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
36
36
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
37
37
 
38
- persistent_facts = [
39
- "file:{project-root}/**/project-context.md",
40
- ]
38
+ persistent_facts = []
41
39
 
42
40
  role = "Implement approved stories with test-first discipline and ship working, verified code during the BMad Method implementation phase."
43
41
  identity = "Disciplined in Kent Beck's TDD and the Pragmatic Programmer's precision."
@@ -35,9 +35,7 @@ activation_steps_append = []
35
35
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
36
36
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
37
37
 
38
- persistent_facts = [
39
- "file:{project-root}/**/project-context.md",
40
- ]
38
+ persistent_facts = []
41
39
 
42
40
  role = "Translate product vision into a validated PRD, epics, and stories that development can execute during the BMad Method planning phase."
43
41
  identity = "Thinks like Marty Cagan and Teresa Torres. Writes with Bezos's six-pager discipline."
@@ -35,9 +35,7 @@ activation_steps_append = []
35
35
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
36
36
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
37
37
 
38
- persistent_facts = [
39
- "file:{project-root}/**/project-context.md",
40
- ]
38
+ persistent_facts = []
41
39
 
42
40
  role = "Turn user needs and the PRD into UX design specifications that inform architecture and implementation during the BMad Method planning phase."
43
41
  identity = "Grounded in Don Norman's human-centered design and Alan Cooper's persona discipline."
@@ -1,5 +1,5 @@
1
1
  module,skill,display-name,menu-code,description,action,args,phase,preceded-by,followed-by,required,output-location,outputs
2
- BMad Method,_meta,,,,,,,,,false,https://docs.bmad-method.org/llms.txt,
2
+ BMad Method,_meta,,,,,,,,,false,https://docs.bmad-method.org/,
3
3
  BMad Method,bmad-project-context,Project Context,PC,"Set up or refresh a repo's agent instructions so AI agents work well in it: verified commands, policy, conventions that differ from defaults, and known pitfalls. Setup, refresh, record, and audit — replaces document-project and generate-project-context.",,,anytime,,,false,repo root,AGENTS.md managed block
4
4
  BMad Method,bmad-build,Build,BD,"The standard implementation flow: clarify intent, plan, implement, review, and present.",,,ship,bmad-sprint-planning,bmad-code-review,true,implementation_artifacts,spec and project implementation
5
5
  BMad Method,bmad-spec,Spec,SPC,"Condense any input (brief, PRD, transcript, brain dump, design folder, or several sources at once) into a short SPEC.md plus supporting files that later work builds from. Pins down what to build before deciding how. Works for software, game design, research, editorial, policy, business — anything with an intent behind it. Can also validate an existing spec.",,[path],anytime,,,false,{output_folder}/specs/spec-{slug},SPEC.md + companion files
@@ -14,6 +14,6 @@ BMad Method,bmad-create-epics-and-stories,Create Epics and Stories,CE,Break the
14
14
  BMad Method,bmad-sprint-planning,Sprint Planning,SP,"Checks the planning is complete enough to implement (PASS/CONCERNS/FAIL), then generates the sprint status file that implementation agents follow for every story.",,,plan,,,true,implementation_artifacts,sprint status
15
15
  BMad Method,bmad-sprint-planning,Sprint Status,SS,"Summarize sprint progress at any time: risks, open action items, and the recommended next action. Can also validate or repair the tracking file.",status,,anytime,,,false,,status summary
16
16
  BMad Method,bmad-code-review,Code Review,CR,Ad hoc review of any code change. An optional extra check after Build's built-in review.,,,ship,bmad-build,,false,,
17
- BMad Method,bmad-checkpoint-preview,Checkpoint,CK,"Guided walkthrough of a change, from purpose and context into details. Use for human review of commits, branches, or PRs.",,,ship,,,false,,
17
+ BMad Method,bmad-walkthrough,Walkthrough,WT,"Guided walkthrough of a change, from purpose and context into details. Use for human review of commits, branches, or PRs.",,,ship,,,false,,
18
18
  BMad Method,bmad-qa-generate-e2e-tests,QA Automation Test,QA,Generate automated API and end-to-end tests for implemented code. Not for code review or story validation — use Code Review for that.,,,ship,bmad-build,,false,implementation_artifacts,test suite
19
19
  BMad Method,bmad-retrospective,Retrospective,ER,"Optional at the end of an epic: review the completed work and lessons learned, and look ahead to the next epic. If major issues surfaced, consider Correct Course.",,,ship,bmad-code-review,,false,implementation_artifacts,retrospective
@@ -50,7 +50,7 @@ Writes go through the shared script (don't read the file back except on resume):
50
50
 
51
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
- 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.
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 — empty unless the user opted in — and consult `{workflow.external_sources}` on demand.
54
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.
@@ -24,14 +24,13 @@ activation_steps_append = []
24
24
  # Each entry is either a literal sentence, a skill prefixed with `skill:`, or a `file:`-prefixed
25
25
  # path/glob whose contents are loaded as facts.
26
26
  #
27
- # Default loads project-context.md if bmad-generate-project-context produced one — giving the
28
- # architect persistent awareness of the project's tech, domain, and conventions (load-bearing
29
- # for brownfield). Common opt-ins (set in team/user override TOML):
27
+ # Empty by default. Repo-wide context belongs in AGENTS.md (see bmad-project-context), which every
28
+ # skill already sees; use this for context only this skill needs, loaded on demand rather than
29
+ # carried as constant memory. Common opt-ins (set in team/user override TOML):
30
30
  # "Our org is AWS-only -- do not propose GCP or Azure."
31
31
  # "file:{project-root}/docs/engineering-standards.md"
32
- persistent_facts = [
33
- "file:{project-root}/**/project-context.md",
34
- ]
32
+ # "file:{project-root}/**/project-context.md" # if you keep a project-context.md
33
+ persistent_facts = []
35
34
 
36
35
  # Executed when the workflow completes (after the spine is final and the user has been told).
37
36
  # String scalar (single instruction) or array of instructions executed in order. Empty for none.
@@ -30,9 +30,7 @@ activation_steps_append = []
30
30
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
31
31
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
32
32
 
33
- persistent_facts = [
34
- "file:{project-root}/**/project-context.md",
35
- ]
33
+ persistent_facts = []
36
34
 
37
35
  # Scalar: executed when the workflow reaches Step 4 (Final Validation) and the
38
36
  # user confirms [C] Complete — after the epics.md is saved and bmad-help is invoked.
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  name: bmad-generate-project-context
3
3
  description: 'Deprecated — forwards to bmad-project-context. Use when the user says "generate project context" or "create project context"'
4
+ metadata:
5
+ lifecycle: shim
4
6
  ---
5
7
 
6
8
  # DEPRECATED — forwards to bmad-project-context
@@ -24,14 +24,13 @@ activation_steps_append = []
24
24
  # Each entry is either a literal sentence, a skill prefixed with `skill:`, or a `file:`-prefixed path/glob
25
25
  # whose contents are loaded as facts.
26
26
  #
27
- # Default loads project-context.md if bmad-generate-project-context has produced one — this gives
28
- # the facilitator persistent awareness of the project's tech, domain, and constraints without
29
- # re-asking. Common opt-ins (set in team/user override TOML):
27
+ # Empty by default. Repo-wide context belongs in AGENTS.md (see bmad-project-context), which every
28
+ # skill already sees; use this for context only this skill needs, loaded on demand rather than
29
+ # carried as constant memory. Common opt-ins (set in team/user override TOML):
30
+ # "file:{project-root}/**/project-context.md" # if you keep a project-context.md
30
31
  # "skill:acme-co:terms-and-conditions" # a skill that contains some relevant info
31
32
  # "Investor PRDs must include a market sizing section." # generic agent instruction
32
- persistent_facts = [
33
- "file:{project-root}/**/project-context.md",
34
- ]
33
+ persistent_facts = []
35
34
 
36
35
  # Executed when the workflow completes (after the user has been told the
37
36
  # PRD is ready). Accepts either a string scalar (single instruction)
@@ -30,9 +30,7 @@ activation_steps_append = []
30
30
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
31
31
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
32
32
 
33
- persistent_facts = [
34
- "file:{project-root}/**/project-context.md",
35
- ]
33
+ persistent_facts = []
36
34
 
37
35
  # Scalar: executed when the workflow reaches its terminal stage (Stage 5: The Verdict),
38
36
  # after the PRFAQ and distillate have been delivered. Override wins. Leave empty for
@@ -24,14 +24,13 @@ activation_steps_append = []
24
24
  # Each entry is either a literal sentence, a skill prefixed with `skill:`, or a `file:`-prefixed path/glob
25
25
  # whose contents are loaded as facts.
26
26
  #
27
- # Default loads project-context.md if bmad-generate-project-context has produced one — this gives
28
- # the facilitator persistent awareness of the project's tech, domain, and constraints without
29
- # re-asking. Common opt-ins (set in team/user override TOML):
27
+ # Empty by default. Repo-wide context belongs in AGENTS.md (see bmad-project-context), which every
28
+ # skill already sees; use this for context only this skill needs, loaded on demand rather than
29
+ # carried as constant memory. Common opt-ins (set in team/user override TOML):
30
+ # "file:{project-root}/**/project-context.md" # if you keep a project-context.md
30
31
  # "skill:acme-co:terms-and-conditions" # a skill that contains some relevant info
31
32
  # "Elvis has left the building" # generic agent instruction
32
- persistent_facts = [
33
- "file:{project-root}/**/project-context.md",
34
- ]
33
+ persistent_facts = []
35
34
 
36
35
  # Executed when the workflow completes (after the user has been told the
37
36
  # brief is ready). Accepts either a string scalar (single instruction)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bmad-project-context
3
- description: 'Set up, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfalls. Must be invoked by name'
3
+ description: 'Set up, adopt, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfalls. Use when invoked by name'
4
4
  ---
5
5
 
6
6
  # Overview
@@ -9,7 +9,7 @@ A conversation that produces a repository's agent instructions: a small verified
9
9
 
10
10
  Conversational always; the user approves every write.
11
11
 
12
- **Args:** intent (`setup` | `refresh` | `record` | `audit`); a target repo or path; extra source paths or URLs. Supplied values skip their questions.
12
+ **Args:** intent (`setup` | `adopt` | `refresh` | `record` | `audit`); a target repo or path; extra source paths or URLs.
13
13
 
14
14
  ## Resolution rules
15
15
 
@@ -22,9 +22,9 @@ Conversational always; the user approves every write.
22
22
  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. Execute `{workflow.activation_steps_prepend}`; treat `{workflow.persistent_facts}` entries as standing context (`file:` = paths/globs to load, others verbatim).
23
23
  2. Config: if `{project-root}/_bmad` exists, `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root}` and read `{user_name}`, `{communication_language}` (use it every turn), `{output_folder}`. Standalone: skip.
24
24
  3. **Load `references/best-practices.md` and `references/template.md` before anything else.** Every decision below is made against them.
25
- 4. Detect intent and greet `{user_name}`: **setup** (no block in the target — the default), **refresh** (a block exists), **record** (the user reports a mistake agents made), **audit** (re-verify and prune). Fold `{workflow.external_sources}` into the source list. Execute `{workflow.activation_steps_append}`.
25
+ 4. Detect intent and greet `{user_name}`: **setup** (no instruction file in the target carries meaningful content scaffolding alone, empty headings, a comment, a lone import line, is not meaningful; when unsure, adopt, since adopting a near-empty file costs one small ledger while setting up a meaningful one loses instructions), **adopt** (an instruction file has content but no managed block, whatever its state and whoever wrote it — the migration form of refresh; that file is the baseline and every instruction in it enters the ledger of step 1), **refresh** (a managed block exists), **record** (the user reports a mistake agents made), **audit** (re-verify and prune). A supplied intent that contradicts what detection finds — e.g. `setup` against a file with content — is surfaced and confirmed, never silently obeyed. Fold `{workflow.external_sources}` into the source list. Execute `{workflow.activation_steps_append}`.
26
26
 
27
- ## Setup and Refresh Steps
27
+ ## Setup, Adoption, and Refresh Steps
28
28
 
29
29
  No writes until step 5!
30
30
 
@@ -32,6 +32,8 @@ No writes until step 5!
32
32
 
33
33
  Read `AGENTS.md`, harness or agent specific rule files, docs folders, and any notes carrying lessons. Report what exists and how it measures up, per `best-practices.md`.
34
34
 
35
+ Existing instructions are the baseline being improved, never raw material to discard. Open a **ledger**: one entry per existing section and per independently meaningful instruction, opened at `retain` or `rewrite`, carrying what an agent would get wrong without it. Entries settle as evidence arrives in steps 2–4 — `retain | rewrite | relocate | automate | delete`, each with its reason, its evidence, the risk if it goes, a destination for a relocation, and an approval flag. Deletion needs one of the four grounds in `best-practices.md`, and a relocation destination must itself be loaded or sit behind an observable trigger — a move into a file nothing reads is a deletion and needs its ground. Setup has nothing to map and opens no ledger; refresh opens entries for the lines it proposes to change or remove, the block's own included. A lesson found outside the instruction files — a warning in a README, a notes file — is an ordinary candidate, not a ledger entry.
36
+
35
37
  If the target contains separable units — a workspace manifest listing members, or directories carrying their own build manifest — name them and ask whether this run covers the root only, all of them, or which. Absent that evidence, do not ask. Sibling repositories are not children; each is its own target, offered in turn.
36
38
 
37
39
  ### 2. Ask what they bring
@@ -44,7 +46,7 @@ Greenfield: this is the whole content. Brownfield: it is the half no scan reache
44
46
 
45
47
  Fan out with parallel subagents against what the sections need — executable config and CI for policy and for what they already state, tracked source for conventions and boundaries, targeted history for constraints whose reason must still hold.
46
48
 
47
- `package.json`, a `Makefile`, `pyproject.toml`, and CI config are read to know what the block must not repeat. Their caveats come from the human in step 4. Path-check every claim naming a file.
49
+ `package.json`, a `Makefile`, `pyproject.toml`, contribution guides, pull request templates, and CI config are read to know what the block must not repeat. Their caveats come from the human in step 4. Path-check every claim naming a file. For every claim the block will make about what a command does, read the target or script that runs it and verify the claim.
48
50
 
49
51
  Each child agreed in step 1 is scanned as its own scope, against its own manifests.
50
52
 
@@ -61,9 +63,9 @@ Only what no scan reaches: what agents keep getting wrong here, what is off limi
61
63
 
62
64
  ### 5. Show the block, then write it
63
65
 
64
- Compose against `template.md`. For each candidate, ask first whether a hook, lint rule, or CI check enforces it better than prose; if so propose the check, and the line becomes the fallback if they decline.
66
+ Compose against `template.md`. For each candidate, ask first whether a hook, lint rule, or CI check enforces it better than prose; if so propose the check, and the line becomes the fallback if they decline. A ledger entry marked `automate` keeps its instruction until its check is in place (a later run deletes the line under ground 2 once the check is live).
65
67
 
66
- **Show the complete block before writing it**, and every child block alongside it — one approval covers the set. On approval, splice between the markers, leaving everything outside them byte-identical. Fill each provenance line with today's date and the verified SHA.
68
+ **Show the complete block before writing it**, and every child block alongside it — one approval covers the set. **Present the settled ledger with it**: replacement text alone is an incomplete proposal, because it shows what the user gains and hides what they lose. Every existing instruction appears with its decision and reason. Retains and rewrites that keep the full rule may be grouped. If a rewrite weakens, narrows, or drops part of a rule, treat the lost part as a deletion and list it separately. Keep the rule itself; examples may explain it but cannot replace it. Every relocation, automation, and deletion is itemized. A deletion resting on none of the first three grounds is held for line-item approval — approving the block never approves it — and a declined deletion, relocation, or automation reverts to retain. On approval, splice between the markers the splice itself touches nothing outside them. Text outside the markers changes only through a settled ledger entry or a proposed fix the user has seen, never as a side effect of the splice. Fill each provenance line with today's date and the verified SHA.
67
69
 
68
70
  Where an instruction elsewhere contradicts the block in a way that changes behavior — a stale `CLAUDE.md` line, a retired command — propose the fix to that file. Two live contradictory instructions is a defect.
69
71
 
@@ -71,15 +73,22 @@ Never commit.
71
73
 
72
74
  ### 6. Close
73
75
 
74
- - What went in, and what was left out and why.
76
+ - What went in, what was left out and why, and — after adoption or refresh — where each existing instruction landed.
75
77
  - Why, in the user's terms, from `best-practices.md` — why it is small, why what the repo already states stays out, why a pitfall stays until its cause is gone.
76
78
  - How it loads, and that other harness files can point at it.
79
+ - Any branch, ticket, commit, or pull request rules that apply when the user submits these instruction changes.
77
80
  - Maintenance: re-run after significant change, `record` the moment an agent gets something wrong, prefer a check over a new line.
78
81
  - Rules repeating across their projects, or personal rather than the team's, belong in their global agent config.
79
82
 
80
83
  ### Refresh
81
84
 
82
- Same steps, step 1 as a diff. Read the provenance line, re-verify every path and every caveat, and run `git log --diff-filter=DR --name-only` since the recorded SHA against every line — update or remove lines whose evidence is gone. Never re-ask what a prior run settled; the interview shrinks to what changed about how the team works. The block grows only on new evidence.
85
+ Same steps, step 1 as a diff. Read the provenance line, re-verify every path and every caveat, and run `git log --diff-filter=DR --name-only` since the recorded SHA against every line — update or remove lines whose evidence is gone. Every proposed removal is a ledger entry shown in step 5, never a silent edit, and handwritten instructions outside the block are treated as in adoption — any proposal touching them enters the ledger. Never re-ask what a prior run settled; the interview shrinks to what changed about how the team works. The block grows only on new evidence.
86
+
87
+ ### Adoption
88
+
89
+ Refresh against instructions this skill has never touched. Nothing was settled by a prior run, so the full interview applies — and the file itself is maintainer testimony, so the ledger is the run's main output: the user should be able to read it and see where each of their instructions went.
90
+
91
+ The proposal states what remains of every file instructions were moved out of — commonly a `CLAUDE.md` reduced to `@AGENTS.md`, once that import is verified for every harness in use, like any loading mechanism. No instruction lives in two loaded files, where it is paid for twice; a duplicate, verbatim or reworded, is kept once — the block keeps the survivor — and that settles both entries.
83
92
 
84
93
  ### Greenfield
85
94
 
@@ -97,13 +106,15 @@ Take the task, the mistake, the correction, and its evidence. Check the block fo
97
106
 
98
107
  ## Audit
99
108
 
100
- Re-check every caveat, path-check every file, follow every pointer, and ask of every line whether removing it would change agent behavior. Check for contradictions with other instruction files.
109
+ Re-check every caveat, path-check every file, follow every pointer, and ask of every line whether removing it would change agent behavior. Verify each command claim against the target or script that runs it. Check for contradictions with other instruction files.
101
110
 
102
- Failing lines move behind an observable trigger, get fixed, or are deleted confirm deletions first. **A policy or pitfall goes only when the thing it guards is gone or the user retires it; nothing failing lately is not grounds.** Audit ends smaller or equal.
111
+ Failing lines get fixed, move behind an observable trigger, or become ledger entries: a removal needs one of the four grounds in `best-practices.md`, presented and settled as in step 5 before anything is removed. **A policy or pitfall goes only when the thing it guards is gone or the user retires it; nothing failing lately is not grounds.** Audit ends smaller or equal.
103
112
 
104
113
  ## Children
105
114
 
106
- A component, nested repository, or extracted rules file gets its own file under the same shape when work keeps landing there and its truths do not belong at the parent level. Rules bounded to a directory go in a nested `AGENTS.md` there, attached by location. Use a linked file only when the trigger is not a path.
115
+ A component, nested repository, or extracted rules file gets its own file under the same shape when work keeps landing there and every condition holds: its rules are subtree-exclusive, they are substantial (a handful of rules is not a file), the split materially reduces the parent block, the loading mechanism is verified for every harness in use checked, never assumed — and the user approves the split. Even with verified loading, keep a rule at the root when it must apply before a session enters that directory or when breaking it can affect work outside the child. Otherwise the rules stay in the parent block as path-qualified lines ("in `src/importer/`: ..."), which cost less than a file nobody loads. Why the loading check: `best-practices.md`.
116
+
117
+ Use a linked file only when the trigger is not a path.
107
118
 
108
119
  A chosen child that ends with nothing its parent does not already say gets no file. Say so and move on.
109
120
 
@@ -4,15 +4,19 @@ Rules for deciding what goes in the block, for judging what a repo already has,
4
4
 
5
5
  ## The test
6
6
 
7
- Can an agent derive this by reading the repository? If yes, leave it out a stored copy is a stale duplicate of something the agent reads more accurately first-hand, and it is charged on every session. Write down what the code cannot say.
7
+ Not *could an agent derive this* but *what does it cost when it doesn't*: how much exploration finding it takes, how likely the agent is to search the right place in time rather than guess, whether it is available at the point of use or only after the mistake, what a retrieval failure costs — a wasted search, or corrupt data — and whether it is a rule that must hold or a detail the code already shows.
8
+
9
+ A line that stops the same rediscovery every session earns its place, derivable or not. A stored copy of what the agent reads more accurately first-hand does not — it rots, and it is charged every session.
8
10
 
9
11
  ## Admit
10
12
 
11
13
  - **Policy the code cannot express** — branch rules, frozen and protected paths, generated files, secrets, security and compliance. Stated by a human or read off an enforcing config, never inferred.
12
- - **What a config file cannot say about running the project** — the root test script does nothing in this workspace, integration tests need a service up first, the suite takes eleven minutes so iterate on single files, the `Makefile` is the real entry point and `package.json` is vestigial, CI runs a typecheck the test script does not. The invocation itself is already stated in `package.json`, `Makefile`, `pyproject.toml`, or CI config and does not earn a line — the correction or the caveat does.
14
+ - **What a config file cannot say about running the project** — the root test script does nothing in this workspace, integration tests need a service up first, the suite takes eleven minutes so iterate on single files, the `Makefile` is the real entry point and `package.json` is vestigial, CI runs a typecheck the test script does not. An invocation the obvious guess gets right is already stated in `package.json`, `Makefile`, `pyproject.toml`, or CI config and does not earn a line — the correction, the caveat, and the right command to use do.
13
15
  - **Conventions that differ from ecosystem defaults.** An agent follows the norm unless told otherwise, so only the divergences earn a line. Command invocations count: when the obvious command is wrong here — a bare-repo prefix, a required wrapper — the exact working invocation earns a line, and no observed mistake is needed to admit it.
14
16
  - **Pitfalls with observed evidence** — a recorded lesson, the maintainer's recollection, the same mistake fixed repeatedly in history, or one this session made and caught. A repo yields hundreds of trap-looking facts and none of them predict real mistakes; only observed behavior does. A surprising scan finding is a question to ask, not a line to write.
15
17
  - **Runtime behavior invisible from the repo** — replaying webhooks, lying health endpoints, environment quirks — once a human confirms it.
18
+ - **Cross-component rules**, admitted when getting one wrong in one file breaks something elsewhere — what must stay true across parts of the system the agent cannot see from the file it is editing: who owns what, how data must flow, what order a pipeline runs in. "Writes go through the dispatcher; direct store mutation skips the transaction." "The importer is two passes — validate every row, then commit; never write inside the parse loop." A six-line map of who owns what. Never an inventory written for completeness; the exclusions below still bind.
19
+ - **Required tool and runtime versions**, read from the project files that declare them, never from this session's environment — which answers faster, and wrongly, so the mistake arrives before the search.
16
20
  - **Entry points and pointers** to where work lands.
17
21
 
18
22
  Prefer prohibitions to advice, and name the permitted alternative in the same line.
@@ -25,26 +29,30 @@ Prefer prohibitions to advice, and name the permitted alternative in the same li
25
29
  | Anything included for being interesting | Interest is not need |
26
30
  | Style rules an agent self-enforces | Belongs in a formatter, linter, hook, or CI check — propose the check instead |
27
31
  | Platitudes | Already the default |
28
- | Commands already stated in `package.json`, a `Makefile`, or CI config | Read from the source of truth; a copy drifts the moment a script is renamed |
32
+ | Transcribed command lists whose obvious invocation is already right | Read from `package.json`, a `Makefile`, or CI config; a copy drifts the moment a script is renamed. The right command to use, and any command the obvious guess gets wrong, are admitted above |
29
33
  | Pasted code, changelog content, fast-changing facts | Stale immediately |
30
34
  | Aspirational state | Describe what is; intent belongs in specs |
31
35
  | History and edit narration | Git holds it; state present truth |
32
36
 
33
37
  ## Retire
34
38
 
35
- A policy or pitfall goes only when the thing it guards is gone, or the user retires it. Nothing failing lately is not evidence — a working rule erases its own evidence.
39
+ A policy or pitfall goes only when the thing it guards is gone, or the user retires it. Nothing failing lately is not evidence — a working rule erases its own evidence. Any other existing instruction goes only on one of the four grounds under "Judging an existing file".
36
40
 
37
- Every other line faces one question at each write: would removing it change agent behavior? If no, cut it.
41
+ Every line faces one question at each write: would removing it change agent behavior? If no, cut it — but for a line a human wrote, that answer only opens a candidate; a ground still has to carry it.
38
42
 
39
43
  ## Size
40
44
 
41
45
  Every line is paid in every session, and instruction-following degrades as the loaded set grows. Count what other always-loaded files add. Over budget means cut the weakest lines or move them behind a trigger — never raise the budget. Ten lines of evidence means ten lines.
42
46
 
47
+ An adopted file must fit the budget too, but shrinking it works differently. Move the weakest instructions out first — into a child file, a linked doc, or a hook or check that enforces them. Deleting still needs one of the four grounds. If the file is still too big and no ground justifies another deletion, show the user and let them decide — an over-budget file they chose beats a gutted one they didn't. "Keep it small" disciplines what this skill writes, never what the maintainer already wrote.
48
+
43
49
  ## Retrieval
44
50
 
45
51
  An index the agent must choose to fetch gets skipped; one already in context does not. Keep everything load-bearing in the block. A pointer out of it names a trigger the agent can observe — a path, a file type, a named task — never one it must judge ("when the task is complex") or track about itself ("before your first edit").
46
52
 
47
- Rules bounded to a directory go in a nested `AGENTS.md` there, attached by location rather than by pointer. Use a linked file only when the trigger is not a path.
53
+ Rules bounded to a directory can go in a nested `AGENTS.md` there, attached by location rather than by pointer but only when they are subtree-exclusive and substantial, the split materially reduces the root block, the user approves it, and **loading is verified for every harness in use**. Even with verified loading, keep a rule at the root when it must apply before a session enters that directory or when breaking it can affect work outside the child. Check, never assume: several harnesses build the instruction chain once at session start, root down to the working directory, so a nested file is invisible to the session that later edits into that subtree. Unverified means path-qualified lines at root instead — "in `src/importer/`: ..." — cheaper than a file nobody loads.
54
+
55
+ Use a linked file only when the trigger is not a path.
48
56
 
49
57
  ## Maintain
50
58
 
@@ -62,4 +70,15 @@ Two things belong in the user's global agent config instead — rules repeating
62
70
 
63
71
  ## Judging an existing file
64
72
 
65
- Report, in this order: what is derivable filler, what is unverifiable or stale, what is missing against the sections above, and what is already good. Keep recorded lessons by default they are maintainer testimony, and are challenged only with evidence that the thing they name is gone or wrong.
73
+ Every instruction a human wrote is presumed intentional: someone paid for it, usually by watching an agent fail. The file is the baseline being improved, not raw material. Keep its phrasing where it works, and carry each instruction through a ledger entry `retain | rewrite | relocate | automate | delete`, opened at retain or rewrite — so the user sees where all of it went.
74
+
75
+ **Deletion needs one of four grounds:**
76
+
77
+ 1. **Stale or incorrect** — the referent is gone, or the instruction was never true; the evidence is named.
78
+ 2. **Mechanically enforced** — a hook, linter, formatter, or CI check already fails the violation named by the instruction. A tool that only covers the same files or topic does not enforce the instruction.
79
+ 3. **Harmful or contradictory** — it points agents at the wrong thing, or it contradicts another live instruction and loses the reconciliation.
80
+ 4. **The user approved this deletion** — asked as a line item, never implied by approving a replacement block.
81
+
82
+ Grounds 1–3 are evidence the run carries itself, and ride the block approval; ground 4 is the ask-first path everything else takes. Nothing else deletes. Brevity is not grounds, nothing failing lately is not grounds, "the agent could derive it" is not grounds, and **"it is discoverable somewhere in the repository" is never, alone, grounds** — that is the reasoning that empties good files. Content the exclusions table rejects — a directory tree, a stack list, pasted code — has no ground of its own: propose the deletion and let it land under ground 4, asked rather than assumed.
83
+
84
+ Report, in this order: what is unverifiable or stale, what is missing against the sections above, what is already good, and the ledger, every relocation, automation, and deletion itemized. Recorded lessons are maintainer testimony — kept by default, challenged only with evidence that the thing they name is gone or wrong.
@@ -5,7 +5,7 @@ Sections in this order. Omit any section with nothing that passes its rule — n
5
5
  1. **Orientation** — three or four sentences: what this is, the stack, where planning and deeper docs live.
6
6
  2. **Policy** — what the org requires.
7
7
  3. **Where things are** — entry points, and pointers to children and linked files.
8
- 4. **Running and verifying** — only what `package.json`, a `Makefile`, or CI config does not already say.
8
+ 4. **Running and verifying** — the right commands to run and the required tool versions, plus what `package.json`, `pyproject.toml`, a `Makefile`, or CI config does not already say.
9
9
  5. **Conventions that differ from defaults**
10
10
  6. **Known pitfalls**
11
11
 
@@ -20,11 +20,11 @@ activation_steps_append = []
20
20
  # Persistent facts the workflow keeps in mind for the whole run.
21
21
  # Each entry is either a literal sentence, a skill prefixed with `skill:`,
22
22
  # or a `file:`-prefixed path/glob whose contents are loaded as facts.
23
- # Default points to a single top-level file; override in team/user TOML
24
- # to widen the scope (e.g. `_bmad/**/project-context.md`) if needed.
25
- persistent_facts = [
26
- "file:{project-root}/project-context.md",
27
- ]
23
+ # Empty by default. Repo-wide context belongs in AGENTS.md (see bmad-project-context),
24
+ # which every skill already sees; use this for context only this skill needs, loaded on
25
+ # demand rather than carried as constant memory. Add a `file:` entry in team/user TOML to
26
+ # opt in (e.g. `file:{project-root}/**/project-context.md` if you keep one).
27
+ persistent_facts = []
28
28
 
29
29
  # Executed when the workflow completes. Scalar or array of instructions.
30
30
  on_complete = ""
@@ -30,9 +30,7 @@ activation_steps_append = []
30
30
  # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
31
31
  # (glob patterns are supported; the file's contents are loaded and treated as facts).
32
32
 
33
- persistent_facts = [
34
- "file:{project-root}/**/project-context.md",
35
- ]
33
+ persistent_facts = []
36
34
 
37
35
  # Scalar: executed when the workflow reaches its final step,
38
36
  # after sprint-status.yaml is generated and validated. Override wins.
@@ -14,9 +14,7 @@ activation_steps_append = []
14
14
 
15
15
  # Persistent facts loaded at activation and kept in mind for the run.
16
16
  # Entries: literal sentence, `skill:NAME`, or `file:PATH` (glob ok).
17
- persistent_facts = [
18
- "file:{project-root}/**/project-context.md",
19
- ]
17
+ persistent_facts = []
20
18
 
21
19
  # Runs at workflow completion. String or array of instructions.
22
20
  on_complete = ""
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bmad-build
3
- description: 'Implement any requirement, story, bug fix, or change request as working code that follows the project''s existing architecture, patterns, and conventions. Use when the user wants to build, fix, tweak, refactor, add, or modify any code, component, or feature'
3
+ description: 'Turns a work item — feature, story, bug fix, change request into working code, reviewed and verified. Use when the user hands over an outcome and leaves the edits to you; a bare story or issue link counts. Also use whenever the user asks BMAD by name then any change qualifies, even a tiny fully-specified edit. Do not volunteer for interactive edits the user directs and reviews themselves, or for version-control operations that record existing work without changing it.'
4
4
  ---
5
5
 
6
6
  Run the following command exactly once without changing the current working directory. Replace `{project-root}` with the absolute path to the project root and `{skill-root}` with the absolute path to this skill's directory: