bmad-plus 0.8.0 → 0.9.1

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 (213) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/LICENSE +21 -21
  3. package/README.md +107 -85
  4. package/osint-agent-package/README.md +88 -88
  5. package/osint-agent-package/SETUP_KEYS.md +108 -108
  6. package/osint-agent-package/agents/osint-investigator.md +80 -80
  7. package/osint-agent-package/install.ps1 +87 -87
  8. package/osint-agent-package/install.sh +76 -76
  9. package/osint-agent-package/skills/bmad-osint-investigate/SKILL.md +147 -147
  10. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/enrichment-databases-fr.md +148 -148
  11. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/_http.py +101 -101
  12. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/apify.py +266 -266
  13. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/brightdata.py +101 -101
  14. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/diagnose.py +141 -141
  15. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/exa.py +79 -79
  16. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/jina.py +71 -71
  17. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/parallel.py +85 -85
  18. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/perplexity.py +102 -102
  19. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/tavily.py +72 -72
  20. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/volley.py +208 -208
  21. package/osint-agent-package/skills/bmad-osint-investigator/SKILL.md +15 -15
  22. package/package.json +30 -3
  23. package/readme-international/README.de.md +18 -5
  24. package/readme-international/README.es.md +40 -12
  25. package/readme-international/README.fr.md +36 -8
  26. package/src/bmad-plus/agents/agent-architect-dev/SKILL.md +96 -96
  27. package/src/bmad-plus/agents/agent-architect-dev/bmad-skill-manifest.yaml +13 -13
  28. package/src/bmad-plus/agents/agent-maker/SKILL.md +201 -201
  29. package/src/bmad-plus/agents/agent-maker/bmad-skill-manifest.yaml +13 -13
  30. package/src/bmad-plus/agents/agent-orchestrator/SKILL.md +137 -137
  31. package/src/bmad-plus/agents/agent-orchestrator/bmad-skill-manifest.yaml +13 -13
  32. package/src/bmad-plus/agents/agent-quality/SKILL.md +83 -83
  33. package/src/bmad-plus/agents/agent-quality/bmad-skill-manifest.yaml +13 -13
  34. package/src/bmad-plus/agents/agent-shadow/SKILL.md +71 -71
  35. package/src/bmad-plus/agents/agent-shadow/bmad-skill-manifest.yaml +13 -13
  36. package/src/bmad-plus/agents/agent-strategist/SKILL.md +80 -80
  37. package/src/bmad-plus/agents/agent-strategist/bmad-skill-manifest.yaml +13 -13
  38. package/src/bmad-plus/data/role-triggers.yaml +209 -209
  39. package/src/bmad-plus/module-help.csv +10 -10
  40. package/src/bmad-plus/packs/pack-memory/README.md +106 -106
  41. package/src/bmad-plus/packs/pack-memory/memory-orchestrator.md +79 -79
  42. package/src/bmad-plus/packs/pack-memory/shared/karpathy-guardrails.md +86 -86
  43. package/src/bmad-plus/packs/pack-memory/shared/memory-protocol.md +143 -143
  44. package/src/bmad-plus/packs/pack-memory/templates/context.md +39 -39
  45. package/src/bmad-plus/packs/pack-memory/templates/decisions.md +25 -25
  46. package/src/bmad-plus/packs/pack-memory/templates/identity.yaml +39 -39
  47. package/src/bmad-plus/packs/pack-memory/templates/lessons.md +31 -31
  48. package/src/bmad-plus/packs/pack-memory/templates/patterns.md +24 -24
  49. package/src/bmad-plus/packs/pack-memory/templates/session-handoff.md +25 -25
  50. package/src/bmad-plus/packs/pack-memory/zecher-agent.md +157 -157
  51. package/src/bmad-plus/packs/pack-seo/bmad-skill-manifest.yaml +13 -0
  52. package/src/bmad-plus/packs/pack-shield/README.md +110 -110
  53. package/src/bmad-plus/packs/pack-shield/SKILL.md +82 -0
  54. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/csrd-agent.md +251 -251
  55. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/section508-agent.md +168 -168
  56. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/wcag-agent.md +190 -190
  57. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/eu-ai-act-agent.md +86 -86
  58. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/iso42001-agent.md +240 -240
  59. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/nist-ai-rmf-agent.md +122 -122
  60. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/cis-controls-agent.md +210 -210
  61. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/ism-agent.md +139 -139
  62. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/iso27001-agent.md +156 -156
  63. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nis2-agent.md +72 -72
  64. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-800-53-agent.md +239 -239
  65. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-csf-agent.md +207 -207
  66. package/src/bmad-plus/packs/pack-shield/categories/data-privacy/ccpa-agent.md +94 -94
  67. package/src/bmad-plus/packs/pack-shield/categories/data-privacy/dpdpa-agent.md +136 -136
  68. package/src/bmad-plus/packs/pack-shield/categories/data-privacy/gdpr-agent.md +296 -296
  69. package/src/bmad-plus/packs/pack-shield/categories/data-privacy/iso27701-agent.md +134 -134
  70. package/src/bmad-plus/packs/pack-shield/categories/data-privacy/lgpd-agent.md +129 -129
  71. package/src/bmad-plus/packs/pack-shield/categories/defense-export/cmmc-agent.md +116 -116
  72. package/src/bmad-plus/packs/pack-shield/categories/defense-export/ear-agent.md +261 -261
  73. package/src/bmad-plus/packs/pack-shield/categories/defense-export/itar-agent.md +191 -191
  74. package/src/bmad-plus/packs/pack-shield/categories/defense-export/tsa-agent.md +356 -356
  75. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/dora-agent.md +499 -499
  76. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/fedramp-agent.md +236 -236
  77. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/hipaa-agent.md +162 -162
  78. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/pci-dss-agent.md +228 -228
  79. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/soc2-agent.md +255 -255
  80. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/swift-csp-agent.md +153 -153
  81. package/src/bmad-plus/packs/pack-shield/categories/workflows/ai-act-classifier.md +131 -131
  82. package/src/bmad-plus/packs/pack-shield/categories/workflows/ai-act-fria.md +155 -155
  83. package/src/bmad-plus/packs/pack-shield/categories/workflows/ai-act-incidents.md +187 -187
  84. package/src/bmad-plus/packs/pack-shield/categories/workflows/ai-act-roles.md +113 -113
  85. package/src/bmad-plus/packs/pack-shield/categories/workflows/breach-sentinel.md +197 -197
  86. package/src/bmad-plus/packs/pack-shield/categories/workflows/cookie-policy-gen.md +180 -180
  87. package/src/bmad-plus/packs/pack-shield/categories/workflows/dpia-sentinel.md +235 -235
  88. package/src/bmad-plus/packs/pack-shield/categories/workflows/legitimate-interest.md +159 -159
  89. package/src/bmad-plus/packs/pack-shield/categories/workflows/privacy-advisor.md +133 -133
  90. package/src/bmad-plus/packs/pack-shield/categories/workflows/privacy-notice-gen.md +160 -160
  91. package/src/bmad-plus/packs/pack-shield/categories/workflows/privacy-policy-gen.md +135 -135
  92. package/src/bmad-plus/packs/pack-shield/references/ccpa/ccpa-gdpr-comparison.md +117 -117
  93. package/src/bmad-plus/packs/pack-shield/references/ccpa/consumer-rights-workflows.md +177 -177
  94. package/src/bmad-plus/packs/pack-shield/references/cis-controls/framework-mappings.md +162 -162
  95. package/src/bmad-plus/packs/pack-shield/references/cis-controls/implementation-guidance.md +235 -235
  96. package/src/bmad-plus/packs/pack-shield/references/cis-controls/safeguards-detail.md +252 -252
  97. package/src/bmad-plus/packs/pack-shield/references/cmmc/cmmc-assessment.md +170 -170
  98. package/src/bmad-plus/packs/pack-shield/references/cmmc/cmmc-levels.md +113 -113
  99. package/src/bmad-plus/packs/pack-shield/references/cmmc/cmmc-practices.md +211 -211
  100. package/src/bmad-plus/packs/pack-shield/references/csrd/compliance-program.md +281 -281
  101. package/src/bmad-plus/packs/pack-shield/references/csrd/double-materiality.md +253 -253
  102. package/src/bmad-plus/packs/pack-shield/references/csrd/esrs-standards.md +401 -401
  103. package/src/bmad-plus/packs/pack-shield/references/dora/article-reference.md +441 -441
  104. package/src/bmad-plus/packs/pack-shield/references/dora/incident-classification.md +297 -297
  105. package/src/bmad-plus/packs/pack-shield/references/dora/rts-its-guide.md +306 -306
  106. package/src/bmad-plus/packs/pack-shield/references/dora/third-party-risk.md +349 -349
  107. package/src/bmad-plus/packs/pack-shield/references/dpdpa/gdpr-comparison.md +173 -173
  108. package/src/bmad-plus/packs/pack-shield/references/dpdpa/rights-and-obligations.md +426 -426
  109. package/src/bmad-plus/packs/pack-shield/references/dpdpa/rules-2025.md +599 -599
  110. package/src/bmad-plus/packs/pack-shield/references/dpdpa/sections-reference.md +319 -319
  111. package/src/bmad-plus/packs/pack-shield/references/ear/ccl-eccn-guide.md +250 -250
  112. package/src/bmad-plus/packs/pack-shield/references/ear/compliance-program.md +280 -280
  113. package/src/bmad-plus/packs/pack-shield/references/ear/license-exceptions.md +207 -207
  114. package/src/bmad-plus/packs/pack-shield/references/eu-ai-act/gpai-governance.md +267 -267
  115. package/src/bmad-plus/packs/pack-shield/references/eu-ai-act/obligations-high-risk.md +287 -287
  116. package/src/bmad-plus/packs/pack-shield/references/eu-ai-act/risk-classification.md +182 -182
  117. package/src/bmad-plus/packs/pack-shield/references/fedramp/appendices-guide.md +209 -209
  118. package/src/bmad-plus/packs/pack-shield/references/fedramp/control-families.md +281 -281
  119. package/src/bmad-plus/packs/pack-shield/references/fedramp/poam-guide.md +93 -93
  120. package/src/bmad-plus/packs/pack-shield/references/fedramp/readiness-checklist.md +134 -134
  121. package/src/bmad-plus/packs/pack-shield/references/fedramp/sap-sar-guide.md +86 -86
  122. package/src/bmad-plus/packs/pack-shield/references/fedramp/ssp-guide.md +129 -129
  123. package/src/bmad-plus/packs/pack-shield/references/gdpr-compliance/documents.md +192 -192
  124. package/src/bmad-plus/packs/pack-shield/references/gdpr-compliance/dpa-template.md +121 -121
  125. package/src/bmad-plus/packs/pack-shield/references/gdpr-compliance/privacy-notice.md +87 -87
  126. package/src/bmad-plus/packs/pack-shield/references/hipaa-compliance/breach-notification.md +293 -293
  127. package/src/bmad-plus/packs/pack-shield/references/hipaa-compliance/privacy-rule.md +276 -276
  128. package/src/bmad-plus/packs/pack-shield/references/hipaa-compliance/security-rule.md +299 -299
  129. package/src/bmad-plus/packs/pack-shield/references/hipaa-compliance/templates.md +568 -568
  130. package/src/bmad-plus/packs/pack-shield/references/ism/control-applicability.md +181 -181
  131. package/src/bmad-plus/packs/pack-shield/references/ism/guidelines-overview.md +183 -183
  132. package/src/bmad-plus/packs/pack-shield/references/iso27001/annex-a-2013.md +203 -203
  133. package/src/bmad-plus/packs/pack-shield/references/iso27001/annex-a-2022.md +132 -132
  134. package/src/bmad-plus/packs/pack-shield/references/iso27001/control-mapping.md +153 -153
  135. package/src/bmad-plus/packs/pack-shield/references/iso27701/annex-a-controls.md +195 -195
  136. package/src/bmad-plus/packs/pack-shield/references/iso27701/regulatory-mapping.md +229 -229
  137. package/src/bmad-plus/packs/pack-shield/references/iso27701/transition-guide.md +219 -219
  138. package/src/bmad-plus/packs/pack-shield/references/iso42001/iso42001-ai-risk-assessment.md +258 -258
  139. package/src/bmad-plus/packs/pack-shield/references/iso42001/iso42001-clauses-requirements.md +279 -279
  140. package/src/bmad-plus/packs/pack-shield/references/iso42001/iso42001-controls-annex-a.md +155 -155
  141. package/src/bmad-plus/packs/pack-shield/references/itar/compliance-program.md +174 -174
  142. package/src/bmad-plus/packs/pack-shield/references/itar/licensing-guide.md +146 -146
  143. package/src/bmad-plus/packs/pack-shield/references/itar/usml-categories.md +93 -93
  144. package/src/bmad-plus/packs/pack-shield/references/lgpd/anpd-enforcement.md +147 -147
  145. package/src/bmad-plus/packs/pack-shield/references/lgpd/compliance-program.md +272 -272
  146. package/src/bmad-plus/packs/pack-shield/references/lgpd/lgpd-articles.md +271 -271
  147. package/src/bmad-plus/packs/pack-shield/references/nis2/article-21-measures.md +153 -153
  148. package/src/bmad-plus/packs/pack-shield/references/nis2/iso27001-nis2-mapping.md +68 -68
  149. package/src/bmad-plus/packs/pack-shield/references/nist-800-53/assessment-rmf.md +349 -349
  150. package/src/bmad-plus/packs/pack-shield/references/nist-800-53/baselines-tailoring.md +277 -277
  151. package/src/bmad-plus/packs/pack-shield/references/nist-800-53/control-families.md +450 -450
  152. package/src/bmad-plus/packs/pack-shield/references/nist-ai-rmf/rmf-core.md +361 -361
  153. package/src/bmad-plus/packs/pack-shield/references/nist-ai-rmf/rmf-profiles.md +192 -192
  154. package/src/bmad-plus/packs/pack-shield/references/nist-csf/csf-10-to-20-mapping.md +143 -143
  155. package/src/bmad-plus/packs/pack-shield/references/nist-csf/csf-20-functions-categories.md +278 -278
  156. package/src/bmad-plus/packs/pack-shield/references/nist-csf/csf-implementation-tiers.md +135 -135
  157. package/src/bmad-plus/packs/pack-shield/references/pci-compliance/pci-dss-requirements.md +366 -366
  158. package/src/bmad-plus/packs/pack-shield/references/pci-compliance/pci-dss-saq-guide.md +217 -217
  159. package/src/bmad-plus/packs/pack-shield/references/pci-compliance/pci-dss-v4-changes.md +190 -190
  160. package/src/bmad-plus/packs/pack-shield/references/section-508/wcag-mapping.md +160 -160
  161. package/src/bmad-plus/packs/pack-shield/references/soc2/controls.md +241 -241
  162. package/src/bmad-plus/packs/pack-shield/references/soc2/evidence.md +236 -236
  163. package/src/bmad-plus/packs/pack-shield/references/soc2/policies.md +254 -254
  164. package/src/bmad-plus/packs/pack-shield/references/soc2/vendor.md +276 -276
  165. package/src/bmad-plus/packs/pack-shield/references/swift-csp/swift-assessment.md +202 -202
  166. package/src/bmad-plus/packs/pack-shield/references/swift-csp/swift-controls.md +545 -545
  167. package/src/bmad-plus/packs/pack-shield/references/tsa-compliance/tsa-crmp-requirements.md +359 -359
  168. package/src/bmad-plus/packs/pack-shield/references/tsa-compliance/tsa-directives-overview.md +187 -187
  169. package/src/bmad-plus/packs/pack-shield/references/tsa-compliance/tsa-incident-reporting.md +187 -187
  170. package/src/bmad-plus/packs/pack-shield/references/wcag/criteria-detail.md +510 -510
  171. package/src/bmad-plus/packs/pack-shield/shared/audit-report-template.md +103 -103
  172. package/src/bmad-plus/packs/pack-shield/shared/cross-framework-mapper.md +103 -103
  173. package/src/bmad-plus/packs/pack-shield/shared/gap-analysis-template.md +83 -83
  174. package/src/bmad-plus/packs/pack-shield/shield-orchestrator.md +229 -229
  175. package/src/bmad-plus/packs/pack-shield/upstream-sync.yaml +68 -68
  176. package/src/bmad-plus/skills/bmad-plus-autopilot/SKILL.md +99 -99
  177. package/src/bmad-plus/skills/bmad-plus-parallel/SKILL.md +93 -93
  178. package/src/bmad-plus/skills/bmad-plus-sync/SKILL.md +69 -69
  179. package/tools/bmad-plus-npx.js +3 -5
  180. package/tools/cli/bmad-plus-cli.js +5 -3
  181. package/tools/cli/commands/autoconfig.js +18 -61
  182. package/tools/cli/commands/doctor.js +30 -31
  183. package/tools/cli/commands/install.js +33 -343
  184. package/tools/cli/commands/memory.js +1 -0
  185. package/tools/cli/commands/scan.js +61 -74
  186. package/tools/cli/commands/uninstall.js +7 -4
  187. package/tools/cli/commands/update.js +15 -72
  188. package/tools/cli/i18n.js +92 -10
  189. package/tools/cli/lib/ide-config.js +259 -0
  190. package/tools/cli/lib/memory-init.js +113 -0
  191. package/tools/cli/lib/pack-copy.js +84 -0
  192. package/tools/cli/lib/packs.js +114 -0
  193. package/tools/cli/lib/stack-detect.js +102 -0
  194. package/tools/cli/lib/validate.js +45 -0
  195. package/src/bmad-plus/agents/pack-animated/animated-website-agent.md +0 -325
  196. package/src/bmad-plus/agents/pack-animated/templates/animated-website-workflow.md +0 -55
  197. package/src/bmad-plus/agents/pack-backup/backup-agent.md +0 -71
  198. package/src/bmad-plus/agents/pack-backup/templates/backup-workflow.md +0 -51
  199. package/src/bmad-plus/agents/pack-seo/SKILL.md +0 -171
  200. package/src/bmad-plus/agents/pack-seo/checklist.md +0 -140
  201. package/src/bmad-plus/agents/pack-seo/pagespeed-playbook.md +0 -320
  202. package/src/bmad-plus/agents/pack-seo/ref/audit-schema.json +0 -187
  203. package/src/bmad-plus/agents/pack-seo/ref/cwv-thresholds.md +0 -87
  204. package/src/bmad-plus/agents/pack-seo/ref/eeat-criteria.md +0 -123
  205. package/src/bmad-plus/agents/pack-seo/ref/geo-signals.md +0 -167
  206. package/src/bmad-plus/agents/pack-seo/ref/hreflang-rules.md +0 -153
  207. package/src/bmad-plus/agents/pack-seo/ref/quality-gates.md +0 -133
  208. package/src/bmad-plus/agents/pack-seo/ref/schema-catalog.md +0 -91
  209. package/src/bmad-plus/agents/pack-seo/ref/schema-templates.json +0 -356
  210. package/src/bmad-plus/agents/pack-seo/seo-chief.md +0 -294
  211. package/src/bmad-plus/agents/pack-seo/seo-judge.md +0 -241
  212. package/src/bmad-plus/agents/pack-seo/seo-scout.md +0 -171
  213. package/src/bmad-plus/agents/pack-seo/templates/seo-audit-workflow.md +0 -241
