bmad-plus 0.12.0 → 0.12.2

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 (160) hide show
  1. package/CHANGELOG.md +612 -554
  2. package/README.md +557 -577
  3. package/osint-agent-package/agents/osint-investigator.md +12 -0
  4. package/osint-agent-package/skills/bmad-osint-investigate/osint/SKILL.md +491 -482
  5. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/dossier-template.md +126 -126
  6. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/lawful-basis-record.md +48 -48
  7. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/content-extraction.md +100 -100
  8. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/gdpr-osint.md +48 -48
  9. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/platforms.md +130 -130
  10. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/psychoprofile.md +69 -69
  11. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/tools.md +281 -281
  12. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/mcp-client.py +136 -136
  13. package/package.json +104 -91
  14. package/readme-international/README.de.md +596 -589
  15. package/readme-international/README.es.md +613 -606
  16. package/readme-international/README.fr.md +611 -604
  17. package/src/bmad-plus/agents/agent-shadow/SKILL.md +18 -0
  18. package/src/bmad-plus/data/role-triggers.yaml +52 -0
  19. package/src/bmad-plus/module.yaml +283 -283
  20. package/src/bmad-plus/packs/pack-animated/animated-website-agent.md +325 -325
  21. package/src/bmad-plus/packs/pack-animated/templates/animated-website-workflow.md +55 -55
  22. package/src/bmad-plus/packs/pack-backup/backup-agent.md +71 -71
  23. package/src/bmad-plus/packs/pack-backup/templates/backup-workflow.md +51 -51
  24. package/src/bmad-plus/packs/pack-dev-studio/README.md +162 -162
  25. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +73 -73
  26. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/document-project.md +61 -61
  27. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/domain-research.md +95 -95
  28. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/market-research.md +95 -95
  29. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/prfaq.md +134 -134
  30. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/product-brief.md +80 -80
  31. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/tech-writer-agent.md +73 -73
  32. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/technical-research.md +95 -95
  33. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +73 -73
  34. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-architecture.md +73 -73
  35. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-epics-stories.md +92 -92
  36. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/generate-project-context.md +80 -80
  37. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/implementation-readiness.md +90 -90
  38. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01-init.md +153 -153
  39. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01b-continue.md +173 -173
  40. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-02-context.md +224 -224
  41. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-03-starter.md +329 -329
  42. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-04-decisions.md +318 -318
  43. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-05-patterns.md +359 -359
  44. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-06-structure.md +379 -379
  45. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-07-validation.md +361 -361
  46. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-08-complete.md +81 -81
  47. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/checkpoint-preview.md +67 -67
  48. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-01-gather-context.md +85 -85
  49. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-02-review.md +35 -35
  50. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-03-triage.md +49 -49
  51. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-04-present.md +131 -131
  52. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review.md +89 -89
  53. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/correct-course.md +300 -300
  54. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/create-story.md +428 -428
  55. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-agent.md +73 -73
  56. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story-checklist.md +80 -80
  57. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story.md +484 -484
  58. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/investigate.md +193 -193
  59. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/qa-e2e-tests.md +175 -175
  60. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/quick-dev.md +110 -110
  61. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/retrospective.md +1511 -1511
  62. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-planning.md +298 -298
  63. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-status.md +296 -296
  64. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-prd.md +29 -29
  65. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-ux-design.md +74 -74
  66. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/edit-prd.md +29 -29
  67. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +73 -73
  68. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/prd.md +89 -89
  69. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/ux-designer-agent.md +73 -73
  70. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/validate-prd.md +29 -29
  71. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/advanced-elicitation.md +141 -141
  72. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/adversarial-review.md +37 -37
  73. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/bmad-help.md +75 -75
  74. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/brainstorming.md +6 -6
  75. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/customize.md +110 -110
  76. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/distillator.md +176 -176
  77. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/edge-case-hunter.md +67 -67
  78. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-prose.md +86 -86
  79. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md +179 -179
  80. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/index-docs.md +66 -66
  81. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/party-mode.md +127 -127
  82. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/shard-doc.md +105 -105
  83. package/src/bmad-plus/packs/pack-dev-studio/dev-studio-orchestrator.md +120 -120
  84. package/src/bmad-plus/packs/pack-dev-studio/shared/architecture-decision-template.md +12 -12
  85. package/src/bmad-plus/packs/pack-dev-studio/shared/bwml-spec.md +328 -328
  86. package/src/bmad-plus/packs/pack-dev-studio/shared/module-help.csv +32 -32
  87. package/src/bmad-plus/packs/pack-dev-studio/upstream-sync.yaml +81 -81
  88. package/src/bmad-plus/packs/pack-memory/shared/memory-protocol.md +14 -0
  89. package/src/bmad-plus/packs/pack-seo/SKILL.md +171 -171
  90. package/src/bmad-plus/packs/pack-seo/checklist.md +140 -140
  91. package/src/bmad-plus/packs/pack-seo/pagespeed-playbook.md +320 -320
  92. package/src/bmad-plus/packs/pack-seo/ref/audit-schema.json +187 -187
  93. package/src/bmad-plus/packs/pack-seo/ref/cwv-thresholds.md +87 -87
  94. package/src/bmad-plus/packs/pack-seo/ref/eeat-criteria.md +123 -123
  95. package/src/bmad-plus/packs/pack-seo/ref/geo-signals.md +167 -167
  96. package/src/bmad-plus/packs/pack-seo/ref/hreflang-rules.md +153 -153
  97. package/src/bmad-plus/packs/pack-seo/ref/quality-gates.md +133 -133
  98. package/src/bmad-plus/packs/pack-seo/ref/schema-catalog.md +91 -91
  99. package/src/bmad-plus/packs/pack-seo/ref/schema-templates.json +356 -356
  100. package/src/bmad-plus/packs/pack-seo/requirements.txt +17 -0
  101. package/src/bmad-plus/packs/pack-seo/scripts/seo_apis.py +456 -0
  102. package/src/bmad-plus/packs/pack-seo/scripts/seo_crawl.py +359 -0
  103. package/src/bmad-plus/packs/pack-seo/scripts/seo_fetch.py +304 -0
  104. package/src/bmad-plus/packs/pack-seo/scripts/seo_parse.py +255 -0
  105. package/src/bmad-plus/packs/pack-seo/scripts/seo_report.py +410 -0
  106. package/src/bmad-plus/packs/pack-seo/scripts/seo_screenshot.py +202 -0
  107. package/src/bmad-plus/packs/pack-seo/seo-chief.md +294 -294
  108. package/src/bmad-plus/packs/pack-seo/seo-judge.md +241 -241
  109. package/src/bmad-plus/packs/pack-seo/seo-scout.md +171 -171
  110. package/src/bmad-plus/packs/pack-seo/templates/seo-audit-workflow.md +241 -241
  111. package/src/bmad-plus/packs/pack-shield/README.md +6 -6
  112. package/src/bmad-plus/packs/pack-shield/SKILL.md +2 -2
  113. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/csrd-agent.md +11 -11
  114. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/section508-agent.md +11 -11
  115. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/wcag-agent.md +11 -11
  116. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/eu-ai-act-agent.md +11 -11
  117. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/iso42001-agent.md +11 -11
  118. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/nist-ai-rmf-agent.md +11 -11
  119. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/cis-controls-agent.md +11 -11
  120. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/ism-agent.md +11 -11
  121. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/iso27001-agent.md +11 -11
  122. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nis2-agent.md +11 -11
  123. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-800-53-agent.md +11 -11
  124. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-csf-agent.md +11 -11
  125. package/src/bmad-plus/packs/pack-shield/categories/defense-export/cmmc-agent.md +11 -11
  126. package/src/bmad-plus/packs/pack-shield/categories/defense-export/ear-agent.md +11 -11
  127. package/src/bmad-plus/packs/pack-shield/categories/defense-export/itar-agent.md +11 -11
  128. package/src/bmad-plus/packs/pack-shield/categories/defense-export/tsa-agent.md +11 -11
  129. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/dora-agent.md +11 -11
  130. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/fedramp-agent.md +11 -11
  131. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/hipaa-agent.md +11 -11
  132. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/pci-dss-agent.md +11 -11
  133. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/soc2-agent.md +11 -11
  134. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/swift-csp-agent.md +11 -11
  135. package/src/bmad-plus/packs/pack-shield/shield-orchestrator.md +1 -1
  136. package/tools/build/check-counts.js +628 -0
  137. package/tools/build/generated-adapters/.codex/AGENTS.md +1 -1
  138. package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +1 -1
  139. package/tools/build/generated-adapters/.opencode/AGENTS.md +1 -1
  140. package/tools/build/generated-adapters/AGENTS.md +1 -1
  141. package/tools/build/generated-adapters/CLAUDE.md +1 -1
  142. package/tools/build/generated-adapters/CONVENTIONS.md +1 -1
  143. package/tools/build/generated-adapters/GEMINI.md +1 -1
  144. package/tools/cli/commands/autoconfig.js +470 -472
  145. package/tools/cli/commands/doctor.js +233 -233
  146. package/tools/cli/commands/install.js +598 -495
  147. package/tools/cli/commands/memory-journal-cmd.js +311 -311
  148. package/tools/cli/commands/memory.js +195 -195
  149. package/tools/cli/commands/scan.js +348 -364
  150. package/tools/cli/commands/uninstall.js +101 -101
  151. package/tools/cli/commands/update.js +134 -134
  152. package/tools/cli/i18n.js +845 -845
  153. package/tools/cli/lib/README-memory-journal.md +125 -125
  154. package/tools/cli/lib/ide-config.js +267 -259
  155. package/tools/cli/lib/memory-init.js +204 -113
  156. package/tools/cli/lib/packs.js +209 -209
  157. package/tools/cli/lib/path-hash.js +39 -0
  158. package/tools/cli/lib/python-provision.js +508 -508
  159. package/tools/cli/lib/stack-detect.js +102 -102
  160. package/tools/cli/lib/validate.js +50 -50
