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.
- package/CHANGELOG.md +612 -554
- package/README.md +557 -577
- package/osint-agent-package/agents/osint-investigator.md +12 -0
- package/osint-agent-package/skills/bmad-osint-investigate/osint/SKILL.md +491 -482
- package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/dossier-template.md +126 -126
- package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/lawful-basis-record.md +48 -48
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/content-extraction.md +100 -100
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/gdpr-osint.md +48 -48
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/platforms.md +130 -130
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/psychoprofile.md +69 -69
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/tools.md +281 -281
- package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/mcp-client.py +136 -136
- package/package.json +104 -91
- package/readme-international/README.de.md +596 -589
- package/readme-international/README.es.md +613 -606
- package/readme-international/README.fr.md +611 -604
- package/src/bmad-plus/agents/agent-shadow/SKILL.md +18 -0
- package/src/bmad-plus/data/role-triggers.yaml +52 -0
- package/src/bmad-plus/module.yaml +283 -283
- package/src/bmad-plus/packs/pack-animated/animated-website-agent.md +325 -325
- package/src/bmad-plus/packs/pack-animated/templates/animated-website-workflow.md +55 -55
- package/src/bmad-plus/packs/pack-backup/backup-agent.md +71 -71
- package/src/bmad-plus/packs/pack-backup/templates/backup-workflow.md +51 -51
- package/src/bmad-plus/packs/pack-dev-studio/README.md +162 -162
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +73 -73
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/document-project.md +61 -61
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/domain-research.md +95 -95
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/market-research.md +95 -95
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/prfaq.md +134 -134
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/product-brief.md +80 -80
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/tech-writer-agent.md +73 -73
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/technical-research.md +95 -95
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +73 -73
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-architecture.md +73 -73
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-epics-stories.md +92 -92
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/generate-project-context.md +80 -80
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/implementation-readiness.md +90 -90
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01-init.md +153 -153
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01b-continue.md +173 -173
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-02-context.md +224 -224
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-03-starter.md +329 -329
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-04-decisions.md +318 -318
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-05-patterns.md +359 -359
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-06-structure.md +379 -379
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-07-validation.md +361 -361
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-08-complete.md +81 -81
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/checkpoint-preview.md +67 -67
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-01-gather-context.md +85 -85
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-02-review.md +35 -35
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-03-triage.md +49 -49
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-04-present.md +131 -131
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review.md +89 -89
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/correct-course.md +300 -300
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/create-story.md +428 -428
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-agent.md +73 -73
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story-checklist.md +80 -80
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story.md +484 -484
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/investigate.md +193 -193
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/qa-e2e-tests.md +175 -175
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/quick-dev.md +110 -110
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/retrospective.md +1511 -1511
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-planning.md +298 -298
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-status.md +296 -296
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-prd.md +29 -29
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-ux-design.md +74 -74
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/edit-prd.md +29 -29
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +73 -73
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/prd.md +89 -89
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/ux-designer-agent.md +73 -73
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/validate-prd.md +29 -29
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/advanced-elicitation.md +141 -141
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/adversarial-review.md +37 -37
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/bmad-help.md +75 -75
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/brainstorming.md +6 -6
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/customize.md +110 -110
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/distillator.md +176 -176
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/edge-case-hunter.md +67 -67
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-prose.md +86 -86
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md +179 -179
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/index-docs.md +66 -66
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/party-mode.md +127 -127
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/shard-doc.md +105 -105
- package/src/bmad-plus/packs/pack-dev-studio/dev-studio-orchestrator.md +120 -120
- package/src/bmad-plus/packs/pack-dev-studio/shared/architecture-decision-template.md +12 -12
- package/src/bmad-plus/packs/pack-dev-studio/shared/bwml-spec.md +328 -328
- package/src/bmad-plus/packs/pack-dev-studio/shared/module-help.csv +32 -32
- package/src/bmad-plus/packs/pack-dev-studio/upstream-sync.yaml +81 -81
- package/src/bmad-plus/packs/pack-memory/shared/memory-protocol.md +14 -0
- package/src/bmad-plus/packs/pack-seo/SKILL.md +171 -171
- package/src/bmad-plus/packs/pack-seo/checklist.md +140 -140
- package/src/bmad-plus/packs/pack-seo/pagespeed-playbook.md +320 -320
- package/src/bmad-plus/packs/pack-seo/ref/audit-schema.json +187 -187
- package/src/bmad-plus/packs/pack-seo/ref/cwv-thresholds.md +87 -87
- package/src/bmad-plus/packs/pack-seo/ref/eeat-criteria.md +123 -123
- package/src/bmad-plus/packs/pack-seo/ref/geo-signals.md +167 -167
- package/src/bmad-plus/packs/pack-seo/ref/hreflang-rules.md +153 -153
- package/src/bmad-plus/packs/pack-seo/ref/quality-gates.md +133 -133
- package/src/bmad-plus/packs/pack-seo/ref/schema-catalog.md +91 -91
- package/src/bmad-plus/packs/pack-seo/ref/schema-templates.json +356 -356
- package/src/bmad-plus/packs/pack-seo/requirements.txt +17 -0
- package/src/bmad-plus/packs/pack-seo/scripts/seo_apis.py +456 -0
- package/src/bmad-plus/packs/pack-seo/scripts/seo_crawl.py +359 -0
- package/src/bmad-plus/packs/pack-seo/scripts/seo_fetch.py +304 -0
- package/src/bmad-plus/packs/pack-seo/scripts/seo_parse.py +255 -0
- package/src/bmad-plus/packs/pack-seo/scripts/seo_report.py +410 -0
- package/src/bmad-plus/packs/pack-seo/scripts/seo_screenshot.py +202 -0
- package/src/bmad-plus/packs/pack-seo/seo-chief.md +294 -294
- package/src/bmad-plus/packs/pack-seo/seo-judge.md +241 -241
- package/src/bmad-plus/packs/pack-seo/seo-scout.md +171 -171
- package/src/bmad-plus/packs/pack-seo/templates/seo-audit-workflow.md +241 -241
- package/src/bmad-plus/packs/pack-shield/README.md +6 -6
- package/src/bmad-plus/packs/pack-shield/SKILL.md +2 -2
- package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/csrd-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/section508-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/wcag-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/ai-governance/eu-ai-act-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/ai-governance/iso42001-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/ai-governance/nist-ai-rmf-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/cis-controls-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/ism-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/iso27001-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nis2-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-800-53-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-csf-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/defense-export/cmmc-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/defense-export/ear-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/defense-export/itar-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/defense-export/tsa-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/dora-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/fedramp-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/hipaa-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/pci-dss-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/soc2-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/swift-csp-agent.md +11 -11
- package/src/bmad-plus/packs/pack-shield/shield-orchestrator.md +1 -1
- package/tools/build/check-counts.js +628 -0
- package/tools/build/generated-adapters/.codex/AGENTS.md +1 -1
- package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +1 -1
- package/tools/build/generated-adapters/.opencode/AGENTS.md +1 -1
- package/tools/build/generated-adapters/AGENTS.md +1 -1
- package/tools/build/generated-adapters/CLAUDE.md +1 -1
- package/tools/build/generated-adapters/CONVENTIONS.md +1 -1
- package/tools/build/generated-adapters/GEMINI.md +1 -1
- package/tools/cli/commands/autoconfig.js +470 -472
- package/tools/cli/commands/doctor.js +233 -233
- package/tools/cli/commands/install.js +598 -495
- package/tools/cli/commands/memory-journal-cmd.js +311 -311
- package/tools/cli/commands/memory.js +195 -195
- package/tools/cli/commands/scan.js +348 -364
- package/tools/cli/commands/uninstall.js +101 -101
- package/tools/cli/commands/update.js +134 -134
- package/tools/cli/i18n.js +845 -845
- package/tools/cli/lib/README-memory-journal.md +125 -125
- package/tools/cli/lib/ide-config.js +267 -259
- package/tools/cli/lib/memory-init.js +204 -113
- package/tools/cli/lib/packs.js +209 -209
- package/tools/cli/lib/path-hash.js +39 -0
- package/tools/cli/lib/python-provision.js +508 -508
- package/tools/cli/lib/stack-detect.js +102 -102
- 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
|
-
//
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
'- **
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'- **
|
|
45
|
-
'- **
|
|
46
|
-
'- **
|
|
47
|
-
'- **
|
|
48
|
-
'- **
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (packs.includes('
|
|
76
|
-
agents.push('- **
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if (packs.includes('
|
|
80
|
-
agents.push(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
agents.push('- **
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
agents.push('- **
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
'',
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'',
|
|
117
|
-
'###
|
|
118
|
-
'-
|
|
119
|
-
'-
|
|
120
|
-
'',
|
|
121
|
-
'###
|
|
122
|
-
'-
|
|
123
|
-
'-
|
|
124
|
-
'',
|
|
125
|
-
'###
|
|
126
|
-
'-
|
|
127
|
-
'- `.agents/memory/lessons.md
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
##
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
##
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
-
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
###
|
|
217
|
-
-
|
|
218
|
-
-
|
|
219
|
-
|
|
220
|
-
###
|
|
221
|
-
-
|
|
222
|
-
-
|
|
223
|
-
|
|
224
|
-
###
|
|
225
|
-
-
|
|
226
|
-
- \`.agents/memory/lessons.md
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Generate
|
|
246
|
-
* @param {string} userName
|
|
247
|
-
* @param {string} language
|
|
248
|
-
* @returns {string}
|
|
249
|
-
*/
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Generate
|
|
254
|
-
* @param {string} userName
|
|
255
|
-
* @param {string} language
|
|
256
|
-
* @returns {string}
|
|
257
|
-
*/
|
|
258
|
-
|
|
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+ agents — always 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 Writer — Documentation, 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
|
+
'### G1 — Think Before Coding',
|
|
118
|
+
'- State assumptions explicitly. If uncertain, ask.',
|
|
119
|
+
'- Check `.agents/memory/decisions.md` for prior decisions before re-deciding.',
|
|
120
|
+
'',
|
|
121
|
+
'### G2 — Simplicity 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
|
+
'### G4 — Goal-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
|
+
### G1 — Think Before Coding
|
|
217
|
+
- State assumptions explicitly. If uncertain, ask.
|
|
218
|
+
- Check \`.agents/memory/decisions.md\` for prior decisions before re-deciding.
|
|
219
|
+
|
|
220
|
+
### G2 — Simplicity 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
|
+
### G4 — Goal-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
|
+
};
|