@@ -11,35 +11,17 @@ const fsExtra = require('fs-extra');
11
11
  const clack = require('@clack/prompts');
12
12
  const pc = require('picocolors');
13
13
  const { t } = require('../i18n');
14
+ const { PACKS } = require('../lib/packs');
15
+ const { copyPackFiles } = require('../lib/pack-copy');
14
16
 
15
- // Same pack definitions as install.js keep in sync
16
- const PACKS = {
17
- core: {
18
- agents: ['agent-strategist', 'agent-architect-dev', 'agent-quality', 'agent-orchestrator'],
19
- skills: ['bmad-plus-autopilot', 'bmad-plus-parallel', 'bmad-plus-sync'],
20
- data: ['role-triggers.yaml'],
21
- },
22
- osint: {
23
- agents: ['agent-shadow'],
24
- skills: [],
25
- externalPackage: 'osint-agent-package',
26
- },
27
- maker: {
28
- agents: ['agent-maker'],
29
- skills: [],
30
- data: [],
31
- },
32
- seo: { agents: [], skills: [], packDir: 'pack-seo' },
33
- backup: { agents: [], skills: [], packDir: 'pack-backup' },
34
- animated: { agents: [], skills: [], packDir: 'pack-animated' },
35
- shield: { agents: [], skills: [], packDir: 'pack-shield', packSrcDir: 'packs' },
36
- };
17
+ // Pack definitions imported from shared module: require('../lib/packs').PACKS
37
18
 