@@ -1,259 +1,267 @@
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 ArchitectureArchitecture, 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 ArchivistConsolidation, 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
- '### G3Surgical Changes',
118
- '- Touch only what you must. Match existing style.',
119
- '- Log surprises in `.agents/memory/lessons.md`.',
120
- '',
121
- '### G4Goal-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
- ### G3Surgical Changes
217
- - Touch only what you must. Match existing style.
218
- - Log surprises in \`.agents/memory/lessons.md\`.
219
-
220
- ### G4Goal-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
- };
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
+ // Shield ships 27 compliance agents (registry.yaml `shield.categories`) AND 11
35
+ // workflows (`shield.workflows`) — two separate dimensions that must never be
36
+ // summed into a single "agents" figure. Summing them is what produced the retired
37
+ // "38" over-count that shipped into every generated user config. Declared once so
38
+ // the two call sites below cannot drift apart; gated by tools/build/check-counts.js.
39
+ const SHIELD_AGENT_LINE =
40
+ '- **Shield** (GRC) — 27 compliance agents + 11 workflows (GDPR, ISO 27001, SOC 2, HIPAA, EU AI Act, DORA, NIS2...)';
41
+
42
+ // All 14 BMAD+ agentsalways included in templates
43
+ const AGENT_LIST = [
44
+ '- **Atlas** (Strategist) — Business analysis + Product management',
45
+ '- **Forge** (Architect-Dev) — Architecture + Development + Documentation',
46
+ '- **Sentinel** (Quality) — QA + UX review',
47
+ '- **Nexus** (Orchestrator) — Sprint management + Autopilot + Parallel execution',
48
+ '- **Shadow** (OSINT) — Investigation + Scraping + Psychoprofiling',
49
+ SHIELD_AGENT_LINE,
50
+ '- **Miriam** (מרים) — Business Analyst — Strategic analysis, research, product briefs',
51
+ '- **Huldah** (חולדה) — Technical Writer — Documentation, diagrams, editorial review',
52
+ '- **Yosef** (יוסף) — Product Manager — PRD, requirements, feature prioritization',
53
+ '- **Rachel** (רחל) UX Designer User experience, wireframes, empathy mapping',
54
+ '- **Bezalel** (בצלאל) System Architect Architecture, ADRs, epics & stories',
55
+ '- **Oholiab** (אהליאב) — Senior Engineer — TDD, sprint, code review, implementation',
56
+ '- **Zecher** (זכר) Memory Archivist Consolidation, project scanning, context recall',
57
+ '- **Maker** (Creator) Custom agent builder — Create new agents from description',
58
+ ];
59
+
60
+ /**
61
+ * Filter agents based on installed packs.
62
+ * Core agents are always included; others depend on pack selection.
63
+ *
64
+ * @param {string[]} packs - List of installed pack IDs
65
+ * @returns {string[]} Agent description lines
66
+ */
67
+ function getAgentsByPacks(packs) {
68
+ const agents = [
69
+ '- **Atlas** (Strategist) — Business analysis + Product management',
70
+ '- **Forge** (Architect-Dev) — Architecture + Development + Documentation',
71
+ '- **Sentinel** (Quality) — QA + UX review',
72
+ '- **Nexus** (Orchestrator) — Sprint management + Autopilot + Parallel execution',
73
+ ];
74
+
75
+ if (packs.includes('osint')) {
76
+ agents.push('- **Shadow** (OSINT) — Investigation + Scraping + Psychoprofiling');
77
+ }
78
+
79
+ if (packs.includes('shield')) {
80
+ agents.push(SHIELD_AGENT_LINE);
81
+ }
82
+
83
+ if (packs.includes('maker')) {
84
+ agents.push('- **Maker** (Creator) — Custom agent builder Create new agents from description');
85
+ }
86
+
87
+ if (packs.includes('dev-studio')) {
88
+ agents.push('- **Miriam** (מרים) — Business Analyst — Strategic analysis, research, product briefs');
89
+ agents.push('- **Huldah** (חולדה) — Technical WriterDocumentation, diagrams, editorial review');
90
+ agents.push('- **Yosef** (יוסף) — Product Manager — PRD, requirements, feature prioritization');
91
+ agents.push('- **Rachel** (רחל) — UX Designer — User experience, wireframes, empathy mapping');
92
+ agents.push('- **Bezalel** (בצלאל) — System Architecture — Architecture, ADRs, epics & stories');
93
+ agents.push('- **Oholiab** (אהליאב) — Senior Engineer — TDD, sprint, code review, implementation');
94
+ }
95
+
96
+ if (packs.includes('memory')) {
97
+ agents.push('- **Zecher** (זכר) — Memory Archivist — Consolidation, project scanning, context recall');
98
+ }
99
+
100
+ return agents;
101
+ }
102
+
103
+ /**
104
+ * Build the Memory Protocol section if the memory pack is installed.
105
+ *
106
+ * @param {string[]} packs - List of installed pack IDs
107
+ * @returns {string} Memory section markdown (empty string if no memory pack)
108
+ */
109
+ function getMemorySection(packs) {
110
+ if (!packs.includes('memory')) return '';
111
+ return [
112
+ '',
113
+ '## Memory Protocol (Karpathy Guardrails)',
114
+ '',
115
+ 'Agents MUST follow these behavioral principles:',
116
+ '',
117
+ '### G1Think Before Coding',
118
+ '- State assumptions explicitly. If uncertain, ask.',
119
+ '- Check `.agents/memory/decisions.md` for prior decisions before re-deciding.',
120
+ '',
121
+ '### G2Simplicity First',
122
+ '- Minimum code that solves the problem. Nothing speculative.',
123
+ '- Check `.agents/memory/patterns.md` for existing solutions.',
124
+ '',
125
+ '### G3 — Surgical Changes',
126
+ '- Touch only what you must. Match existing style.',
127
+ '- Log surprises in `.agents/memory/lessons.md`.',
128
+ '',
129
+ '### G4Goal-Driven Execution',
130
+ '- Define success criteria before implementing.',
131
+ '- Log non-obvious decisions in `.agents/memory/decisions.md`.',
132
+ '',
133
+ '### Memory Files',
134
+ '- `.agents/memory/decisions.md` Read at session start, write when making decisions',
135
+ '- `.agents/memory/lessons.md` — Write when something unexpected happens',
136
+ '- `.agents/memory/patterns.md` Write when a reusable pattern is validated',
137
+ '- `.agents/memory/context.md` Update at session end with project state',
138
+ ].join('\n');
139
+ }
140
+
141
+ /**
142
+ * Generate IDE config content with pack-aware agent filtering.
143
+ *
144
+ * @param {string} userName - The user's display name
145
+ * @param {string} language - User-facing communication language
146
+ * @param {string[]} packs - List of installed pack IDs
147
+ * @returns {string} Complete Markdown template
148
+ */
149
+ function generateIDEConfig(userName, language, packs) {
150
+ const agents = getAgentsByPacks(packs);
151
+ const memorySection = getMemorySection(packs);
152
+
153
+ return `# BMAD+ — AI Agent Configuration
154
+
155
+ ## Project Context
156
+ This project uses BMAD+, an augmented AI-driven development framework.
157
+ Based on BMAD-METHOD v6.6.0 with multi-role agents, autopilot mode, and parallel execution.
158
+
159
+ ## Agents
160
+ To activate an agent, say its name or persona:
161
+ ${agents.join('\n')}
162
+
163
+ ## Skills
164
+ - Load skills from \`.agents/skills/\`
165
+ - Each agent has a SKILL.md with capabilities, activation protocol, and role-switching rules
166
+ - Auto-activation triggers: \`.agents/data/role-triggers.yaml\`
167
+
168
+ ## Key Commands
169
+ - \`bmad-help\` — Show all available agents and skills
170
+ - \`autopilot\` — Launch Nexus in full pipeline mode
171
+ - \`parallel\` — Enable parallel multi-agent execution
172
+
173
+ ## Communication
174
+ - User name: ${userName}
175
+ - Default language: ${language} for user-facing content, English for code and technical docs.
176
+ ${memorySection}`;
177
+ }
178
+
179
+ /**
180
+ * Generate a complete CLAUDE.md / GEMINI.md / AGENTS.md config file
181
+ * (all agents, no filtering — backward compatible)
182
+ *
183
+ * @param {string} userName - The user's display name
184
+ * @param {string} language - User-facing communication language
185
+ * @returns {string} Complete Markdown template
186
+ */
187
+ function generateBaseConfig(userName, language) {
188
+ return `# BMAD+ — AI Agent Configuration
189
+
190
+ ## Project Context
191
+ This project uses BMAD+, an augmented AI-driven development framework.
192
+ Based on BMAD-METHOD v6.6.0 with multi-role agents, autopilot mode, and parallel execution.
193
+
194
+ ## Agents
195
+ To activate an agent, say its name or persona:
196
+ ${AGENT_LIST.join('\n')}
197
+
198
+ ## Skills
199
+ - Load skills from \`.agents/skills/\`
200
+ - Each agent has a SKILL.md with capabilities, activation protocol, and role-switching rules
201
+ - Auto-activation triggers: \`.agents/data/role-triggers.yaml\`
202
+
203
+ ## Key Commands
204
+ - \`bmad-help\` Show all available agents and skills
205
+ - \`autopilot\` — Launch Nexus in full pipeline mode
206
+ - \`parallel\` Enable parallel multi-agent execution
207
+
208
+ ## Communication
209
+ - User name: ${userName}
210
+ - Default language: ${language} for user-facing content, English for code and technical docs.
211
+
212
+ ## Memory Protocol (Karpathy Guardrails)
213
+
214
+ Agents MUST follow these behavioral principles:
215
+
216
+ ### G1Think Before Coding
217
+ - State assumptions explicitly. If uncertain, ask.
218
+ - Check \`.agents/memory/decisions.md\` for prior decisions before re-deciding.
219
+
220
+ ### G2Simplicity First
221
+ - Minimum code that solves the problem. Nothing speculative.
222
+ - Check \`.agents/memory/patterns.md\` for existing solutions.
223
+
224
+ ### G3 — Surgical Changes
225
+ - Touch only what you must. Match existing style.
226
+ - Log surprises in \`.agents/memory/lessons.md\`.
227
+
228
+ ### G4Goal-Driven Execution
229
+ - Define success criteria before implementing.
230
+ - Log non-obvious decisions in \`.agents/memory/decisions.md\`.
231
+
232
+ ### Memory Files
233
+ - \`.agents/memory/decisions.md\` — Read at session start, write when making decisions
234
+ - \`.agents/memory/lessons.md\` — Write when something unexpected happens
235
+ - \`.agents/memory/patterns.md\` — Write when a reusable pattern is validated
236
+ - \`.agents/memory/context.md\` — Update at session end with project state`;
237
+ }
238
+
239
+ module.exports = {
240
+ IDE_CONFIGS,
241
+ generateIDEConfig,
242
+ getAgentsByPacks,
243
+
244
+ /**
245
+ * Generate CLAUDE.md config for Claude Code
246
+ * @param {string} userName
247
+ * @param {string} language
248
+ * @returns {string}
249
+ */
250
+ generateClaudeMD: generateBaseConfig,
251
+
252
+ /**
253
+ * Generate GEMINI.md config for Gemini CLI / Antigravity
254
+ * @param {string} userName
255
+ * @param {string} language
256
+ * @returns {string}
257
+ */
258
+ generateGeminiMD: generateBaseConfig,
259
+
260
+ /**
261
+ * Generate AGENTS.md config for Codex CLI / OpenCode
262
+ * @param {string} userName
263
+ * @param {string} language
264
+ * @returns {string}
265
+ */
266
+ generateAgentsMD: generateBaseConfig,
267
+ };