ma-agents 2.20.1 → 2.20.3

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 (197) hide show
  1. package/README.md +55 -1
  2. package/lib/agents.js +22 -11
  3. package/lib/bmad-cache/bmb/_git_preserved/HEAD +1 -0
  4. package/lib/bmad-cache/bmb/_git_preserved/config +13 -0
  5. package/lib/bmad-cache/bmb/_git_preserved/description +1 -0
  6. package/lib/bmad-cache/bmb/_git_preserved/hooks/applypatch-msg.sample +15 -0
  7. package/lib/bmad-cache/bmb/_git_preserved/hooks/commit-msg.sample +24 -0
  8. package/lib/bmad-cache/bmb/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  9. package/lib/bmad-cache/bmb/_git_preserved/hooks/post-update.sample +8 -0
  10. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-applypatch.sample +14 -0
  11. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-commit.sample +49 -0
  12. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  13. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-push.sample +53 -0
  14. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-rebase.sample +169 -0
  15. package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-receive.sample +24 -0
  16. package/lib/bmad-cache/bmb/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  17. package/lib/bmad-cache/bmb/_git_preserved/hooks/push-to-checkout.sample +78 -0
  18. package/lib/bmad-cache/bmb/_git_preserved/hooks/sendemail-validate.sample +77 -0
  19. package/lib/bmad-cache/bmb/_git_preserved/hooks/update.sample +128 -0
  20. package/lib/bmad-cache/bmb/_git_preserved/index +0 -0
  21. package/lib/bmad-cache/bmb/_git_preserved/info/exclude +6 -0
  22. package/lib/bmad-cache/bmb/_git_preserved/logs/HEAD +1 -0
  23. package/lib/bmad-cache/bmb/_git_preserved/logs/refs/heads/main +1 -0
  24. package/lib/bmad-cache/bmb/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
  25. package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.idx +0 -0
  26. package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.pack +0 -0
  27. package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.rev +0 -0
  28. package/lib/bmad-cache/bmb/_git_preserved/packed-refs +2 -0
  29. package/lib/bmad-cache/bmb/_git_preserved/refs/heads/main +1 -0
  30. package/lib/bmad-cache/bmb/_git_preserved/refs/remotes/origin/HEAD +1 -0
  31. package/lib/bmad-cache/bmb/_git_preserved/shallow +1 -0
  32. package/lib/bmad-cache/cache-manifest.json +6 -6
  33. package/lib/bmad-cache/cis/_git_preserved/HEAD +1 -0
  34. package/lib/bmad-cache/cis/_git_preserved/config +13 -0
  35. package/lib/bmad-cache/cis/_git_preserved/description +1 -0
  36. package/lib/bmad-cache/cis/_git_preserved/hooks/applypatch-msg.sample +15 -0
  37. package/lib/bmad-cache/cis/_git_preserved/hooks/commit-msg.sample +24 -0
  38. package/lib/bmad-cache/cis/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  39. package/lib/bmad-cache/cis/_git_preserved/hooks/post-update.sample +8 -0
  40. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-applypatch.sample +14 -0
  41. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-commit.sample +49 -0
  42. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  43. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-push.sample +53 -0
  44. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-rebase.sample +169 -0
  45. package/lib/bmad-cache/cis/_git_preserved/hooks/pre-receive.sample +24 -0
  46. package/lib/bmad-cache/cis/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  47. package/lib/bmad-cache/cis/_git_preserved/hooks/push-to-checkout.sample +78 -0
  48. package/lib/bmad-cache/cis/_git_preserved/hooks/sendemail-validate.sample +77 -0
  49. package/lib/bmad-cache/cis/_git_preserved/hooks/update.sample +128 -0
  50. package/lib/bmad-cache/cis/_git_preserved/index +0 -0
  51. package/lib/bmad-cache/cis/_git_preserved/info/exclude +6 -0
  52. package/lib/bmad-cache/cis/_git_preserved/logs/HEAD +1 -0
  53. package/lib/bmad-cache/cis/_git_preserved/logs/refs/heads/main +1 -0
  54. package/lib/bmad-cache/cis/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
  55. package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.idx +0 -0
  56. package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.pack +0 -0
  57. package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.rev +0 -0
  58. package/lib/bmad-cache/cis/_git_preserved/packed-refs +2 -0
  59. package/lib/bmad-cache/cis/_git_preserved/refs/heads/main +1 -0
  60. package/lib/bmad-cache/cis/_git_preserved/refs/remotes/origin/HEAD +1 -0
  61. package/lib/bmad-cache/cis/_git_preserved/shallow +1 -0
  62. package/lib/bmad-cache/gds/_git_preserved/HEAD +1 -0
  63. package/lib/bmad-cache/gds/_git_preserved/config +13 -0
  64. package/lib/bmad-cache/gds/_git_preserved/description +1 -0
  65. package/lib/bmad-cache/gds/_git_preserved/hooks/applypatch-msg.sample +15 -0
  66. package/lib/bmad-cache/gds/_git_preserved/hooks/commit-msg.sample +24 -0
  67. package/lib/bmad-cache/gds/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  68. package/lib/bmad-cache/gds/_git_preserved/hooks/post-update.sample +8 -0
  69. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-applypatch.sample +14 -0
  70. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-commit.sample +49 -0
  71. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  72. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-push.sample +53 -0
  73. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-rebase.sample +169 -0
  74. package/lib/bmad-cache/gds/_git_preserved/hooks/pre-receive.sample +24 -0
  75. package/lib/bmad-cache/gds/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  76. package/lib/bmad-cache/gds/_git_preserved/hooks/push-to-checkout.sample +78 -0
  77. package/lib/bmad-cache/gds/_git_preserved/hooks/sendemail-validate.sample +77 -0
  78. package/lib/bmad-cache/gds/_git_preserved/hooks/update.sample +128 -0
  79. package/lib/bmad-cache/gds/_git_preserved/index +0 -0
  80. package/lib/bmad-cache/gds/_git_preserved/info/exclude +6 -0
  81. package/lib/bmad-cache/gds/_git_preserved/logs/HEAD +1 -0
  82. package/lib/bmad-cache/gds/_git_preserved/logs/refs/heads/main +1 -0
  83. package/lib/bmad-cache/gds/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
  84. package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.idx +0 -0
  85. package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.pack +0 -0
  86. package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.rev +0 -0
  87. package/lib/bmad-cache/gds/_git_preserved/packed-refs +2 -0
  88. package/lib/bmad-cache/gds/_git_preserved/refs/heads/main +1 -0
  89. package/lib/bmad-cache/gds/_git_preserved/refs/remotes/origin/HEAD +1 -0
  90. package/lib/bmad-cache/gds/_git_preserved/refs/tags/v0.2.2 +1 -0
  91. package/lib/bmad-cache/gds/_git_preserved/shallow +1 -0
  92. package/lib/bmad-cache/gds/package.json +2 -4
  93. package/lib/bmad-cache/gds/src/agents/gds-agent-game-architect/bmad-skill-manifest.yaml +11 -0
  94. package/lib/bmad-cache/gds/src/agents/gds-agent-game-designer/bmad-skill-manifest.yaml +11 -0
  95. package/lib/bmad-cache/gds/src/agents/gds-agent-game-dev/bmad-skill-manifest.yaml +11 -0
  96. package/lib/bmad-cache/gds/src/agents/gds-agent-game-qa/bmad-skill-manifest.yaml +11 -0
  97. package/lib/bmad-cache/gds/src/agents/gds-agent-game-scrum-master/bmad-skill-manifest.yaml +11 -0
  98. package/lib/bmad-cache/gds/src/agents/gds-agent-game-solo-dev/bmad-skill-manifest.yaml +11 -0
  99. package/lib/bmad-cache/gds/src/agents/gds-agent-tech-writer/bmad-skill-manifest.yaml +11 -0
  100. package/lib/bmad-cache/gds/src/module-help.csv +28 -28
  101. package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-brainstorm-game/bmad-skill-manifest.yaml +1 -0
  102. package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-create-game-brief/bmad-skill-manifest.yaml +1 -0
  103. package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-gdd/bmad-skill-manifest.yaml +1 -0
  104. package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-narrative/bmad-skill-manifest.yaml +1 -0
  105. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-check-implementation-readiness/bmad-skill-manifest.yaml +1 -0
  106. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-create-epics-and-stories/bmad-skill-manifest.yaml +1 -0
  107. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/bmad-skill-manifest.yaml +1 -0
  108. package/lib/bmad-cache/gds/src/workflows/3-technical/gds-generate-project-context/bmad-skill-manifest.yaml +1 -0
  109. package/lib/bmad-cache/gds/src/workflows/4-production/gds-code-review/bmad-skill-manifest.yaml +1 -0
  110. package/lib/bmad-cache/gds/src/workflows/4-production/gds-correct-course/bmad-skill-manifest.yaml +1 -0
  111. package/lib/bmad-cache/gds/src/workflows/4-production/gds-retrospective/bmad-skill-manifest.yaml +1 -0
  112. package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-planning/bmad-skill-manifest.yaml +1 -0
  113. package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-status/bmad-skill-manifest.yaml +1 -0
  114. package/lib/bmad-cache/gds/src/workflows/gametest/gds-e2e-scaffold/bmad-skill-manifest.yaml +1 -0
  115. package/lib/bmad-cache/gds/src/workflows/gametest/gds-performance-test/bmad-skill-manifest.yaml +1 -0
  116. package/lib/bmad-cache/gds/src/workflows/gametest/gds-playtest-plan/bmad-skill-manifest.yaml +1 -0
  117. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-automate/bmad-skill-manifest.yaml +1 -0
  118. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-design/bmad-skill-manifest.yaml +1 -0
  119. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-framework/bmad-skill-manifest.yaml +1 -0
  120. package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-review/bmad-skill-manifest.yaml +1 -0
  121. package/lib/bmad-cache/gds/src/workflows/gds-document-project/bmad-skill-manifest.yaml +1 -0
  122. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev/bmad-skill-manifest.yaml +1 -4
  123. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev-new-preview/bmad-skill-manifest.yaml +1 -4
  124. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-spec/bmad-skill-manifest.yaml +1 -0
  125. package/lib/bmad-cache/tea/_git_preserved/HEAD +1 -0
  126. package/lib/bmad-cache/tea/_git_preserved/config +13 -0
  127. package/lib/bmad-cache/tea/_git_preserved/description +1 -0
  128. package/lib/bmad-cache/tea/_git_preserved/hooks/applypatch-msg.sample +15 -0
  129. package/lib/bmad-cache/tea/_git_preserved/hooks/commit-msg.sample +24 -0
  130. package/lib/bmad-cache/tea/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
  131. package/lib/bmad-cache/tea/_git_preserved/hooks/post-update.sample +8 -0
  132. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-applypatch.sample +14 -0
  133. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-commit.sample +49 -0
  134. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-merge-commit.sample +13 -0
  135. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-push.sample +53 -0
  136. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-rebase.sample +169 -0
  137. package/lib/bmad-cache/tea/_git_preserved/hooks/pre-receive.sample +24 -0
  138. package/lib/bmad-cache/tea/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
  139. package/lib/bmad-cache/tea/_git_preserved/hooks/push-to-checkout.sample +78 -0
  140. package/lib/bmad-cache/tea/_git_preserved/hooks/sendemail-validate.sample +77 -0
  141. package/lib/bmad-cache/tea/_git_preserved/hooks/update.sample +128 -0
  142. package/lib/bmad-cache/tea/_git_preserved/index +0 -0
  143. package/lib/bmad-cache/tea/_git_preserved/info/exclude +6 -0
  144. package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.idx +0 -0
  145. package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.pack +0 -0
  146. package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.rev +0 -0
  147. package/lib/bmad-cache/tea/_git_preserved/packed-refs +2 -0
  148. package/lib/bmad-cache/tea/_git_preserved/refs/heads/main +1 -0
  149. package/lib/bmad-cache/tea/_git_preserved/refs/remotes/origin/HEAD +1 -0
  150. package/lib/bmad-cache/tea/_git_preserved/refs/tags/v1.7.0 +1 -0
  151. package/lib/bmad-cache/tea/_git_preserved/shallow +1 -0
  152. package/lib/bmad.js +33 -0
  153. package/lib/installer.js +60 -3
  154. package/package.json +1 -1
  155. package/scripts/build-bmad-cache.js +6 -3
  156. package/test/agent-injection-strategy.test.js +123 -0
  157. package/test/instruction-injection.test.js +336 -0
  158. package/lib/bmad-cache/gds/src/agents/game-architect.agent.yaml +0 -44
  159. package/lib/bmad-cache/gds/src/agents/game-designer.agent.yaml +0 -45
  160. package/lib/bmad-cache/gds/src/agents/game-dev.agent.yaml +0 -49
  161. package/lib/bmad-cache/gds/src/agents/game-qa.agent.yaml +0 -63
  162. package/lib/bmad-cache/gds/src/agents/game-scrum-master.agent.yaml +0 -52
  163. package/lib/bmad-cache/gds/src/agents/game-solo-dev.agent.yaml +0 -53
  164. package/lib/bmad-cache/gds/src/agents/tech-writer/tech-writer.agent.yaml +0 -45
  165. package/lib/bmad-cache/gds/src/teams/default-party.csv +0 -12
  166. package/lib/bmad-cache/gds/src/teams/team-gamedev.yaml +0 -29
  167. package/lib/bmad-cache/gds/src/workflows/1-preproduction/brainstorm-game/bmad-skill-manifest.yaml +0 -3
  168. package/lib/bmad-cache/gds/src/workflows/1-preproduction/game-brief/bmad-skill-manifest.yaml +0 -3
  169. package/lib/bmad-cache/gds/src/workflows/2-design/gdd/bmad-skill-manifest.yaml +0 -3
  170. package/lib/bmad-cache/gds/src/workflows/2-design/narrative/bmad-skill-manifest.yaml +0 -3
  171. package/lib/bmad-cache/gds/src/workflows/3-technical/check-implementation-readiness/bmad-skill-manifest.yaml +0 -3
  172. package/lib/bmad-cache/gds/src/workflows/3-technical/create-epics-and-stories/bmad-skill-manifest.yaml +0 -3
  173. package/lib/bmad-cache/gds/src/workflows/3-technical/game-architecture/bmad-skill-manifest.yaml +0 -3
  174. package/lib/bmad-cache/gds/src/workflows/3-technical/generate-project-context/bmad-skill-manifest.yaml +0 -3
  175. package/lib/bmad-cache/gds/src/workflows/4-production/code-review/bmad-skill-manifest.yaml +0 -3
  176. package/lib/bmad-cache/gds/src/workflows/4-production/correct-course/bmad-skill-manifest.yaml +0 -3
  177. package/lib/bmad-cache/gds/src/workflows/4-production/retrospective/bmad-skill-manifest.yaml +0 -3
  178. package/lib/bmad-cache/gds/src/workflows/4-production/sprint-planning/bmad-skill-manifest.yaml +0 -3
  179. package/lib/bmad-cache/gds/src/workflows/4-production/sprint-status/bmad-skill-manifest.yaml +0 -3
  180. package/lib/bmad-cache/gds/src/workflows/document-project/bmad-skill-manifest.yaml +0 -3
  181. package/lib/bmad-cache/gds/src/workflows/gametest/automate/bmad-skill-manifest.yaml +0 -3
  182. package/lib/bmad-cache/gds/src/workflows/gametest/e2e-scaffold/bmad-skill-manifest.yaml +0 -3
  183. package/lib/bmad-cache/gds/src/workflows/gametest/performance/bmad-skill-manifest.yaml +0 -3
  184. package/lib/bmad-cache/gds/src/workflows/gametest/playtest-plan/bmad-skill-manifest.yaml +0 -3
  185. package/lib/bmad-cache/gds/src/workflows/gametest/test-design/bmad-skill-manifest.yaml +0 -3
  186. package/lib/bmad-cache/gds/src/workflows/gametest/test-framework/bmad-skill-manifest.yaml +0 -3
  187. package/lib/bmad-cache/gds/src/workflows/gametest/test-review/bmad-skill-manifest.yaml +0 -3
  188. package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/quick-spec/bmad-skill-manifest.yaml +0 -3
  189. /package/lib/bmad-cache/gds/src/workflows/1-preproduction/{brainstorm-game → gds-brainstorm-game}/game-brain-methods.csv +0 -0
  190. /package/lib/bmad-cache/gds/src/workflows/2-design/{gdd → gds-create-gdd}/game-types.csv +0 -0
  191. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/architecture-patterns.yaml +0 -0
  192. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/decision-catalog.yaml +0 -0
  193. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/engine-mcps.yaml +0 -0
  194. /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/pattern-categories.csv +0 -0
  195. /package/lib/bmad-cache/gds/src/workflows/4-production/{sprint-planning → gds-sprint-planning}/sprint-status-template.yaml +0 -0
  196. /package/lib/bmad-cache/gds/src/workflows/{document-project → gds-document-project}/documentation-requirements.csv +0 -0
  197. /package/lib/bmad-cache/gds/src/workflows/{document-project → gds-document-project}/templates/project-scan-report-schema.json +0 -0