38
19
  module.exports = {
39
20
  command: 'update',
40
21
  description: 'Update BMAD+ agents and skills (preserves config)',
41
22
  options: [
42
23
  ['-d, --directory <path>', 'Project directory (default: current directory)'],
24
+ ['-l, --lang <code>', 'Language code: en, fr, es, de, pt-br, ru, zh, he, ja, it'],
43
25
  ],
44
26
  action: async (options) => {
45
27
  const projectDir = path.resolve(options.directory || process.cwd());
@@ -58,7 +40,7 @@ module.exports = {
58
40
  }
59
41
 
60
42
  const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
61
- const lang = manifest.uiLanguage || 'en';
43
+ const lang = options.lang || manifest.uiLanguage || 'en';
62
44
  const i = t(lang);
63
45
 
64
46
  clack.log.info(`📦 Installed: v${manifest.version} → Available: v${packageJson.version}`);
@@ -92,59 +74,20 @@ module.exports = {
92
74
 
93
75
  let updated = 0;
94
76
 
77
+ const projectRoot = path.join(bmadSrc, '..', '..');
78
+
95
79
  for (const packId of selectedPacks) {
96
80
  const pack = PACKS[packId];
97
81
  if (!pack) continue;
98
82
 
99
- // Update agents
100
- for (const agent of (pack.agents || [])) {
101
- const src = path.join(bmadSrc, 'agents', agent);
102
- const dest = path.join(targetAgentsDir, agent);
103
- if (fs.existsSync(src)) {
104
- fsExtra.copySync(src, dest, { overwrite: true });
105
- updated++;
106
- }
107
- }
108
-
109
- // Update skills
110
- for (const skill of (pack.skills || [])) {
111
- const src = path.join(bmadSrc, 'skills', skill);
112
- const dest = path.join(targetAgentsDir, skill);
113
- if (fs.existsSync(src)) {
114
- fsExtra.copySync(src, dest, { overwrite: true });
115
- updated++;
116
- }
117
- }
118
-
119
- // Update data files
120
- for (const dataFile of (pack.data || [])) {
121
- const src = path.join(bmadSrc, 'data', dataFile);
122
- const dest = path.join(targetDataDir, dataFile);
123
- if (fs.existsSync(src)) {
124
- fsExtra.copySync(src, dest, { overwrite: true });
125
- updated++;
126
- }
127
- }
128
-
129
- // Update external package (OSINT)
130
- if (pack.externalPackage) {
131
- const extSrc = path.join(__dirname, '..', '..', '..', pack.externalPackage, 'skills');
132
- if (fs.existsSync(extSrc)) {
133
- fsExtra.copySync(extSrc, targetAgentsDir, { overwrite: true });
134
- updated++;
135
- }
136
- }
137
-
138
- // Update pack directory (SEO, Backup, Animated, Shield)
139
- if (pack.packDir) {
140
- const srcParent = pack.packSrcDir || 'agents';
141
- const packSrc = path.join(bmadSrc, srcParent, pack.packDir);
142
- const packDest = path.join(targetAgentsDir, pack.packDir);
143
- if (fs.existsSync(packSrc)) {
144
- fsExtra.copySync(packSrc, packDest, { overwrite: true });
145
- updated++;
146
- }
147
- }
83
+ const result = copyPackFiles({
84
+ bmadSrc,
85
+ targetAgentsDir,
86
+ targetDataDir,
87
+ projectRoot,
88
+ pack,
89
+ });
90
+ updated += result.copiedAgents + result.copiedSkills + result.copiedFiles;
148
91
  }
149
92
 
150
93
  // Update module config (always)
package/tools/cli/i18n.js CHANGED
@@ -5,12 +5,14 @@
5
5
  * Author: Laurent Rochetta
6
6
  */
7
7
 
8
+ const VERSION = require('../../package.json').version;
9
+
8
10
  const LANGUAGES = {
9
11
  en: {
10
12
  flag: '🇬🇧',
11
13
  name: 'English',
12
14
  locale: 'en',
13
- installer_title: ' BMAD+ Installer v0.8.0 ',
15
+ installer_title: ` BMAD+ Installer v${VERSION} `,
14
16
  select_language: 'Select your language',
15
17
  installing_to: 'Installing to',
16
18
  select_packs: 'Which packs to install? (Core is always included)',
@@ -92,7 +94,7 @@ const LANGUAGES = {
92
94
  flag: '🇫🇷',
93
95
  name: 'Français',
94
96
  locale: 'fr',
95
- installer_title: ' BMAD+ Installeur v0.8.0 ',
97
+ installer_title: ` BMAD+ Installeur v${VERSION} `,
96
98
  select_language: 'Choisissez votre langue',
97
99
  installing_to: 'Installation dans',
98
100
  select_packs: 'Quels packs installer ? (Core est toujours inclus)',
@@ -172,7 +174,7 @@ const LANGUAGES = {
172
174
  flag: '🇪🇸',
173
175
  name: 'Español',
174
176
  locale: 'es',
175
- installer_title: ' BMAD+ Instalador v0.8.0 ',
177
+ installer_title: ` BMAD+ Instalador v${VERSION} `,
176
178
  select_language: 'Seleccione su idioma',
177
179
  installing_to: 'Instalando en',
178
180
  select_packs: '¿Qué packs instalar? (Core siempre está incluido)',
@@ -236,13 +238,23 @@ const LANGUAGES = {
236
238
  guide_example_backup: '🗂️ Backup: "/backup create" → ZIP con marca de tiempo',
237
239
  guide_example_animated: '🎬 Animado: "/animated build hero.mp4"',
238
240
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
241
+ guide_memory: '🧠 Cerebro persistente',
242
+ guide_dev_studio: '🏗️ Dev Studio',
243
+ guide_example_memory_1: '🧠 Memoria: "Zecher, escanea proyectos en D:\\DEV"',
244
+ guide_example_memory_2: '🧠 Memoria: "Zecher, ¿dónde estábamos?"',
245
+ guide_example_memory_3: '🧠 Memoria: "Zecher, consolida la memoria"',
246
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, haz una lluvia de ideas para una app de productividad"',
247
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, diseña la arquitectura"',
248
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, implementa la historia S1"',
249
+ brain_detected: 'Cerebro existente detectado',
250
+ brain_created: 'Cerebro global creado',
239
251
  },
240
252
 
241
253
  de: {
242
254
  flag: '🇩🇪',
243
255
  name: 'Deutsch',
244
256
  locale: 'de',
245
- installer_title: ' BMAD+ Installer v0.8.0 ',
257
+ installer_title: ` BMAD+ Installer v${VERSION} `,
246
258
  select_language: 'Wählen Sie Ihre Sprache',
247
259
  installing_to: 'Installiere in',
248
260
  select_packs: 'Welche Packs installieren? (Core ist immer enthalten)',
@@ -306,13 +318,23 @@ const LANGUAGES = {
306
318
  guide_example_backup: '🗂️ Backup: "/backup create" → ZIP mit Zeitstempel',
307
319
  guide_example_animated: '🎬 Animiert: "/animated build hero.mp4"',
308
320
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
321
+ guide_memory: '🧠 Beständiges Gehirn',
322
+ guide_dev_studio: '🏗️ Dev Studio',
323
+ guide_example_memory_1: '🧠 Gedächtnis: "Zecher, scanne Projekte in D:\\DEV"',
324
+ guide_example_memory_2: '🧠 Gedächtnis: "Zecher, wo waren wir?"',
325
+ guide_example_memory_3: '🧠 Gedächtnis: "Zecher, konsolidiere Gedächtnis"',
326
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, brainstorme eine Produktivitäts-App"',
327
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, entwirf die Architektur"',
328
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, implementiere Story S1"',
329
+ brain_detected: 'Vorhandenes Gehirn erkannt',
330
+ brain_created: 'Globales Gehirn erstellt',
309
331
  },
310
332
 
311
333
  'pt-br': {
312
334
  flag: '🇧🇷',
313
335
  name: 'Português (Brasil)',
314
336
  locale: 'pt-BR',
315
- installer_title: ' BMAD+ Instalador v0.8.0 ',
337
+ installer_title: ` BMAD+ Instalador v${VERSION} `,
316
338
  select_language: 'Selecione seu idioma',
317
339
  installing_to: 'Instalando em',
318
340
  select_packs: 'Quais packs instalar? (Core sempre está incluído)',
@@ -376,13 +398,23 @@ const LANGUAGES = {
376
398
  guide_example_backup: '🗂️ Backup: "/backup create" → ZIP com timestamp',
377
399
  guide_example_animated: '🎬 Animado: "/animated build hero.mp4"',
378
400
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
401
+ guide_memory: '🧠 Cérebro persistente',
402
+ guide_dev_studio: '🏗️ Dev Studio',
403
+ guide_example_memory_1: '🧠 Memória: "Zecher, escaneie projetos em D:\\DEV"',
404
+ guide_example_memory_2: '🧠 Memória: "Zecher, onde estávamos?"',
405
+ guide_example_memory_3: '🧠 Memória: "Zecher, consolide a memória"',
406
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, faça um brainstorm de um app de produtividade"',
407
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, projete a arquitetura"',
408
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, implemente a história S1"',
409
+ brain_detected: 'Cérebro existente detectado',
410
+ brain_created: 'Cérebro global criado',
379
411
  },
380
412
 
381
413
  ru: {
382
414
  flag: '🇷🇺',
383
415
  name: 'Русский',
384
416
  locale: 'ru',
385
- installer_title: ' BMAD+ Установщик v0.8.0 ',
417
+ installer_title: ` BMAD+ Установщик v${VERSION} `,
386
418
  select_language: 'Выберите язык',
387
419
  installing_to: 'Установка в',
388
420
  select_packs: 'Какие пакеты установить? (Core всегда включён)',
@@ -446,13 +478,23 @@ const LANGUAGES = {
446
478
  guide_example_backup: '🗂️ Бэкап: "/backup create" → ZIP',
447
479
  guide_example_animated: '🎬 Анимация: "/animated build hero.mp4"',
448
480
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
481
+ guide_memory: '🧠 Постоянный мозг',
482
+ guide_dev_studio: '🏗️ Dev Studio',
483
+ guide_example_memory_1: '🧠 Память: "Zecher, сканируй проекты в D:\\DEV"',
484
+ guide_example_memory_2: '🧠 Память: "Zecher, на чём мы остановились?"',
485
+ guide_example_memory_3: '🧠 Память: "Zecher, консолидируй память"',
486
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, проведи мозговой штурм приложения"',
487
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, спроектируй архитектуру"',
488
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, реализуй историю S1"',
489
+ brain_detected: 'Существующий мозг обнаружен',
490
+ brain_created: 'Глобальный мозг создан',
449
491
  },
450
492
 
451
493
  zh: {
452
494
  flag: '🇨🇳',
453
495
  name: '中文 (简体)',
454
496
  locale: 'zh-CN',
455
- installer_title: ' BMAD+ 安装程序 v0.8.0 ',
497
+ installer_title: ` BMAD+ 安装程序 v${VERSION} `,
456
498
  select_language: '选择您的语言',
457
499
  installing_to: '安装到',
458
500
  select_packs: '安装哪些包?(Core 始终包含)',
@@ -516,13 +558,23 @@ const LANGUAGES = {
516
558
  guide_example_backup: '🗂️ 备份: "/backup create" → ZIP',
517
559
  guide_example_animated: '🎬 动画: "/animated build hero.mp4"',
518
560
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
561
+ guide_memory: '🧠 持久记忆',
562
+ guide_dev_studio: '🏗️ Dev Studio',
563
+ guide_example_memory_1: '🧠 记忆: "Zecher, 扫描 D:\\DEV 中的项目"',
564
+ guide_example_memory_2: '🧠 记忆: "Zecher, 我们进行到哪里了?"',
565
+ guide_example_memory_3: '🧠 记忆: "Zecher, 整合记忆"',
566
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, 集思广益一个生产力应用"',
567
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, 设计架构"',
568
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, 实现故事 S1"',
569
+ brain_detected: '检测到现有大脑',
570
+ brain_created: '全局大脑已创建',
519
571
  },
520
572
 
521
573
  he: {
522
574
  flag: '🇮🇱',
523
575
  name: 'עברית',
524
576
  locale: 'he',
525
- installer_title: ' BMAD+ מתקין v0.8.0 ',
577
+ installer_title: ` BMAD+ מתקין v${VERSION} `,
526
578
  select_language: 'בחר את השפה שלך',
527
579
  installing_to: 'מתקין ב',
528
580
  select_packs: 'אילו חבילות להתקין? (Core תמיד כלול)',
@@ -586,13 +638,23 @@ const LANGUAGES = {
586
638
  guide_example_backup: '🗂️ גיבוי: "/backup create" → ZIP',
587
639
  guide_example_animated: '🎬 אנימציה: "/animated build hero.mp4"',
588
640
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
641
+ guide_memory: '🧠 זיכרון מתמשך',
642
+ guide_dev_studio: '🏗️ Dev Studio',
643
+ guide_example_memory_1: '🧠 זיכרון: "Zecher, סרוק פרויקטים ב-D:\\DEV"',
644
+ guide_example_memory_2: '🧠 זיכרון: "Zecher, איפה היינו?"',
645
+ guide_example_memory_3: '🧠 זיכרון: "Zecher, אחד זיכרון"',
646
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, עשה סיעור מוחות לאפליקציית פרודוקטיביות"',
647
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, תכנן את הארכיטקטורה"',
648
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, יישם את הסיפור S1"',
649
+ brain_detected: 'זוהה מוח קיים',
650
+ brain_created: 'מוח גלובלי נוצר',
589
651
  },
590
652
 
591
653
  ja: {
592
654
  flag: '🇯🇵',
593
655
  name: '日本語',
594
656
  locale: 'ja',
595
- installer_title: ' BMAD+ インストーラー v0.8.0 ',
657
+ installer_title: ` BMAD+ インストーラー v${VERSION} `,
596
658
  select_language: '言語を選択してください',
597
659
  installing_to: 'インストール先',
598
660
  select_packs: 'どのパックをインストールしますか?(Coreは常に含まれます)',
@@ -656,13 +718,23 @@ const LANGUAGES = {
656
718
  guide_example_backup: '🗂️ バックアップ: "/backup create" → ZIP',
657
719
  guide_example_animated: '🎬 アニメ: "/animated build hero.mp4"',
658
720
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
721
+ guide_memory: '🧠 永続的な脳',
722
+ guide_dev_studio: '🏗️ Dev Studio',
723
+ guide_example_memory_1: '🧠 記憶: "Zecher, D:\\DEV のプロジェクトをスキャン"',
724
+ guide_example_memory_2: '🧠 記憶: "Zecher, どこまで進んだ?"',
725
+ guide_example_memory_3: '🧠 記憶: "Zecher, 記憶を統合"',
726
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, 生産性アプリをブレインストーミング"',
727
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, アーキテクチャを設計"',
728
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, ストーリーS1を実装"',
729
+ brain_detected: '既存の脳を検出',
730
+ brain_created: 'グローバル脳を作成',
659
731
  },
660
732
 
661
733
  it: {
662
734
  flag: '🇮🇹',
663
735
  name: 'Italiano',
664
736
  locale: 'it',
665
- installer_title: ' BMAD+ Installatore v0.8.0 ',
737
+ installer_title: ` BMAD+ Installatore v${VERSION} `,
666
738
  select_language: 'Seleziona la tua lingua',
667
739
  installing_to: 'Installazione in',
668
740
  select_packs: 'Quali pack installare? (Core è sempre incluso)',
@@ -726,6 +798,16 @@ const LANGUAGES = {
726
798
  guide_example_backup: '🗂️ Backup: "/backup create" → ZIP con timestamp',
727
799
  guide_example_animated: '🎬 Animato: "/animated build hero.mp4"',
728
800
  guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
801
+ guide_memory: '🧠 Memoria persistente',
802
+ guide_dev_studio: '🏗️ Dev Studio',
803
+ guide_example_memory_1: '🧠 Memoria: "Zecher, scansiona progetti in D:\\DEV"',
804
+ guide_example_memory_2: '🧠 Memoria: "Zecher, dove eravamo?"',
805
+ guide_example_memory_3: '🧠 Memoria: "Zecher, consolida la memoria"',
806
+ guide_example_dev_studio_1: '🏗️ Dev Studio: "Miriam, fai un brainstorming di un\'app di produttività"',
807
+ guide_example_dev_studio_2: '🏗️ Dev Studio: "Bezalel, progetta l\'architettura"',
808
+ guide_example_dev_studio_3: '🏗️ Dev Studio: "Oholiab, implementa la storia S1"',
809
+ brain_detected: 'Cervello esistente rilevato',
810
+ brain_created: 'Cervello globale creato',
729
811
  },
730
812
  };
731
813
 
@@ -0,0 +1,259 @@
1
+ /**
2
+ * BMAD+ IDE Configuration Generator
3
+ * Extracted from install.js for modularity.
4
+ * Generates CLAUDE.md, GEMINI.md, AGENTS.md content with pack-aware agent filtering.
5
+ *
6
+ * Author: Laurent Rochetta
7
+ */
8
+
9
+ // ── IDE Configurations ──
10
+
11
+ const IDE_CONFIGS = {
12
+ 'claude-code': {
13
+ name: 'Claude Code',
14
+ detect: ['.claude'],
15
+ configFile: 'CLAUDE.md',
16
+ },
17
+ 'gemini-cli': {
18
+ name: 'Gemini CLI',
19
+ detect: ['.gemini'],
20
+ configFile: 'GEMINI.md',
21
+ },
22
+ 'codex-cli': {
23
+ name: 'Codex CLI / OpenCode',
24
+ detect: ['.codex', '.opencode'],
25
+ configFile: 'AGENTS.md',
26
+ },
27
+ 'antigravity': {
28
+ name: 'Antigravity',
29
+ detect: ['.gemini/antigravity'],
30
+ configFile: 'GEMINI.md',
31
+ },
32
+ };
33
+
34
+ // All 14 BMAD+ agents — always included in templates
35
+ const AGENT_LIST = [
36
+ '- **Atlas** (Strategist) — Business analysis + Product management',
37
+ '- **Forge** (Architect-Dev) — Architecture + Development + Documentation',
38
+ '- **Sentinel** (Quality) — QA + UX review',
39
+ '- **Nexus** (Orchestrator) — Sprint management + Autopilot + Parallel execution',
40
+ '- **Shadow** (OSINT) — Investigation + Scraping + Psychoprofiling',
41
+ '- **Shield** (GRC) — 38 compliance agents (GDPR, ISO 27001, SOC 2, HIPAA, EU AI Act, DORA, NIS2...)',
42
+ '- **Miriam** (מרים) — Business Analyst — Strategic analysis, research, product briefs',
43
+ '- **Huldah** (חולדה) — Technical Writer — Documentation, diagrams, editorial review',
44
+ '- **Yosef** (יוסף) — Product Manager — PRD, requirements, feature prioritization',
45
+ '- **Rachel** (רחל) — UX Designer — User experience, wireframes, empathy mapping',
46
+ '- **Bezalel** (בצלאל) — System Architect — Architecture, ADRs, epics & stories',
47
+ '- **Oholiab** (אהליאב) — Senior Engineer — TDD, sprint, code review, implementation',
48
+ '- **Zecher** (זכר) — Memory Archivist — Consolidation, project scanning, context recall',
49
+ '- **Maker** (Creator) — Custom agent builder — Create new agents from description',
50
+ ];
51
+
52
+ /**
53
+ * Filter agents based on installed packs.
54
+ * Core agents are always included; others depend on pack selection.
55
+ *
56
+ * @param {string[]} packs - List of installed pack IDs
57
+ * @returns {string[]} Agent description lines
58
+ */
59
+ function getAgentsByPacks(packs) {
60
+ const agents = [
61
+ '- **Atlas** (Strategist) — Business analysis + Product management',
62
+ '- **Forge** (Architect-Dev) — Architecture + Development + Documentation',
63
+ '- **Sentinel** (Quality) — QA + UX review',
64
+ '- **Nexus** (Orchestrator) — Sprint management + Autopilot + Parallel execution',
65
+ ];
66
+
67
+ if (packs.includes('osint')) {
68
+ agents.push('- **Shadow** (OSINT) — Investigation + Scraping + Psychoprofiling');
69
+ }
70
+
71
+ if (packs.includes('shield')) {
72
+ agents.push('- **Shield** (GRC) — 38 compliance agents (GDPR, ISO 27001, SOC 2, HIPAA, EU AI Act, DORA, NIS2...)');
73
+ }
74
+
75
+ if (packs.includes('maker')) {
76
+ agents.push('- **Maker** (Creator) — Custom agent builder — Create new agents from description');
77
+ }
78
+
79
+ if (packs.includes('dev-studio')) {
80
+ agents.push('- **Miriam** (מרים) — Business Analyst — Strategic analysis, research, product briefs');
81
+ agents.push('- **Huldah** (חולדה) — Technical Writer — Documentation, diagrams, editorial review');
82
+ agents.push('- **Yosef** (יוסף) — Product Manager — PRD, requirements, feature prioritization');
83
+ agents.push('- **Rachel** (רחל) — UX Designer — User experience, wireframes, empathy mapping');
84
+ agents.push('- **Bezalel** (בצלאל) — System Architecture — Architecture, ADRs, epics & stories');
85
+ agents.push('- **Oholiab** (אהליאב) — Senior Engineer — TDD, sprint, code review, implementation');
86
+ }
87
+
88
+ if (packs.includes('memory')) {
89
+ agents.push('- **Zecher** (זכר) — Memory Archivist — Consolidation, project scanning, context recall');
90
+ }
91
+
92
+ return agents;
93
+ }
94
+
95
+ /**
96
+ * Build the Memory Protocol section if the memory pack is installed.
97
+ *
98
+ * @param {string[]} packs - List of installed pack IDs
99
+ * @returns {string} Memory section markdown (empty string if no memory pack)
100
+ */
101
+ function getMemorySection(packs) {
102
+ if (!packs.includes('memory')) return '';
103
+ return [
104
+ '',
105
+ '## Memory Protocol (Karpathy Guardrails)',
106
+ '',
107
+ 'Agents MUST follow these behavioral principles:',
108
+ '',
109
+ '### G1 — Think Before Coding',
110
+ '- State assumptions explicitly. If uncertain, ask.',
111
+ '- Check `.agents/memory/decisions.md` for prior decisions before re-deciding.',
112
+ '',
113
+ '### G2 — Simplicity First',
114
+ '- Minimum code that solves the problem. Nothing speculative.',
115
+ '- Check `.agents/memory/patterns.md` for existing solutions.',
116
+ '',
117
+ '### G3 — Surgical Changes',
118
+ '- Touch only what you must. Match existing style.',
119
+ '- Log surprises in `.agents/memory/lessons.md`.',
120
+ '',
121
+ '### G4 — Goal-Driven Execution',
122
+ '- Define success criteria before implementing.',
123
+ '- Log non-obvious decisions in `.agents/memory/decisions.md`.',
124
+ '',
125
+ '### Memory Files',
126
+ '- `.agents/memory/decisions.md` — Read at session start, write when making decisions',
127
+ '- `.agents/memory/lessons.md` — Write when something unexpected happens',
128
+ '- `.agents/memory/patterns.md` — Write when a reusable pattern is validated',
129
+ '- `.agents/memory/context.md` — Update at session end with project state',
130
+ ].join('\n');
131
+ }
132
+
133
+ /**
134
+ * Generate IDE config content with pack-aware agent filtering.
135
+ *
136
+ * @param {string} userName - The user's display name
137
+ * @param {string} language - User-facing communication language
138
+ * @param {string[]} packs - List of installed pack IDs
139
+ * @returns {string} Complete Markdown template
140
+ */
141
+ function generateIDEConfig(userName, language, packs) {
142
+ const agents = getAgentsByPacks(packs);
143
+ const memorySection = getMemorySection(packs);
144
+
145
+ return `# BMAD+ — AI Agent Configuration
146
+
147
+ ## Project Context
148
+ This project uses BMAD+, an augmented AI-driven development framework.
149
+ Based on BMAD-METHOD v6.6.0 with multi-role agents, autopilot mode, and parallel execution.
150
+
151
+ ## Agents
152
+ To activate an agent, say its name or persona:
153
+ ${agents.join('\n')}
154
+
155
+ ## Skills
156
+ - Load skills from \`.agents/skills/\`
157
+ - Each agent has a SKILL.md with capabilities, activation protocol, and role-switching rules
158
+ - Auto-activation triggers: \`.agents/data/role-triggers.yaml\`
159
+
160
+ ## Key Commands
161
+ - \`bmad-help\` — Show all available agents and skills
162
+ - \`autopilot\` — Launch Nexus in full pipeline mode
163
+ - \`parallel\` — Enable parallel multi-agent execution
164
+
165
+ ## Communication
166
+ - User name: ${userName}
167
+ - Default language: ${language} for user-facing content, English for code and technical docs.
168
+ ${memorySection}`;
169
+ }
170
+
171
+ /**
172
+ * Generate a complete CLAUDE.md / GEMINI.md / AGENTS.md config file
173
+ * (all agents, no filtering — backward compatible)
174
+ *
175
+ * @param {string} userName - The user's display name
176
+ * @param {string} language - User-facing communication language
177
+ * @returns {string} Complete Markdown template
178
+ */
179
+ function generateBaseConfig(userName, language) {
180
+ return `# BMAD+ — AI Agent Configuration
181
+
182
+ ## Project Context
183
+ This project uses BMAD+, an augmented AI-driven development framework.
184
+ Based on BMAD-METHOD v6.6.0 with multi-role agents, autopilot mode, and parallel execution.
185
+
186
+ ## Agents
187
+ To activate an agent, say its name or persona:
188
+ ${AGENT_LIST.join('\n')}
189
+
190
+ ## Skills
191
+ - Load skills from \`.agents/skills/\`
192
+ - Each agent has a SKILL.md with capabilities, activation protocol, and role-switching rules
193
+ - Auto-activation triggers: \`.agents/data/role-triggers.yaml\`
194
+
195
+ ## Key Commands
196
+ - \`bmad-help\` — Show all available agents and skills
197
+ - \`autopilot\` — Launch Nexus in full pipeline mode
198
+ - \`parallel\` — Enable parallel multi-agent execution
199
+
200
+ ## Communication
201
+ - User name: ${userName}
202
+ - Default language: ${language} for user-facing content, English for code and technical docs.
203
+
204
+ ## Memory Protocol (Karpathy Guardrails)
205
+
206
+ Agents MUST follow these behavioral principles:
207
+
208
+ ### G1 — Think Before Coding
209
+ - State assumptions explicitly. If uncertain, ask.
210
+ - Check \`.agents/memory/decisions.md\` for prior decisions before re-deciding.
211
+
212
+ ### G2 — Simplicity First
213
+ - Minimum code that solves the problem. Nothing speculative.
214
+ - Check \`.agents/memory/patterns.md\` for existing solutions.
215
+
216
+ ### G3 — Surgical Changes
217
+ - Touch only what you must. Match existing style.
218
+ - Log surprises in \`.agents/memory/lessons.md\`.
219
+
220
+ ### G4 — Goal-Driven Execution
221
+ - Define success criteria before implementing.
222
+ - Log non-obvious decisions in \`.agents/memory/decisions.md\`.
223
+
224
+ ### Memory Files
225
+ - \`.agents/memory/decisions.md\` — Read at session start, write when making decisions
226
+ - \`.agents/memory/lessons.md\` — Write when something unexpected happens
227
+ - \`.agents/memory/patterns.md\` — Write when a reusable pattern is validated
228
+ - \`.agents/memory/context.md\` — Update at session end with project state`;
229
+ }
230
+
231
+ module.exports = {
232
+ IDE_CONFIGS,
233
+ generateIDEConfig,
234
+ getAgentsByPacks,
235
+
236
+ /**
237
+ * Generate CLAUDE.md config for Claude Code
238
+ * @param {string} userName
239
+ * @param {string} language
240
+ * @returns {string}
241
+ */
242
+ generateClaudeMD: generateBaseConfig,
243
+
244
+ /**
245
+ * Generate GEMINI.md config for Gemini CLI / Antigravity
246
+ * @param {string} userName
247
+ * @param {string} language
248
+ * @returns {string}
249
+ */
250
+ generateGeminiMD: generateBaseConfig,
251
+
252
+ /**
253
+ * Generate AGENTS.md config for Codex CLI / OpenCode
254
+ * @param {string} userName
255
+ * @param {string} language
256
+ * @returns {string}
257
+ */
258
+ generateAgentsMD: generateBaseConfig,
259
+ };