mother-brain 0.5.0 → 0.5.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.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/skills/mother-brain/SKILL.md +35 -506
- package/skills/mother-brain/examples/session-flow.md +70 -0
- package/skills/mother-brain/references/branded-menu.md +56 -0
- package/skills/mother-brain/references/doc-templates.md +191 -0
- package/skills/mother-brain/references/file-structure.md +51 -0
- package/skills/mother-brain/references/formatting-rules.md +33 -0
- package/skills/mother-brain/references/issue-reporting.md +61 -0
package/dist/cli.js
CHANGED
|
@@ -798,7 +798,7 @@ async function uninstall(options) {
|
|
|
798
798
|
// src/cli.ts
|
|
799
799
|
import { exec as exec3 } from "child_process";
|
|
800
800
|
var program = new Command();
|
|
801
|
-
var VERSION = "0.5.
|
|
801
|
+
var VERSION = "0.5.1";
|
|
802
802
|
program.name("mother-brain").description("AI-powered project management framework for GitHub Copilot CLI and Codex CLI").version(VERSION);
|
|
803
803
|
program.command("init").description("Initialize Mother Brain in the current project").option("-f, --force", "Overwrite existing skills").action(init);
|
|
804
804
|
program.command("update").description("Update Mother Brain skills to the latest version").action(update);
|
package/package.json
CHANGED
|
@@ -104,6 +104,18 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
|
|
|
104
104
|
- **Self-test**: After generating your response, scan it. If it ends with a statement and no menu → STOP and add one
|
|
105
105
|
- This rule exists because passive "don't do X" rules suffer from context decay in long sessions
|
|
106
106
|
|
|
107
|
+
### RULE 10: TEMPLATE LOADING GATE (MANDATORY)
|
|
108
|
+
- Before displaying ANY menu, creating ANY document, or formatting ANY output, you MUST:
|
|
109
|
+
1. Read the relevant template file from `references/` or `examples/`
|
|
110
|
+
2. Use the loaded template as your guide — do not recreate from memory
|
|
111
|
+
- Template files to load on demand:
|
|
112
|
+
- **Menus**: Read `references/branded-menu.md` before displaying any menu
|
|
113
|
+
- **Formatting**: Read `references/formatting-rules.md` before formatting lists/output
|
|
114
|
+
- **Issue reporting**: Read `references/issue-reporting.md` when handling freeform issue detection
|
|
115
|
+
- **Documents**: Read `references/doc-templates.md` before creating vision.md, task docs, roadmap.md, value-framework.md, or learning-log.md
|
|
116
|
+
- **File structure**: Read `references/file-structure.md` when setting up project structure
|
|
117
|
+
- **Why this rule exists**: Templates extracted to files prevent context decay. A missed file load is debuggable and enforceable; inline template drift is invisible
|
|
118
|
+
|
|
107
119
|
---
|
|
108
120
|
|
|
109
121
|
## ⚠️ CRITICAL EXECUTION INSTRUCTIONS
|
|
@@ -265,176 +277,21 @@ Mother Brain transforms high-level visions into executable reality by:
|
|
|
265
277
|
|
|
266
278
|
### Output Formatting Rules (CRITICAL)
|
|
267
279
|
|
|
268
|
-
**NEVER
|
|
269
|
-
```
|
|
270
|
-
❌ Skills: design-system, supabase-integration, maps-integration, component-builder
|
|
271
|
-
❌ Features: Discovery • Ratings • Tracking • Routes
|
|
272
|
-
❌ Tasks completed: 1, 2, 3, 5
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
**ALWAYS do this (vertical lists):**
|
|
276
|
-
```
|
|
277
|
-
✅ Skills created:
|
|
278
|
-
- design-system
|
|
279
|
-
- supabase-integration
|
|
280
|
-
- maps-integration
|
|
281
|
-
- component-builder
|
|
282
|
-
|
|
283
|
-
✅ Features:
|
|
284
|
-
- Discovery
|
|
285
|
-
- Ratings
|
|
286
|
-
- Tracking
|
|
287
|
-
- Routes
|
|
288
|
-
|
|
289
|
-
✅ Tasks completed:
|
|
290
|
-
- Task 1
|
|
291
|
-
- Task 2
|
|
292
|
-
- Task 3
|
|
293
|
-
- Task 5
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
Each item gets its own line. No exceptions.
|
|
280
|
+
**Read `references/formatting-rules.md` for examples.** Core rule: ALWAYS use vertical lists with one item per line. NEVER use horizontal comma-separated lists or bullet characters (•). Each item gets its own line — no exceptions.
|
|
297
281
|
|
|
298
282
|
## Universal Patterns for All Workflows
|
|
299
283
|
|
|
300
284
|
### Branded Menu Frame
|
|
301
285
|
|
|
302
|
-
**
|
|
303
|
-
|
|
304
|
-
**Theme: Clean, Simple with Brain Emoji**
|
|
305
|
-
|
|
306
|
-
```
|
|
307
|
-
🧠 Welcome back to [Project Name]!
|
|
308
|
-
|
|
309
|
-
📍 Where You Left Off:
|
|
310
|
-
- Phase: [Current Phase Name]
|
|
311
|
-
- Last Task: [Task Number] - [Task Name] ([Status])
|
|
312
|
-
- Progress: [X] of [Y] tasks completed
|
|
313
|
-
- Skills Created: [Count]
|
|
314
|
-
|
|
315
|
-
What would you like to do?
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
**Theme Elements:**
|
|
319
|
-
- Header starts with 🧠 emoji followed by welcome message
|
|
320
|
-
- Use 📍 emoji for status section header
|
|
321
|
-
- Plain text content with bullet points (•) for lists
|
|
322
|
-
- No ASCII art, no "Vision-Driven Development" tagline
|
|
323
|
-
- No markdown tables (hard to read in terminals)
|
|
324
|
-
- No horizontal rules or code fences around output
|
|
325
|
-
|
|
326
|
-
**Styling Rules:**
|
|
327
|
-
- Header format: 🧠 [Welcome/Status message]
|
|
328
|
-
- Use bullet character - for lists (not - which triggers markdown)
|
|
329
|
-
- Use emoji markers for sections (📍, ✅, 🔧)
|
|
330
|
-
- Keep content simple and readable
|
|
331
|
-
- No ASCII box borders, no tables
|
|
332
|
-
|
|
333
|
-
**Example - Welcome Back Menu:**
|
|
334
|
-
```
|
|
335
|
-
🧠 Welcome back to Gaming Backlog Manager!
|
|
286
|
+
**Read `references/branded-menu.md` for the full template and examples before displaying any menu.**
|
|
336
287
|
|
|
337
|
-
📍
|
|
338
|
-
- Phase: Phase 1 - Core PWA Foundation
|
|
339
|
-
- Last Task: 003 - localStorage Data Layer (✅ Complete)
|
|
340
|
-
- Progress: 3 of 9 tasks completed
|
|
341
|
-
- Skills Created: 1
|
|
342
|
-
|
|
343
|
-
What would you like to do?
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
**Example - Selection Menu:**
|
|
347
|
-
```
|
|
348
|
-
🧠 Snakes and Ladders
|
|
349
|
-
|
|
350
|
-
What would you like to do?
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
Then use `ask_user` with choices immediately after the branded text.
|
|
354
|
-
|
|
355
|
-
**Important**: Do NOT wrap the menu output in triple-backtick code fences when displaying to user. Just output the text directly. Code fences cause terminal styling issues.
|
|
288
|
+
Key rules: Header starts with 🧠 emoji, use 📍 for status, dash `-` for lists, no ASCII art, no tables, no code fences around output. Use `ask_user` with choices immediately after branded text.
|
|
356
289
|
|
|
357
290
|
### Issue Reporting via Freeform Input
|
|
358
291
|
|
|
359
|
-
**
|
|
360
|
-
|
|
361
|
-
- Use `allow_freeform: true` on all `ask_user` calls (this is the default)
|
|
362
|
-
- The tool automatically adds "Other" as the last option for freeform text input
|
|
363
|
-
- **No explicit "Report Issue" option needed** - users can type their issues in freeform
|
|
364
|
-
- When user's freeform input contains issue-related keywords, jump to **Step 2A: Update Mother Brain**
|
|
365
|
-
|
|
366
|
-
**Issue Detection Keywords** (check freeform responses for these):
|
|
367
|
-
- "issue", "problem", "broken", "bug", "not working", "wrong", "error"
|
|
368
|
-
- "doesn't work", "fix", "report", "something's wrong", "this is broken"
|
|
369
|
-
|
|
370
|
-
**Example Pattern:**
|
|
371
|
-
```
|
|
372
|
-
ask_user with allow_freeform: true and choices:
|
|
373
|
-
- "Option 1 (normal workflow)"
|
|
374
|
-
- "Option 2 (alternative)"
|
|
375
|
-
- "Option 3 (other action)"
|
|
376
|
-
# Tool automatically adds "Other" at the end for freeform input
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
**What user sees:**
|
|
380
|
-
```
|
|
381
|
-
1. Option 1 (normal workflow)
|
|
382
|
-
2. Option 2 (alternative)
|
|
383
|
-
3. Option 3 (other action)
|
|
384
|
-
4. Other ← Auto-added by tool, allows freeform text
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
**Handling Freeform Responses:**
|
|
388
|
-
1. Check if response contains issue-related keywords
|
|
389
|
-
2. If issue detected:
|
|
390
|
-
- Capture current context (step, action, phase, task)
|
|
391
|
-
- Display: "🚨 **Issue Detected**"
|
|
392
|
-
- Jump to Step 2A with context
|
|
393
|
-
3. If not an issue: Process response normally and continue workflow
|
|
394
|
-
|
|
395
|
-
**When issue is detected in freeform:**
|
|
396
|
-
1. Capture current context
|
|
397
|
-
2. Display: "🚨 **Issue Detected from your feedback**"
|
|
398
|
-
3. Pre-populate issue context: "You were at [Step X], attempting [Action Y]"
|
|
399
|
-
4. Jump to Step 2A with context
|
|
400
|
-
5. Apply 3-layered troubleshooting approach (what happened, root cause, fix)
|
|
401
|
-
5. Apply 3-layered troubleshooting approach (what happened, root cause, fix)
|
|
402
|
-
|
|
403
|
-
This ensures users can ALWAYS break out of bad behavior and report issues in-context.
|
|
404
|
-
|
|
405
|
-
### Handling "Report Issue" Selection
|
|
406
|
-
|
|
407
|
-
When user selects "🚨 Report Issue (something's not working)" from ANY `ask_user`:
|
|
408
|
-
|
|
409
|
-
1. **Capture Context:**
|
|
410
|
-
```
|
|
411
|
-
Context:
|
|
412
|
-
- Current Step: [Step number/name being executed]
|
|
413
|
-
- Action Attempted: [What Mother Brain was trying to do]
|
|
414
|
-
- Phase: [If in project: current phase]
|
|
415
|
-
- Task: [If in task execution: task number/name]
|
|
416
|
-
- Last Command: [Last tool used, if applicable]
|
|
417
|
-
```
|
|
292
|
+
**Read `references/issue-reporting.md` for the full pattern.**
|
|
418
293
|
|
|
419
|
-
|
|
420
|
-
```
|
|
421
|
-
🚨 **Issue Reporting Mode Activated**
|
|
422
|
-
|
|
423
|
-
I detected you triggered issue reporting from:
|
|
424
|
-
- Step: [Current step]
|
|
425
|
-
- Action: [What was happening]
|
|
426
|
-
[If in task] - Task: [Task number/name]
|
|
427
|
-
|
|
428
|
-
This will help me understand what went wrong.
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
3. **Jump to Step 2A** (Update Mother Brain) with pre-populated context
|
|
432
|
-
|
|
433
|
-
4. **Ask for issue description** with context already captured:
|
|
434
|
-
- "What went wrong or didn't work as expected?"
|
|
435
|
-
- Pre-fill with context: "At [Step], while [Action], the issue was: [user describes]"
|
|
436
|
-
|
|
437
|
-
This pattern ensures NO workflow ever traps the user—there's always an escape hatch.
|
|
294
|
+
Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform responses for issue keywords ("bug", "broken", "not working", etc.). When detected, capture context and jump to Step 2A. This ensures users can always break out of bad behavior.
|
|
438
295
|
|
|
439
296
|
## Steps
|
|
440
297
|
|
|
@@ -2374,34 +2231,8 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
2374
2231
|
- **Proceed to Step 4** (Vision Document Creation)
|
|
2375
2232
|
|
|
2376
2233
|
### 4. **Vision Document Creation**
|
|
2377
|
-
-
|
|
2378
|
-
|
|
2379
|
-
# [Project Name] - Vision
|
|
2380
|
-
|
|
2381
|
-
## The Problem
|
|
2382
|
-
[User's pain point/opportunity]
|
|
2383
|
-
|
|
2384
|
-
## The Vision
|
|
2385
|
-
[3-12 month desired future state]
|
|
2386
|
-
|
|
2387
|
-
## Target Users
|
|
2388
|
-
[Who benefits and how]
|
|
2389
|
-
|
|
2390
|
-
## Why This Matters
|
|
2391
|
-
[The deeper purpose]
|
|
2392
|
-
|
|
2393
|
-
## Success Looks Like
|
|
2394
|
-
[Measurable outcomes]
|
|
2395
|
-
|
|
2396
|
-
## Timeline & Constraints
|
|
2397
|
-
[Constraints only - budget, skills, tech preferences. NOT timeline.]
|
|
2398
|
-
|
|
2399
|
-
## MVP Definition
|
|
2400
|
-
[Minimum viable success]
|
|
2401
|
-
|
|
2402
|
-
## Strategic Themes
|
|
2403
|
-
[3-5 key focus areas derived from vision]
|
|
2404
|
-
```
|
|
2234
|
+
- **Read `references/doc-templates.md`** and use the Vision Document Template
|
|
2235
|
+
- Create `docs/vision.md` using the loaded template, filling in content from vision discovery
|
|
2405
2236
|
|
|
2406
2237
|
- Create `README.md` with project overview
|
|
2407
2238
|
- Display vision summary to user
|
|
@@ -2468,59 +2299,9 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
2468
2299
|
- It blocks something more important
|
|
2469
2300
|
|
|
2470
2301
|
**Step 4A.3: Build the Value Framework**
|
|
2471
|
-
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
# [Project Name] - Value Framework
|
|
2475
|
-
|
|
2476
|
-
> Living prioritization criteria derived from vision discovery.
|
|
2477
|
-
> Used to order tasks, evaluate new ideas, and justify roadmap decisions.
|
|
2478
|
-
> Updated as the project evolves and user priorities shift.
|
|
2479
|
-
|
|
2480
|
-
## Core Value Driver
|
|
2481
|
-
[The #1 thing from Step 4A.2 question 2 — e.g., "Users can track their backlog within 2 weeks"]
|
|
2482
|
-
|
|
2483
|
-
## Priority Dimensions (Weighted)
|
|
2484
|
-
|
|
2485
|
-
| Dimension | Weight | Description |
|
|
2486
|
-
|-----------|--------|-------------|
|
|
2487
|
-
| Vision Alignment | [1-5] | How directly does this serve the core vision? |
|
|
2488
|
-
| MVP Proximity | [1-5] | Does this get us closer to a shippable release? |
|
|
2489
|
-
| User Impact | [1-5] | How much does this improve the user experience? |
|
|
2490
|
-
| Effort | [1-5] | How much work is required? (inverse: lower effort = higher priority) |
|
|
2491
|
-
| Urgency | [1-5] | Is this time-sensitive or blocking other work? |
|
|
2492
|
-
| Long-term Value | [1-5] | Does this pay off strategically over time? |
|
|
2493
|
-
| Risk Reduction | [1-5] | Does this reduce technical or project risk? |
|
|
2494
|
-
|
|
2495
|
-
*Weights are 1 (low importance) to 5 (critical). Derived from user's stated values.*
|
|
2496
|
-
|
|
2497
|
-
## User's Stated Values
|
|
2498
|
-
- Speed vs Quality preference: [from question 3]
|
|
2499
|
-
- Abandon/deprioritize triggers: [from question 4]
|
|
2500
|
-
- Core success metric: [from question 2]
|
|
2501
|
-
|
|
2502
|
-
## Scoring Guide
|
|
2503
|
-
|
|
2504
|
-
**Priority Score** = Sum of (Dimension Score × Weight) for each dimension
|
|
2505
|
-
|
|
2506
|
-
When comparing tasks:
|
|
2507
|
-
1. Score each task across all dimensions (1-5 per dimension)
|
|
2508
|
-
2. Multiply by weight
|
|
2509
|
-
3. Higher total = higher priority
|
|
2510
|
-
4. Ties broken by: Vision Alignment > MVP Proximity > User Impact
|
|
2511
|
-
|
|
2512
|
-
## Decision Rules
|
|
2513
|
-
- Tasks scoring < [threshold] on Vision Alignment should be questioned: "Does this belong in this project?"
|
|
2514
|
-
- Tasks scoring 5 on Urgency override normal ordering (blockers first)
|
|
2515
|
-
- Tasks scoring 5 on MVP Proximity during Phase 1 get priority boost
|
|
2516
|
-
- After MVP: User Impact and Long-term Value become more important than MVP Proximity
|
|
2517
|
-
|
|
2518
|
-
## Framework Evolution Log
|
|
2519
|
-
|
|
2520
|
-
| Date | Change | Reason |
|
|
2521
|
-
|------|--------|--------|
|
|
2522
|
-
| [Created] | Initial framework | Vision discovery |
|
|
2523
|
-
```
|
|
2302
|
+
- **Read `references/doc-templates.md`** and use the Value Framework Template
|
|
2303
|
+
- Create `.mother-brain/docs/value-framework.md` using the loaded template
|
|
2304
|
+
- Fill in values from user's answers in Step 4A.2
|
|
2524
2305
|
|
|
2525
2306
|
**Step 4A.4: Confirm with User**
|
|
2526
2307
|
- Show the framework summary (NOT the full file — just the key weights and values)
|
|
@@ -2938,113 +2719,11 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
2938
2719
|
- Don't over-plan: assume learnings will inform these phases
|
|
2939
2720
|
|
|
2940
2721
|
**Step 7.3: Create `docs/roadmap.md` (Research-Driven Structure)**:
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
**MVP Approach**: [From Step 6A research - what minimum viable means for this type]
|
|
2947
|
-
**Launch Pattern**: [From Step 6A research - how to reach users]
|
|
2948
|
-
**Iteration Strategy**: [From Step 6A research - how to improve post-launch]
|
|
2949
|
-
|
|
2950
|
-
---
|
|
2951
|
-
|
|
2952
|
-
## Phase 1: MVP - [Core Problem Solution] (Timeline)
|
|
2953
|
-
**Goal**: Shortest path to deliver user value
|
|
2954
|
-
**Success Gate**: [MVP criteria from vision document]
|
|
2955
|
-
**Strategy**: Solve core problem, defer everything else
|
|
2956
|
-
|
|
2957
|
-
**Deliverables** (ordered by Value Framework score):
|
|
2958
|
-
- [ ] **Task 001**: [Essential for solving core problem] — *Score: [N] (top dimensions)*
|
|
2959
|
-
- [ ] **Task 002**: [Essential for solving core problem] — *Score: [N] (top dimensions)*
|
|
2960
|
-
- [ ] **Task 003**: [Essential for solving core problem] — *Score: [N] (top dimensions)*
|
|
2961
|
-
|
|
2962
|
-
**Why this order**: [1-2 sentence explanation of why tasks are sequenced this way based on the Value Framework. E.g., "Task 001 first because it scores highest on Vision Alignment and unblocks Tasks 002-003."]
|
|
2963
|
-
|
|
2964
|
-
**Skills Available**: [List relevant skills]
|
|
2965
|
-
|
|
2966
|
-
**Definition of Done** (from vision + research):
|
|
2967
|
-
- [MVP criterion 1 from vision]
|
|
2968
|
-
- [MVP criterion 2 from vision]
|
|
2969
|
-
- [Launch criterion from Step 6A research]
|
|
2970
|
-
- Ready for [next step from research - users/feedback/deployment]
|
|
2971
|
-
|
|
2972
|
-
---
|
|
2973
|
-
|
|
2974
|
-
## Phase 2+: Post-MVP Iteration
|
|
2975
|
-
**Strategy**: [Iteration approach from Step 6A research]
|
|
2976
|
-
**Trigger**: Phase 1 complete + [feedback mechanism from research]
|
|
2977
|
-
**Focus**: Learn from users and iterate
|
|
2978
|
-
|
|
2979
|
-
**Planned Enhancements** (ordered by Value Framework, subject to validation):
|
|
2980
|
-
- [ ] **Task [N]**: [Enhancement] — *Score: [N] (top dimensions)*
|
|
2981
|
-
- [ ] **Task [N+1]**: [Feature that wasn't essential for MVP] — *Score: [N] (top dimensions)*
|
|
2982
|
-
|
|
2983
|
-
**Why this order**: [1-2 sentence explanation based on Value Framework]
|
|
2984
|
-
|
|
2985
|
-
**Learning Plan**:
|
|
2986
|
-
- [Feedback mechanism from Step 6A research]
|
|
2987
|
-
- [Metrics/data to collect]
|
|
2988
|
-
- [How we'll prioritize improvements]
|
|
2989
|
-
|
|
2990
|
-
**Note**: These tasks may change completely based on user feedback
|
|
2991
|
-
|
|
2992
|
-
---
|
|
2993
|
-
|
|
2994
|
-
## MVP Checkpoint (End of Phase 1)
|
|
2995
|
-
|
|
2996
|
-
✅ **Phase 1 Complete When**:
|
|
2997
|
-
1. [MVP criterion 1 from vision]
|
|
2998
|
-
2. [MVP criterion 2 from vision]
|
|
2999
|
-
3. Core problem from vision is solved
|
|
3000
|
-
4. User can achieve primary outcome
|
|
3001
|
-
5. [Launch criteria from Step 6A research]
|
|
3002
|
-
|
|
3003
|
-
**Next Step After MVP**: [From Step 6A research - launch to users, collect feedback, analyze learnings, prioritize Phase 2 based on data]
|
|
3004
|
-
|
|
3005
|
-
---
|
|
3006
|
-
|
|
3007
|
-
## Future Enhancements (Post-MVP Backlog)
|
|
3008
|
-
|
|
3009
|
-
**Defer Until After MVP** (nice-to-have):
|
|
3010
|
-
- [ ] [Feature not essential to core problem]
|
|
3011
|
-
- [ ] [Enhancement that can wait for user validation]
|
|
3012
|
-
- [ ] [Assumption-based idea - test with real users first]
|
|
3013
|
-
|
|
3014
|
-
**Validation Required**: Don't build until validated by user feedback
|
|
3015
|
-
|
|
3016
|
-
---
|
|
3017
|
-
|
|
3018
|
-
## Iteration & Learning Plan (Research-Based)
|
|
3019
|
-
|
|
3020
|
-
**Feedback Collection** (from Step 6A research):
|
|
3021
|
-
- [How we'll gather user input for this project type]
|
|
3022
|
-
- [Metrics/analytics to track]
|
|
3023
|
-
- [User research approach]
|
|
3024
|
-
|
|
3025
|
-
**Iteration Cycle**:
|
|
3026
|
-
1. Complete Phase 1 (MVP)
|
|
3027
|
-
2. [Launch/deploy/release based on Step 6A research]
|
|
3028
|
-
3. Collect feedback via [mechanism from research]
|
|
3029
|
-
4. Analyze learnings and validate assumptions
|
|
3030
|
-
5. Prioritize Phase 2 based on real user data
|
|
3031
|
-
6. Iterate and improve
|
|
3032
|
-
|
|
3033
|
-
---
|
|
3034
|
-
|
|
3035
|
-
## Risk Mitigation
|
|
3036
|
-
|
|
3037
|
-
**MVP Risks**: [Potential issues with Phase 1 approach]
|
|
3038
|
-
|
|
3039
|
-
**Delivery Strategy**: If time/resources become constrained, protect MVP (Phase 1) at all costs. Everything in Phase 2+ can be deferred.
|
|
3040
|
-
|
|
3041
|
-
---
|
|
3042
|
-
|
|
3043
|
-
**Total Tasks**: [Count]
|
|
3044
|
-
**Phase 1 (MVP) Tasks**: [Count essential tasks]
|
|
3045
|
-
**Post-MVP Tasks**: [Count - subject to change based on feedback]
|
|
3046
|
-
**Estimated Timeline**: [From vision document]
|
|
3047
|
-
```
|
|
2722
|
+
- **Read `references/doc-templates.md`** and use the Roadmap Template
|
|
2723
|
+
- Create `docs/roadmap.md` using the loaded template
|
|
2724
|
+
- Fill in from research findings (Steps 5, 5A, 6A) and Value Framework (Step 4A)
|
|
2725
|
+
- Order tasks by Value Framework score
|
|
2726
|
+
- Include "Why this order" explanation for each phase
|
|
3048
2727
|
|
|
3049
2728
|
**Step 7.3.5: CHECKPOINT - Review Roadmap Against Elder Brain**
|
|
3050
2729
|
- **Purpose**: Surface known pitfalls for the tech stack BEFORE task execution begins
|
|
@@ -3214,47 +2893,8 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
3214
2893
|
|
|
3215
2894
|
### 8. **Task Document Creation**
|
|
3216
2895
|
- Create `docs/tasks/` directory
|
|
3217
|
-
-
|
|
3218
|
-
|
|
3219
|
-
# Task 001: [Task Name] - [Logic/UI/Animation]
|
|
3220
|
-
|
|
3221
|
-
**Status**: 🟡 In Progress
|
|
3222
|
-
**Phase**: Phase 1 - Foundation
|
|
3223
|
-
**Strategic Theme**: [Which theme this supports]
|
|
3224
|
-
**Assigned**: [Date]
|
|
3225
|
-
|
|
3226
|
-
## Objective
|
|
3227
|
-
[What this task achieves]
|
|
3228
|
-
|
|
3229
|
-
**Scope Clarity**:
|
|
3230
|
-
- **Type**: [Logic | UI | Animation | Integration | Testing]
|
|
3231
|
-
- **Focus**: [What this task implements specifically]
|
|
3232
|
-
- **NOT in scope**: [What related features are in future tasks]
|
|
3233
|
-
|
|
3234
|
-
## Success Criteria
|
|
3235
|
-
- [ ] [Specific, testable criterion]
|
|
3236
|
-
- [ ] [Specific, testable criterion]
|
|
3237
|
-
|
|
3238
|
-
## Approach
|
|
3239
|
-
[High-level approach]
|
|
3240
|
-
|
|
3241
|
-
## Dependencies
|
|
3242
|
-
- [What must exist before this]
|
|
3243
|
-
|
|
3244
|
-
## Skills to Use
|
|
3245
|
-
- [Relevant skill name and purpose]
|
|
3246
|
-
|
|
3247
|
-
## Deliverables
|
|
3248
|
-
- [Specific files/outputs]
|
|
3249
|
-
|
|
3250
|
-
## Notes & Decisions
|
|
3251
|
-
[Log decisions made during execution]
|
|
3252
|
-
|
|
3253
|
-
## Validation
|
|
3254
|
-
[ ] Built successfully
|
|
3255
|
-
[ ] Tested and verified
|
|
3256
|
-
[ ] User confirmed it meets expectations
|
|
3257
|
-
```
|
|
2896
|
+
- **Read `references/doc-templates.md`** and use the Task Document Template
|
|
2897
|
+
- For first task in Phase 1, create `docs/tasks/001-[task-name].md` using the loaded template
|
|
3258
2898
|
|
|
3259
2899
|
- Display task to user
|
|
3260
2900
|
- Use `ask_user` with choices:
|
|
@@ -4116,60 +3756,14 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
4116
3756
|
- If pattern affects skill creation: Update skill-creator
|
|
4117
3757
|
- If pattern affects specific skill: Update that skill
|
|
4118
3758
|
|
|
4119
|
-
-
|
|
4120
|
-
|
|
4121
|
-
# Learning Log
|
|
4122
|
-
|
|
4123
|
-
## [Date] - [Issue Fixed]
|
|
4124
|
-
**Skill**: [Which skill was healed]
|
|
4125
|
-
**Problem**: [What went wrong]
|
|
4126
|
-
**Root Cause**: [Why it happened]
|
|
4127
|
-
**Fix Applied**: [How it was fixed]
|
|
4128
|
-
**Lesson Learned**: [General principle extracted]
|
|
4129
|
-
**Improvement Made**: [What was updated to prevent recurrence]
|
|
4130
|
-
```
|
|
3759
|
+
- **Read `references/doc-templates.md`** and use the Learning Log Template
|
|
3760
|
+
- Log improvements in `docs/learning-log.md` using the loaded template
|
|
4131
3761
|
|
|
4132
3762
|
## File Structure Created by Mother Brain
|
|
4133
3763
|
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
│ ├── docs/
|
|
4138
|
-
│ │ ├── vision.md # Project vision (what, who, when, WHY)
|
|
4139
|
-
│ │ ├── roadmap.md # Phased execution plan
|
|
4140
|
-
│ │ ├── learning-log.md # Self-improvement tracking (PRESERVED on eject)
|
|
4141
|
-
│ │ └── tasks/
|
|
4142
|
-
│ │ ├── 001-task-name.md # Individual task documents
|
|
4143
|
-
│ │ ├── 002-task-name.md
|
|
4144
|
-
│ │ └── ...
|
|
4145
|
-
│ ├── project-brain.md # Project-specific learnings (managed by Child Brain)
|
|
4146
|
-
│ ├── session-state.json # Current session state (tracks skillsCreated)
|
|
4147
|
-
│ └── README.md # Mother Brain directory info
|
|
4148
|
-
├── .github/
|
|
4149
|
-
│ └── skills/ # ALL skills (framework + project-specific)
|
|
4150
|
-
│ ├── mother-brain/ # Core framework (never delete)
|
|
4151
|
-
│ ├── child-brain/ # Core framework - learning orchestrator (never delete)
|
|
4152
|
-
│ ├── skill-creator/ # Core framework (never delete)
|
|
4153
|
-
│ ├── [project-skill-1]/ # Project-specific (tracked in session-state.json)
|
|
4154
|
-
│ └── [project-skill-2]/ # Project-specific (tracked in session-state.json)
|
|
4155
|
-
├── .agents/
|
|
4156
|
-
│ └── skills/ # Symlinks to .github/skills/ (Codex CLI compatibility)
|
|
4157
|
-
│ ├── mother-brain/ → ../../.github/skills/mother-brain/
|
|
4158
|
-
│ ├── child-brain/ → ../../.github/skills/child-brain/
|
|
4159
|
-
│ └── skill-creator/ → ../../.github/skills/skill-creator/
|
|
4160
|
-
├── src/ # Source code (standard structure)
|
|
4161
|
-
├── tests/ # Tests (standard structure)
|
|
4162
|
-
├── README.md # Project overview
|
|
4163
|
-
└── [other standard project files]
|
|
4164
|
-
```
|
|
4165
|
-
|
|
4166
|
-
**Key Principles:**
|
|
4167
|
-
- **Dual CLI Compatibility**: Skills live in `.github/skills/` (GitHub Copilot CLI, source of truth) and are symlinked to `.agents/skills/` (Codex CLI). Relative symlinks survive git clone (unlike NTFS junctions). Falls back to copy if symlinks fail.
|
|
4168
|
-
- **Skill Tracking**: `session-state.json` tracks which skills are project-specific via `skillsCreated` array
|
|
4169
|
-
- **Easy Ejection**: Delete skills listed in `skillsCreated`, keep core framework skills
|
|
4170
|
-
- **Isolated Docs**: Project documentation in `.mother-brain/docs/` (separate from project code)
|
|
4171
|
-
- **Learning Preservation**: `learning-log.md` is preserved on eject for continuous improvement
|
|
4172
|
-
- **Learning Separation**: Project Brain stores project-specific learnings; Mother Brain stores only meta-level process improvements
|
|
3764
|
+
**Read `references/file-structure.md` for the full directory tree and key principles.**
|
|
3765
|
+
|
|
3766
|
+
Core structure: `.mother-brain/` (project docs), `.github/skills/` (all skills), `.agents/skills/` (Codex symlinks), `experience-vault/` (Elder Brain knowledge).
|
|
4173
3767
|
|
|
4174
3768
|
## Validation Checklist
|
|
4175
3769
|
|
|
@@ -4235,72 +3829,7 @@ When heal fixes an issue:
|
|
|
4235
3829
|
|
|
4236
3830
|
## Example Session Flow
|
|
4237
3831
|
|
|
4238
|
-
**
|
|
4239
|
-
```
|
|
4240
|
-
User: I want to build a music marketing SaaS platform
|
|
4241
|
-
|
|
4242
|
-
Mother Brain:
|
|
4243
|
-
🧠 Welcome to Mother Brain!
|
|
4244
|
-
|
|
4245
|
-
[Runs vision discovery wizard - 8-12 questions]
|
|
4246
|
-
|
|
4247
|
-
Creates:
|
|
4248
|
-
- docs/vision.md
|
|
4249
|
-
- docs/roadmap.md (3 phases identified)
|
|
4250
|
-
- README.md
|
|
4251
|
-
|
|
4252
|
-
Identifies repetitive patterns:
|
|
4253
|
-
- Spotify API integration
|
|
4254
|
-
- Image uploads
|
|
4255
|
-
- User authentication
|
|
4256
|
-
- Email campaigns
|
|
4257
|
-
|
|
4258
|
-
Recommends creating skills:
|
|
4259
|
-
- spotify-api-integrator
|
|
4260
|
-
- image-upload-handler
|
|
4261
|
-
- auth-manager
|
|
4262
|
-
|
|
4263
|
-
User agrees, Mother Brain invokes skill-creator 3 times.
|
|
4264
|
-
|
|
4265
|
-
First task created: "Set up project structure and authentication"
|
|
4266
|
-
|
|
4267
|
-
User: "Start the task"
|
|
4268
|
-
|
|
4269
|
-
[Mother Brain uses auth-manager skill, creates deliverables]
|
|
4270
|
-
|
|
4271
|
-
Mother Brain: "✅ Task complete! User login system created.
|
|
4272
|
-
Please test: [instructions]
|
|
4273
|
-
Does it work properly?"
|
|
4274
|
-
|
|
4275
|
-
User: "Yes, looks good!"
|
|
4276
|
-
|
|
4277
|
-
Mother Brain marks task complete, asks about next task.
|
|
4278
|
-
```
|
|
4279
|
-
|
|
4280
|
-
**Returning to Project:**
|
|
4281
|
-
```
|
|
4282
|
-
User: /mother-brain
|
|
4283
|
-
|
|
4284
|
-
Mother Brain:
|
|
4285
|
-
🧠 Welcome back to MusicMarketingSaaS!
|
|
4286
|
-
|
|
4287
|
-
Current Status:
|
|
4288
|
-
Phase: 1 - Foundation (75% complete)
|
|
4289
|
-
Task: 002 - Spotify API Integration (In Progress)
|
|
4290
|
-
Completed: 3 tasks
|
|
4291
|
-
Remaining: 12 tasks
|
|
4292
|
-
Skills: 3 available
|
|
4293
|
-
|
|
4294
|
-
What would you like to do?
|
|
4295
|
-
1. Continue current task
|
|
4296
|
-
2. Start next task
|
|
4297
|
-
3. Review roadmap
|
|
4298
|
-
...
|
|
4299
|
-
|
|
4300
|
-
User: "Continue current task"
|
|
4301
|
-
|
|
4302
|
-
[Mother Brain loads task 002, continues execution]
|
|
4303
|
-
```
|
|
3832
|
+
**Read `examples/session-flow.md` for full new project and returning project examples.**
|
|
4304
3833
|
|
|
4305
3834
|
## Notes
|
|
4306
3835
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Example Session Flow
|
|
2
|
+
|
|
3
|
+
## New Project
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
User: I want to build a music marketing SaaS platform
|
|
7
|
+
|
|
8
|
+
Mother Brain:
|
|
9
|
+
🧠 Welcome to Mother Brain!
|
|
10
|
+
|
|
11
|
+
[Runs vision discovery wizard - 8-12 questions]
|
|
12
|
+
|
|
13
|
+
Creates:
|
|
14
|
+
- docs/vision.md
|
|
15
|
+
- docs/roadmap.md (3 phases identified)
|
|
16
|
+
- README.md
|
|
17
|
+
|
|
18
|
+
Identifies repetitive patterns:
|
|
19
|
+
- Spotify API integration
|
|
20
|
+
- Image uploads
|
|
21
|
+
- User authentication
|
|
22
|
+
- Email campaigns
|
|
23
|
+
|
|
24
|
+
Recommends creating skills:
|
|
25
|
+
- spotify-api-integrator
|
|
26
|
+
- image-upload-handler
|
|
27
|
+
- auth-manager
|
|
28
|
+
|
|
29
|
+
User agrees, Mother Brain invokes skill-creator 3 times.
|
|
30
|
+
|
|
31
|
+
First task created: "Set up project structure and authentication"
|
|
32
|
+
|
|
33
|
+
User: "Start the task"
|
|
34
|
+
|
|
35
|
+
[Mother Brain uses auth-manager skill, creates deliverables]
|
|
36
|
+
|
|
37
|
+
Mother Brain: "✅ Task complete! User login system created.
|
|
38
|
+
Please test: [instructions]
|
|
39
|
+
Does it work properly?"
|
|
40
|
+
|
|
41
|
+
User: "Yes, looks good!"
|
|
42
|
+
|
|
43
|
+
Mother Brain marks task complete, asks about next task.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Returning to Project
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
User: /mother-brain
|
|
50
|
+
|
|
51
|
+
Mother Brain:
|
|
52
|
+
🧠 Welcome back to MusicMarketingSaaS!
|
|
53
|
+
|
|
54
|
+
Current Status:
|
|
55
|
+
Phase: 1 - Foundation (75% complete)
|
|
56
|
+
Task: 002 - Spotify API Integration (In Progress)
|
|
57
|
+
Completed: 3 tasks
|
|
58
|
+
Remaining: 12 tasks
|
|
59
|
+
Skills: 3 available
|
|
60
|
+
|
|
61
|
+
What would you like to do?
|
|
62
|
+
1. Continue current task
|
|
63
|
+
2. Start next task
|
|
64
|
+
3. Review roadmap
|
|
65
|
+
...
|
|
66
|
+
|
|
67
|
+
User: "Continue current task"
|
|
68
|
+
|
|
69
|
+
[Mother Brain loads task 002, continues execution]
|
|
70
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Branded Menu Frame
|
|
2
|
+
|
|
3
|
+
Use this template for ALL menus and selections in Mother Brain.
|
|
4
|
+
|
|
5
|
+
## Theme: Clean, Simple with Brain Emoji
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
🧠 Welcome back to [Project Name]!
|
|
9
|
+
|
|
10
|
+
📍 Where You Left Off:
|
|
11
|
+
- Phase: [Current Phase Name]
|
|
12
|
+
- Last Task: [Task Number] - [Task Name] ([Status])
|
|
13
|
+
- Progress: [X] of [Y] tasks completed
|
|
14
|
+
- Skills Created: [Count]
|
|
15
|
+
|
|
16
|
+
What would you like to do?
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Theme Elements
|
|
20
|
+
- Header starts with 🧠 emoji followed by welcome message
|
|
21
|
+
- Use 📍 emoji for status section header
|
|
22
|
+
- Plain text content with bullet points for lists
|
|
23
|
+
- No ASCII art, no "Vision-Driven Development" tagline
|
|
24
|
+
- No markdown tables (hard to read in terminals)
|
|
25
|
+
- No horizontal rules or code fences around output
|
|
26
|
+
|
|
27
|
+
## Styling Rules
|
|
28
|
+
- Header format: 🧠 [Welcome/Status message]
|
|
29
|
+
- Use dash `-` for lists
|
|
30
|
+
- Use emoji markers for sections (📍, ✅, 🔧)
|
|
31
|
+
- Keep content simple and readable
|
|
32
|
+
- No ASCII box borders, no tables
|
|
33
|
+
|
|
34
|
+
## Example - Welcome Back Menu
|
|
35
|
+
```
|
|
36
|
+
🧠 Welcome back to Gaming Backlog Manager!
|
|
37
|
+
|
|
38
|
+
📍 Where You Left Off:
|
|
39
|
+
- Phase: Phase 1 - Core PWA Foundation
|
|
40
|
+
- Last Task: 003 - localStorage Data Layer (✅ Complete)
|
|
41
|
+
- Progress: 3 of 9 tasks completed
|
|
42
|
+
- Skills Created: 1
|
|
43
|
+
|
|
44
|
+
What would you like to do?
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Example - Selection Menu
|
|
48
|
+
```
|
|
49
|
+
🧠 Snakes and Ladders
|
|
50
|
+
|
|
51
|
+
What would you like to do?
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Then use `ask_user` with choices immediately after the branded text.
|
|
55
|
+
|
|
56
|
+
**Important**: Do NOT wrap the menu output in triple-backtick code fences when displaying to user. Just output the text directly. Code fences cause terminal styling issues.
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# Document Templates
|
|
2
|
+
|
|
3
|
+
Templates used by Mother Brain when creating project documents.
|
|
4
|
+
|
|
5
|
+
## Vision Document Template (`vision.md`)
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# [Project Name] - Vision
|
|
9
|
+
|
|
10
|
+
## The Problem
|
|
11
|
+
[User's pain point/opportunity]
|
|
12
|
+
|
|
13
|
+
## The Vision
|
|
14
|
+
[3-12 month desired future state]
|
|
15
|
+
|
|
16
|
+
## Target Users
|
|
17
|
+
[Who benefits and how]
|
|
18
|
+
|
|
19
|
+
## Why This Matters
|
|
20
|
+
[The deeper purpose]
|
|
21
|
+
|
|
22
|
+
## Success Looks Like
|
|
23
|
+
[Measurable outcomes]
|
|
24
|
+
|
|
25
|
+
## Timeline & Constraints
|
|
26
|
+
[Constraints only - budget, skills, tech preferences. NOT timeline.]
|
|
27
|
+
|
|
28
|
+
## MVP Definition
|
|
29
|
+
[Minimum viable success]
|
|
30
|
+
|
|
31
|
+
## Strategic Themes
|
|
32
|
+
[3-5 key focus areas derived from vision]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Task Document Template (`tasks/NNN-task-name.md`)
|
|
36
|
+
|
|
37
|
+
```markdown
|
|
38
|
+
# Task NNN: [Task Name] - [Logic/UI/Animation]
|
|
39
|
+
|
|
40
|
+
**Status**: 🟡 In Progress
|
|
41
|
+
**Phase**: Phase 1 - Foundation
|
|
42
|
+
**Strategic Theme**: [Which theme this supports]
|
|
43
|
+
**Assigned**: [Date]
|
|
44
|
+
|
|
45
|
+
## Objective
|
|
46
|
+
[What this task achieves]
|
|
47
|
+
|
|
48
|
+
**Scope Clarity**:
|
|
49
|
+
- **Type**: [Logic | UI | Animation | Integration | Testing]
|
|
50
|
+
- **Focus**: [What this task implements specifically]
|
|
51
|
+
- **NOT in scope**: [What related features are in future tasks]
|
|
52
|
+
|
|
53
|
+
## Success Criteria
|
|
54
|
+
- [ ] [Specific, testable criterion]
|
|
55
|
+
- [ ] [Specific, testable criterion]
|
|
56
|
+
|
|
57
|
+
## Approach
|
|
58
|
+
[High-level approach]
|
|
59
|
+
|
|
60
|
+
## Dependencies
|
|
61
|
+
- [What must exist before this]
|
|
62
|
+
|
|
63
|
+
## Skills to Use
|
|
64
|
+
- [Relevant skill name and purpose]
|
|
65
|
+
|
|
66
|
+
## Deliverables
|
|
67
|
+
- [Specific files/outputs]
|
|
68
|
+
|
|
69
|
+
## Notes & Decisions
|
|
70
|
+
[Log decisions made during execution]
|
|
71
|
+
|
|
72
|
+
## Validation
|
|
73
|
+
[ ] Built successfully
|
|
74
|
+
[ ] Tested and verified
|
|
75
|
+
[ ] User confirmed it meets expectations
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Value Framework Template (`value-framework.md`)
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
# [Project Name] - Value Framework
|
|
82
|
+
|
|
83
|
+
> Living prioritization criteria derived from vision discovery.
|
|
84
|
+
> Used to order tasks, evaluate new ideas, and justify roadmap decisions.
|
|
85
|
+
> Updated as the project evolves and user priorities shift.
|
|
86
|
+
|
|
87
|
+
## Core Value Driver
|
|
88
|
+
[The #1 thing — e.g., "Users can track their backlog within 2 weeks"]
|
|
89
|
+
|
|
90
|
+
## Priority Dimensions (Weighted)
|
|
91
|
+
|
|
92
|
+
| Dimension | Weight | Description |
|
|
93
|
+
|-----------|--------|-------------|
|
|
94
|
+
| Vision Alignment | [1-5] | How directly does this serve the core vision? |
|
|
95
|
+
| MVP Proximity | [1-5] | Does this get us closer to a shippable release? |
|
|
96
|
+
| User Impact | [1-5] | How much does this improve the user experience? |
|
|
97
|
+
| Effort | [1-5] | How much work is required? (inverse: lower effort = higher priority) |
|
|
98
|
+
| Urgency | [1-5] | Is this time-sensitive or blocking other work? |
|
|
99
|
+
| Long-term Value | [1-5] | Does this pay off strategically over time? |
|
|
100
|
+
| Risk Reduction | [1-5] | Does this reduce technical or project risk? |
|
|
101
|
+
|
|
102
|
+
*Weights are 1 (low importance) to 5 (critical). Derived from user's stated values.*
|
|
103
|
+
|
|
104
|
+
## User's Stated Values
|
|
105
|
+
- Speed vs Quality preference: [from discovery]
|
|
106
|
+
- Abandon/deprioritize triggers: [from discovery]
|
|
107
|
+
- Core success metric: [from discovery]
|
|
108
|
+
|
|
109
|
+
## Scoring Guide
|
|
110
|
+
|
|
111
|
+
**Priority Score** = Sum of (Dimension Score × Weight) for each dimension
|
|
112
|
+
|
|
113
|
+
When comparing tasks:
|
|
114
|
+
1. Score each task across all dimensions (1-5 per dimension)
|
|
115
|
+
2. Multiply by weight
|
|
116
|
+
3. Higher total = higher priority
|
|
117
|
+
4. Ties broken by: Vision Alignment > MVP Proximity > User Impact
|
|
118
|
+
|
|
119
|
+
## Decision Rules
|
|
120
|
+
- Tasks scoring < [threshold] on Vision Alignment should be questioned
|
|
121
|
+
- Tasks scoring 5 on Urgency override normal ordering (blockers first)
|
|
122
|
+
- Tasks scoring 5 on MVP Proximity during Phase 1 get priority boost
|
|
123
|
+
- After MVP: User Impact and Long-term Value become more important
|
|
124
|
+
|
|
125
|
+
## Framework Evolution Log
|
|
126
|
+
|
|
127
|
+
| Date | Change | Reason |
|
|
128
|
+
|------|--------|--------|
|
|
129
|
+
| [Created] | Initial framework | Vision discovery |
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Roadmap Template (`roadmap.md`)
|
|
133
|
+
|
|
134
|
+
```markdown
|
|
135
|
+
# [Project Name] - Roadmap
|
|
136
|
+
|
|
137
|
+
## Delivery Strategy (Research-Based)
|
|
138
|
+
**Project Type**: [From research]
|
|
139
|
+
**MVP Approach**: [What minimum viable means for this type]
|
|
140
|
+
**Launch Pattern**: [How to reach users]
|
|
141
|
+
**Iteration Strategy**: [How to improve post-launch]
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Phase 1: MVP - [Core Problem Solution]
|
|
146
|
+
**Goal**: Shortest path to deliver user value
|
|
147
|
+
**Success Gate**: [MVP criteria from vision]
|
|
148
|
+
**Strategy**: Solve core problem, defer everything else
|
|
149
|
+
|
|
150
|
+
**Deliverables** (ordered by Value Framework score):
|
|
151
|
+
- [ ] **Task 001**: [Description] — *Score: [N]*
|
|
152
|
+
- [ ] **Task 002**: [Description] — *Score: [N]*
|
|
153
|
+
|
|
154
|
+
**Why this order**: [Explanation based on Value Framework]
|
|
155
|
+
|
|
156
|
+
**Skills Available**: [List relevant skills]
|
|
157
|
+
|
|
158
|
+
**Definition of Done** (from vision + research):
|
|
159
|
+
- [Criterion from vision]
|
|
160
|
+
- [Launch criterion from research]
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Phase 2+: Post-MVP Iteration
|
|
165
|
+
**Strategy**: [Iteration approach from research]
|
|
166
|
+
**Trigger**: Phase 1 complete + [feedback mechanism]
|
|
167
|
+
|
|
168
|
+
**Planned Enhancements**:
|
|
169
|
+
- [ ] **Task [N]**: [Enhancement] — *Score: [N]*
|
|
170
|
+
|
|
171
|
+
**Note**: These tasks may change based on user feedback
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Future Enhancements (Post-MVP Backlog)
|
|
176
|
+
- [ ] [Feature not essential to core problem]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Learning Log Template (`learning-log.md`)
|
|
180
|
+
|
|
181
|
+
```markdown
|
|
182
|
+
# Learning Log
|
|
183
|
+
|
|
184
|
+
## [Date] - [Issue Fixed]
|
|
185
|
+
**Skill**: [Which skill was healed]
|
|
186
|
+
**Problem**: [What went wrong]
|
|
187
|
+
**Root Cause**: [Why it happened]
|
|
188
|
+
**Fix Applied**: [How it was fixed]
|
|
189
|
+
**Lesson Learned**: [General principle extracted]
|
|
190
|
+
**Improvement Made**: [What was updated to prevent recurrence]
|
|
191
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File Structure Created by Mother Brain
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
project-root/
|
|
5
|
+
├── .mother-brain/ # Mother Brain isolated directory (project docs only)
|
|
6
|
+
│ ├── docs/
|
|
7
|
+
│ │ ├── vision.md # Project vision (what, who, when, WHY)
|
|
8
|
+
│ │ ├── roadmap.md # Phased execution plan
|
|
9
|
+
│ │ ├── learning-log.md # Self-improvement tracking (PRESERVED on eject)
|
|
10
|
+
│ │ └── tasks/
|
|
11
|
+
│ │ ├── 001-task-name.md # Individual task documents
|
|
12
|
+
│ │ ├── 002-task-name.md
|
|
13
|
+
│ │ └── ...
|
|
14
|
+
│ ├── project-brain.md # Project-specific learnings (managed by Child Brain)
|
|
15
|
+
│ ├── session-state.json # Current session state (tracks skillsCreated)
|
|
16
|
+
│ └── README.md # Mother Brain directory info
|
|
17
|
+
├── .github/
|
|
18
|
+
│ └── skills/ # ALL skills (framework + project-specific)
|
|
19
|
+
│ ├── mother-brain/ # Core framework (never delete)
|
|
20
|
+
│ ├── child-brain/ # Core framework - learning orchestrator (never delete)
|
|
21
|
+
│ ├── skill-creator/ # Core framework (never delete)
|
|
22
|
+
│ ├── elder-brain/ # Core framework - knowledge vault (never delete)
|
|
23
|
+
│ ├── [project-skill-1]/ # Project-specific (tracked in session-state.json)
|
|
24
|
+
│ └── [project-skill-2]/ # Project-specific (tracked in session-state.json)
|
|
25
|
+
├── .agents/
|
|
26
|
+
│ └── skills/ # Symlinks to .github/skills/ (Codex CLI compatibility)
|
|
27
|
+
│ ├── mother-brain/ → ../../.github/skills/mother-brain/
|
|
28
|
+
│ ├── child-brain/ → ../../.github/skills/child-brain/
|
|
29
|
+
│ ├── skill-creator/ → ../../.github/skills/skill-creator/
|
|
30
|
+
│ └── elder-brain/ → ../../.github/skills/elder-brain/
|
|
31
|
+
├── experience-vault/ # Cross-project domain knowledge (managed by Elder Brain)
|
|
32
|
+
│ ├── README.md
|
|
33
|
+
│ ├── platforms/ # Platform-specific gotchas
|
|
34
|
+
│ ├── ui/ # UI/UX patterns and gotchas
|
|
35
|
+
│ ├── security/ # Auth, data exposure patterns
|
|
36
|
+
│ ├── deployment/ # Deployment gotchas per platform
|
|
37
|
+
│ └── apis/ # API integration patterns
|
|
38
|
+
├── src/ # Source code (standard structure)
|
|
39
|
+
├── tests/ # Tests (standard structure)
|
|
40
|
+
├── README.md # Project overview
|
|
41
|
+
└── [other standard project files]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Key Principles
|
|
45
|
+
- **Dual CLI Compatibility**: Skills live in `.github/skills/` (GitHub Copilot CLI, source of truth) and are symlinked to `.agents/skills/` (Codex CLI). Relative symlinks survive git clone. Falls back to copy if symlinks fail.
|
|
46
|
+
- **Skill Tracking**: `session-state.json` tracks which skills are project-specific via `skillsCreated` array
|
|
47
|
+
- **Easy Ejection**: Delete skills listed in `skillsCreated`, keep core framework skills
|
|
48
|
+
- **Isolated Docs**: Project documentation in `.mother-brain/docs/` (separate from project code)
|
|
49
|
+
- **Learning Preservation**: `learning-log.md` is preserved on eject for continuous improvement
|
|
50
|
+
- **Learning Separation**: Project Brain stores project-specific learnings; Mother Brain stores only meta-level process improvements
|
|
51
|
+
- **Elder Brain**: `experience-vault/` stores cross-project domain knowledge, managed by Elder Brain skill
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Output Formatting Rules
|
|
2
|
+
|
|
3
|
+
## Vertical Lists ONLY (No exceptions)
|
|
4
|
+
|
|
5
|
+
**NEVER do this (horizontal cramming):**
|
|
6
|
+
```
|
|
7
|
+
❌ Skills: design-system, supabase-integration, maps-integration, component-builder
|
|
8
|
+
❌ Features: Discovery • Ratings • Tracking • Routes
|
|
9
|
+
❌ Tasks completed: 1, 2, 3, 5
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
**ALWAYS do this (vertical lists):**
|
|
13
|
+
```
|
|
14
|
+
✅ Skills created:
|
|
15
|
+
- design-system
|
|
16
|
+
- supabase-integration
|
|
17
|
+
- maps-integration
|
|
18
|
+
- component-builder
|
|
19
|
+
|
|
20
|
+
✅ Features:
|
|
21
|
+
- Discovery
|
|
22
|
+
- Ratings
|
|
23
|
+
- Tracking
|
|
24
|
+
- Routes
|
|
25
|
+
|
|
26
|
+
✅ Tasks completed:
|
|
27
|
+
- Task 1
|
|
28
|
+
- Task 2
|
|
29
|
+
- Task 3
|
|
30
|
+
- Task 5
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Each item gets its own line. No exceptions.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Issue Reporting via Freeform Input
|
|
2
|
+
|
|
3
|
+
## Simplified Approach: Use freeform text for issue reporting
|
|
4
|
+
|
|
5
|
+
- Use `allow_freeform: true` on all `ask_user` calls (this is the default)
|
|
6
|
+
- The tool automatically adds "Other" as the last option for freeform text input
|
|
7
|
+
- **No explicit "Report Issue" option needed** - users can type their issues in freeform
|
|
8
|
+
- When user's freeform input contains issue-related keywords, jump to **Step 2A: Update Mother Brain**
|
|
9
|
+
|
|
10
|
+
## Issue Detection Keywords
|
|
11
|
+
Check freeform responses for:
|
|
12
|
+
- "issue", "problem", "broken", "bug", "not working", "wrong", "error"
|
|
13
|
+
- "doesn't work", "fix", "report", "something's wrong", "this is broken"
|
|
14
|
+
|
|
15
|
+
## Handling Freeform Responses
|
|
16
|
+
1. Check if response contains issue-related keywords
|
|
17
|
+
2. If issue detected:
|
|
18
|
+
- Capture current context (step, action, phase, task)
|
|
19
|
+
- Display: "🚨 **Issue Detected**"
|
|
20
|
+
- Jump to Step 2A with context
|
|
21
|
+
3. If not an issue: Process response normally and continue workflow
|
|
22
|
+
|
|
23
|
+
## When issue is detected in freeform
|
|
24
|
+
1. Capture current context
|
|
25
|
+
2. Display: "🚨 **Issue Detected from your feedback**"
|
|
26
|
+
3. Pre-populate issue context: "You were at [Step X], attempting [Action Y]"
|
|
27
|
+
4. Jump to Step 2A with context
|
|
28
|
+
5. Apply 3-layered troubleshooting approach (what happened, root cause, fix)
|
|
29
|
+
|
|
30
|
+
This ensures users can ALWAYS break out of bad behavior and report issues in-context.
|
|
31
|
+
|
|
32
|
+
## Handling "Report Issue" Selection
|
|
33
|
+
|
|
34
|
+
When user selects "🚨 Report Issue (something's not working)" from ANY `ask_user`:
|
|
35
|
+
|
|
36
|
+
1. **Capture Context:**
|
|
37
|
+
- Current Step: [Step number/name being executed]
|
|
38
|
+
- Action Attempted: [What Mother Brain was trying to do]
|
|
39
|
+
- Phase: [If in project: current phase]
|
|
40
|
+
- Task: [If in task execution: task number/name]
|
|
41
|
+
- Last Command: [Last tool used, if applicable]
|
|
42
|
+
|
|
43
|
+
2. **Display Issue Capture:**
|
|
44
|
+
```
|
|
45
|
+
🚨 **Issue Reporting Mode Activated**
|
|
46
|
+
|
|
47
|
+
I detected you triggered issue reporting from:
|
|
48
|
+
- Step: [Current step]
|
|
49
|
+
- Action: [What was happening]
|
|
50
|
+
[If in task] - Task: [Task number/name]
|
|
51
|
+
|
|
52
|
+
This will help me understand what went wrong.
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
3. **Jump to Step 2A** (Update Mother Brain) with pre-populated context
|
|
56
|
+
|
|
57
|
+
4. **Ask for issue description** with context already captured:
|
|
58
|
+
- "What went wrong or didn't work as expected?"
|
|
59
|
+
- Pre-fill with context: "At [Step], while [Action], the issue was: [user describes]"
|
|
60
|
+
|
|
61
|
+
This pattern ensures NO workflow ever traps the user—there's always an escape hatch.
|