package/README.md CHANGED
@@ -19,6 +19,12 @@ npx ma-agents install code-review claude-code copilot
19
19
 
20
20
  # Global installation (user-level)
21
21
  npx ma-agents install code-review claude-code --global
22
+
23
+ # CI/CD: skip all prompts, use defaults
24
+ npx ma-agents install --yes
25
+
26
+ # Target a specific agent only
27
+ npx ma-agents install --yes --agent claude-code
22
28
  ```
23
29
 
24
30
  ## How It Works
@@ -120,6 +126,8 @@ The installer automatically updates agent-specific instruction files (like `CLAU
120
126
  ```bash
121
127
  npx ma-agents # Launch interactive wizard
122
128
  npx ma-agents install # Interactive install wizard
129
+ npx ma-agents install --yes # Non-interactive, use defaults (CI/CD)
130
+ npx ma-agents install --yes --agent <id> # Non-interactive, target one agent
123
131
  npx ma-agents status # Show installed skills and paths
124
132
  npx ma-agents list # List all available skills
125
133
  npx ma-agents agents # List supported agents
@@ -144,6 +152,20 @@ Running `ma-agents` on a project where skills are already installed triggers the
144
152
  - **Customization Engine**: Injects project-specific `.customize.yaml` templates to align agents with your workflow.
145
153
  - **Advanced Agent Templates**: Deploys full XML-structured agent definitions directly into the BMAD system.
146
154
 
155
+ #### Bundled & Offline Installation (v2.20+)
156
+
157
+ `ma-agents` ships with everything needed to install BMAD without any network access at install time:
158
+
159
+ - **`bmad-method` is a direct npm dependency** — no runtime `npx bmad-method` fetch required. The correct version is pinned and bundled inside `node_modules/` when you `npm install ma-agents`.
160
+ - **External modules pre-bundled** — `lib/bmad-cache/` ships the 4 optional BMAD modules (`bmb`, `cis`, `gds`, `tea`) inside the package itself. They are pre-populated to `~/.bmad/cache/external-modules/` before any install runs, so BMAD never needs to clone them from GitHub.
161
+ - **Deterministic installs** — same `ma-agents` version always produces the same `_bmad/` output, regardless of network conditions (NFR21).
162
+ - **Air-gapped friendly** — install from a tarball (`npm install ./ma-agents-x.y.z.tgz`) and run `npx ma-agents install` completely offline.
163
+
164
+ ```
165
+ npm install ma-agents # bundles bmad-method + 4 external modules
166
+ npx ma-agents install --yes # fully offline BMAD install — no network needed
167
+ ```
168
+
147
169
  #### Specialized BMAD Agents
148
170
  1. **SRE Agent (Alex)**:
149
171
  - **Focus**: High availability, Kubernetes, Docker, and Podman.
@@ -179,8 +201,27 @@ npx ma-agents install code-review claude-code --global
179
201
 
180
202
  # Install to a custom directory
181
203
  npx ma-agents install code-review claude-code --path ./my-skills
204
+
205
+ # Skip all prompts, use defaults — ideal for CI/CD pipelines
206
+ npx ma-agents install --yes
207
+ npx ma-agents install --yes --global
208
+ npx ma-agents install --yes --agent claude-code
209
+
210
+ # Target a specific agent (skips agent selection prompt)
211
+ npx ma-agents install code-review --agent cursor
212
+
213
+ # Force overwrite without upgrade prompts
214
+ npx ma-agents install code-review claude-code --force
182
215
  ```
