brainforge-ai 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +344 -863
- package/dist/commands/defensePack.js +194 -194
- package/dist/commands/difficulty.js +116 -116
- package/dist/commands/help.d.ts.map +1 -1
- package/dist/commands/help.js +0 -1
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/study.js +119 -119
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +18 -2
- package/dist/commands/update.js.map +1 -1
- package/dist/core/dashboardTemplate.js +748 -748
- package/dist/core/templates.d.ts.map +1 -1
- package/dist/core/templates.js +208 -84
- package/dist/core/templates.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,863 +1,344 @@
|
|
|
1
|
-
# ⚡ BrainForge
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/brainforge-ai)
|
|
6
|
-
[](./LICENSE)
|
|
7
|
-
[](https://nodejs.org)
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx brainforge-ai init
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
##
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
```bash
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
|
|
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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
| `ag-database-design` | Schema design, normalization, ER modeling |
|
|
346
|
-
| `postgres-best-practices` | PostgreSQL, indexes, RLS, query optimization |
|
|
347
|
-
|
|
348
|
-
#### Security & Auth
|
|
349
|
-
| Skill | What it enforces |
|
|
350
|
-
|-------|-----------------|
|
|
351
|
-
| `security-review` | Auth, access control, input validation |
|
|
352
|
-
| `authentication-oauth` | JWT, OAuth2, session flows |
|
|
353
|
-
| `better-auth` | Better Auth setup, OAuth providers, 2FA |
|
|
354
|
-
| `ag-vulnerability-scanner` | OWASP Top 10, CVE scanning, threat modeling |
|
|
355
|
-
| `ag-red-team-tactics` | Threat modeling, adversarial testing |
|
|
356
|
-
|
|
357
|
-
#### Testing
|
|
358
|
-
| Skill | What it enforces |
|
|
359
|
-
|-------|-----------------|
|
|
360
|
-
| `test-driven-development` | TDD cycles, test structure, coverage |
|
|
361
|
-
| `ag-tdd-workflow` | Red-green-refactor discipline |
|
|
362
|
-
| `ag-testing-patterns` | Mocks, fixtures, factories, coverage |
|
|
363
|
-
| `webapp-testing` | Browser/UI testing, Playwright |
|
|
364
|
-
| `api-testing` | Integration tests, Supertest patterns |
|
|
365
|
-
| `property-based-testing` | Fuzz testing, generative test cases |
|
|
366
|
-
|
|
367
|
-
#### DevOps & Deployment
|
|
368
|
-
| Skill | What it enforces |
|
|
369
|
-
|-------|-----------------|
|
|
370
|
-
| `docker-devops` | Docker, compose, multi-stage builds |
|
|
371
|
-
| `terraform-infrastructure` | IaC, Terraform, cloud provisioning |
|
|
372
|
-
| `ag-deployment-procedures` | Deployment runbooks, rollback plans |
|
|
373
|
-
| `ag-server-management` | nginx, systemd, server hardening |
|
|
374
|
-
| `vercel-deployment` | Vercel deployment, edge middleware |
|
|
375
|
-
| `netlify-deployment` | Netlify functions, forms, deployment |
|
|
376
|
-
| `cloudflare-workers` | Cloudflare Workers, KV, Wrangler |
|
|
377
|
-
| `github-workflow` | GitHub PRs, code review, CI/CD |
|
|
378
|
-
|
|
379
|
-
#### Cloud Services & SaaS
|
|
380
|
-
| Skill | What it enforces |
|
|
381
|
-
|-------|-----------------|
|
|
382
|
-
| `supabase` | Supabase auth, DB, storage, realtime |
|
|
383
|
-
| `stripe-integration` | Stripe payments, subscriptions, webhooks |
|
|
384
|
-
| `openai-integration` | OpenAI API, embeddings, tool use |
|
|
385
|
-
| `huggingface-ml` | Hugging Face models, inference |
|
|
386
|
-
| `sentry-monitoring` | Error tracking, alerts, performance |
|
|
387
|
-
| `sanity-cms` | Sanity CMS, GROQ queries, schema |
|
|
388
|
-
| `web-scraping` | Firecrawl, Playwright extraction |
|
|
389
|
-
| `connect` | Third-party API integration patterns |
|
|
390
|
-
| `composio-connect` | 1000+ SaaS integrations via Composio |
|
|
391
|
-
|
|
392
|
-
#### Documentation & Process
|
|
393
|
-
| Skill | What it enforces |
|
|
394
|
-
|-------|-----------------|
|
|
395
|
-
| `documentation` | Inline docs, README, JSDoc |
|
|
396
|
-
| `content-writing` | Technical writing, copywriting |
|
|
397
|
-
| `ag-documentation-templates` | Spec templates, ADR format |
|
|
398
|
-
| `changelog` | Changelog format, release notes |
|
|
399
|
-
| `deep-research` | Multi-step research with citations |
|
|
400
|
-
| `prompt-engineering` | AI prompt crafting, optimization |
|
|
401
|
-
| `subagent-development` | Parallel agents, task decomposition |
|
|
402
|
-
|
|
403
|
-
#### Architecture & Planning
|
|
404
|
-
| Skill | What it enforces |
|
|
405
|
-
|-------|-----------------|
|
|
406
|
-
| `ag-architecture` | High-level architecture decisions, ADRs |
|
|
407
|
-
| `ag-app-builder` | Full app scaffolding, feature planning |
|
|
408
|
-
| `ag-plan-writing` | Technical specs, scope documents |
|
|
409
|
-
| `ag-intelligent-routing` | Agent routing, task delegation |
|
|
410
|
-
| `ag-parallel-agents` | Parallel task splitting, fan-out patterns |
|
|
411
|
-
| `ag-brainstorming` | Idea generation, creative problem solving |
|
|
412
|
-
|
|
413
|
-
#### Language & Platform Specific
|
|
414
|
-
| Skill | What it enforces |
|
|
415
|
-
|-------|-----------------|
|
|
416
|
-
| `ag-bash-linux` | Bash scripting, Linux CLI, shell automation |
|
|
417
|
-
| `ag-powershell-windows` | PowerShell scripting, Windows automation |
|
|
418
|
-
| `ag-mcp-builder` | MCP server and tool building |
|
|
419
|
-
| `ag-game-development` | Game loops, physics, entity systems |
|
|
420
|
-
| `ag-geo-fundamentals` | GIS, coordinates, spatial queries |
|
|
421
|
-
| `ag-performance-profiling` | Flame graphs, APM, bottleneck analysis |
|
|
422
|
-
| `code-review` | Code review process and quality gates |
|
|
423
|
-
| `git-workflow` | Git operations, branching, commit conventions |
|
|
424
|
-
| `ag-lint-and-validate` | Linting pipelines, formatting enforcement |
|
|
425
|
-
| `ag-code-review-checklist` | PR checklists, review standards |
|
|
426
|
-
| `ag-behavioral-modes` | Agent persona and mode switching |
|
|
427
|
-
|
|
428
|
-
---
|
|
429
|
-
|
|
430
|
-
## 41 Specialized Agents
|
|
431
|
-
|
|
432
|
-
BrainForge installs **41 agent files** in `.brainforge/agents/`. Every agent has a `## Skills — Read BEFORE Starting` section that specifies exactly which skill files to load before starting work.
|
|
433
|
-
|
|
434
|
-
### Core Workflow Agents
|
|
435
|
-
|
|
436
|
-
| Agent | Role |
|
|
437
|
-
|-------|------|
|
|
438
|
-
| `architect` | System design, folder structure, architecture decisions |
|
|
439
|
-
| `researcher` | Pre-implementation technical research |
|
|
440
|
-
| `planner` | Phase planning and task breakdown |
|
|
441
|
-
| `coder` | Implementation — reads 40+ skills based on task type |
|
|
442
|
-
| `reviewer` | Code review — bugs, security, level-appropriateness |
|
|
443
|
-
| `teacher` | Explain code, prepare for presentations/defenses |
|
|
444
|
-
| `git-agent` | Local commits and checkpoints (never pushes) |
|
|
445
|
-
| `dashboard-agent` | Keep the live dashboard up to date |
|
|
446
|
-
|
|
447
|
-
### Advanced Agents (brainforge-*)
|
|
448
|
-
|
|
449
|
-
These agents handle complex workflows: atomic code fixes, adversarial reviews, AI framework selection, UI auditing, security verification, and more.
|
|
450
|
-
|
|
451
|
-
| Agent | Role |
|
|
452
|
-
|-------|------|
|
|
453
|
-
| `brainforge-advisor-researcher` | Research gray-area decisions — returns comparison tables |
|
|
454
|
-
| `brainforge-ai-researcher` | AI/LLM framework implementation guidance |
|
|
455
|
-
| `brainforge-assumptions-analyzer` | Extract codebase assumptions with evidence |
|
|
456
|
-
| `brainforge-code-fixer` | Atomic fix application with rollback and verification |
|
|
457
|
-
| `brainforge-code-reviewer` | Adversarial review → structured REVIEW.md |
|
|
458
|
-
| `brainforge-codebase-mapper` | Analyze codebase: tech, arch, quality, concerns |
|
|
459
|
-
| `brainforge-debug-session-manager` | Multi-cycle debug session orchestration |
|
|
460
|
-
| `brainforge-debugger` | Scientific root cause investigation |
|
|
461
|
-
| `brainforge-doc-classifier` | Classify planning docs: ADR/PRD/SPEC/DOC/UNKNOWN |
|
|
462
|
-
| `brainforge-doc-synthesizer` | Merge classified docs, surface conflicts |
|
|
463
|
-
| `brainforge-doc-verifier` | Verify doc claims against live codebase |
|
|
464
|
-
| `brainforge-doc-writer` | Codebase-verified documentation writing |
|
|
465
|
-
| `brainforge-domain-researcher` | AI system domain and eval criteria research |
|
|
466
|
-
| `brainforge-eval-auditor` | Retroactive AI evaluation coverage audit |
|
|
467
|
-
| `brainforge-eval-planner` | AI evaluation strategy design |
|
|
468
|
-
| `brainforge-executor` | Atomic PLAN.md execution with TDD support |
|
|
469
|
-
| `brainforge-framework-selector` | AI/LLM framework selection interview |
|
|
470
|
-
| `brainforge-integration-checker` | Verify cross-phase wiring end-to-end |
|
|
471
|
-
| `brainforge-intel-updater` | Generate structured codebase intel files |
|
|
472
|
-
| `brainforge-nyquist-auditor` | Adversarial test gap closure |
|
|
473
|
-
| `brainforge-pattern-mapper` | Map new files to existing code analogs |
|
|
474
|
-
| `brainforge-phase-researcher` | Pre-planning domain investigation |
|
|
475
|
-
| `brainforge-plan-checker` | 12-dimension plan verification |
|
|
476
|
-
| `brainforge-planner` | Goal-backward phase plan creation |
|
|
477
|
-
| `brainforge-project-researcher` | Ecosystem research before roadmap |
|
|
478
|
-
| `brainforge-research-synthesizer` | Synthesize parallel researcher outputs |
|
|
479
|
-
| `brainforge-roadmapper` | Requirements → phase roadmap |
|
|
480
|
-
| `brainforge-security-auditor` | Threat model mitigation verification |
|
|
481
|
-
| `brainforge-ui-auditor` | 6-pillar frontend implementation audit |
|
|
482
|
-
| `brainforge-ui-checker` | UI-SPEC.md quality gate |
|
|
483
|
-
| `brainforge-ui-researcher` | UI design contract creation |
|
|
484
|
-
| `brainforge-user-profiler` | Analyze developer behavior across 8 dimensions |
|
|
485
|
-
| `brainforge-verifier` | Goal-backward phase completion verification |
|
|
486
|
-
|
|
487
|
-
---
|
|
488
|
-
|
|
489
|
-
## Slash Commands
|
|
490
|
-
|
|
491
|
-
These are prompt files in `.brainforge/commands/` — paste the command name into your AI tool.
|
|
492
|
-
|
|
493
|
-
### Project Setup
|
|
494
|
-
|
|
495
|
-
| Command | What it does |
|
|
496
|
-
|---------|-------------|
|
|
497
|
-
| `/start-project` | Document your idea and gather all project info |
|
|
498
|
-
| `/create-roadmap` | Break project into phases (Epic › Feature › Task) |
|
|
499
|
-
|
|
500
|
-
### Phase Workflow
|
|
501
|
-
|
|
502
|
-
| Command | What it does |
|
|
503
|
-
|---------|-------------|
|
|
504
|
-
| `/initiate-phase N` | Research + plan phase N before any coding |
|
|
505
|
-
| `/execute-phase N` | Code phase N following the plan exactly |
|
|
506
|
-
| `/review-phase N` | Quality review — bugs, level check, academic check |
|
|
507
|
-
| `/checkpoint` | Local git commit (never pushes automatically) |
|
|
508
|
-
|
|
509
|
-
### Code Quality
|
|
510
|
-
|
|
511
|
-
| Command | What it does |
|
|
512
|
-
|---------|-------------|
|
|
513
|
-
| `/write-tests` | Generate tests for a file, function, or phase |
|
|
514
|
-
| `/humanize-code` | Adapt code to match your real coding level |
|
|
515
|
-
| `/debug-issue` | Systematic bug analysis and fix |
|
|
516
|
-
|
|
517
|
-
### Student Tools
|
|
518
|
-
|
|
519
|
-
| Command | What it does |
|
|
520
|
-
|---------|-------------|
|
|
521
|
-
| `/explain-my-code` | Generate an explanation for your professor or team |
|
|
522
|
-
| `/professor-check` | Detect code that looks suspiciously AI-generated |
|
|
523
|
-
| `/generate-report` | Generate an academic report template |
|
|
524
|
-
|
|
525
|
-
### Documentation & UI
|
|
526
|
-
|
|
527
|
-
| Command | What it does |
|
|
528
|
-
|---------|-------------|
|
|
529
|
-
| `/design-system` | Create a UI/UX design system guide |
|
|
530
|
-
| `/generate-docs` | Generate README and docs/ folder |
|
|
531
|
-
| `/update-dashboard` | Refresh the HTML dashboard data |
|
|
532
|
-
|
|
533
|
-
---
|
|
534
|
-
|
|
535
|
-
## The Live Dashboard
|
|
536
|
-
|
|
537
|
-
Run `brainforge serve` to open a live dashboard at `localhost:3000`.
|
|
538
|
-
|
|
539
|
-
It **auto-reloads** every time a file in `.brainforge/` changes — no manual refresh needed.
|
|
540
|
-
|
|
541
|
-
```bash
|
|
542
|
-
brainforge serve # localhost:3000
|
|
543
|
-
brainforge serve --port 4000 # custom port
|
|
544
|
-
```
|
|
545
|
-
|
|
546
|
-
It shows:
|
|
547
|
-
- Project name, description, stack, and level
|
|
548
|
-
- Phase progress bar
|
|
549
|
-
- Status of each phase (pending / in-progress / done)
|
|
550
|
-
- Recent git commits
|
|
551
|
-
- Known bugs
|
|
552
|
-
- Last architecture decisions
|
|
553
|
-
- Git status
|
|
554
|
-
- A green dot in the corner when live reload is active
|
|
555
|
-
|
|
556
|
-
---
|
|
557
|
-
|
|
558
|
-
## Code Level Engine
|
|
559
|
-
|
|
560
|
-
BrainForge adapts all generated and reviewed code to your target level:
|
|
561
|
-
|
|
562
|
-
| Level | Who it's for | What it produces |
|
|
563
|
-
|-------|-------------|-----------------|
|
|
564
|
-
| `beginner` | First year students | Simple functions, direct logic, FR comments |
|
|
565
|
-
| `intermediate` | 1-3 years experience | Clean structure, reusable components |
|
|
566
|
-
| `academic-realistic` | School / PFA projects | Credible student code — clean but explainable |
|
|
567
|
-
| `professional` | Production projects | Typed, tested, secure, scalable |
|
|
568
|
-
|
|
569
|
-
### The `academic-realistic` level
|
|
570
|
-
|
|
571
|
-
The most important level for students. It produces code that:
|
|
572
|
-
|
|
573
|
-
- ✅ Is clean enough to get a good grade
|
|
574
|
-
- ✅ Is simple enough to explain line by line in an oral defense
|
|
575
|
-
- ✅ Has no enterprise patterns that would raise suspicion
|
|
576
|
-
- ✅ Looks like it was written by a good student, not a senior engineer
|
|
577
|
-
- ✅ Has natural comments — not AI-generated-sounding ones
|
|
578
|
-
|
|
579
|
-
---
|
|
580
|
-
|
|
581
|
-
## `/write-tests` — Test Generator
|
|
582
|
-
|
|
583
|
-
The `/write-tests` command generates tests adapted to your project:
|
|
584
|
-
|
|
585
|
-
- **Detects the right framework** automatically (Jest, Vitest, pytest, PHPUnit…)
|
|
586
|
-
- **Adapts test complexity** to your code level
|
|
587
|
-
- **Beginner:** 2-3 tests per function, happy path only, no mocks
|
|
588
|
-
- **Academic-realistic:** happy path + edge cases, mocks for external services, readable names
|
|
589
|
-
- **Professional:** full coverage, integration tests, all error paths
|
|
590
|
-
|
|
591
|
-
```
|
|
592
|
-
/write-tests src/auth/login.ts
|
|
593
|
-
/write-tests the login feature
|
|
594
|
-
/write-tests phase 2
|
|
595
|
-
```
|
|
596
|
-
|
|
597
|
-
---
|
|
598
|
-
|
|
599
|
-
## Project Structure
|
|
600
|
-
|
|
601
|
-
After `brainforge init`, your project contains:
|
|
602
|
-
|
|
603
|
-
```
|
|
604
|
-
.brainforge/
|
|
605
|
-
config.json ← project config (level, stack, phases…)
|
|
606
|
-
project.md ← project definition
|
|
607
|
-
questions.md ← answered questions from init
|
|
608
|
-
decisions.md ← architecture decision log
|
|
609
|
-
roadmap.md ← full roadmap
|
|
610
|
-
memory/
|
|
611
|
-
architecture.md ← technical notes (updated each phase)
|
|
612
|
-
coding-style.md ← code level rules
|
|
613
|
-
known-bugs.md ← bug tracker
|
|
614
|
-
glossary.md ← project vocabulary
|
|
615
|
-
design-system.md ← UI/UX guide
|
|
616
|
-
project-context.md ← long-term context the AI should not forget
|
|
617
|
-
constraints.md ← technical, code level, and academic constraints
|
|
618
|
-
learning-notes.md ← concepts learned, bugs fixed, things to review
|
|
619
|
-
phases/
|
|
620
|
-
phase-01.md ← plan + checklist for phase 1
|
|
621
|
-
phase-02.md
|
|
622
|
-
agents/ ← 41 specialized AI agents
|
|
623
|
-
architect.md
|
|
624
|
-
researcher.md
|
|
625
|
-
planner.md
|
|
626
|
-
coder.md
|
|
627
|
-
reviewer.md
|
|
628
|
-
teacher.md
|
|
629
|
-
git-agent.md
|
|
630
|
-
dashboard-agent.md
|
|
631
|
-
brainforge-advisor-researcher.md
|
|
632
|
-
brainforge-ai-researcher.md
|
|
633
|
-
brainforge-assumptions-analyzer.md
|
|
634
|
-
brainforge-code-fixer.md
|
|
635
|
-
brainforge-code-reviewer.md
|
|
636
|
-
brainforge-codebase-mapper.md
|
|
637
|
-
brainforge-debug-session-manager.md
|
|
638
|
-
brainforge-debugger.md
|
|
639
|
-
brainforge-doc-classifier.md
|
|
640
|
-
brainforge-doc-synthesizer.md
|
|
641
|
-
brainforge-doc-verifier.md
|
|
642
|
-
brainforge-doc-writer.md
|
|
643
|
-
brainforge-domain-researcher.md
|
|
644
|
-
brainforge-eval-auditor.md
|
|
645
|
-
brainforge-eval-planner.md
|
|
646
|
-
brainforge-executor.md
|
|
647
|
-
brainforge-framework-selector.md
|
|
648
|
-
brainforge-integration-checker.md
|
|
649
|
-
brainforge-intel-updater.md
|
|
650
|
-
brainforge-nyquist-auditor.md
|
|
651
|
-
brainforge-pattern-mapper.md
|
|
652
|
-
brainforge-phase-researcher.md
|
|
653
|
-
brainforge-plan-checker.md
|
|
654
|
-
brainforge-planner.md
|
|
655
|
-
brainforge-project-researcher.md
|
|
656
|
-
brainforge-research-synthesizer.md
|
|
657
|
-
brainforge-roadmapper.md
|
|
658
|
-
brainforge-security-auditor.md
|
|
659
|
-
brainforge-ui-auditor.md
|
|
660
|
-
brainforge-ui-checker.md
|
|
661
|
-
brainforge-ui-researcher.md
|
|
662
|
-
brainforge-user-profiler.md
|
|
663
|
-
brainforge-verifier.md
|
|
664
|
-
commands/
|
|
665
|
-
start-project.md
|
|
666
|
-
create-roadmap.md
|
|
667
|
-
initiate-phase.md
|
|
668
|
-
execute-phase.md
|
|
669
|
-
review-phase.md
|
|
670
|
-
write-tests.md
|
|
671
|
-
humanize-code.md
|
|
672
|
-
explain-my-code.md
|
|
673
|
-
professor-check.md ← generated by brainforge professor-check
|
|
674
|
-
simplify-codebase.md ← generated by brainforge simplify
|
|
675
|
-
checkpoint.md
|
|
676
|
-
debug-issue.md
|
|
677
|
-
design-system.md
|
|
678
|
-
generate-docs.md
|
|
679
|
-
generate-report.md
|
|
680
|
-
update-dashboard.md
|
|
681
|
-
reports/
|
|
682
|
-
README.md ← index of generated reports
|
|
683
|
-
professor-check.md ← filled by AI after /professor-check
|
|
684
|
-
simplify-plan.md ← filled by AI after /simplify-codebase
|
|
685
|
-
dashboard/
|
|
686
|
-
index.html ← visual dashboard
|
|
687
|
-
style.css
|
|
688
|
-
data.json
|
|
689
|
-
.claude/
|
|
690
|
-
skills/ ← 83 Claude Code skill files (auto-loaded by agents)
|
|
691
|
-
software-architecture.md
|
|
692
|
-
typescript-patterns.md
|
|
693
|
-
react-best-practices.md
|
|
694
|
-
next-best-practices.md
|
|
695
|
-
api-design.md
|
|
696
|
-
database-queries.md
|
|
697
|
-
security-review.md
|
|
698
|
-
git-workflow.md
|
|
699
|
-
test-driven-development.md
|
|
700
|
-
code-review.md
|
|
701
|
-
… (83 total)
|
|
702
|
-
AGENTS.md ← instructions for all AI agents
|
|
703
|
-
CLAUDE.md ← Claude Code config + mandatory skills table
|
|
704
|
-
GEMINI.md ← Gemini CLI config
|
|
705
|
-
OPENAI.md ← OpenAI / Codex config
|
|
706
|
-
```
|
|
707
|
-
|
|
708
|
-
---
|
|
709
|
-
|
|
710
|
-
## Screenshots
|
|
711
|
-
|
|
712
|
-
### `.brainforge/` snapshot
|
|
713
|
-

|
|
714
|
-
|
|
715
|
-
### `CLAUDE.md` snapshot
|
|
716
|
-

|
|
717
|
-
|
|
718
|
-
### `AGENTS.md` snapshot
|
|
719
|
-

|
|
720
|
-
|
|
721
|
-
### Dashboard snapshot
|
|
722
|
-

|
|
723
|
-
|
|
724
|
-
---
|
|
725
|
-
|
|
726
|
-
## Keeping Skills & Agents Up to Date
|
|
727
|
-
|
|
728
|
-
Run `brainforge update` at any time to refresh all agent files, skill files, and slash commands to the latest version — without touching your project data (project.md, phases/, memory/, decisions.md are never modified).
|
|
729
|
-
|
|
730
|
-
```bash
|
|
731
|
-
brainforge update
|
|
732
|
-
```
|
|
733
|
-
|
|
734
|
-
---
|
|
735
|
-
|
|
736
|
-
## Multi-AI Compatibility
|
|
737
|
-
|
|
738
|
-
BrainForge generates config files for every major AI tool:
|
|
739
|
-
|
|
740
|
-
| File | Tool |
|
|
741
|
-
|------|------|
|
|
742
|
-
| `CLAUDE.md` | Claude Code (with full 83-skill mandatory table) |
|
|
743
|
-
| `GEMINI.md` | Gemini CLI |
|
|
744
|
-
| `OPENAI.md` | Codex / ChatGPT |
|
|
745
|
-
| `AGENTS.md` | All tools (universal) |
|
|
746
|
-
|
|
747
|
-
Each file tells the AI: what the project is, what code level to use, how to follow the workflow, what files to update, and git rules (never push).
|
|
748
|
-
|
|
749
|
-
---
|
|
750
|
-
|
|
751
|
-
## Git Rules
|
|
752
|
-
|
|
753
|
-
| Action | Status |
|
|
754
|
-
|--------|--------|
|
|
755
|
-
| `git init` | ✅ Auto on first init |
|
|
756
|
-
| `git add` + `git commit` | ✅ Via `/checkpoint` |
|
|
757
|
-
| `git push` | ❌ Never automatic |
|
|
758
|
-
| `git push --force` | ❌ Never |
|
|
759
|
-
|
|
760
|
-
You always control when and where you push.
|
|
761
|
-
|
|
762
|
-
---
|
|
763
|
-
|
|
764
|
-
## Example Use Cases
|
|
765
|
-
|
|
766
|
-
### School / PFA project
|
|
767
|
-
```bash
|
|
768
|
-
npx brainforge-ai init --yes # or run init and answer questions
|
|
769
|
-
# → /start-project → /create-roadmap → phases
|
|
770
|
-
# → /write-tests before each review
|
|
771
|
-
# → brainforge simplify # clean up before submission
|
|
772
|
-
# → brainforge professor-check # check for suspicious patterns
|
|
773
|
-
# → /professor-check # paste into AI to get the full report
|
|
774
|
-
# → /generate-report # generate the written report template
|
|
775
|
-
# → brainforge status # quick sanity check before handing in
|
|
776
|
-
```
|
|
777
|
-
|
|
778
|
-
### Personal MVP
|
|
779
|
-
```bash
|
|
780
|
-
npx brainforge-ai init
|
|
781
|
-
# → choose "intermediate" or "professional"
|
|
782
|
-
# → brainforge serve ← keep the dashboard open while you build
|
|
783
|
-
```
|
|
784
|
-
|
|
785
|
-
### Learning a new stack
|
|
786
|
-
```bash
|
|
787
|
-
npx brainforge-ai init
|
|
788
|
-
# → choose "beginner" or "intermediate"
|
|
789
|
-
# → /explain-my-code after each phase to understand what was built
|
|
790
|
-
```
|
|
791
|
-
|
|
792
|
-
### AI system / LLM feature
|
|
793
|
-
```bash
|
|
794
|
-
npx brainforge-ai init
|
|
795
|
-
# → brainforge-framework-selector picks your AI framework
|
|
796
|
-
# → brainforge-ai-researcher writes implementation guidance
|
|
797
|
-
# → brainforge-eval-planner designs the evaluation strategy
|
|
798
|
-
# → brainforge-eval-auditor verifies it was actually implemented
|
|
799
|
-
```
|
|
800
|
-
|
|
801
|
-
---
|
|
802
|
-
|
|
803
|
-
## Limitations
|
|
804
|
-
|
|
805
|
-
BrainForge improves consistency and quality, but it does **not** fully control your AI assistant behavior.
|
|
806
|
-
|
|
807
|
-
- It guides Claude/Cursor/Codex/Gemini with structure, prompts, and files.
|
|
808
|
-
- The model can still ignore instructions, hallucinate, or take shortcuts.
|
|
809
|
-
- You must review code, run tests, and validate security before shipping.
|
|
810
|
-
- BrainForge is a workflow guardrail, not an autopilot guarantee.
|
|
811
|
-
|
|
812
|
-
---
|
|
813
|
-
|
|
814
|
-
## Requirements
|
|
815
|
-
|
|
816
|
-
- Node.js >= 16
|
|
817
|
-
- Git (optional but recommended)
|
|
818
|
-
- An AI tool: Claude Code, Cursor, Copilot, Gemini CLI, Codex…
|
|
819
|
-
|
|
820
|
-
---
|
|
821
|
-
|
|
822
|
-
## Development
|
|
823
|
-
|
|
824
|
-
```bash
|
|
825
|
-
git clone https://github.com/MEHDImp4/brainforge-ai
|
|
826
|
-
cd brainforge-ai
|
|
827
|
-
npm install
|
|
828
|
-
npm run build
|
|
829
|
-
npm link
|
|
830
|
-
|
|
831
|
-
# Run the test suite
|
|
832
|
-
npm test
|
|
833
|
-
|
|
834
|
-
# End-to-end install verification (init → file check → doctor → status)
|
|
835
|
-
npm run test:install
|
|
836
|
-
|
|
837
|
-
# Verify the npm package contents
|
|
838
|
-
npm run test:pack
|
|
839
|
-
|
|
840
|
-
# Manual smoke test
|
|
841
|
-
brainforge init --yes
|
|
842
|
-
brainforge status
|
|
843
|
-
brainforge simplify
|
|
844
|
-
brainforge professor-check
|
|
845
|
-
brainforge doctor
|
|
846
|
-
brainforge serve
|
|
847
|
-
```
|
|
848
|
-
|
|
849
|
-
---
|
|
850
|
-
|
|
851
|
-
## Contributing
|
|
852
|
-
|
|
853
|
-
Issues and PRs welcome on [GitHub](https://github.com/MEHDImp4/brainforge-ai).
|
|
854
|
-
|
|
855
|
-
---
|
|
856
|
-
|
|
857
|
-
## License
|
|
858
|
-
|
|
859
|
-
MIT — free to use, modify, and share.
|
|
860
|
-
|
|
861
|
-
---
|
|
862
|
-
|
|
863
|
-
*Built for students and developers who want structure, best practices, and 83 skill guides — before they start vibing.*
|
|
1
|
+
# ⚡ BrainForge
|
|
2
|
+
|
|
3
|
+
> A CLI that gives your AI a structured workflow — so it plans before it codes, adapts to your level, and remembers everything between sessions.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/brainforge-ai)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
[](https://nodejs.org)
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx brainforge-ai init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## What is BrainForge?
|
|
16
|
+
|
|
17
|
+
When you use an AI like Claude or Copilot to code, you quickly run into these problems:
|
|
18
|
+
|
|
19
|
+
- The AI codes everything at once — the result is too complex to understand
|
|
20
|
+
- It forgets context between sessions
|
|
21
|
+
- The code looks like "senior engineer" code when you're a student
|
|
22
|
+
- You couldn't explain it to your professor
|
|
23
|
+
|
|
24
|
+
**BrainForge installs a structure in your project** that forces the AI to:
|
|
25
|
+
|
|
26
|
+
1. Plan before coding
|
|
27
|
+
2. Follow clear phases (Plan → Code → Test → Review)
|
|
28
|
+
3. Adapt the code to **your actual level**
|
|
29
|
+
4. Keep persistent memory between sessions
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
Without BrainForge : AI does everything, you understand nothing
|
|
33
|
+
With BrainForge : AI follows your instructions step by step
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Works with any AI tool: **Claude Code**, **Cursor**, **GitHub Copilot**, **Gemini CLI**, **Codex**, **OpenCode**.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Dashboard Preview
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Requirements
|
|
47
|
+
|
|
48
|
+
- **Node.js** >= 16 — [download here](https://nodejs.org)
|
|
49
|
+
- **Git** — recommended for automatic checkpoints
|
|
50
|
+
- An **AI tool**: Claude Code, Cursor, Copilot, Gemini CLI, or any other
|
|
51
|
+
|
|
52
|
+
> Verify Node.js is installed: `node --version`
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Quick Start (5 minutes)
|
|
57
|
+
|
|
58
|
+
### Step 1 — Initialize BrainForge in your project
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
mkdir my-project
|
|
62
|
+
cd my-project
|
|
63
|
+
npx brainforge-ai init
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
You'll be asked a few simple questions:
|
|
67
|
+
- Project name and description
|
|
68
|
+
- Project type (web app, API, mobile app…)
|
|
69
|
+
- Your tech stack (React, Node.js, Python…)
|
|
70
|
+
- Your current coding level
|
|
71
|
+
- Whether it's a school project
|
|
72
|
+
|
|
73
|
+
BrainForge then generates the full structure and makes the first git commit automatically.
|
|
74
|
+
|
|
75
|
+
> **Want to skip the questions?** Use `--yes` to apply defaults instantly:
|
|
76
|
+
> ```bash
|
|
77
|
+
> npx brainforge-ai init --yes
|
|
78
|
+
> ```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### Step 2 — Open your AI tool in the project folder
|
|
83
|
+
|
|
84
|
+
Open **Claude Code**, **Cursor**, or your preferred tool in the folder you just created.
|
|
85
|
+
|
|
86
|
+
The AI will automatically read the `AGENTS.md` and `CLAUDE.md` files generated by BrainForge — it knows exactly what to do and how to behave.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### Step 3 — Follow the workflow with slash commands
|
|
91
|
+
|
|
92
|
+
Type these commands directly into your AI tool, in order:
|
|
93
|
+
|
|
94
|
+
| Command | What it does |
|
|
95
|
+
|---------|-------------|
|
|
96
|
+
| `/start-project` | Describe your idea — the AI asks questions and fills in the project file |
|
|
97
|
+
| `/create-roadmap` | The AI breaks your project into phases with precise tasks |
|
|
98
|
+
| `/initiate-phase 1` | The AI plans phase 1 and waits for your approval before coding |
|
|
99
|
+
| `/execute-phase 1` | The AI codes **only what was planned** — nothing more |
|
|
100
|
+
| `/write-tests` | Generates tests adapted to your level and stack |
|
|
101
|
+
| `/review-phase 1` | Checks for bugs, complexity, and AI-looking patterns |
|
|
102
|
+
| `/checkpoint` | Saves your progress with a local git commit (never pushes automatically) |
|
|
103
|
+
|
|
104
|
+
Repeat `/initiate-phase`, `/execute-phase`, `/review-phase`, `/checkpoint` for each phase.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
### Step 4 — Watch your progress on the live dashboard
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
brainforge serve
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Opens `localhost:3000` in your browser — auto-reloads as you work.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Student Tools
|
|
119
|
+
|
|
120
|
+
If you're submitting a school project, these commands are built for you:
|
|
121
|
+
|
|
122
|
+
### `brainforge simplify`
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
brainforge simplify
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Generates a prompt to **simplify your code** to match your declared level. Useful before submission so every line is explainable.
|
|
129
|
+
|
|
130
|
+
Then in your AI tool:
|
|
131
|
+
```
|
|
132
|
+
/simplify-codebase
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### `brainforge professor-check`
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
brainforge professor-check
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Generates a prompt to **detect patterns that look suspiciously AI-generated**. The goal: make sure you can defend every line in front of your professor.
|
|
142
|
+
|
|
143
|
+
Then in your AI tool:
|
|
144
|
+
```
|
|
145
|
+
/professor-check
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
The AI fills in a report with a realism score, flagged files, suspicious patterns, suggested simplifications, and likely oral defense questions with suggested answers.
|
|
149
|
+
|
|
150
|
+
> These tools don't help you cheat — they help you make sure you understand your own code.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Code Levels
|
|
155
|
+
|
|
156
|
+
BrainForge adapts all generated and reviewed code to your declared level:
|
|
157
|
+
|
|
158
|
+
| Level | Who it's for | What it produces |
|
|
159
|
+
|-------|-------------|-----------------|
|
|
160
|
+
| `beginner` | First year students | Simple functions, direct logic, readable comments |
|
|
161
|
+
| `intermediate` | 1–3 years experience | Clean structure, reusable components |
|
|
162
|
+
| `academic-realistic` | School / internship projects | Clean enough for a good grade, simple enough to explain line by line |
|
|
163
|
+
| `professional` | Production projects | Typed, tested, secure, scalable |
|
|
164
|
+
|
|
165
|
+
The **`academic-realistic`** level is the most useful for students: the code is clean enough to get a good grade, but simple enough to walk through in an oral defense without raising suspicion.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## CLI Reference
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
brainforge init # Initialize BrainForge in the current directory
|
|
173
|
+
brainforge init --yes # Non-interactive init with student defaults
|
|
174
|
+
brainforge status # Quick project summary (phases, git, features)
|
|
175
|
+
brainforge serve # Live dashboard on localhost:3000 (auto-reloads)
|
|
176
|
+
brainforge dashboard # Open the static HTML dashboard in the browser
|
|
177
|
+
brainforge update-dashboard # Refresh dashboard data from current project state
|
|
178
|
+
brainforge simplify # Generate a code simplification prompt
|
|
179
|
+
brainforge professor-check # Generate an academic authenticity review
|
|
180
|
+
brainforge study # Initialize Study Mode files for understanding the project
|
|
181
|
+
brainforge difficulty # Generate a difficulty analysis workflow
|
|
182
|
+
brainforge defense-pack # Generate a full oral defense preparation workflow
|
|
183
|
+
brainforge update # Update agents, skills, and commands to latest version
|
|
184
|
+
brainforge update --force # Update including root instruction files (CLAUDE.md etc.)
|
|
185
|
+
brainforge doctor # Health check — verify all files and setup
|
|
186
|
+
brainforge guide # Show all CLI and slash commands
|
|
187
|
+
brainforge version # Show version info
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## What BrainForge Generates
|
|
193
|
+
|
|
194
|
+
After `brainforge init`, your project contains:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
my-project/
|
|
198
|
+
.brainforge/
|
|
199
|
+
config.json ← your settings (level, stack, phases…)
|
|
200
|
+
project.md ← project definition
|
|
201
|
+
roadmap.md ← phase-by-phase work plan
|
|
202
|
+
memory/ ← persistent memory (the AI remembers between sessions)
|
|
203
|
+
architecture.md ← technical notes
|
|
204
|
+
known-bugs.md ← bug tracker
|
|
205
|
+
coding-style.md ← style rules adapted to your level
|
|
206
|
+
phases/ ← one file per phase with checklist
|
|
207
|
+
agents/ ← 41 specialized AI roles (architect, coder, reviewer…)
|
|
208
|
+
commands/ ← slash command prompt files
|
|
209
|
+
dashboard/ ← HTML dashboard
|
|
210
|
+
.claude/
|
|
211
|
+
skills/ ← 83 best-practice guides (auto-loaded by agents)
|
|
212
|
+
AGENTS.md ← instructions for all AI tools
|
|
213
|
+
CLAUDE.md ← Claude Code config + mandatory skills table
|
|
214
|
+
GEMINI.md ← Gemini CLI config
|
|
215
|
+
OPENAI.md ← Codex / ChatGPT config
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Examples
|
|
221
|
+
|
|
222
|
+
### School project / internship
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
npx brainforge-ai init
|
|
226
|
+
# Choose "academic-realistic" as your level
|
|
227
|
+
# In your AI tool:
|
|
228
|
+
# → /start-project → /create-roadmap → /initiate-phase 1 → /execute-phase 1
|
|
229
|
+
# → /write-tests → /review-phase 1 → /checkpoint
|
|
230
|
+
# Before submitting:
|
|
231
|
+
# → brainforge simplify (clean up code to your level)
|
|
232
|
+
# → brainforge professor-check (flag suspicious AI patterns)
|
|
233
|
+
# → /professor-check (get the full scored report)
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Learning a new stack
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
npx brainforge-ai init
|
|
240
|
+
# Choose "beginner" or "intermediate"
|
|
241
|
+
# → /explain-my-code after each phase to understand what was built
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Personal project or MVP
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
npx brainforge-ai init
|
|
248
|
+
# Choose "intermediate" or "professional"
|
|
249
|
+
# → brainforge serve ← keep the dashboard open while you build
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Git Rules
|
|
255
|
+
|
|
256
|
+
BrainForge uses git to save your work but **never pushes automatically**:
|
|
257
|
+
|
|
258
|
+
| Action | Behavior |
|
|
259
|
+
|--------|---------|
|
|
260
|
+
| `git init` | Automatic on first `init` |
|
|
261
|
+
| Commit (`/checkpoint`) | Local only |
|
|
262
|
+
| Push to GitHub | ❌ Never automatic — you decide |
|
|
263
|
+
| Force push | ❌ Never |
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## Troubleshooting
|
|
268
|
+
|
|
269
|
+
**BrainForge won't start?**
|
|
270
|
+
```bash
|
|
271
|
+
node --version # Must show v16 or higher
|
|
272
|
+
brainforge doctor # Verify the installation
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
**The AI isn't following commands?**
|
|
276
|
+
- Make sure you opened your AI tool in the correct folder (the one with `.brainforge/`)
|
|
277
|
+
- Run `/start-project` first if you haven't yet
|
|
278
|
+
|
|
279
|
+
**Update BrainForge:**
|
|
280
|
+
```bash
|
|
281
|
+
brainforge update
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Limitations
|
|
287
|
+
|
|
288
|
+
BrainForge guides your AI with files and prompts — but it doesn't **fully control** what the AI does.
|
|
289
|
+
|
|
290
|
+
- The AI can still ignore instructions, hallucinate, or take shortcuts
|
|
291
|
+
- You must always review the code, run tests, and validate before submitting
|
|
292
|
+
- BrainForge is a workflow guardrail, not an autopilot guarantee
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Under the Hood
|
|
297
|
+
|
|
298
|
+
<details>
|
|
299
|
+
<summary>83 best-practice skill files</summary>
|
|
300
|
+
|
|
301
|
+
Every BrainForge project gets 83 skill files installed in `.claude/skills/`. They cover: React, Next.js, TypeScript, Node.js, Python, Rust, PostgreSQL, Docker, Stripe, Supabase, testing, security, accessibility, and much more.
|
|
302
|
+
|
|
303
|
+
The AI loads them automatically based on the current task — you don't need to do anything.
|
|
304
|
+
|
|
305
|
+
</details>
|
|
306
|
+
|
|
307
|
+
<details>
|
|
308
|
+
<summary>41 specialized agents</summary>
|
|
309
|
+
|
|
310
|
+
BrainForge installs 41 agent files in `.brainforge/agents/`. Each has a specific role: architect, coder, reviewer, debugger, teacher, and more.
|
|
311
|
+
|
|
312
|
+
Advanced agents (`brainforge-*`) handle complex workflows: security audits, test coverage verification, AI framework selection, UI auditing, and more.
|
|
313
|
+
|
|
314
|
+
</details>
|
|
315
|
+
|
|
316
|
+
<details>
|
|
317
|
+
<summary>Multi-AI compatibility</summary>
|
|
318
|
+
|
|
319
|
+
BrainForge generates config files for all major AI tools:
|
|
320
|
+
|
|
321
|
+
| File | Tool |
|
|
322
|
+
|------|------|
|
|
323
|
+
| `CLAUDE.md` | Claude Code (with full 83-skill mandatory table) |
|
|
324
|
+
| `GEMINI.md` | Gemini CLI |
|
|
325
|
+
| `OPENAI.md` | Codex / ChatGPT |
|
|
326
|
+
| `AGENTS.md` | All tools (universal) |
|
|
327
|
+
|
|
328
|
+
Each file tells the AI: what the project is, what code level to target, how to follow the workflow, what files to update, and git rules.
|
|
329
|
+
|
|
330
|
+
</details>
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## Contributing
|
|
335
|
+
|
|
336
|
+
Issues and PRs welcome on [GitHub](https://github.com/MEHDImp4/brainforge-ai).
|
|
337
|
+
|
|
338
|
+
## License
|
|
339
|
+
|
|
340
|
+
MIT — free to use, modify, and share.
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
*Built for students and developers who want structure and best practices — not just vibing and hoping the AI gets it right.*
|