brainforge-ai 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +267 -143
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  > Transform any idea into a structured, AI-assisted project — with agents, slash commands, a phase roadmap, persistent memory, and a live HTML dashboard.
4
4
 
5
+ [![npm version](https://img.shields.io/npm/v/brainforge-ai.svg)](https://www.npmjs.com/package/brainforge-ai)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
7
+ [![Node.js >= 16](https://img.shields.io/badge/node-%3E%3D16-brightgreen)](https://nodejs.org)
8
+
5
9
  ```bash
6
10
  npx brainforge-ai init
7
11
  ```
@@ -10,71 +14,123 @@ npx brainforge-ai init
10
14
 
11
15
  ## What is BrainForge?
12
16
 
13
- BrainForge is a CLI that installs a complete **structured AI development system** into any project directory.
14
-
15
- It gives you:
17
+ BrainForge is a CLI that installs a **structured AI development system** into any project directory.
16
18
 
17
- - **8 specialized AI agents** (Architect, Coder, Reviewer, Researcher, Planner, Teacher, Git Agent, Dashboard Agent)
18
- - **15 slash commands** (`/start-project`, `/create-roadmap`, `/execute-phase`, `/humanize-code`, `/professor-check`…)
19
- - **Project memory** (architecture, coding style, known bugs, glossary, decisions)
20
- - **Phase-based roadmap** with validation checklists
21
- - **HTML dashboard** showing progress, commits, bugs, and decisions
22
- - **Git checkpoints** (local only — never pushes)
23
- - **Multi-AI compatibility** files (Claude Code, Codex, Gemini CLI, OpenCode, Cursor)
24
- - **Code Level Engine** (beginner / intermediate / academic-realistic / professional)
19
+ Instead of vibing and hoping the AI does the right thing, BrainForge forces a clean workflow:
25
20
 
26
- ### Who is it for?
21
+ ```
22
+ Idea → Plan → Research → Execute → Review → Commit → Repeat
23
+ ```
27
24
 
28
- - Students building school or PFA projects
29
- - Beginners doing vibe-coding
30
- - Developers using Claude Code, Codex, Gemini CLI, Cursor, or Copilot
31
- - Anyone who wants structure before they start coding
25
+ It works with any AI tool: **Claude Code**, **GitHub Copilot**, **Gemini CLI**, **Codex**, **Cursor**, **OpenCode**.
32
26
 
33
27
  ---
34
28
 
35
- ## The Workflow
36
-
37
- ```
38
- Idea / PRD
39
- → /start-project (document the project)
40
- → /create-roadmap (break into phases)
41
- → /initiate-phase (research + plan)
42
- → /execute-phase (code only what's planned)
43
- → /review-phase (quality check)
44
- → /checkpoint (local git commit)
45
- → /update-dashboard (refresh the dashboard)
46
- → repeat per phase
47
- ```
29
+ ## Why use it?
48
30
 
49
- **Rule:** The AI never codes without a plan. Always plan before executing.
31
+ | Without BrainForge | With BrainForge |
32
+ |--------------------|-----------------|
33
+ | AI codes everything at once | AI follows a phase plan |
34
+ | No memory between sessions | Persistent project memory |
35
+ | Hard to explain your code | `/explain-my-code` generates your defense speech |
36
+ | Code looks too AI-perfect | Code Level Engine adapts to your real level |
37
+ | No version history | Automatic git checkpoints |
38
+ | Lost in files | Live HTML dashboard |
50
39
 
51
40
  ---
52
41
 
53
- ## Installation & Usage
42
+ ## Installation
54
43
 
55
- ### Option 1 — Run directly with npx (no install)
44
+ ### Run directly (no install needed)
56
45
 
57
46
  ```bash
58
47
  npx brainforge-ai init
59
48
  ```
60
49
 
61
- ### Option 2 — Global install
50
+ ### Install globally
62
51
 
63
52
  ```bash
64
53
  npm install -g brainforge-ai
65
54
  brainforge init
66
55
  ```
67
56
 
68
- ### Option 3 — Local development / npm link
57
+ ---
58
+
59
+ ## Quick Start
60
+
61
+ ### 1. Initialize BrainForge in your project
69
62
 
70
63
  ```bash
71
- git clone https://github.com/yourusername/brainforge-ai
72
- cd brainforge-ai
73
- npm install
74
- npm run build
75
- npm link
76
- brainforge init
64
+ mkdir my-project
65
+ cd my-project
66
+ npx brainforge-ai init
67
+ ```
68
+
69
+ Answer the questions:
70
+ - Project name and description
71
+ - Project type (web app, API, fullstack, mobile…)
72
+ - Stack (React, Node.js, PostgreSQL…)
73
+ - Your actual coding level
74
+ - Target code level
75
+ - Whether it's a school project
76
+
77
+ BrainForge will generate the full structure and make the first git commit.
78
+
79
+ ---
80
+
81
+ ### 2. Open your AI tool and start working
82
+
83
+ Open **Claude Code**, **Cursor**, or any AI tool in the project folder.
84
+
85
+ The AI will automatically read `AGENTS.md` and know the rules.
86
+
87
+ ---
88
+
89
+ ### 3. Follow the workflow with slash commands
90
+
91
+ #### Step 1 — Document the project
92
+ ```
93
+ /start-project
94
+ ```
95
+ Describe your idea. The AI asks questions, fills in `.brainforge/project.md`.
96
+
97
+ #### Step 2 — Create the roadmap
98
+ ```
99
+ /create-roadmap
100
+ ```
101
+ Breaks the project into phases with tasks and checklists.
102
+
103
+ #### Step 3 — Prepare a phase (before coding)
104
+ ```
105
+ /initiate-phase 1
106
+ ```
107
+ Research + planning. The AI proposes an approach and waits for your confirmation.
108
+
109
+ #### Step 4 — Execute the phase
110
+ ```
111
+ /execute-phase 1
112
+ ```
113
+ The AI codes **only what was planned**. Nothing more.
114
+
115
+ #### Step 5 — Review the phase
116
+ ```
117
+ /review-phase 1
77
118
  ```
119
+ Checks for bugs, dead code, complexity, and level-appropriateness.
120
+
121
+ #### Step 6 — Save your progress
122
+ ```
123
+ /checkpoint
124
+ ```
125
+ Creates a local git commit. Never pushes.
126
+
127
+ #### Step 7 — Update the dashboard
128
+ ```
129
+ brainforge update-dashboard
130
+ brainforge dashboard
131
+ ```
132
+
133
+ Repeat steps 3–7 for each phase.
78
134
 
79
135
  ---
80
136
 
@@ -83,171 +139,239 @@ brainforge init
83
139
  | Command | Description |
84
140
  |---------|-------------|
85
141
  | `brainforge init` | Initialize BrainForge in the current directory |
86
- | `brainforge doctor` | Health check — verify all files and dependencies |
87
- | `brainforge dashboard` | Open the HTML dashboard in your browser |
88
- | `brainforge update-dashboard` | Refresh dashboard data from current project state |
142
+ | `brainforge doctor` | Health check — verify all files and setup |
143
+ | `brainforge dashboard` | Open the HTML dashboard in the browser |
144
+ | `brainforge update-dashboard` | Refresh dashboard data from project state |
89
145
  | `brainforge version` | Show version info |
90
146
 
91
147
  ---
92
148
 
93
- ## Generated Structure
149
+ ## Slash Commands
94
150
 
95
- After `brainforge init`, your project will contain:
151
+ These are prompt files in `.brainforge/commands/` paste the command name into your AI tool.
152
+
153
+ | Command | What it does |
154
+ |---------|-------------|
155
+ | `/start-project` | Document your idea, gather all project info |
156
+ | `/create-roadmap` | Break project into phases (Epic > Feature > Task) |
157
+ | `/initiate-phase N` | Research + plan phase N before any coding |
158
+ | `/execute-phase N` | Code phase N following the plan exactly |
159
+ | `/review-phase N` | Quality review — bugs, level check, academic check |
160
+ | `/humanize-code` | Adapt code to match your real coding level |
161
+ | `/explain-my-code` | Generate an explanation for a professor or team |
162
+ | `/professor-check` | Detect code that looks suspiciously AI-generated |
163
+ | `/checkpoint` | Local git commit (never pushes automatically) |
164
+ | `/debug-issue` | Systematic bug analysis and fix |
165
+ | `/design-system` | Create a UI/UX design system guide |
166
+ | `/generate-docs` | Generate README and docs/ folder |
167
+ | `/generate-report` | Generate an academic report template |
168
+ | `/update-dashboard` | Refresh the HTML dashboard |
169
+
170
+ ---
171
+
172
+ ## Code Level Engine
173
+
174
+ BrainForge adapts all generated code to your target level:
175
+
176
+ | Level | Who it's for | What it produces |
177
+ |-------|-------------|-----------------|
178
+ | `beginner` | First year students | Simple functions, direct logic, FR comments |
179
+ | `intermediate` | 1-3 years experience | Clean structure, reusable components |
180
+ | `academic-realistic` | School / PFA projects | Credible student code — clean but explainable |
181
+ | `professional` | Production projects | Typed, tested, secure, scalable |
182
+
183
+ ### The `academic-realistic` level
184
+
185
+ This is the most important level for students. It produces code that:
186
+
187
+ - ✅ Is clean enough to get a good grade
188
+ - ✅ Is simple enough to explain in an oral defense
189
+ - ✅ Has no enterprise patterns that would raise suspicion
190
+ - ✅ Looks like it was written by a good student, not a senior engineer
191
+ - ✅ Has natural comments — not AI-generated-sounding ones
192
+
193
+ ---
194
+
195
+ ## Project Structure
196
+
197
+ After `brainforge init`, your project contains:
96
198
 
97
199
  ```
98
200
  .brainforge/
99
- config.json ← project configuration
201
+ config.json ← project config (level, stack, phases…)
100
202
  project.md ← project definition
101
- questions.md ← Q&A from init
102
- decisions.md ← architecture decisions log
103
- roadmap.md ← full phase roadmap
203
+ questions.md ← answered questions from init
204
+ decisions.md ← architecture decision log
205
+ roadmap.md ← full roadmap
104
206
  memory/
105
- architecture.md ← technical architecture notes
207
+ architecture.md ← technical notes (updated each phase)
106
208
  coding-style.md ← code level rules
107
209
  known-bugs.md ← bug tracker
108
210
  glossary.md ← project vocabulary
109
- design-system.md ← UI/UX guidelines
211
+ design-system.md ← UI/UX guide
110
212
  phases/
111
- phase-01.md ← phase plan + checklist
213
+ phase-01.md ← plan + checklist for phase 1
112
214
  phase-02.md
113
215
  agents/
114
- architect.md ← Architect agent instructions
115
- researcher.md
116
- planner.md
117
- coder.md
118
- reviewer.md
119
- teacher.md
120
- git-agent.md
121
- dashboard-agent.md
216
+ architect.md ← Architect agent
217
+ researcher.md ← Researcher agent
218
+ planner.md ← Planner agent
219
+ coder.md ← Coder agent
220
+ reviewer.md ← Reviewer agent
221
+ teacher.md ← Teacher agent (for students)
222
+ git-agent.md ← Git Agent
223
+ dashboard-agent.md ← Dashboard Agent
122
224
  commands/
123
- start-project.md ← /start-project slash command
124
- create-roadmap.md
125
- initiate-phase.md
126
- execute-phase.md
127
- review-phase.md
128
- humanize-code.md
129
- explain-my-code.md
130
- professor-check.md
131
- checkpoint.md
132
- debug-issue.md
133
- design-system.md
134
- generate-docs.md
135
- generate-report.md
136
- update-dashboard.md
225
+ start-project.md ← /start-project
226
+ create-roadmap.md ← /create-roadmap
227
+ initiate-phase.md ← /initiate-phase
228
+ execute-phase.md ← /execute-phase
229
+ review-phase.md ← /review-phase
230
+ humanize-code.md ← /humanize-code
231
+ explain-my-code.md ← /explain-my-code
232
+ professor-check.md ← /professor-check
233
+ checkpoint.md ← /checkpoint
234
+ debug-issue.md ← /debug-issue
235
+ design-system.md ← /design-system
236
+ generate-docs.md ← /generate-docs
237
+ generate-report.md ← /generate-report
238
+ update-dashboard.md ← /update-dashboard
137
239
  dashboard/
138
- index.html ← visual dashboard
240
+ index.html ← visual dashboard (open in browser)
139
241
  style.css
140
242
  data.json
141
243
  AGENTS.md ← instructions for all AI agents
142
- CLAUDE.md ← Claude Code specific instructions
143
- GEMINI.md ← Gemini CLI specific instructions
144
- OPENAI.md ← OpenAI / Codex specific instructions
244
+ CLAUDE.md ← Claude Code specific config
245
+ GEMINI.md ← Gemini CLI specific config
246
+ OPENAI.md ← OpenAI / Codex specific config
145
247
  ```
146
248
 
147
249
  ---
148
250
 
149
- ## Code Level Engine
251
+ ## The Dashboard
150
252
 
151
- BrainForge adapts the generated and reviewed code to your target level:
253
+ The dashboard is a static HTML file at `.brainforge/dashboard/index.html`.
152
254
 
153
- | Level | Description |
154
- |-------|-------------|
155
- | `beginner` | Simple, direct, few files, comments in French |
156
- | `intermediate` | Clean structure, reusable, good practices |
157
- | `academic-realistic` | Credible student code — clean but not enterprise-perfect, easy to explain |
158
- | `professional` | Strict typing, tests, security, scalable architecture |
255
+ It shows:
256
+ - Project name, description, stack, and level
257
+ - Phase progress bar
258
+ - Status of each phase (pending / in-progress / done)
259
+ - Recent git commits
260
+ - Known bugs
261
+ - Last decisions
262
+ - Git status
159
263
 
160
- The `academic-realistic` level is especially useful for school projects — it produces code that's professional enough to pass but natural enough to explain in an oral defense.
264
+ To open it:
265
+
266
+ ```bash
267
+ brainforge dashboard
268
+ ```
269
+
270
+ To refresh its data:
271
+
272
+ ```bash
273
+ brainforge update-dashboard
274
+ ```
161
275
 
162
276
  ---
163
277
 
164
- ## Slash Commands Reference
278
+ ## Multi-AI Compatibility
165
279
 
166
- | Command | Purpose |
167
- |---------|---------|
168
- | `/start-project` | Document your idea, gather project info |
169
- | `/create-roadmap` | Break project into phases (Epic > Feature > Task) |
170
- | `/initiate-phase N` | Research + plan phase N before coding |
171
- | `/execute-phase N` | Implement phase N following the plan |
172
- | `/review-phase N` | Code review for quality and level-appropriateness |
173
- | `/humanize-code` | Adapt code to match the user's real level |
174
- | `/explain-my-code` | Generate an explanation for professors or teams |
175
- | `/professor-check` | Detect code that looks "too AI-generated" |
176
- | `/checkpoint` | Local git commit (never pushes) |
177
- | `/debug-issue` | Systematic bug analysis and fix |
178
- | `/design-system` | Create UI/UX design system |
179
- | `/generate-docs` | Generate README and docs/ |
180
- | `/generate-report` | Generate academic report template |
181
- | `/update-dashboard` | Refresh the HTML dashboard |
280
+ BrainForge generates configuration files for every major AI tool:
281
+
282
+ | File | Tool |
283
+ |------|------|
284
+ | `CLAUDE.md` | Claude Code |
285
+ | `GEMINI.md` | Gemini CLI |
286
+ | `OPENAI.md` | Codex / ChatGPT |
287
+ | `AGENTS.md` | All tools (universal) |
288
+
289
+ Each file tells the AI:
290
+ - What the project is
291
+ - What code level to use
292
+ - How to follow the workflow
293
+ - What files to read and update
294
+ - Git rules (never push)
182
295
 
183
296
  ---
184
297
 
185
- ## Stack
298
+ ## Git Rules
299
+
300
+ BrainForge manages git for you — safely:
186
301
 
187
- Built with:
302
+ | Action | Allowed |
303
+ |--------|---------|
304
+ | `git init` | ✅ Auto on first init |
305
+ | `git add` + `git commit` | ✅ Via `/checkpoint` |
306
+ | `git push` | ❌ Never automatic |
307
+ | `git push --force` | ❌ Never |
188
308
 
189
- - **Node.js** + **TypeScript**
190
- - **Commander.js** — CLI framework
191
- - **Inquirer** — interactive prompts
192
- - **Chalk** — terminal colors
193
- - **Ora** — spinners
194
- - **simple-git** — Git operations
195
- - **fs-extra** — file system utilities
309
+ You always control when and where you push.
196
310
 
197
311
  ---
198
312
 
199
- ## Development
313
+ ## Example Use Cases
200
314
 
315
+ ### School / PFA project
201
316
  ```bash
202
- # Install dependencies
203
- npm install
317
+ npx brainforge-ai init
318
+ # → choose "academic-realistic" code level
319
+ # → choose "yes" for academic project
320
+ # → follow workflow with /start-project → /create-roadmap → phases
321
+ # → use /professor-check before submission
322
+ # → use /generate-report for the written report
323
+ ```
204
324
 
205
- # Build TypeScript
206
- npm run build
325
+ ### Personal MVP
326
+ ```bash
327
+ npx brainforge-ai init
328
+ # → choose "intermediate" or "professional"
329
+ # → define your stack and features during /start-project
330
+ # → build phase by phase
331
+ ```
207
332
 
208
- # Run in dev mode (ts-node)
209
- npm run dev -- init
333
+ ### Learning a new stack
334
+ ```bash
335
+ npx brainforge-ai init
336
+ # → choose "beginner" or "intermediate"
337
+ # → use /explain-my-code after each phase to understand what was built
338
+ ```
210
339
 
211
- # Link globally for local testing
212
- npm link
213
- brainforge init
340
+ ---
214
341
 
215
- # Unlink
216
- npm unlink
217
- ```
342
+ ## Requirements
343
+
344
+ - Node.js >= 16
345
+ - Git (optional but recommended)
346
+ - An AI tool: Claude Code, Cursor, Copilot, Gemini CLI, Codex…
218
347
 
219
348
  ---
220
349
 
221
- ## Publishing to npm
350
+ ## Development
222
351
 
223
352
  ```bash
224
- # Make sure you're logged in
225
- npm login
226
-
227
- # Dry run to check what will be published
228
- npm publish --dry-run
353
+ git clone https://github.com/MEHDImp4/brainforge-ai
354
+ cd brainforge-ai
355
+ npm install
356
+ npm run build
357
+ npm link
229
358
 
230
- # Publish
231
- npm publish
359
+ # Test locally
360
+ brainforge init
361
+ brainforge doctor
232
362
  ```
233
363
 
234
364
  ---
235
365
 
236
- ## Roadmap
366
+ ## Contributing
237
367
 
238
- - [ ] `brainforge checkpoint` — standalone git checkpoint command
239
- - [ ] `brainforge phase` — phase management (status, list, activate)
240
- - [ ] `brainforge memory` — view and search project memory
241
- - [ ] AI model integration for auto-generating roadmaps
242
- - [ ] Export report to PDF
243
- - [ ] VS Code extension
244
- - [ ] Web-based dashboard with live reload
368
+ Issues and PRs welcome on [GitHub](https://github.com/MEHDImp4/brainforge-ai).
245
369
 
246
370
  ---
247
371
 
248
372
  ## License
249
373
 
250
- MIT — feel free to use, modify, and share.
374
+ MIT — free to use, modify, and share.
251
375
 
252
376
  ---
253
377
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainforge-ai",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CLI to transform a vague idea into a structured, AI-assisted project with agents, slash commands, memory, and a live dashboard",
5
5
  "keywords": [
6
6
  "ai",
@@ -14,9 +14,9 @@
14
14
  "vibe-coding",
15
15
  "brainforge"
16
16
  ],
17
- "homepage": "https://github.com/mehdidiouri17/brainforge-ai#readme",
17
+ "homepage": "https://github.com/MEHDImp4/brainforge-ai#readme",
18
18
  "bugs": {
19
- "url": "https://github.com/mehdidiouri17/brainforge-ai/issues"
19
+ "url": "https://github.com/MEHDImp4/brainforge-ai/issues"
20
20
  },
21
21
  "license": "MIT",
22
22
  "author": "Mehdi Diouri <mehdidiouri17@gmail.com>",