183
216
 
217
+ | Flag | Description |
218
+ |------|-------------|
219
+ | `--yes` | Skip all prompts, use defaults. Selects all detected agents, installs/updates BMAD automatically. |
220
+ | `--agent <name>` | Target a specific agent — skips agent selection. Run `npx ma-agents agents` for valid names. |
221
+ | `--force` | Skip upgrade prompts, always overwrite existing installations. |
222
+ | `--global` | Install to global/user-level paths instead of project-level. |
223
+ | `--path <dir>` | Custom installation directory. |
224
+
184
225
  ## Requirements
185
226
 
186
227
  ### Global Requirements
@@ -342,11 +383,14 @@ ma-agents/
342
383
  │ ├── agents.js # Agent configurations and paths
343
384
  │ ├── installer.js # Skill discovery and installation logic
344
385
  │ ├── bmad.js # BMAD-METHOD integration and injection logic
386
+ │ ├── bmad-cache/ # Pre-bundled BMAD external modules (bmb, cis, gds, tea)
345
387
  │ ├── bmad-customizations/ # BMAD persona templates (.md) and YAML configs
346
388
  │ ├── bmad-workflows/ # Specialized BMAD playbooks (SRE, Cyber, etc.)
347
389
  │ └── mil498-templates/ # MIL-STD-498 DID library (SRS, SSS, SSDD, etc.)
390
+ ├── scripts/
391
+ │ └── build-bmad-cache.js # Rebuilds lib/bmad-cache/ from upstream repos
348
392
  ├── skills/
349
- │ ├── code-review/ # 25 bundled skills across 5 domains
393
+ │ ├── code-review/ # 27 bundled skills across 5 domains
350
394
  │ ├── commit-message/
351
395
  │ ├── create-hardened-docker-skill/
352
396
  │ ├── git-workflow-skill/
@@ -355,6 +399,10 @@ ma-agents/
355
399
  │ ├── test-generator/
356
400
  │ ├── vercel-react-best-practices/
357
401
  │ └── verify-hardened-docker-skill/
402
+ ├── test/
403
+ │ └── yes-flag.test.js # Tests for --yes / --agent flag behavior
404
+ ├── docs/
405
+ │ └── validation/ # Manual validation reports (e.g., bundled install)
358
406
  ├── SKILLS_STRUCTURE.md # Full skill authoring documentation
359
407
  ├── package.json
360
408
  └── README.md
@@ -378,6 +426,12 @@ node bin/cli.js list
378
426
 
379
427
  # Test agents listing
380
428
  node bin/cli.js agents
429
+
430
+ # Run tests
431
+ npm test
432
+
433
+ # Rebuild the bundled BMAD module cache (lib/bmad-cache/)
434
+ npm run build:bmad-cache
381
435
  ```
382
436
 
383
437
  ## Programmatic API
package/lib/agents.js CHANGED
@@ -34,7 +34,8 @@ const agents = [
34
34
  },
35
35
  fileExtension: '.md',
36
36
  template: 'claude-code',
37
- instructionFiles: ['.claude/CLAUDE.md']
37
+ instructionFiles: ['.claude/CLAUDE.md'],
38
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
38
39
  },
39
40
  {
40
41
  id: 'gemini',
@@ -55,7 +56,8 @@ const agents = [
55
56
  },
56
57
  fileExtension: '.md',
57
58
  template: 'generic',
58
- instructionFiles: ['.gemini/gemini.md']
59
+ instructionFiles: ['.gemini/gemini.md'],
60
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
59
61
  },
60
62
  {
61
63
  id: 'copilot',
@@ -76,7 +78,8 @@ const agents = [
76
78
  },
77
79
  fileExtension: '.md',
78
80
  template: 'generic',
79
- instructionFiles: ['.github/copilot/copilot.md']
81
+ instructionFiles: ['.github/copilot/copilot.md'],
82
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
80
83
  },
81
84
  {
82
85
  id: 'kilocode',
@@ -97,7 +100,8 @@ const agents = [
97
100
  },
98
101
  fileExtension: '.md',
99
102
  template: 'generic',
100
- instructionFiles: ['.kilocode/kilocode.md']
103
+ instructionFiles: ['.kilocode/kilocode.md'],
104
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
101
105
  },
102
106
  {
103
107
  id: 'cline',
@@ -123,7 +127,8 @@ const agents = [
123
127
  'references': 'docs',
124
128
  'assets': 'templates'
125
129
  },
126
- instructionFiles: ['.cline/clinerules.md', '.clinerules']
130
+ instructionFiles: ['.cline/clinerules.md', '.clinerules'],
131
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
127
132
  },
128
133
  {
129
134
  id: 'cursor',
@@ -144,7 +149,8 @@ const agents = [
144
149
  },
145
150
  fileExtension: '.md',
146
151
  template: 'generic',
147
- instructionFiles: ['.cursor/cursor.md']
152
+ instructionFiles: ['.cursor/cursor.md'],
153
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
148
154
  },
149
155
  {
150
156
  id: 'bmm-sre',
@@ -165,7 +171,8 @@ const agents = [
165
171
  },
166
172
  fileExtension: '.md',
167
173
  template: 'generic',
168
- instructionFiles: ['_bmad/bmm/agents/sre.md']
174
+ instructionFiles: ['_bmad/bmm/agents/sre.md'],
175
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
169
176
  },
170
177
  {
171
178
  id: 'antigravity',
@@ -186,7 +193,8 @@ const agents = [
186
193
  },
187
194
  fileExtension: '.md',
188
195
  template: 'generic',
189
- instructionFiles: ['.antigravity/antigravity.md']
196
+ instructionFiles: ['.antigravity/antigravity.md'],
197
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
190
198
  },
191
199
  {
192
200
  id: 'bmm-devops',
@@ -207,7 +215,8 @@ const agents = [
207
215
  },
208
216
  fileExtension: '.md',
209
217
  template: 'generic',
210
- instructionFiles: ['_bmad/bmm/agents/devops.md']
218
+ instructionFiles: ['_bmad/bmm/agents/devops.md'],
219
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
211
220
  },
212
221
  {
213
222
  id: 'bmm-cyber',
@@ -228,7 +237,8 @@ const agents = [
228
237
  },
229
238
  fileExtension: '.md',
230
239
  template: 'generic',
231
- instructionFiles: ['_bmad/bmm/agents/cyber.md']
240
+ instructionFiles: ['_bmad/bmm/agents/cyber.md'],
241
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
232
242
  },
233
243
  {
234
244
  id: 'bmm-mil498',
@@ -249,7 +259,8 @@ const agents = [
249
259
  },
250
260
  fileExtension: '.md',
251
261
  template: 'generic',
252
- instructionFiles: ['_bmad/bmm/agents/mil498.md']
262
+ instructionFiles: ['_bmad/bmm/agents/mil498.md'],
263
+ injectionStrategy: { position: 'top', skipPatterns: ['---'] }
253
264
  }
254
265
  ];
255
266
 
@@ -0,0 +1 @@
1
+ ref: refs/heads/main
@@ -0,0 +1,13 @@
1
+ [core]
2
+ repositoryformatversion = 0
3
+ filemode = false
4
+ bare = false
5
+ logallrefupdates = true
6
+ symlinks = false
7
+ ignorecase = true
8
+ [remote "origin"]
9
+ url = https://github.com/bmad-code-org/bmad-builder
10
+ fetch = +refs/heads/main:refs/remotes/origin/main
11
+ [branch "main"]
12
+ remote = origin
13
+ merge = refs/heads/main
@@ -0,0 +1 @@
1
+ Unnamed repository; edit this file 'description' to name the repository.
@@ -0,0 +1,15 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message taken by
4
+ # applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit. The hook is
8
+ # allowed to edit the commit message file.
9
+ #
10
+ # To enable this hook, rename this file to "applypatch-msg".
11
+
12
+ . git-sh-setup
13
+ commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
14
+ test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
15
+ :
@@ -0,0 +1,24 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message.
4
+ # Called by "git commit" with one argument, the name of the file
5
+ # that has the commit message. The hook should exit with non-zero
6
+ # status after issuing an appropriate message if it wants to stop the
7
+ # commit. The hook is allowed to edit the commit message file.
8
+ #
9
+ # To enable this hook, rename this file to "commit-msg".
10
+
11
+ # Uncomment the below to add a Signed-off-by line to the message.
12
+ # Doing this in a hook is a bad idea in general, but the prepare-commit-msg
13
+ # hook is more suited to it.
14
+ #
15
+ # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
16
+ # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
17
+
18
+ # This example catches duplicate Signed-off-by lines.
19
+
20
+ test "" = "$(grep '^Signed-off-by: ' "$1" |
21
+ sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
22
+ echo >&2 Duplicate Signed-off-by lines.
23
+ exit 1
24
+ }
@@ -0,0 +1,174 @@
1
+ #!/usr/bin/perl
2
+
3
+ use strict;
4
+ use warnings;
5
+ use IPC::Open2;
6
+
7
+ # An example hook script to integrate Watchman
8
+ # (https://facebook.github.io/watchman/) with git to speed up detecting
9
+ # new and modified files.
10
+ #
11
+ # The hook is passed a version (currently 2) and last update token
12
+ # formatted as a string and outputs to stdout a new update token and
13
+ # all files that have been modified since the update token. Paths must
14
+ # be relative to the root of the working tree and separated by a single NUL.
15
+ #
16
+ # To enable this hook, rename this file to "query-watchman" and set
17
+ # 'git config core.fsmonitor .git/hooks/query-watchman'
18
+ #
19
+ my ($version, $last_update_token) = @ARGV;
20
+
21
+ # Uncomment for debugging
22
+ # print STDERR "$0 $version $last_update_token\n";
23
+
24
+ # Check the hook interface version
25
+ if ($version ne 2) {
26
+ die "Unsupported query-fsmonitor hook version '$version'.\n" .
27
+ "Falling back to scanning...\n";
28
+ }
29
+
30
+ my $git_work_tree = get_working_dir();
31
+
32
+ my $retry = 1;
33
+
34
+ my $json_pkg;
35
+ eval {
36
+ require JSON::XS;
37
+ $json_pkg = "JSON::XS";
38
+ 1;
39
+ } or do {
40
+ require JSON::PP;
41
+ $json_pkg = "JSON::PP";
42
+ };
43
+
44
+ launch_watchman();
45
+
46
+ sub launch_watchman {
47
+ my $o = watchman_query();
48
+ if (is_work_tree_watched($o)) {
49
+ output_result($o->{clock}, @{$o->{files}});
50
+ }
51
+ }
52
+
53
+ sub output_result {
54
+ my ($clockid, @files) = @_;
55
+
56
+ # Uncomment for debugging watchman output
57
+ # open (my $fh, ">", ".git/watchman-output.out");
58
+ # binmode $fh, ":utf8";
59
+ # print $fh "$clockid\n@files\n";
60
+ # close $fh;
61
+
62
+ binmode STDOUT, ":utf8";
63
+ print $clockid;
64
+ print "\0";
65
+ local $, = "\0";
66
+ print @files;
67
+ }
68
+
69
+ sub watchman_clock {
70
+ my $response = qx/watchman clock "$git_work_tree"/;
71
+ die "Failed to get clock id on '$git_work_tree'.\n" .
72
+ "Falling back to scanning...\n" if $? != 0;
73
+
74
+ return $json_pkg->new->utf8->decode($response);
75
+ }
76
+
77
+ sub watchman_query {
78
+ my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty')
79
+ or die "open2() failed: $!\n" .
80
+ "Falling back to scanning...\n";
81
+
82
+ # In the query expression below we're asking for names of files that
83
+ # changed since $last_update_token but not from the .git folder.
84
+ #
85
+ # To accomplish this, we're using the "since" generator to use the
86
+ # recency index to select candidate nodes and "fields" to limit the
87
+ # output to file names only. Then we're using the "expression" term to
88
+ # further constrain the results.
89
+ my $last_update_line = "";
90
+ if (substr($last_update_token, 0, 1) eq "c") {
91
+ $last_update_token = "\"$last_update_token\"";
92
+ $last_update_line = qq[\n"since": $last_update_token,];
93
+ }
94
+ my $query = <<" END";
95
+ ["query", "$git_work_tree", {$last_update_line
96
+ "fields": ["name"],
97
+ "expression": ["not", ["dirname", ".git"]]
98
+ }]
99
+ END
100
+
101
+ # Uncomment for debugging the watchman query
102
+ # open (my $fh, ">", ".git/watchman-query.json");
103
+ # print $fh $query;
104
+ # close $fh;
105
+
106
+ print CHLD_IN $query;
107
+ close CHLD_IN;
108
+ my $response = do {local $/; <CHLD_OUT>};
109
+
110
+ # Uncomment for debugging the watch response
111
+ # open ($fh, ">", ".git/watchman-response.json");
112
+ # print $fh $response;
113
+ # close $fh;
114
+
115
+ die "Watchman: command returned no output.\n" .
116
+ "Falling back to scanning...\n" if $response eq "";
117
+ die "Watchman: command returned invalid output: $response\n" .
118
+ "Falling back to scanning...\n" unless $response =~ /^\{/;
119
+
120
+ return $json_pkg->new->utf8->decode($response);
121
+ }
122
+
123
+ sub is_work_tree_watched {
124
+ my ($output) = @_;
125
+ my $error = $output->{error};
126
+ if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) {
127
+ $retry--;
128
+ my $response = qx/watchman watch "$git_work_tree"/;
129
+ die "Failed to make watchman watch '$git_work_tree'.\n" .
130
+ "Falling back to scanning...\n" if $? != 0;
131
+ $output = $json_pkg->new->utf8->decode($response);
132
+ $error = $output->{error};
133
+ die "Watchman: $error.\n" .
134
+ "Falling back to scanning...\n" if $error;
135
+
136
+ # Uncomment for debugging watchman output
137
+ # open (my $fh, ">", ".git/watchman-output.out");
138
+ # close $fh;
139
+
140
+ # Watchman will always return all files on the first query so
141
+ # return the fast "everything is dirty" flag to git and do the
142
+ # Watchman query just to get it over with now so we won't pay
143
+ # the cost in git to look up each individual file.
144
+ my $o = watchman_clock();
145
+ $error = $output->{error};
146
+
147
+ die "Watchman: $error.\n" .
148
+ "Falling back to scanning...\n" if $error;
149
+
150
+ output_result($o->{clock}, ("/"));
151
+ $last_update_token = $o->{clock};
152
+
153
+ eval { launch_watchman() };
154
+ return 0;
155
+ }
156
+
157
+ die "Watchman: $error.\n" .
158
+ "Falling back to scanning...\n" if $error;
159
+
160
+ return 1;
161
+ }
162
+
163
+ sub get_working_dir {
164
+ my $working_dir;
165
+ if ($^O =~ 'msys' || $^O =~ 'cygwin') {
166
+ $working_dir = Win32::GetCwd();
167
+ $working_dir =~ tr/\\/\//;
168
+ } else {
169
+ require Cwd;
170
+ $working_dir = Cwd::cwd();
171
+ }
172
+
173
+ return $working_dir;
174
+ }
@@ -0,0 +1,8 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to prepare a packed repository for use over
4
+ # dumb transports.
5
+ #
6
+ # To enable this hook, rename this file to "post-update".
7
+
8
+ exec git update-server-info
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed
4
+ # by applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit.
8
+ #
9
+ # To enable this hook, rename this file to "pre-applypatch".
10
+
11
+ . git-sh-setup
12
+ precommit="$(git rev-parse --git-path hooks/pre-commit)"
13
+ test -x "$precommit" && exec "$precommit" ${1+"$@"}
14
+ :
@@ -0,0 +1,49 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed.
4
+ # Called by "git commit" with no arguments. The hook should
5
+ # exit with non-zero status after issuing an appropriate message if
6
+ # it wants to stop the commit.
7
+ #
8
+ # To enable this hook, rename this file to "pre-commit".
9
+
10
+ if git rev-parse --verify HEAD >/dev/null 2>&1
11
+ then
12
+ against=HEAD
13
+ else
14
+ # Initial commit: diff against an empty tree object
15
+ against=$(git hash-object -t tree /dev/null)
16
+ fi
17
+
18
+ # If you want to allow non-ASCII filenames set this variable to true.
19
+ allownonascii=$(git config --type=bool hooks.allownonascii)
20
+
21
+ # Redirect output to stderr.
22
+ exec 1>&2
23
+
24
+ # Cross platform projects tend to avoid non-ASCII filenames; prevent
25
+ # them from being added to the repository. We exploit the fact that the
26
+ # printable range starts at the space character and ends with tilde.
27
+ if [ "$allownonascii" != "true" ] &&
28
+ # Note that the use of brackets around a tr range is ok here, (it's
29
+ # even required, for portability to Solaris 10's /usr/bin/tr), since
30
+ # the square bracket bytes happen to fall in the designated range.
31
+ test $(git diff-index --cached --name-only --diff-filter=A -z $against |
32
+ LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
33
+ then
34
+ cat <<\EOF
35
+ Error: Attempt to add a non-ASCII file name.
36
+
37
+ This can cause problems if you want to work with people on other platforms.
38
+
39
+ To be portable it is advisable to rename the file.
40
+
41
+ If you know what you are doing you can disable this check using:
42
+
43
+ git config hooks.allownonascii true
44
+ EOF
45
+ exit 1
46
+ fi
47
+
48
+ # If there are whitespace errors, print the offending file names and fail.
49
+ exec git diff-index --check --cached $against --
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed.
4
+ # Called by "git merge" with no arguments. The hook should
5
+ # exit with non-zero status after issuing an appropriate message to
6
+ # stderr if it wants to stop the merge commit.
7
+ #
8
+ # To enable this hook, rename this file to "pre-merge-commit".
9
+
10
+ . git-sh-setup
11
+ test -x "$GIT_DIR/hooks/pre-commit" &&
12
+ exec "$GIT_DIR/hooks/pre-commit"
13
+ :
@@ -0,0 +1,53 @@
1
+ #!/bin/sh
2
+
3
+ # An example hook script to verify what is about to be pushed. Called by "git
4
+ # push" after it has checked the remote status, but before anything has been
5
+ # pushed. If this script exits with a non-zero status nothing will be pushed.
6
+ #
7
+ # This hook is called with the following parameters:
8
+ #
9
+ # $1 -- Name of the remote to which the push is being done
10
+ # $2 -- URL to which the push is being done
11
+ #
12
+ # If pushing without using a named remote those arguments will be equal.
13
+ #
14
+ # Information about the commits which are being pushed is supplied as lines to
15
+ # the standard input in the form:
16
+ #
17
+ # <local ref> <local oid> <remote ref> <remote oid>
18
+ #
19
+ # This sample shows how to prevent push of commits where the log message starts
20
+ # with "WIP" (work in progress).
21
+
22
+ remote="$1"
23
+ url="$2"
24
+
25
+ zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
26
+
27
+ while read local_ref local_oid remote_ref remote_oid
28
+ do
29
+ if test "$local_oid" = "$zero"
30
+ then
31
+ # Handle delete
32
+ :
33
+ else
34
+ if test "$remote_oid" = "$zero"
35
+ then
36
+ # New branch, examine all commits
37
+ range="$local_oid"
38
+ else
39
+ # Update to existing branch, examine new commits
40
+ range="$remote_oid..$local_oid"
41
+ fi
42
+
43
+ # Check for WIP commit
44
+ commit=$(git rev-list -n 1 --grep '^WIP' "$range")
45
+ if test -n "$commit"
46
+ then
47
+ echo >&2 "Found WIP commit in $local_ref, not pushing"
48
+ exit 1
49
+ fi
50
+ fi
51
+ done
52
+
53
+ exit 0