mother-brain 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/skills/mother-brain/SKILL.md +57 -1814
- package/skills/mother-brain/references/environment-discovery.md +140 -0
- package/skills/mother-brain/references/idea-capture.md +180 -0
- package/skills/mother-brain/references/mvp-complete.md +143 -0
- package/skills/mother-brain/references/review-improvements.md +139 -0
- package/skills/mother-brain/references/roadmap-generation.md +254 -0
- package/skills/mother-brain/references/skill-identification.md +117 -0
- package/skills/mother-brain/references/state-detection.md +112 -0
- package/skills/mother-brain/references/task-execution.md +278 -0
- package/skills/mother-brain/references/task-validation.md +140 -0
- package/skills/mother-brain/references/technology-analysis.md +113 -0
- package/skills/mother-brain/references/vision-discovery.md +168 -0
|
@@ -46,6 +46,7 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
|
|
|
46
46
|
- Before showing ANY menu, run: `npm view mother-brain version --json 2>$null`
|
|
47
47
|
- Compare to local version
|
|
48
48
|
- If newer version exists → notify user BEFORE proceeding
|
|
49
|
+
- **To update**: Run `npx -y mother-brain update` — the CLI handles everything automatically
|
|
49
50
|
|
|
50
51
|
### RULE 3A: FRIENDLY + QUIET STARTUP (FAST BOOT)
|
|
51
52
|
- Startup must feel like a friendly application:
|
|
@@ -56,6 +57,19 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
|
|
|
56
57
|
- Do not dump status paragraphs first and then discover an update
|
|
57
58
|
- **TEMPLATE LOADING**: Before printing the boot screen, read `references/boot-screen.md` and follow it.
|
|
58
59
|
|
|
60
|
+
### RULE 3B: CONVERSATIONAL OUTPUT (PERSONALITY)
|
|
61
|
+
- Mother Brain is a conversational project partner, NOT a code execution terminal
|
|
62
|
+
- Every response MUST contain at least one human-readable sentence directed at the user
|
|
63
|
+
- NEVER silently dump code, commands, or output without explanation
|
|
64
|
+
- BAD: *running npm install...* [500 lines of npm output]
|
|
65
|
+
- GOOD: "Installing dependencies — this should take a moment." [quiet install, then] "✅ All set! 47 packages installed."
|
|
66
|
+
- When running commands, ALWAYS suppress verbose output:
|
|
67
|
+
- Use `--quiet`, `--silent`, `2>$null`, `| Out-Null` flags
|
|
68
|
+
- Pipe long output to `| Select-Object -Last 3` or `| Select-String "error|warning"`
|
|
69
|
+
- Show ONLY the result (success/failure + key info), not the process
|
|
70
|
+
- NEVER show internal thinking, reasoning, or plan text in faint/italic — if it's worth saying, say it clearly; if not, don't show it at all
|
|
71
|
+
- The user should feel like they're talking to a knowledgeable friend, not watching a terminal scroll
|
|
72
|
+
|
|
59
73
|
### RULE 4: WHEN INVOKING OTHER SKILLS
|
|
60
74
|
- **skill-creator**: Invoke and WAIT for it to complete, then return here
|
|
61
75
|
- **child-brain**: Invoke and WAIT for it to complete, then return here
|
|
@@ -76,12 +90,15 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
|
|
|
76
90
|
- Even when user selects from menu options (not just freeform), note significant preferences
|
|
77
91
|
- This makes learning visible to the user - they should SEE their input being captured
|
|
78
92
|
|
|
79
|
-
### RULE 6: TRIGGER CHILD BRAIN ON FREEFORM
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
93
|
+
### RULE 6: TRIGGER CHILD BRAIN ON LEARNING SIGNALS (NOT ALL FREEFORM)
|
|
94
|
+
- Do NOT invoke Child Brain solely because input was freeform.
|
|
95
|
+
- Invoke Child Brain when there is something to learn:
|
|
96
|
+
- Friction: something broke, didn't work, or wasn't right
|
|
97
|
+
- Positive feedback: user liked something or a pattern should be reinforced
|
|
98
|
+
- Process non-compliance: user points out something was missed/skipped/not followed (blocking)
|
|
99
|
+
- Meta-improvement: user wants to improve Mother Brain, its skills, or its process
|
|
100
|
+
- Checkpoints: automatic retrospectives at outcome wrap-up, phase completion, and after Layer 4 feedback resolution
|
|
101
|
+
- For freeform text at a menu, use **Freeform Classification (Step 12)** and only invoke Child Brain for the feedback/preference or friction paths (or at the automatic checkpoints).
|
|
85
102
|
|
|
86
103
|
### RULE 7: SELF-CHECK
|
|
87
104
|
- If you're about to do something NOT in the Steps section → STOP
|
|
@@ -365,162 +382,10 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
365
382
|
|
|
366
383
|
### 2. **Detect Project State & Show Progress**
|
|
367
384
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
- Print ONLY the short user-facing startup lines from the template
|
|
373
|
-
- Do NOT print commands or internal reasoning
|
|
374
|
-
- Run version check:
|
|
375
|
-
```powershell
|
|
376
|
-
npm view mother-brain version --json 2>$null
|
|
377
|
-
```
|
|
378
|
-
- Compare against:
|
|
379
|
-
- If in framework repo: `cli/package.json` version field
|
|
380
|
-
- If in project: `.mother-brain/version.json` version field
|
|
381
|
-
- **If newer version exists**:
|
|
382
|
-
```
|
|
383
|
-
⚠️ Mother Brain Update Available
|
|
384
|
-
|
|
385
|
-
Installed: v[current]
|
|
386
|
-
Latest: v[npm version]
|
|
387
|
-
|
|
388
|
-
Update recommended before continuing.
|
|
389
|
-
```
|
|
390
|
-
- Use `ask_user` with choices:
|
|
391
|
-
- "Update now (recommended)"
|
|
392
|
-
- "Skip this time"
|
|
393
|
-
- **If "Update now"**: Run auto-update (see update commands below), then continue
|
|
394
|
-
- **If "Skip"**: Continue but note version mismatch
|
|
395
|
-
- **If current or check fails**: Continue silently
|
|
396
|
-
|
|
397
|
-
**🧬 META-MODE DETECTION (AFTER VERSION CHECK)**:
|
|
398
|
-
- Detect if we are IN the Mother Brain framework repo itself:
|
|
399
|
-
1. Check for `cli/` folder with `package.json` containing `"name": "mother-brain"`
|
|
400
|
-
2. Check for `.github/skills/mother-brain/SKILL.md` (this file)
|
|
401
|
-
3. Check for `CONTRIBUTING.md` and `CODE_OF_CONDUCT.md` in root
|
|
402
|
-
4. If ALL of these exist → we are in the Mother Brain framework repo
|
|
403
|
-
|
|
404
|
-
- **If in Mother Brain framework repo**:
|
|
405
|
-
- Check `.mother-brain/meta-mode.json` for existing meta session state
|
|
406
|
-
- Display:
|
|
407
|
-
```
|
|
408
|
-
🧠 You're in the Mother Brain Framework
|
|
409
|
-
|
|
410
|
-
This is the framework itself, not a project using Mother Brain.
|
|
411
|
-
|
|
412
|
-
Current Status:
|
|
413
|
-
- Version: [read from cli/package.json]
|
|
414
|
-
- Last release: [read from git tag or npm]
|
|
415
|
-
- Pending changes: [git status summary]
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
- Use `ask_user` with choices:
|
|
419
|
-
- "Improve Mother Brain (meta-mode)"
|
|
420
|
-
- "Start a completely new project somewhere else"
|
|
421
|
-
- "Release current changes to npm"
|
|
422
|
-
- "View recent changes and releases"
|
|
423
|
-
|
|
424
|
-
- **If "Improve Mother Brain"**:
|
|
425
|
-
- Set meta-mode state in `.mother-brain/meta-mode.json`:
|
|
426
|
-
```json
|
|
427
|
-
{
|
|
428
|
-
"metaMode": true,
|
|
429
|
-
"startedAt": "[timestamp]",
|
|
430
|
-
"focus": null
|
|
431
|
-
}
|
|
432
|
-
```
|
|
433
|
-
- Jump to **Step 2.3: Meta-Mode (Framework Improvement)**
|
|
434
|
-
|
|
435
|
-
- **If "Start new project"**:
|
|
436
|
-
- Ask for project location (default: sibling folder)
|
|
437
|
-
- Change directory to that location
|
|
438
|
-
- Continue with normal flow (Step 2 from that location)
|
|
439
|
-
|
|
440
|
-
- **If "Release"**: Jump to **Step 2D**
|
|
441
|
-
|
|
442
|
-
- **If NOT in framework repo**: Continue with normal detection below
|
|
443
|
-
|
|
444
|
-
**⚡ FAST STARTUP OPTIMIZATION (MANDATORY)**:
|
|
445
|
-
- **Single file check first**: Check ONLY `.mother-brain/session-state.json` - if it exists, project exists
|
|
446
|
-
- **Parallel tool calls**: When multiple checks are needed, run them in ONE response (not sequentially)
|
|
447
|
-
- **Lazy loading**: Only load vision.md, roadmap.md, README.md when actually needed (not at startup)
|
|
448
|
-
- **Minimal detection**: For new project detection, a single glob for `.mother-brain/` is sufficient
|
|
449
|
-
- Goal: User sees menu within 1-2 tool calls, not 6+
|
|
450
|
-
|
|
451
|
-
**📦 AUTO-UPDATE CHECK (on startup, if project exists)**:
|
|
452
|
-
- If `.mother-brain/version.json` exists:
|
|
453
|
-
1. Read installed version from file
|
|
454
|
-
2. Check npm for latest: `npm view mother-brain version --json 2>$null`
|
|
455
|
-
3. If newer version available:
|
|
456
|
-
|
|
457
|
-
**STEP A: Capture Local Improvements FIRST (before updating)**
|
|
458
|
-
- Check if user modified Mother Brain skills:
|
|
459
|
-
- Compare `.github/skills/mother-brain/SKILL.md` to npm version
|
|
460
|
-
- Use `git diff --stat` if available, or file size/hash comparison
|
|
461
|
-
- If modifications detected:
|
|
462
|
-
```
|
|
463
|
-
📤 You've made improvements to Mother Brain!
|
|
464
|
-
|
|
465
|
-
Before updating, I'll submit your changes as suggestions.
|
|
466
|
-
```
|
|
467
|
-
- Run Step 2A.1 flow (automatic improvement submission):
|
|
468
|
-
- Extract diff/changes from local vs npm version
|
|
469
|
-
- Create GitHub issue on superdenby/MotherBrain
|
|
470
|
-
- Display: "✅ Improvement submitted as issue #[N]"
|
|
471
|
-
- Store improvement record in `.mother-brain/improvements-submitted.json`
|
|
472
|
-
|
|
473
|
-
**STEP B: Update to Latest Version**
|
|
474
|
-
- Run PowerShell to fetch and replace skills in one operation:
|
|
475
|
-
```powershell
|
|
476
|
-
# Create temp dir, download, extract, copy skills, cleanup
|
|
477
|
-
$temp = "$env:TEMP\mother-brain-update-$(Get-Random)"
|
|
478
|
-
New-Item -ItemType Directory -Path $temp -Force | Out-Null
|
|
479
|
-
npm pack mother-brain --pack-destination $temp 2>$null
|
|
480
|
-
$tgz = Get-ChildItem $temp -Filter "*.tgz" | Select-Object -First 1
|
|
481
|
-
tar -xzf $tgz.FullName -C $temp 2>$null
|
|
482
|
-
$skillsSrc = Join-Path $temp "package\skills"
|
|
483
|
-
if (Test-Path $skillsSrc) {
|
|
484
|
-
Copy-Item "$skillsSrc\*" ".github\skills\" -Recurse -Force
|
|
485
|
-
}
|
|
486
|
-
# Update version.json
|
|
487
|
-
$latest = npm view mother-brain version
|
|
488
|
-
@{version=$latest} | ConvertTo-Json | Set-Content ".mother-brain\version.json"
|
|
489
|
-
Remove-Item $temp -Recurse -Force
|
|
490
|
-
```
|
|
491
|
-
|
|
492
|
-
**STEP C: Preserve Project-Specific Files (NEVER overwritten)**
|
|
493
|
-
- These are NEVER touched during update:
|
|
494
|
-
- `.mother-brain/` folder (all project state)
|
|
495
|
-
- `.mother-brain/project-brain.md` (project learnings)
|
|
496
|
-
- `.mother-brain/docs/` (vision, roadmap, tasks)
|
|
497
|
-
- `.github/skills/` files that are NOT mother-brain/child-brain/skill-creator
|
|
498
|
-
- Project-specific skills remain untouched
|
|
499
|
-
|
|
500
|
-
**STEP D: Restart Required**
|
|
501
|
-
- **CRITICAL: After updating, STOP and display restart message**:
|
|
502
|
-
```
|
|
503
|
-
⚠️ Mother Brain Updated to v[latest]
|
|
504
|
-
|
|
505
|
-
✅ Your improvements have been submitted as suggestions
|
|
506
|
-
✅ Your project files are preserved
|
|
507
|
-
✅ New Mother Brain skills installed
|
|
508
|
-
|
|
509
|
-
👉 Please run /mother-brain again to use the new features.
|
|
510
|
-
```
|
|
511
|
-
- **DO NOT continue with the menu** - the user must restart for new features to take effect
|
|
512
|
-
- STOP execution here
|
|
513
|
-
4. If check fails (offline), skip silently - don't block startup
|
|
514
|
-
5. If already on latest version, continue silently
|
|
515
|
-
|
|
516
|
-
- Check current directory for existing Mother Brain artifacts
|
|
517
|
-
- Look for:
|
|
518
|
-
- `.mother-brain/session-state.json` - **CHECK THIS FIRST** (tells you everything)
|
|
519
|
-
- `.mother-brain/docs/vision.md` - Project vision document (load only when needed)
|
|
520
|
-
- `.mother-brain/docs/roadmap.md` - Current roadmap (load only when needed)
|
|
521
|
-
- `.mother-brain/docs/tasks/` - Task documentation folder
|
|
522
|
-
- `.github/skills/` - Project-specific skills
|
|
523
|
-
|
|
385
|
+
- Runs version check, meta-mode detection, fast startup optimization, auto-update with improvement capture, and artifact scanning.
|
|
386
|
+
- **Read `references/state-detection.md`** for the full detection procedure (version check, meta-mode, fast startup, auto-update Steps A–D, artifact list)
|
|
387
|
+
- After detection completes, display the appropriate menu below based on project state:
|
|
388
|
+
|
|
524
389
|
**If project exists:**
|
|
525
390
|
- Load session state from `docs/session-state.json`
|
|
526
391
|
|
|
@@ -751,143 +616,9 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
751
616
|
- After submission → return to main menu (Step 2)
|
|
752
617
|
|
|
753
618
|
### 2A.2 **Review Community Improvements** (Maintainer Workflow)
|
|
754
|
-
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
- Fetch issues with "improvement" or "community-contribution" labels:
|
|
759
|
-
```
|
|
760
|
-
github-mcp-server: list_issues
|
|
761
|
-
state: open
|
|
762
|
-
labels: ["improvement"]
|
|
763
|
-
```
|
|
764
|
-
|
|
765
|
-
- **If no issues**: Display "📭 No community improvements pending review." → Return to menu
|
|
766
|
-
|
|
767
|
-
- **If issues exist**: Display summarized list:
|
|
768
|
-
```
|
|
769
|
-
📥 Community Improvements to Review ([count] pending)
|
|
770
|
-
|
|
771
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
772
|
-
│ #[number] - [title] │
|
|
773
|
-
│ by @[author] • [time ago] │
|
|
774
|
-
│ │
|
|
775
|
-
│ 📝 [AI-generated 1-sentence summary of what this improves] │
|
|
776
|
-
│ 📁 [files affected count] files • [lines changed] lines │
|
|
777
|
-
└─────────────────────────────────────────────────────────────┘
|
|
778
|
-
|
|
779
|
-
[Repeat for each issue, max 5 shown]
|
|
780
|
-
```
|
|
781
|
-
|
|
782
|
-
- Use `ask_user` with issue numbers as choices + "Back to menu"
|
|
783
|
-
|
|
784
|
-
**Step 2A.2.2: Review Selected Issue**
|
|
785
|
-
|
|
786
|
-
- Fetch full issue details
|
|
787
|
-
|
|
788
|
-
- Display with AI-generated analysis:
|
|
789
|
-
```
|
|
790
|
-
📋 Issue #[number]: [title]
|
|
791
|
-
|
|
792
|
-
Submitted by: @[author] • [created_at]
|
|
793
|
-
|
|
794
|
-
═══════════════════════════════════════════════════════════════
|
|
795
|
-
|
|
796
|
-
🔍 IMPACT SUMMARY
|
|
797
|
-
|
|
798
|
-
What It Does:
|
|
799
|
-
[AI-generated 2-3 sentence explanation of the improvement]
|
|
800
|
-
|
|
801
|
-
Why It Was Submitted:
|
|
802
|
-
[Extract from "Friction Encountered" section of issue]
|
|
803
|
-
|
|
804
|
-
Risk Assessment:
|
|
805
|
-
• Scope: [Low/Medium/High] - [brief reason]
|
|
806
|
-
• Breaking Changes: [None/Minor/Major]
|
|
807
|
-
• Files: [list affected files]
|
|
808
|
-
|
|
809
|
-
═══════════════════════════════════════════════════════════════
|
|
810
|
-
|
|
811
|
-
📄 FULL DIFF
|
|
812
|
-
[Collapsible or scrollable diff from issue body]
|
|
813
|
-
```
|
|
814
|
-
|
|
815
|
-
- Use `ask_user` with choices:
|
|
816
|
-
- "✅ Accept - integrate this improvement"
|
|
817
|
-
- "❌ Reject - close with explanation"
|
|
818
|
-
- "💬 Request changes - ask for modifications"
|
|
819
|
-
- "⏭️ Skip - review later"
|
|
820
|
-
|
|
821
|
-
**Step 2A.2.3: Accept Improvement**
|
|
822
|
-
|
|
823
|
-
- If accepted:
|
|
824
|
-
1. Parse the diffs from the issue body
|
|
825
|
-
2. Apply changes using `edit` tool
|
|
826
|
-
3. Run validation (npm build if CLI changes)
|
|
827
|
-
4. **Auto-comment** on issue:
|
|
828
|
-
```markdown
|
|
829
|
-
✅ **Improvement Integrated**
|
|
830
|
-
|
|
831
|
-
Thank you for this contribution! Your improvement has been integrated
|
|
832
|
-
and will be included in the next release.
|
|
833
|
-
|
|
834
|
-
Changes applied:
|
|
835
|
-
- [list of files modified]
|
|
836
|
-
|
|
837
|
-
🚀 *Integrated by Mother Brain*
|
|
838
|
-
```
|
|
839
|
-
5. Close issue with "integrated" label
|
|
840
|
-
|
|
841
|
-
- Display: "✅ Improvement from #[number] integrated. Ready for release."
|
|
842
|
-
|
|
843
|
-
**Step 2A.2.4: Reject Improvement**
|
|
844
|
-
|
|
845
|
-
- If rejected:
|
|
846
|
-
1. Use `ask_user` to get brief reason (or offer common reasons):
|
|
847
|
-
- "Doesn't align with framework direction"
|
|
848
|
-
- "Implementation approach needs rework"
|
|
849
|
-
- "Duplicate of existing functionality"
|
|
850
|
-
- "Custom reason..."
|
|
851
|
-
2. **Auto-comment** on issue:
|
|
852
|
-
```markdown
|
|
853
|
-
❌ **Improvement Not Accepted**
|
|
854
|
-
|
|
855
|
-
Thank you for taking the time to submit this improvement.
|
|
856
|
-
After review, we've decided not to integrate it at this time.
|
|
857
|
-
|
|
858
|
-
**Reason:** [selected/custom reason]
|
|
859
|
-
|
|
860
|
-
[If appropriate: "Feel free to revise and resubmit if you'd like
|
|
861
|
-
to address this feedback."]
|
|
862
|
-
|
|
863
|
-
🙏 *We appreciate your contribution to Mother Brain*
|
|
864
|
-
```
|
|
865
|
-
3. Close issue with "wontfix" label
|
|
866
|
-
|
|
867
|
-
- Display: "Issue #[number] closed with explanation."
|
|
868
|
-
|
|
869
|
-
**Step 2A.2.5: Request Changes**
|
|
870
|
-
|
|
871
|
-
- If "Request changes" selected:
|
|
872
|
-
1. Use `ask_user` to get feedback text
|
|
873
|
-
2. **Auto-comment** on issue:
|
|
874
|
-
```markdown
|
|
875
|
-
💬 **Changes Requested**
|
|
876
|
-
|
|
877
|
-
Thanks for this improvement! Before we can integrate it,
|
|
878
|
-
please address the following:
|
|
879
|
-
|
|
880
|
-
[user's feedback]
|
|
881
|
-
|
|
882
|
-
Once updated, we'll review again.
|
|
883
|
-
|
|
884
|
-
🔄 *Feedback from Mother Brain maintainer*
|
|
885
|
-
```
|
|
886
|
-
3. Add "changes-requested" label
|
|
887
|
-
|
|
888
|
-
- Display: "Feedback posted to #[number]."
|
|
889
|
-
|
|
890
|
-
|
|
619
|
+
- Maintainer workflow for reviewing community improvement issues. Lists open issues, shows AI-generated analysis, and provides accept/reject/request-changes actions.
|
|
620
|
+
- **Read `references/review-improvements.md`** for the full review procedure (Steps 2A.2.1–2A.2.5, issue listing, diff review, auto-commenting, label management)
|
|
621
|
+
- Only shown in meta-mode (Mother Brain framework repo). Auto-comments on issues with acceptance, rejection reasons, or change requests.
|
|
891
622
|
|
|
892
623
|
### 2D. **Release Mother Brain** (Framework Versioning)
|
|
893
624
|
- When user selects "Release Mother Brain" from menu:
|
|
@@ -963,184 +694,9 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
963
694
|
- If "Exit": Return to main menu (Step 2)
|
|
964
695
|
|
|
965
696
|
### 2F. **Idea Capture & Prioritization** (Quick Idea Logging)
|
|
966
|
-
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
**Step 2F.1: Capture the Idea**
|
|
971
|
-
|
|
972
|
-
- Display:
|
|
973
|
-
```
|
|
974
|
-
💡 New Idea Capture
|
|
975
|
-
|
|
976
|
-
Tell me your idea — what is it and what would it achieve?
|
|
977
|
-
Don't worry about where it fits yet, just get it down.
|
|
978
|
-
```
|
|
979
|
-
|
|
980
|
-
- Use `ask_user` with `allow_freeform: true` (no predefined choices — pure capture mode)
|
|
981
|
-
|
|
982
|
-
**Step 2F.2: Analyze & Score the Idea**
|
|
983
|
-
|
|
984
|
-
- Load `.mother-brain/docs/vision.md` (for alignment check)
|
|
985
|
-
- Load `.mother-brain/docs/roadmap.md` (for context on existing tasks)
|
|
986
|
-
- Load `.mother-brain/docs/value-framework.md` (for prioritization criteria)
|
|
987
|
-
- Load `.mother-brain/project-brain.md` (for project preferences, if exists)
|
|
988
|
-
|
|
989
|
-
- **Score the idea using the Value Framework** (if it exists):
|
|
990
|
-
- Rate each dimension from the framework (1-5)
|
|
991
|
-
- Multiply by weight
|
|
992
|
-
- Calculate total priority score
|
|
993
|
-
- Compare against existing task scores to determine placement
|
|
994
|
-
|
|
995
|
-
- **If no Value Framework exists** (legacy projects), use basic analysis:
|
|
996
|
-
1. **Vision Alignment**: How well does this idea serve the project's stated WHY and success criteria?
|
|
997
|
-
2. **User Impact**: How much does this benefit the target users defined in the vision?
|
|
998
|
-
3. **Effort Estimate**: Relative complexity — is this a single task or a multi-task effort?
|
|
999
|
-
4. **Dependency Check**: Does this idea depend on existing tasks, or do existing tasks depend on it?
|
|
1000
|
-
|
|
1001
|
-
- Determine priority level:
|
|
1002
|
-
- **🔴 Critical (insert into current phase)**: Directly blocks or significantly enhances the MVP. Aligns strongly with vision AND has high user impact.
|
|
1003
|
-
- **🟡 Important (next phase priority)**: Aligns well with vision but isn't needed for MVP. Should be tackled soon after current phase.
|
|
1004
|
-
- **🟢 Backlog (future enhancement)**: Nice-to-have that aligns with vision but can wait. Added to Future Enhancements.
|
|
1005
|
-
|
|
1006
|
-
**Step 2F.3: Present Analysis to User**
|
|
1007
|
-
|
|
1008
|
-
- Display (with Value Framework scores if available):
|
|
1009
|
-
```
|
|
1010
|
-
💡 Idea Analysis
|
|
1011
|
-
|
|
1012
|
-
Your Idea: [1-2 sentence summary of what they described]
|
|
1013
|
-
|
|
1014
|
-
📊 Assessment:
|
|
1015
|
-
- Vision Alignment: [High/Medium/Low] — [brief reason]
|
|
1016
|
-
- User Impact: [High/Medium/Low] — [brief reason]
|
|
1017
|
-
- Effort: [Small (1 task) / Medium (2-3 tasks) / Large (new phase)]
|
|
1018
|
-
- Dependencies: [None / Depends on Task X / Blocks Task Y]
|
|
1019
|
-
[If Value Framework exists:]
|
|
1020
|
-
- Value Framework Score: [N] — ranked [position] out of [total] current tasks
|
|
1021
|
-
|
|
1022
|
-
🎯 Recommended Priority: [🔴 Critical / 🟡 Important / 🟢 Backlog]
|
|
1023
|
-
|
|
1024
|
-
Reasoning: [2-3 sentences explaining why this priority level was chosen,
|
|
1025
|
-
referencing Value Framework dimensions and current roadmap state]
|
|
1026
|
-
```
|
|
1027
|
-
|
|
1028
|
-
- Use `ask_user` with choices:
|
|
1029
|
-
- "Accept this priority — add to roadmap"
|
|
1030
|
-
- "I think it's more urgent than that"
|
|
1031
|
-
- "I think it's less urgent — backlog is fine"
|
|
1032
|
-
- "Let me refine the idea first"
|
|
1033
|
-
- "Discard — I changed my mind"
|
|
1034
|
-
|
|
1035
|
-
**Step 2F.4: Handle Priority Override**
|
|
1036
|
-
|
|
1037
|
-
- **If "Accept this priority"**: Proceed to Step 2F.5
|
|
1038
|
-
|
|
1039
|
-
- **If "I think it's more urgent"**:
|
|
1040
|
-
- Bump priority one level up (🟢→🟡 or 🟡→🔴)
|
|
1041
|
-
- If already 🔴: Acknowledge and proceed
|
|
1042
|
-
- Display: `📘 Project Brain will remember this — you prioritize [idea type] higher than expected`
|
|
1043
|
-
- **Update Value Framework**: If user consistently overrides for certain types, adjust relevant dimension weights
|
|
1044
|
-
- Invoke Child Brain with preference context (user values this type of feature highly)
|
|
1045
|
-
- Proceed to Step 2F.5
|
|
1046
|
-
|
|
1047
|
-
- **If "I think it's less urgent"**:
|
|
1048
|
-
- Bump priority one level down (🔴→🟡 or 🟡→🟢)
|
|
1049
|
-
- If already 🟢: Keep at backlog
|
|
1050
|
-
- Display: `📘 Project Brain will remember this — you prefer to defer [idea type]`
|
|
1051
|
-
- **Update Value Framework**: Log the override in the Evolution Log section
|
|
1052
|
-
- Proceed to Step 2F.5
|
|
1053
|
-
|
|
1054
|
-
- **If "Let me refine the idea"**:
|
|
1055
|
-
- Return to Step 2F.1 with previous input as context
|
|
1056
|
-
|
|
1057
|
-
- **If "Discard"**:
|
|
1058
|
-
- Display: "💭 No problem — idea discarded. Nothing was changed."
|
|
1059
|
-
- Return to the menu the user came from (Step 2 or Step 11)
|
|
1060
|
-
|
|
1061
|
-
**Step 2F.5: Insert into Roadmap**
|
|
1062
|
-
|
|
1063
|
-
- Based on final priority level:
|
|
1064
|
-
|
|
1065
|
-
- **🔴 Critical (current phase insertion)**:
|
|
1066
|
-
1. Load roadmap and identify current phase tasks
|
|
1067
|
-
2. Determine optimal insertion point:
|
|
1068
|
-
- After dependencies are met
|
|
1069
|
-
- Before tasks that would benefit from this idea
|
|
1070
|
-
- If no dependencies: insert as next uncompleted task
|
|
1071
|
-
3. Create task number (next sequential number)
|
|
1072
|
-
4. Create task document in `.mother-brain/docs/tasks/[number]-[name].md`
|
|
1073
|
-
5. Insert task into `roadmap.md` at determined position
|
|
1074
|
-
6. **Renumber subsequent tasks if needed** to maintain order
|
|
1075
|
-
7. Display:
|
|
1076
|
-
```
|
|
1077
|
-
✅ Idea Added to Current Phase!
|
|
1078
|
-
|
|
1079
|
-
📋 Task [Number]: [Task Name]
|
|
1080
|
-
- Priority: 🔴 Critical
|
|
1081
|
-
- Inserted: Phase [X], position [Y] of [Z]
|
|
1082
|
-
- Status: 🟡 Ready
|
|
1083
|
-
|
|
1084
|
-
⚠️ Current plan adjusted:
|
|
1085
|
-
- [Brief description of what moved to accommodate this]
|
|
1086
|
-
|
|
1087
|
-
Your current task is still: [Current task name]
|
|
1088
|
-
This will be picked up [when in sequence].
|
|
1089
|
-
```
|
|
1090
|
-
|
|
1091
|
-
- **🟡 Important (next phase priority)**:
|
|
1092
|
-
1. Identify the next phase in roadmap (or create Phase N+1 if needed)
|
|
1093
|
-
2. Create task number
|
|
1094
|
-
3. Create task document
|
|
1095
|
-
4. Insert at the TOP of the next phase (high priority within that phase)
|
|
1096
|
-
5. Display:
|
|
1097
|
-
```
|
|
1098
|
-
✅ Idea Added to Next Phase!
|
|
1099
|
-
|
|
1100
|
-
📋 Task [Number]: [Task Name]
|
|
1101
|
-
- Priority: 🟡 Important
|
|
1102
|
-
- Placed: Phase [X], position 1 (top priority)
|
|
1103
|
-
- Status: ⬜ Planned
|
|
1104
|
-
|
|
1105
|
-
Current plan unchanged — this is queued for after [current phase name].
|
|
1106
|
-
```
|
|
1107
|
-
|
|
1108
|
-
- **🟢 Backlog (future enhancement)**:
|
|
1109
|
-
1. Add to "Future Enhancements" section of roadmap
|
|
1110
|
-
2. Create a lightweight task entry (no full task doc yet — created when promoted)
|
|
1111
|
-
3. Display:
|
|
1112
|
-
```
|
|
1113
|
-
✅ Idea Added to Backlog!
|
|
1114
|
-
|
|
1115
|
-
📋 [Idea Name]
|
|
1116
|
-
- Priority: 🟢 Backlog
|
|
1117
|
-
- Section: Future Enhancements
|
|
1118
|
-
- Status: 💭 Captured
|
|
1119
|
-
|
|
1120
|
-
Current plan unchanged. This will be reviewed during phase transitions.
|
|
1121
|
-
```
|
|
1122
|
-
|
|
1123
|
-
**Step 2F.6: Update Session State & Return**
|
|
1124
|
-
|
|
1125
|
-
- Update `session-state.json` to reflect roadmap changes (new task count, etc.)
|
|
1126
|
-
- If task was added to current phase: Update `totalTasks` count
|
|
1127
|
-
|
|
1128
|
-
- Display:
|
|
1129
|
-
```
|
|
1130
|
-
💡 Idea captured! Back to where you were.
|
|
1131
|
-
```
|
|
1132
|
-
|
|
1133
|
-
- **Return to the menu the user came from**:
|
|
1134
|
-
- If came from Step 2 (main menu): Return to Step 2
|
|
1135
|
-
- If came from Step 11 (post-task menu): Return to Step 11
|
|
1136
|
-
- If came from mid-task: Resume task execution
|
|
1137
|
-
|
|
1138
|
-
**Key Principles**:
|
|
1139
|
-
- **Speed over ceremony**: Get the idea down fast, analyze quickly, don't interrupt flow
|
|
1140
|
-
- **Vision is the compass**: Priority is always relative to the stated vision
|
|
1141
|
-
- **Current work is protected**: Only 🔴 Critical ideas touch the current phase
|
|
1142
|
-
- **Nothing is lost**: Even discarded ideas could be re-suggested if patterns emerge
|
|
1143
|
-
- **User has final say**: Mother Brain recommends priority, user can override
|
|
697
|
+
- Quick idea logging mid-project. Captures idea, scores against Value Framework, presents priority recommendation, and inserts into roadmap at optimal position.
|
|
698
|
+
- **Read `references/idea-capture.md`** for the full capture and prioritization procedure (Steps 2F.1–2F.6, scoring, priority override, roadmap insertion, session state update)
|
|
699
|
+
- Priority levels: 🔴 Critical (current phase), 🟡 Important (next phase), 🟢 Backlog (future). User can override. Returns to originating menu after capture.
|
|
1144
700
|
|
|
1145
701
|
### 2G. **Outcome Resume Preview** (Continue Where You Left Off)
|
|
1146
702
|
- When user selects "Continue where I left off" from the main project menu:
|
|
@@ -1183,312 +739,14 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
1183
739
|
- The Roadmap Menu provides all navigation options: continue, review, new idea, adjust priorities, take a break
|
|
1184
740
|
|
|
1185
741
|
### 2.5. **Environment & Presentation Discovery** (Lazy/On-Demand)
|
|
1186
|
-
|
|
1187
|
-
**
|
|
1188
|
-
|
|
1189
|
-
**When to Run**:
|
|
1190
|
-
- **NOT during project setup** - don't ask about browsers before knowing if project needs visual output
|
|
1191
|
-
- **On first visual output**: When a task produces HTML, images, or other visual files for the first time
|
|
1192
|
-
- **On demand**: If presentation fails during task validation, re-run this step
|
|
1193
|
-
- **Skip entirely**: For CLI tools, libraries, or other non-visual projects
|
|
1194
|
-
|
|
1195
|
-
**Trigger Condition**:
|
|
1196
|
-
- During Step 10 (Task Validation), if deliverables include visual files (HTML, images, etc.)
|
|
1197
|
-
- AND `environment.presentationPreferences` doesn't exist in session-state.json
|
|
1198
|
-
- THEN run this discovery before presenting output
|
|
1199
|
-
|
|
1200
|
-
**Discovery Process**:
|
|
1201
|
-
|
|
1202
|
-
**Step 2.5.1: Detect Available Tools**
|
|
1203
|
-
- Display: "🔍 Discovering your environment for presenting output..."
|
|
1204
|
-
- **Check for common browsers (multi-method detection)**:
|
|
1205
|
-
```powershell
|
|
1206
|
-
# Method 1: Check PATH
|
|
1207
|
-
$chrome = Get-Command chrome -ErrorAction SilentlyContinue
|
|
1208
|
-
$edge = Get-Command msedge -ErrorAction SilentlyContinue
|
|
1209
|
-
$firefox = Get-Command firefox -ErrorAction SilentlyContinue
|
|
1210
|
-
|
|
1211
|
-
# Method 2: Check common installation paths (if not in PATH)
|
|
1212
|
-
if (-not $edge) {
|
|
1213
|
-
$edgePaths = @(
|
|
1214
|
-
"${env:ProgramFiles(x86)}\Microsoft\Edge\Application\msedge.exe",
|
|
1215
|
-
"$env:ProgramFiles\Microsoft\Edge\Application\msedge.exe"
|
|
1216
|
-
)
|
|
1217
|
-
foreach ($path in $edgePaths) {
|
|
1218
|
-
if (Test-Path $path) { $edge = $path; break }
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
if (-not $chrome) {
|
|
1223
|
-
$chromePaths = @(
|
|
1224
|
-
"${env:ProgramFiles(x86)}\Google\Chrome\Application\chrome.exe",
|
|
1225
|
-
"$env:ProgramFiles\Google\Chrome\Application\chrome.exe",
|
|
1226
|
-
"$env:LOCALAPPDATA\Google\Chrome\Application\chrome.exe"
|
|
1227
|
-
)
|
|
1228
|
-
foreach ($path in $chromePaths) {
|
|
1229
|
-
if (Test-Path $path) { $chrome = $path; break }
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
if (-not $firefox) {
|
|
1234
|
-
$firefoxPaths = @(
|
|
1235
|
-
"${env:ProgramFiles(x86)}\Mozilla Firefox\firefox.exe",
|
|
1236
|
-
"$env:ProgramFiles\Mozilla Firefox\firefox.exe"
|
|
1237
|
-
)
|
|
1238
|
-
foreach ($path in $firefoxPaths) {
|
|
1239
|
-
if (Test-Path $path) { $firefox = $path; break }
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
# Store full paths for later use
|
|
1244
|
-
```
|
|
1245
|
-
- Check for VS Code (if running in VS Code context):
|
|
1246
|
-
- Check for Live Preview extension
|
|
1247
|
-
- Check for Live Server extension
|
|
1248
|
-
- Check for Node.js (can run local http-server):
|
|
1249
|
-
```powershell
|
|
1250
|
-
node --version
|
|
1251
|
-
```
|
|
1252
|
-
- Log what was found:
|
|
1253
|
-
```
|
|
1254
|
-
✅ Found: Microsoft Edge (C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe)
|
|
1255
|
-
✅ Found: VS Code with Live Preview
|
|
1256
|
-
❌ Chrome not found
|
|
1257
|
-
✅ Node.js installed (v22.17.1)
|
|
1258
|
-
```
|
|
1259
|
-
|
|
1260
|
-
**Step 2.5.2: Ask User for Presentation Preferences**
|
|
1261
|
-
|
|
1262
|
-
- **For HTML/web files**:
|
|
1263
|
-
- If browsers found:
|
|
1264
|
-
- Use `ask_user` with choices (list found browsers):
|
|
1265
|
-
- "Microsoft Edge"
|
|
1266
|
-
- "Google Chrome"
|
|
1267
|
-
- "Firefox"
|
|
1268
|
-
- "VS Code Live Preview"
|
|
1269
|
-
- Question: "For HTML/web output, which tool should I use to show you results?"
|
|
1270
|
-
- If NO browsers but VS Code detected:
|
|
1271
|
-
- Use `ask_user` with choices:
|
|
1272
|
-
- "Install VS Code Live Preview extension (recommended)"
|
|
1273
|
-
- "I'll open HTML files manually"
|
|
1274
|
-
- If user chooses install, attempt to install extension
|
|
1275
|
-
- If nothing found:
|
|
1276
|
-
- Use `ask_user` with choices:
|
|
1277
|
-
- "Install VS Code Live Preview (I can do this)"
|
|
1278
|
-
- "I'll open files manually with my own tools"
|
|
1279
|
-
|
|
1280
|
-
- **For image files**:
|
|
1281
|
-
- Use `ask_user` with choices:
|
|
1282
|
-
- "VS Code (default image viewer)"
|
|
1283
|
-
- "System default image viewer"
|
|
1284
|
-
- "I'll open images manually"
|
|
1285
|
-
|
|
1286
|
-
- **For other file types** (JSON, markdown, etc.):
|
|
1287
|
-
- Default to VS Code or text editor
|
|
1288
|
-
- No prompt needed unless user requests
|
|
1289
|
-
|
|
1290
|
-
**Step 2.5.3: Store Preferences in session-state.json**
|
|
1291
|
-
- Add `environment` object to session-state.json:
|
|
1292
|
-
```json
|
|
1293
|
-
{
|
|
1294
|
-
"projectName": "Project Name",
|
|
1295
|
-
"environment": {
|
|
1296
|
-
"detectedBrowsers": ["msedge", "firefox"],
|
|
1297
|
-
"vsCodeAvailable": true,
|
|
1298
|
-
"vsCodeExtensions": ["live-preview"],
|
|
1299
|
-
"nodeInstalled": false,
|
|
1300
|
-
"presentationPreferences": {
|
|
1301
|
-
"html": "msedge",
|
|
1302
|
-
"image": "vscode",
|
|
1303
|
-
"json": "vscode"
|
|
1304
|
-
},
|
|
1305
|
-
"discoveredAt": "2026-02-04T10:00:00Z"
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
```
|
|
1309
|
-
|
|
1310
|
-
**Step 2.5.4: Confirm Setup**
|
|
1311
|
-
- Display summary:
|
|
1312
|
-
```
|
|
1313
|
-
✅ Environment configured!
|
|
1314
|
-
|
|
1315
|
-
Presentation methods:
|
|
1316
|
-
- HTML/Web: Microsoft Edge
|
|
1317
|
-
- Images: VS Code
|
|
1318
|
-
- Other files: VS Code
|
|
1319
|
-
|
|
1320
|
-
You can update these anytime from the main menu.
|
|
1321
|
-
```
|
|
1322
|
-
|
|
1323
|
-
- Proceed to Step 3 (Vision Discovery) or next selected step
|
|
742
|
+
- Lazy/on-demand environment discovery. Runs on first visual output, NOT during setup. Detects browsers, VS Code, Node.js and asks presentation preferences.
|
|
743
|
+
- **Read `references/environment-discovery.md`** for the full discovery procedure (Steps 2.5.1–2.5.4, browser detection scripts, preference storage in session-state.json)
|
|
744
|
+
- Stores preferences in `session-state.json` under `environment.presentationPreferences`. Can be re-run if presentation fails.
|
|
1324
745
|
|
|
1325
746
|
### 3. **Vision Discovery** (New Projects Only)
|
|
1326
|
-
|
|
1327
|
-
**
|
|
1328
|
-
|
|
1329
|
-
**ADAPTIVE DISCOVERY PROTOCOL (MANDATORY)**:
|
|
1330
|
-
|
|
1331
|
-
This is NOT a static questionnaire. After EACH user response:
|
|
1332
|
-
1. Extract keywords and domain signals
|
|
1333
|
-
2. Research the domain using `web_search`
|
|
1334
|
-
3. Identify knowledge gaps and skill needs
|
|
1335
|
-
4. Generate dynamic follow-up questions based on research
|
|
1336
|
-
5. Build running list of skill candidates
|
|
1337
|
-
|
|
1338
|
-
**Step 3.1: Opening Question**
|
|
1339
|
-
|
|
1340
|
-
- Start with the core question:
|
|
1341
|
-
```
|
|
1342
|
-
🧠 Vision Discovery
|
|
1343
|
-
|
|
1344
|
-
Tell me about what you want to build.
|
|
1345
|
-
What problem are you solving, or what opportunity are you pursuing?
|
|
1346
|
-
```
|
|
1347
|
-
|
|
1348
|
-
- Use `ask_user` with freeform enabled
|
|
1349
|
-
|
|
1350
|
-
**Step 3.2: Adaptive Response Loop (REPEAT UNTIL VISION IS COMPLETE)**
|
|
1351
|
-
|
|
1352
|
-
**After EACH user response, do ALL of the following:**
|
|
1353
|
-
|
|
1354
|
-
**3.2.1: Extract Domain Signals**
|
|
1355
|
-
- Parse user response for:
|
|
1356
|
-
- Industry/domain keywords (game, e-commerce, healthcare, etc.)
|
|
1357
|
-
- Technology mentions (React, Shopify, Unity, etc.)
|
|
1358
|
-
- Style/aesthetic mentions (minimal, retro, professional, etc.)
|
|
1359
|
-
- User type mentions (developers, consumers, businesses, etc.)
|
|
1360
|
-
- Problem space indicators (tracking, discovery, automation, etc.)
|
|
1361
|
-
|
|
1362
|
-
- Display:
|
|
1363
|
-
```
|
|
1364
|
-
📘 Noted: [brief summary of what was understood]
|
|
1365
|
-
```
|
|
1366
|
-
|
|
1367
|
-
**3.2.2: Research Domain (MANDATORY)**
|
|
1368
|
-
- For EACH new domain signal, research using `web_search`:
|
|
1369
|
-
- "[domain] best practices"
|
|
1370
|
-
- "[domain] common patterns"
|
|
1371
|
-
- "[domain] user expectations"
|
|
1372
|
-
- "[technology] implementation approaches"
|
|
1373
|
-
|
|
1374
|
-
- Store research findings in memory for:
|
|
1375
|
-
- Skill creation later
|
|
1376
|
-
- Follow-up question generation
|
|
1377
|
-
- Understanding what the user might NOT know to ask
|
|
1378
|
-
|
|
1379
|
-
**3.2.3: Identify Knowledge Gaps**
|
|
1380
|
-
- Based on research, determine:
|
|
1381
|
-
- What aspects of the domain haven't been discussed yet?
|
|
1382
|
-
- What decisions does the user need to make?
|
|
1383
|
-
- What are common pitfalls in this space?
|
|
1384
|
-
- What skills will Mother Brain need to help with this?
|
|
1385
|
-
|
|
1386
|
-
- Add skill candidates to running list:
|
|
1387
|
-
```
|
|
1388
|
-
🛠️ Skill needs identified so far:
|
|
1389
|
-
- [skill-1]: [why it's needed]
|
|
1390
|
-
- [skill-2]: [why it's needed]
|
|
1391
|
-
```
|
|
1392
|
-
|
|
1393
|
-
**3.2.4: Generate Dynamic Follow-Up Question**
|
|
1394
|
-
- Based on research and gaps, ask the MOST RELEVANT next question
|
|
1395
|
-
- This should NOT be from a static list - it should be informed by:
|
|
1396
|
-
- What research revealed about the domain
|
|
1397
|
-
- What the user hasn't addressed yet
|
|
1398
|
-
- What decisions will significantly impact the project
|
|
1399
|
-
|
|
1400
|
-
- Example evolution:
|
|
1401
|
-
- User says "roguelite car game with storybook art"
|
|
1402
|
-
- Research: roguelite mechanics, car game physics, storybook illustration
|
|
1403
|
-
- Generated question: "Roguelites rely heavily on the core gameplay loop - what's the moment-to-moment action? Is it racing, combat, exploration, or something else?"
|
|
1404
|
-
|
|
1405
|
-
- Use `ask_user` with:
|
|
1406
|
-
- 2-3 relevant options based on research
|
|
1407
|
-
- Freeform allowed for complex answers
|
|
1408
|
-
|
|
1409
|
-
**Step 3.3: Core Areas to Cover (Ensure These Are Addressed)**
|
|
1410
|
-
|
|
1411
|
-
Through adaptive questioning, ensure these areas are explored (not as a checklist, but organically based on the domain):
|
|
1412
|
-
|
|
1413
|
-
- **The Problem/Opportunity**: What pain point or gap exists?
|
|
1414
|
-
- **The Vision**: What does success look like?
|
|
1415
|
-
- **The Users**: Who benefits? Who uses it?
|
|
1416
|
-
- **User Needs (CRITICAL)**: What specific abilities does the user need? Capture these as "Ability to [do something]" statements. These become the foundation for the outcome-driven roadmap.
|
|
1417
|
-
- **Differentiators**: What makes this unique in the space?
|
|
1418
|
-
- **Aesthetic/Experience**: How should it feel? Look? Sound?
|
|
1419
|
-
- **Constraints**: Budget, skills, platform limitations?
|
|
1420
|
-
- **MVP Scope**: Which user needs are essential for MVP vs nice-to-have?
|
|
1421
|
-
- **Data Sensitivity (MANDATORY)**: If project involves user/customer data:
|
|
1422
|
-
- Identify what data is handled (PII, orders, payments, health data, financial data, personal info)
|
|
1423
|
-
- Ask: "Who should have access to this data?"
|
|
1424
|
-
- Flag access control/authentication as a hard requirement
|
|
1425
|
-
- Document in vision.md under "Security & Access Requirements"
|
|
1426
|
-
- This triggers authentication/authorization tasks in Phase 1 (not post-MVP)
|
|
1427
|
-
- Example: "Dashboard shows customer orders → authentication required before deployment"
|
|
1428
|
-
|
|
1429
|
-
**Domain-Specific Questions (Generated From Research)**:
|
|
1430
|
-
- For games: gameplay loop, art style, audio needs, target platform
|
|
1431
|
-
- For e-commerce: payment integration, inventory management, shipping
|
|
1432
|
-
- For SaaS: authentication, multi-tenancy, pricing model
|
|
1433
|
-
- For mobile apps: offline capability, push notifications, app store requirements
|
|
1434
|
-
- For Shopify: theme vs app, API usage, merchant needs
|
|
1435
|
-
- For APIs: authentication, rate limiting, documentation needs
|
|
1436
|
-
|
|
1437
|
-
**Step 3.4: Vision Summary and Skill Pre-Planning**
|
|
1438
|
-
|
|
1439
|
-
- When sufficient understanding is reached (typically 6-10 exchanges):
|
|
1440
|
-
|
|
1441
|
-
- Display comprehensive summary:
|
|
1442
|
-
```
|
|
1443
|
-
🧠 Vision Summary
|
|
1444
|
-
|
|
1445
|
-
**What You're Building:**
|
|
1446
|
-
[1-2 sentence description]
|
|
1447
|
-
|
|
1448
|
-
**Who It's For:**
|
|
1449
|
-
[Target users/audience]
|
|
1450
|
-
|
|
1451
|
-
**Key Features:**
|
|
1452
|
-
- [Feature 1]
|
|
1453
|
-
- [Feature 2]
|
|
1454
|
-
- [Feature 3]
|
|
1455
|
-
|
|
1456
|
-
**Aesthetic/Experience:**
|
|
1457
|
-
[How it should look, feel, sound]
|
|
1458
|
-
|
|
1459
|
-
**Success Looks Like:**
|
|
1460
|
-
[What proves this works]
|
|
1461
|
-
|
|
1462
|
-
**Domain Research Findings:**
|
|
1463
|
-
[Key insights from research that will inform development]
|
|
1464
|
-
|
|
1465
|
-
🛠️ **Skills Mother Brain Will Need:**
|
|
1466
|
-
- [skill-1]: [what it will handle]
|
|
1467
|
-
- [skill-2]: [what it will handle]
|
|
1468
|
-
- [skill-3]: [what it will handle]
|
|
1469
|
-
```
|
|
1470
|
-
|
|
1471
|
-
- Use `ask_user` with choices:
|
|
1472
|
-
- "This captures it perfectly"
|
|
1473
|
-
- "Mostly right, but let me clarify something"
|
|
1474
|
-
- "I want to change the direction"
|
|
1475
|
-
|
|
1476
|
-
- If clarification needed: Ask follow-up, update summary
|
|
1477
|
-
- If direction change: Return to Step 3.2
|
|
1478
|
-
|
|
1479
|
-
**Step 3.5: Store Research and Skill Candidates**
|
|
1480
|
-
|
|
1481
|
-
- Before proceeding to project setup:
|
|
1482
|
-
- Store domain research in `.mother-brain/domain-research.md`
|
|
1483
|
-
- Store skill candidates in `.mother-brain/skill-candidates.md`
|
|
1484
|
-
- These will be used during:
|
|
1485
|
-
- Roadmap generation (Step 5)
|
|
1486
|
-
- Skill creation (Step 6)
|
|
1487
|
-
- Task execution (Step 9)
|
|
1488
|
-
|
|
1489
|
-
**NOTE: Do NOT ask about timeline/duration.** AI execution speed is not a constraint.
|
|
1490
|
-
|
|
1491
|
-
- Proceed to Step 3.6 (Project Folder Setup)
|
|
747
|
+
- Adaptive, research-driven vision discovery. After EACH user response: extract domain signals, research via web_search, identify gaps, generate dynamic follow-ups.
|
|
748
|
+
- **Read `references/vision-discovery.md`** for the full discovery procedure (Steps 3.1–3.5, adaptive response loop, domain-specific questions, vision summary, skill pre-planning)
|
|
749
|
+
- Covers 6-10 adaptive exchanges. Do NOT ask about timeline. Proceeds to Step 3.6 (Project Folder Setup).
|
|
1492
750
|
|
|
1493
751
|
### 3.6. **Initialize Mother Brain in Current Directory** (MANDATORY)
|
|
1494
752
|
|
|
@@ -1709,117 +967,9 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
1709
967
|
- Display: `📋 Value Framework created — this will guide task prioritization`
|
|
1710
968
|
|
|
1711
969
|
### 5. **Technology & Pattern Analysis**
|
|
1712
|
-
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
- From vision document, determine project category:
|
|
1716
|
-
- Web app, mobile app, desktop software, CLI tool, library/framework
|
|
1717
|
-
- Gaming, SaaS, ecommerce, content platform, developer tooling, etc.
|
|
1718
|
-
|
|
1719
|
-
**Step 5.2: Market & Competitor Analysis (MANDATORY)**
|
|
1720
|
-
- Use `web_search` to research:
|
|
1721
|
-
1. "[project domain] competitor analysis [current year]"
|
|
1722
|
-
2. "top [project type] apps/platforms comparison"
|
|
1723
|
-
3. "[project domain] market landscape and gaps"
|
|
1724
|
-
4. "what makes successful [project type] stand out"
|
|
1725
|
-
- Save findings to `.mother-brain/docs/research/market-analysis.md`
|
|
1726
|
-
- Document:
|
|
1727
|
-
- **Direct Competitors**: Who else solves this problem? What are they?
|
|
1728
|
-
- **Strengths**: What do competitors do well?
|
|
1729
|
-
- **Weaknesses**: Where do competitors fall short?
|
|
1730
|
-
- **Market Gaps**: Unmet needs, underserved segments
|
|
1731
|
-
- **Differentiation Opportunities**: How can this project stand out?
|
|
1732
|
-
|
|
1733
|
-
**Step 5.3: User Research (MANDATORY)**
|
|
1734
|
-
- Use `web_search` to research:
|
|
1735
|
-
1. "what [target users] want in [project domain]"
|
|
1736
|
-
2. "[target user] pain points and frustrations with [existing solutions]"
|
|
1737
|
-
3. "[project domain] user research findings"
|
|
1738
|
-
4. "why users leave/switch [competitor type] apps"
|
|
1739
|
-
- Save findings to `.mother-brain/docs/research/user-research.md`
|
|
1740
|
-
- Document:
|
|
1741
|
-
- **Target Users**: Who exactly are they? Demographics, behaviors
|
|
1742
|
-
- **Pain Points**: What frustrates users with existing solutions?
|
|
1743
|
-
- **Unmet Needs**: What do users wish they had?
|
|
1744
|
-
- **Must-Have Features**: Non-negotiables for this user base
|
|
1745
|
-
- **Delighters**: Features that would surprise and delight
|
|
1746
|
-
|
|
1747
|
-
**Step 5.4: Technical Best Practices Research**
|
|
1748
|
-
- Use `web_search` to research:
|
|
1749
|
-
1. "best practices for [project type] development [current year]"
|
|
1750
|
-
2. "team roles needed for [project type] projects"
|
|
1751
|
-
3. "common technical patterns in [project type]"
|
|
1752
|
-
4. "project management methodology for [project type]"
|
|
1753
|
-
5. "documentation standards for [project type]"
|
|
1754
|
-
6. "quality assurance approach for [project type]"
|
|
1755
|
-
|
|
1756
|
-
**Step 5.4.1: Technology Pitfalls & Gotchas Research (MANDATORY)**
|
|
1757
|
-
- For EACH technology/platform/tool identified in vision or research:
|
|
1758
|
-
|
|
1759
|
-
**First, invoke Elder Brain RETRIEVE for each technology:**
|
|
1760
|
-
- Invoke `skill elder-brain` with query for each technology
|
|
1761
|
-
- Elder Brain searches the experience vault and returns known gotchas
|
|
1762
|
-
- If gotchas found: use this knowledge to inform skill creation (no re-research needed)
|
|
1763
|
-
|
|
1764
|
-
**If Elder Brain has no knowledge, research and contribute:**
|
|
1765
|
-
- Use `web_search` to research:
|
|
1766
|
-
1. "common [technology] mistakes and pitfalls [current year]"
|
|
1767
|
-
2. "[technology] gotchas first-time users encounter"
|
|
1768
|
-
3. "[technology] troubleshooting guide"
|
|
1769
|
-
- After research, invoke Elder Brain RECEIVE to store findings in the vault
|
|
1770
|
-
- Also save project-specific notes to `.mother-brain/docs/research/[technology]-gotchas.md`
|
|
1771
|
-
|
|
1772
|
-
**Result:**
|
|
1773
|
-
- Research gets embedded in skills created for this technology
|
|
1774
|
-
- Elder Brain grows with each project's discoveries
|
|
1775
|
-
|
|
1776
|
-
**Step 5.5: Extract Technical Insights from Research**
|
|
1777
|
-
- Parse research results to identify:
|
|
1778
|
-
- **Roles/Disciplines**: (e.g., designer, architect, QA, DevOps, DBA)
|
|
1779
|
-
- **Methodologies**: (e.g., Agile, TDD, definition of done, sprint planning)
|
|
1780
|
-
- **Technical Patterns**: (e.g., auth flows, API design, state management)
|
|
1781
|
-
- **Documentation Needs**: (e.g., architecture docs, API specs, test plans)
|
|
1782
|
-
- **Tools & Libraries**: (e.g., testing frameworks, design systems, CI/CD)
|
|
1783
|
-
- **Quality Standards**: (e.g., accessibility, performance, security)
|
|
1784
|
-
|
|
1785
|
-
**Step 5.6: Synthesize & Log Findings** (No User Confirmation Required)
|
|
1786
|
-
- Save to `.mother-brain/docs/research/technical-analysis.md`
|
|
1787
|
-
- Display findings organized by category (for transparency, not approval):
|
|
1788
|
-
```
|
|
1789
|
-
🔍 Research-Based Analysis for [Project Type]:
|
|
1790
|
-
|
|
1791
|
-
Market Position:
|
|
1792
|
-
- Competitors analyzed: [list]
|
|
1793
|
-
- Key differentiation: [how this project is unique]
|
|
1794
|
-
|
|
1795
|
-
User Insights:
|
|
1796
|
-
- Target users: [who]
|
|
1797
|
-
- Top pain points: [list]
|
|
1798
|
-
- Must-have features: [list]
|
|
1799
|
-
|
|
1800
|
-
Technology Stack:
|
|
1801
|
-
- [Recommendations based on research + vision]
|
|
1802
|
-
|
|
1803
|
-
Team Roles/Disciplines Identified:
|
|
1804
|
-
- [Roles that research suggests are needed]
|
|
1805
|
-
|
|
1806
|
-
Methodology Recommendations:
|
|
1807
|
-
- [Process/methodology from research]
|
|
1808
|
-
|
|
1809
|
-
Repetitive Patterns Found:
|
|
1810
|
-
1. [Pattern from research] - [Skill candidate]
|
|
1811
|
-
2. [Pattern from research] - [Skill candidate]
|
|
1812
|
-
|
|
1813
|
-
Documentation Needs:
|
|
1814
|
-
- [Project docs suggested by research]
|
|
1815
|
-
|
|
1816
|
-
Quality Standards:
|
|
1817
|
-
- [Testing, accessibility, performance standards]
|
|
1818
|
-
```
|
|
1819
|
-
|
|
1820
|
-
- **Proceed immediately** to Step 5A (if visual requirements) or Step 6 (Skill Identification)
|
|
1821
|
-
- Do NOT ask user to validate or approve research findings - Mother Brain is the expert
|
|
1822
|
-
- **After displaying findings**: Proceed to Step 5A (check for visual requirements) or Step 6 (Skill Identification)
|
|
970
|
+
- Research-driven analysis: market/competitor analysis, user research, technical best practices, and technology pitfalls via Elder Brain + web search.
|
|
971
|
+
- **Read `references/technology-analysis.md`** for the full analysis procedure (Steps 5.1–5.6, market analysis, user research, gotchas research, synthesis)
|
|
972
|
+
- Outputs saved to `.mother-brain/docs/research/`. Proceeds automatically to Step 5A (if visual) or Step 6 (Skill Identification).
|
|
1823
973
|
|
|
1824
974
|
### 5A. **Design System & Brand Discovery** (For Projects with Visual Requirements)
|
|
1825
975
|
- **Automatic Detection**: Scan vision document for visual requirement keywords
|
|
@@ -1915,121 +1065,9 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
1915
1065
|
- **After completing Step 5A**: Proceed immediately to Step 6 (Skill Identification)
|
|
1916
1066
|
|
|
1917
1067
|
### 6. **Skill Identification & Creation**
|
|
1918
|
-
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
- Evaluate if that role's work involves repetitive patterns
|
|
1922
|
-
- Example: Designer role → design system skill, brand guidelines skill
|
|
1923
|
-
- Example: QA role → testing automation skill, test plan generator
|
|
1924
|
-
|
|
1925
|
-
- For each **technical pattern** identified in research:
|
|
1926
|
-
- Evaluate if pattern warrants a skill:
|
|
1927
|
-
- **Frequency**: Will this happen 3+ times in project?
|
|
1928
|
-
- **Complexity**: Is there wizard-worthy context to gather?
|
|
1929
|
-
- **Reusability**: Could this apply to other [project type] projects?
|
|
1930
|
-
|
|
1931
|
-
- For each **documentation need** identified:
|
|
1932
|
-
- Consider if generation should be automated
|
|
1933
|
-
- Example: Architecture diagrams, API documentation, test plans
|
|
1934
|
-
|
|
1935
|
-
- Categorize skills by necessity:
|
|
1936
|
-
- **Essential Skills** (create automatically): Core roles/patterns/needs required for MVP delivery
|
|
1937
|
-
- **Optional Skills** (offer choice): Nice-to-have features, post-MVP enhancements, documentation generators
|
|
1938
|
-
|
|
1939
|
-
- Identify essential vs optional:
|
|
1940
|
-
- **Essential criteria**: Needed for MVP, core technical pattern (3+ uses), fundamental role (designer, QA, architect)
|
|
1941
|
-
- **Optional criteria**: Post-MVP features, one-time documentation, nice-to-have automation
|
|
1942
|
-
|
|
1943
|
-
- Display categorized list (for transparency, not approval):
|
|
1944
|
-
```
|
|
1945
|
-
🎯 Research-Based Skills Identified:
|
|
1946
|
-
|
|
1947
|
-
Essential Skills (creating automatically):
|
|
1948
|
-
1. [skill-name] - [what role/pattern needs it] - [why essential for MVP]
|
|
1949
|
-
2. [skill-name] - [what role/pattern needs it] - [why essential for MVP]
|
|
1950
|
-
|
|
1951
|
-
Optional Skills (creating if beneficial):
|
|
1952
|
-
3. [skill-name] - [what it does] - [when useful]
|
|
1953
|
-
4. [skill-name] - [what it does] - [when useful]
|
|
1954
|
-
```
|
|
1955
|
-
|
|
1956
|
-
- **Skill Creation Lifecycle Strategy**:
|
|
1957
|
-
- **Upfront Phase** (Step 6): Create minimum 3 foundational skills
|
|
1958
|
-
- Select 3 most critical skills from essential list
|
|
1959
|
-
- These provide core capabilities needed immediately
|
|
1960
|
-
- Document remaining identified skills in Project Brain
|
|
1961
|
-
|
|
1962
|
-
- **Continuous Creation** (Throughout project):
|
|
1963
|
-
- Skills should be created throughout project lifecycle, not all upfront
|
|
1964
|
-
- At start of each task (Step 9), check Project Brain for:
|
|
1965
|
-
- Existing skills that apply to this task
|
|
1966
|
-
- Skills identified but not yet created (create now if task needs them)
|
|
1967
|
-
- New patterns emerging in this task (create new skills mid-task)
|
|
1968
|
-
- Project Brain tracks:
|
|
1969
|
-
- `skillsCreated`: Skills that exist
|
|
1970
|
-
- `skillsPending`: Skills identified but not yet created
|
|
1971
|
-
- `skillsNeededForTasks`: Map of which tasks need which skills
|
|
1972
|
-
|
|
1973
|
-
- **Task-Start Skill Assessment** (Mandatory at Step 9):
|
|
1974
|
-
1. Load Project Brain before starting task
|
|
1975
|
-
2. Check which skills exist and apply to this task
|
|
1976
|
-
3. Check if task requires pending skills (create them now)
|
|
1977
|
-
4. Check if task reveals new skill needs (document in Project Brain)
|
|
1978
|
-
5. Use relevant skills during task execution
|
|
1979
|
-
|
|
1980
|
-
- **Why This Approach**:
|
|
1981
|
-
- Minimum viable skill set upfront (3) doesn't delay project start
|
|
1982
|
-
- Skills created when actually needed = better context and design
|
|
1983
|
-
- Continuous skill creation = skills evolve with project understanding
|
|
1984
|
-
- Project Brain coordination = no duplicate skill creation
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
- **Create Initial 3 Skills** (Upfront - minimum viable skill set):
|
|
1988
|
-
- Display: "🔨 Creating initial 3 skills for project..."
|
|
1989
|
-
- Select 3 most critical skills from essential list (based on immediate MVP needs)
|
|
1990
|
-
|
|
1991
|
-
- **CHECKPOINT: Consult Elder Brain for Each Skill**
|
|
1992
|
-
- Before invoking skill-creator for each skill:
|
|
1993
|
-
1. Identify domains/technologies this skill will work with
|
|
1994
|
-
2. Invoke Elder Brain RETRIEVE for each technology
|
|
1995
|
-
3. Elder Brain returns known gotchas and patterns (or "no knowledge found")
|
|
1996
|
-
4. Pass Elder Brain results as context to skill-creator
|
|
1997
|
-
|
|
1998
|
-
- For each of the 3 initial skills:
|
|
1999
|
-
- Show progress: "Creating [skill-name]..."
|
|
2000
|
-
- Invoke skill-creator with THREE knowledge sources:
|
|
2001
|
-
1. **Research findings** from Step 5 analysis (role/pattern/need)
|
|
2002
|
-
2. **Gotchas research** from Step 5.4.1 (project-specific research)
|
|
2003
|
-
3. **Elder Brain knowledge** (cross-project domain wisdom from RETRIEVE)
|
|
2004
|
-
- Let skill-creator run its wizard with all three knowledge sources
|
|
2005
|
-
- **Store created skills in `.github/skills/`** (CLI-discoverable location)
|
|
2006
|
-
- **Symlink to `.agents/skills/`** for Codex CLI compatibility
|
|
2007
|
-
- **Track in session-state.json**: Add skill name to `skillsCreated` array
|
|
2008
|
-
- **VALIDATE SKILL** (CRITICAL - prevents task execution failures):
|
|
2009
|
-
1. Check `.github/skills/[skill-name]/SKILL.md` exists
|
|
2010
|
-
2. Test invoke the skill with a simple "hello" or status check
|
|
2011
|
-
3. If invocation fails:
|
|
2012
|
-
- Show error: "⚠️ Skill [name] created but can't be invoked"
|
|
2013
|
-
- Diagnose issue (path, permissions, SKILL.md format)
|
|
2014
|
-
- Retry automatically up to 2 times
|
|
2015
|
-
- If still fails, log and continue - don't block on one skill
|
|
2016
|
-
4. Only mark complete if skill invokes successfully
|
|
2017
|
-
- Show completion: "✅ [skill-name] created and validated"
|
|
2018
|
-
|
|
2019
|
-
- **Document remaining skills in Project Brain**:
|
|
2020
|
-
- Create/update `.mother-brain/project-brain.md` with:
|
|
2021
|
-
- `skillsCreated`: [list of 3 created skills]
|
|
2022
|
-
- `skillsPending`: [list of remaining identified skills]
|
|
2023
|
-
- `skillsNeededForTasks`: Map of which upcoming tasks will need which pending skills
|
|
2024
|
-
- Display: "📘 Documented [N] additional skills for later creation"
|
|
2025
|
-
|
|
2026
|
-
- **After initial 3 skills created**:
|
|
2027
|
-
- Display summary: "Initial skills ready: [list of 3 validated skills]"
|
|
2028
|
-
- Display: "Additional skills will be created as tasks require them"
|
|
2029
|
-
- Log in session-state.json: skillsCreated array with validated names
|
|
2030
|
-
- This ensures Step 9 can reliably invoke these skills
|
|
2031
|
-
- **Proceed immediately** - do not ask user to approve skills created
|
|
2032
|
-
- **After skills are created**: Proceed immediately to Step 6A (Delivery Strategy Research)
|
|
1068
|
+
- Dynamic skill discovery from research findings: roles, technical patterns, and documentation needs. Creates minimum 3 foundational skills upfront.
|
|
1069
|
+
- **Read `references/skill-identification.md`** for the full skill identification and creation procedure (lifecycle strategy, Elder Brain consultation, skill validation, Project Brain tracking)
|
|
1070
|
+
- Remaining skills documented in Project Brain for continuous creation during task execution (Step 9)
|
|
2033
1071
|
|
|
2034
1072
|
### 6A. **Delivery Strategy Research**
|
|
2035
1073
|
- **Research How to Deliver This Type of Project**:
|
|
@@ -2090,258 +1128,9 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
2090
1128
|
- Do NOT ask user to approve delivery strategy - Mother Brain is the expert
|
|
2091
1129
|
|
|
2092
1130
|
### 7. **Roadmap Generation**
|
|
2093
|
-
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
- Read `.mother-brain/docs/value-framework.md`
|
|
2097
|
-
- Use the priority dimensions and weights to order **outcomes** (not tasks)
|
|
2098
|
-
- Every outcome in the roadmap must be scored against the framework
|
|
2099
|
-
|
|
2100
|
-
**Step 7.1: Define Phase 1 = MVP (Core User Needs)**
|
|
2101
|
-
- Phase 1 scope = shortest path to fulfill core user needs from vision
|
|
2102
|
-
- Use:
|
|
2103
|
-
- User Needs table from Step 4 (vision document) — filter by MVP=✅
|
|
2104
|
-
- Delivery research from Step 6A
|
|
2105
|
-
- Mother Brain's expert judgment on optimal scope
|
|
2106
|
-
- Mother Brain determines which user needs are essential for Phase 1 vs can wait
|
|
2107
|
-
- Each user need becomes an **Outcome** (📋 Ability to...)
|
|
2108
|
-
- Each outcome has **Acceptance Criteria** (testable by user)
|
|
2109
|
-
- Tasks are internal implementation details — user validates outcomes, not tasks
|
|
2110
|
-
|
|
2111
|
-
**Step 7.2: Structure Post-MVP Work (Research-Driven)**
|
|
2112
|
-
- Phase 2+ content based on iteration pattern from Step 6A research
|
|
2113
|
-
- Use feedback mechanism identified in research
|
|
2114
|
-
- Mark clearly as "post-MVP" and "subject to learning/validation"
|
|
2115
|
-
- Don't over-plan: assume learnings will inform these phases
|
|
2116
|
-
|
|
2117
|
-
**Step 7.3: Create `docs/roadmap.md` (Outcome-Driven Structure)**:
|
|
2118
|
-
```markdown
|
|
2119
|
-
# [Project Name] - Roadmap
|
|
2120
|
-
|
|
2121
|
-
## Delivery Strategy (Research-Based)
|
|
2122
|
-
**Project Type**: [From Step 5 research]
|
|
2123
|
-
**MVP Approach**: [From Step 6A research - what minimum viable means for this type]
|
|
2124
|
-
**Launch Pattern**: [From Step 6A research - how to reach users]
|
|
2125
|
-
**Iteration Strategy**: [From Step 6A research - how to improve post-launch]
|
|
2126
|
-
|
|
2127
|
-
---
|
|
2128
|
-
|
|
2129
|
-
## User Needs Traceability
|
|
2130
|
-
|
|
2131
|
-
| User Need (from Vision) | Fulfilled By |
|
|
2132
|
-
|-------------------------|--------------|
|
|
2133
|
-
| Ability to [X] | Outcome 1, Outcome 3 |
|
|
2134
|
-
| Ability to [Y] | Outcome 2 |
|
|
2135
|
-
| Ability to [Z] | Outcome 4 (Phase 2) |
|
|
2136
|
-
|
|
2137
|
-
---
|
|
2138
|
-
|
|
2139
|
-
## Phase 1: MVP — [Core Problem Solution]
|
|
2140
|
-
|
|
2141
|
-
**Goal**: Shortest path to deliver user value
|
|
2142
|
-
**Success Gate**: User can [primary outcome from vision]
|
|
2143
|
-
**Strategy**: Fulfill core user needs, defer everything else
|
|
2144
|
-
|
|
2145
|
-
---
|
|
2146
|
-
|
|
2147
|
-
### 📋 Ability to [do something concrete]
|
|
2148
|
-
|
|
2149
|
-
> So [the benefit/why this matters — traced to user need]
|
|
2150
|
-
|
|
2151
|
-
**Acceptance Criteria:**
|
|
2152
|
-
- [ ] [Testable condition 1 — user can verify this]
|
|
2153
|
-
- [ ] [Testable condition 2 — user can verify this]
|
|
2154
|
-
- [ ] [Testable condition 3 — user can verify this]
|
|
2155
|
-
|
|
2156
|
-
**Demo / Proof (what the user will see):**
|
|
2157
|
-
- [What screen/page/flow will exist at the end of this outcome]
|
|
2158
|
-
- [How Mother Brain will open it for the user (browser/app route)]
|
|
2159
|
-
|
|
2160
|
-
**Priority Score:** [N] (Vision: X, MVP: X, User Impact: X)
|
|
2161
|
-
|
|
2162
|
-
**🔧 Tasks (internal — not shown to user during validation):**
|
|
2163
|
-
- Task 001: [Technical implementation step]
|
|
2164
|
-
- Task 002: [Technical implementation step]
|
|
2165
|
-
- Task 003: [Technical implementation step]
|
|
2166
|
-
|
|
2167
|
-
---
|
|
2168
|
-
|
|
2169
|
-
### 📋 Ability to [second outcome]
|
|
2170
|
-
|
|
2171
|
-
> So [benefit — traced to user need]
|
|
2172
|
-
|
|
2173
|
-
**Acceptance Criteria:**
|
|
2174
|
-
- [ ] [Testable condition 1]
|
|
2175
|
-
- [ ] [Testable condition 2]
|
|
2176
|
-
|
|
2177
|
-
**Demo / Proof:**
|
|
2178
|
-
- [User-visible experience delivered]
|
|
2179
|
-
- [How it will be opened for validation]
|
|
2180
|
-
|
|
2181
|
-
**Priority Score:** [N]
|
|
2182
|
-
|
|
2183
|
-
**🔧 Tasks (internal):**
|
|
2184
|
-
- Task 004: [Technical step]
|
|
2185
|
-
- Task 005: [Technical step]
|
|
2186
|
-
|
|
2187
|
-
---
|
|
2188
|
-
|
|
2189
|
-
## Phase 2+: Post-MVP Iteration
|
|
2190
|
-
|
|
2191
|
-
**Strategy**: [Iteration approach from Step 6A research]
|
|
2192
|
-
**Trigger**: Phase 1 complete + user feedback
|
|
2193
|
-
**Focus**: Learn from users and iterate
|
|
2194
|
-
|
|
2195
|
-
### 📋 Ability to [future outcome]
|
|
2196
|
-
|
|
2197
|
-
> So [benefit]
|
|
2198
|
-
|
|
2199
|
-
**Acceptance Criteria:**
|
|
2200
|
-
- [ ] [Criterion 1]
|
|
2201
|
-
- [ ] [Criterion 2]
|
|
2202
|
-
|
|
2203
|
-
**Demo / Proof:**
|
|
2204
|
-
- [User-visible experience delivered]
|
|
2205
|
-
- [How it will be opened for validation]
|
|
2206
|
-
|
|
2207
|
-
**Note**: Subject to validation — may change based on user feedback
|
|
2208
|
-
|
|
2209
|
-
---
|
|
2210
|
-
|
|
2211
|
-
## MVP Checkpoint (End of Phase 1)
|
|
2212
|
-
|
|
2213
|
-
✅ **Phase 1 Complete When ALL acceptance criteria verified for:**
|
|
2214
|
-
- Outcome 1: [name]
|
|
2215
|
-
- Outcome 2: [name]
|
|
2216
|
-
- Outcome 3: [name]
|
|
2217
|
-
|
|
2218
|
-
**Validation Method**: User confirms each criterion with "Yes, I can do this"
|
|
2219
|
-
|
|
2220
|
-
**Next Step After MVP**: [From Step 6A research]
|
|
2221
|
-
|
|
2222
|
-
---
|
|
2223
|
-
|
|
2224
|
-
## Future Enhancements (Post-MVP Backlog)
|
|
2225
|
-
|
|
2226
|
-
**Defer Until After MVP** (nice-to-have):
|
|
2227
|
-
- 📋 Ability to [future feature 1]
|
|
2228
|
-
- 📋 Ability to [future feature 2]
|
|
2229
|
-
|
|
2230
|
-
**Validation Required**: Don't build until validated by user feedback
|
|
2231
|
-
|
|
2232
|
-
---
|
|
2233
|
-
|
|
2234
|
-
## Internal Task Index
|
|
2235
|
-
|
|
2236
|
-
> Tasks exist for implementation tracking but are NOT validated by user.
|
|
2237
|
-
> User validates outcomes (acceptance criteria), not tasks.
|
|
2238
|
-
|
|
2239
|
-
| Task | Under Outcome | Status |
|
|
2240
|
-
|------|---------------|--------|
|
|
2241
|
-
| 001 | Ability to X | ⬜ |
|
|
2242
|
-
| 002 | Ability to X | ⬜ |
|
|
2243
|
-
| 003 | Ability to Y | ⬜ |
|
|
2244
|
-
|
|
2245
|
-
---
|
|
2246
|
-
|
|
2247
|
-
## Iteration & Learning Plan (Research-Based)
|
|
2248
|
-
|
|
2249
|
-
**Feedback Collection** (from Step 6A research):
|
|
2250
|
-
- [How we'll gather user input for this project type]
|
|
2251
|
-
- [Metrics/analytics to track]
|
|
2252
|
-
|
|
2253
|
-
**Iteration Cycle**:
|
|
2254
|
-
1. Complete Phase 1 outcomes
|
|
2255
|
-
2. User validates all acceptance criteria
|
|
2256
|
-
3. Collect feedback, analyze learnings
|
|
2257
|
-
4. Prioritize Phase 2 outcomes based on data
|
|
2258
|
-
|
|
2259
|
-
---
|
|
2260
|
-
|
|
2261
|
-
## Risk Mitigation
|
|
2262
|
-
|
|
2263
|
-
**MVP Risks**: [Potential issues with Phase 1 approach]
|
|
2264
|
-
|
|
2265
|
-
**Delivery Strategy**: Protect MVP outcomes at all costs. Phase 2+ can be deferred.
|
|
2266
|
-
|
|
2267
|
-
---
|
|
2268
|
-
|
|
2269
|
-
**Total Tasks**: [Count]
|
|
2270
|
-
**Phase 1 (MVP) Tasks**: [Count essential tasks]
|
|
2271
|
-
**Post-MVP Tasks**: [Count - subject to change based on feedback]
|
|
2272
|
-
**Estimated Timeline**: [From vision document]
|
|
2273
|
-
```
|
|
2274
|
-
|
|
2275
|
-
**Step 7.3.5: CHECKPOINT - Review Roadmap Against Elder Brain**
|
|
2276
|
-
- **Purpose**: Surface known pitfalls for the tech stack BEFORE task execution begins
|
|
2277
|
-
|
|
2278
|
-
- For EACH technology/platform identified in roadmap tasks:
|
|
2279
|
-
1. Extract tech mentions from task descriptions
|
|
2280
|
-
2. Invoke Elder Brain RETRIEVE for each technology
|
|
2281
|
-
3. Elder Brain returns known gotchas or "no knowledge found"
|
|
2282
|
-
4. For each gotcha found: add defensive note to affected task descriptions in roadmap
|
|
2283
|
-
5. If no Elder Brain knowledge exists: note for research during task execution
|
|
2284
|
-
|
|
2285
|
-
- Display:
|
|
2286
|
-
```
|
|
2287
|
-
🧙 Elder Brain consulted
|
|
2288
|
-
- [X] technologies checked
|
|
2289
|
-
- [Y] known gotchas surfaced in roadmap
|
|
2290
|
-
```
|
|
2291
|
-
|
|
2292
|
-
- Update roadmap.md with Elder Brain references
|
|
2293
|
-
- This makes pitfalls visible BEFORE tasks start, not during failures
|
|
2294
|
-
|
|
2295
|
-
**Step 7.4: Display Roadmap Summary** (No Approval Required)
|
|
2296
|
-
- Show roadmap structure to user (for transparency, not approval)
|
|
2297
|
-
- Display:
|
|
2298
|
-
```
|
|
2299
|
-
📋 Roadmap Created - UK Coffee Discovery
|
|
2300
|
-
|
|
2301
|
-
Phase 1 (MVP): [X] tasks
|
|
2302
|
-
- [Brief description of what MVP delivers]
|
|
2303
|
-
|
|
2304
|
-
Phase 2+: [Y] tasks (subject to user feedback)
|
|
2305
|
-
|
|
2306
|
-
Skills Ready: [List skills created]
|
|
2307
|
-
```
|
|
2308
|
-
- **Proceed immediately** to Step 7.5 (Setup Complete Menu)
|
|
2309
|
-
- Do NOT ask user to approve roadmap - Mother Brain determined optimal phasing
|
|
2310
|
-
|
|
2311
|
-
**Step 7.5: Setup Complete - What's Next?**
|
|
2312
|
-
- **⚠️ CRITICAL**: This is NOT the end of setup. Step 7.6 (Reflection) is MANDATORY before declaring complete.
|
|
2313
|
-
- Display setup completion summary:
|
|
2314
|
-
```
|
|
2315
|
-
✅ Setup Complete!
|
|
2316
|
-
|
|
2317
|
-
📋 Vision: Captured
|
|
2318
|
-
🔍 Research: Complete
|
|
2319
|
-
🛠️ Skills: [X] created and validated
|
|
2320
|
-
📊 Roadmap: [Y] tasks across [Z] phases
|
|
2321
|
-
📄 First Task: [Task 001 name] ready
|
|
2322
|
-
|
|
2323
|
-
🔄 Next: Running mandatory reflection (Step 7.6)...
|
|
2324
|
-
```
|
|
2325
|
-
|
|
2326
|
-
- Use `ask_user` with choices:
|
|
2327
|
-
- "Start Task 001 now"
|
|
2328
|
-
- "Review the full roadmap first"
|
|
2329
|
-
- "Review the vision document"
|
|
2330
|
-
- "I want to adjust something before starting"
|
|
2331
|
-
|
|
2332
|
-
- **⛔ BLOCKING GATE**: Regardless of user selection, you MUST run Step 7.6 (Setup Validation & Self-Healing) BEFORE proceeding to the chosen action.
|
|
2333
|
-
|
|
2334
|
-
- If "Start Task 001 now": Run Step 7.6 (mandatory), then proceed to Step 8 (Task Document Creation)
|
|
2335
|
-
- If "Review roadmap": Run Step 7.6 (mandatory), display full roadmap, then return to this menu
|
|
2336
|
-
- If "Review vision": Run Step 7.6 (mandatory), display vision summary, then return to this menu
|
|
2337
|
-
- If "Adjust something": Run Step 7.6 (mandatory), use `ask_user` to ask what needs adjusting, make changes, return to this menu
|
|
2338
|
-
|
|
2339
|
-
- **DO NOT declare "setup complete" or proceed to ANY action without running Step 7.6 first**
|
|
2340
|
-
|
|
2341
|
-
- Use outcome-focused language (what gets achieved, not just tasks)
|
|
2342
|
-
- Link Phase 1 tasks back to MVP criteria from vision
|
|
2343
|
-
- Mark post-MVP items clearly as "subject to validation"
|
|
2344
|
-
- Emphasize learning and iteration mindset
|
|
1131
|
+
- MVP-first phased roadmap generation using Value Framework scores, research findings, and Elder Brain consultation.
|
|
1132
|
+
- **Read `references/roadmap-generation.md`** for the full roadmap procedure (Steps 7.0–7.5, roadmap template, Elder Brain checkpoint, setup completion menu)
|
|
1133
|
+
- Creates `docs/roadmap.md` with outcome-driven structure, user needs traceability, and phase gates. Step 7.6 (Setup Validation) is MANDATORY before proceeding.
|
|
2345
1134
|
|
|
2346
1135
|
### 7.6 **Setup Validation & Self-Healing (MANDATORY REFLECTION - BLOCKS COMPLETION)**
|
|
2347
1136
|
- **Read `references/setup-validation.md`** for the full protocol (Steps 7.6.1–7.6.5)
|
|
@@ -2403,282 +1192,9 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
2403
1192
|
- User validates only when ALL tasks under an outcome are complete (Step 10)
|
|
2404
1193
|
|
|
2405
1194
|
### 9. **Task Execution**
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
Before implementing ANY task, you MUST complete this gate:
|
|
2410
|
-
|
|
2411
|
-
**Step 9.0: Story Start Assessment**
|
|
2412
|
-
|
|
2413
|
-
1. **Load Project Brain** (if exists):
|
|
2414
|
-
- Read `.mother-brain/project-brain.md`
|
|
2415
|
-
- Review "Validation Checks" section
|
|
2416
|
-
- Check "Style & Tone" preferences for relevant categories
|
|
2417
|
-
- **Check skill tracking sections**:
|
|
2418
|
-
- `skillsCreated`: Skills that exist and are available
|
|
2419
|
-
- `skillsPending`: Skills identified but not yet created
|
|
2420
|
-
- `skillsNeededForTasks`: Map of which tasks need which skills
|
|
2421
|
-
- **If this task needs a pending skill**:
|
|
2422
|
-
- Create that skill NOW before implementing task
|
|
2423
|
-
- Update skillsCreated and skillsPending arrays
|
|
2424
|
-
- Validate skill works before proceeding
|
|
2425
|
-
|
|
2426
|
-
2. **Analyze Task Requirements**:
|
|
2427
|
-
- What creative/visual/narrative elements does this task involve?
|
|
2428
|
-
- What domain knowledge is required?
|
|
2429
|
-
- What style/tone preferences apply?
|
|
2430
|
-
- **What technologies/platforms does this task use?** (for Elder Brain check)
|
|
2431
|
-
|
|
2432
|
-
2.5. **CHECKPOINT: Consult Elder Brain for This Task**
|
|
2433
|
-
- Extract technology/platform mentions from task title, description, and deliverables
|
|
2434
|
-
- Invoke Elder Brain RETRIEVE for each technology
|
|
2435
|
-
- Elder Brain returns known gotchas and defensive patterns (or "no knowledge found")
|
|
2436
|
-
|
|
2437
|
-
- If gotchas found:
|
|
2438
|
-
- Display relevant gotchas for awareness
|
|
2439
|
-
- Apply defensive patterns automatically during execution
|
|
2440
|
-
```
|
|
2441
|
-
🧙 Elder Brain: [Technology]
|
|
2442
|
-
|
|
2443
|
-
Known gotchas for this task:
|
|
2444
|
-
- [gotcha 1]
|
|
2445
|
-
- [gotcha 2]
|
|
2446
|
-
|
|
2447
|
-
Applying defensive patterns automatically.
|
|
2448
|
-
```
|
|
2449
|
-
|
|
2450
|
-
- If NO gotchas found:
|
|
2451
|
-
- Note: "No Elder Brain knowledge for [technology]"
|
|
2452
|
-
- Plan to contribute back via Elder Brain RECEIVE after task
|
|
2453
|
-
|
|
2454
|
-
**Step 9.0.1: Blocking Dependencies Collection (MANDATORY)**
|
|
2455
|
-
|
|
2456
|
-
Before starting ANY story, identify what the AI CANNOT do autonomously:
|
|
2457
|
-
|
|
2458
|
-
**Check for these dependency types:**
|
|
2459
|
-
- **Account/Service Setup**: Creating accounts, subscribing to services, accepting terms of service
|
|
2460
|
-
- **API Keys & Credentials**: Obtaining keys, secrets, OAuth tokens the AI cannot generate
|
|
2461
|
-
- **External Configuration**: Setting up third-party consoles, enabling features in dashboards
|
|
2462
|
-
- **Physical Actions**: Device setup, hardware configuration, local installations the AI can't perform
|
|
2463
|
-
- **Payment/Billing**: Anything requiring financial transactions
|
|
2464
|
-
|
|
2465
|
-
**If ANY blocking dependencies found:**
|
|
2466
|
-
```
|
|
2467
|
-
⏸️ Before I can work autonomously on this story, I need you to:
|
|
2468
|
-
|
|
2469
|
-
1. [Blocking dependency 1 - what exactly to do]
|
|
2470
|
-
2. [Blocking dependency 2 - what exactly to do]
|
|
2471
|
-
3. [Blocking dependency 3 - what exactly to do]
|
|
2472
|
-
|
|
2473
|
-
Let me know when these are ready, or if you need help with any step.
|
|
2474
|
-
```
|
|
2475
|
-
|
|
2476
|
-
- **WAIT for user confirmation before proceeding**
|
|
2477
|
-
- Update session-state.json with `blockingDependencies` array
|
|
2478
|
-
- When user confirms, verify programmatically where possible (see VERIFICATION OVER TRUST principle)
|
|
2479
|
-
- Only proceed to implementation when all blocking dependencies resolved
|
|
2480
|
-
|
|
2481
|
-
3. **Skill Sufficiency Check** (CRITICAL):
|
|
2482
|
-
- List existing skills in `.github/skills/`
|
|
2483
|
-
- For EACH creative/specialized element in this task, ask:
|
|
2484
|
-
- "Is there a skill that covers this?"
|
|
2485
|
-
- "Does that skill have the domain knowledge needed?"
|
|
2486
|
-
- "Does that skill know this project's style preferences?"
|
|
2487
|
-
- If ANY answer is "No" → STOP and address before implementing
|
|
2488
|
-
|
|
2489
|
-
4. **User Discovery Questions** (if gaps found):
|
|
2490
|
-
- Before creating missing skills, ask user about preferences:
|
|
2491
|
-
- "What style/tone do you want for [element]?"
|
|
2492
|
-
- "Any examples or references I should look at?"
|
|
2493
|
-
- "Any specific conventions or requirements?"
|
|
2494
|
-
- Store answers in Project Brain AND use them for skill creation
|
|
2495
|
-
- **Note**: For broader preference discovery beyond skills (layout, interaction patterns, UX choices), see **Step 9.1: Mini Discovery**
|
|
2496
|
-
|
|
2497
|
-
5. **Skill Creation/Enhancement** (if needed):
|
|
2498
|
-
- Research the domain (web_search for best practices)
|
|
2499
|
-
- Invoke skill-creator with user preferences + research
|
|
2500
|
-
- Validate skill was created successfully
|
|
2501
|
-
- Log in Project Brain: "Skills Created for This Project"
|
|
2502
|
-
|
|
2503
|
-
6. **Proceed to Implementation**:
|
|
2504
|
-
- Only after gate passes, begin actual implementation
|
|
2505
|
-
- Use appropriate skills for execution
|
|
2506
|
-
|
|
2507
|
-
Display at task start:
|
|
2508
|
-
```
|
|
2509
|
-
🎯 Task [Number] Start Assessment
|
|
2510
|
-
|
|
2511
|
-
📘 Project Brain:
|
|
2512
|
-
- Style preferences: [found/not found]
|
|
2513
|
-
- Validation checks: [X] checks to run
|
|
2514
|
-
- Skills created: [X] available
|
|
2515
|
-
- Skills pending: [Y] identified for later
|
|
2516
|
-
- This task needs: [list pending skills this task requires, if any]
|
|
2517
|
-
|
|
2518
|
-
🛠️ Skill Coverage:
|
|
2519
|
-
- [element 1]: [skill-name] ✅ or [PENDING - creating now] ⏳ or [MISSING] ❌
|
|
2520
|
-
- [element 2]: [skill-name] ✅ or [PENDING - creating now] ⏳ or [MISSING] ❌
|
|
2521
|
-
|
|
2522
|
-
[If all covered]: Proceeding to implementation...
|
|
2523
|
-
[If pending skills needed]: Creating required skills first...
|
|
2524
|
-
[If gaps]: Need to address gaps before implementing...
|
|
2525
|
-
```
|
|
2526
|
-
|
|
2527
|
-
---
|
|
2528
|
-
|
|
2529
|
-
**Step 9.1: Mini Discovery (On-Demand Preference Check)**
|
|
2530
|
-
|
|
2531
|
-
Mini Discovery is a lightweight discovery phase that triggers MID-BUILD when Mother Brain identifies it knows the OUTCOME but not the SPECIFICS of how the user wants it delivered. It's like a focused version of Vision Discovery (Step 3) that happens during task execution.
|
|
2532
|
-
|
|
2533
|
-
**When to Trigger (ANY of these):**
|
|
2534
|
-
- Task involves **user-facing output** (UI, content, messaging, branding) and Project Brain has no style preferences for this category
|
|
2535
|
-
- Task has **multiple valid approaches** and user hasn't indicated preference (e.g., modal vs page, tabs vs accordion, dark vs light)
|
|
2536
|
-
- Task involves **creative/aesthetic choices** (color, layout, tone, personality)
|
|
2537
|
-
- Task requires **workflow/interaction design** (how will users actually USE this feature?)
|
|
2538
|
-
- Mother Brain catches itself about to **guess or assume** specifics the user hasn't specified
|
|
2539
|
-
|
|
2540
|
-
**When to SKIP:**
|
|
2541
|
-
- Technical infrastructure (CI/CD, database migrations, dependency installs)
|
|
2542
|
-
- Bug fixes with clear reproduction steps and expected behavior
|
|
2543
|
-
- Tasks where Project Brain already has documented preferences for this category
|
|
2544
|
-
- Tasks where the user explicitly said "just make it work, I'll refine later"
|
|
2545
|
-
|
|
2546
|
-
**Mini Discovery Process:**
|
|
2547
|
-
|
|
2548
|
-
1. **Identify the Unknowns** — List what you DON'T know:
|
|
2549
|
-
```
|
|
2550
|
-
🔍 Mini Discovery — Task [Number]
|
|
2551
|
-
|
|
2552
|
-
I know the goal: [outcome]
|
|
2553
|
-
But I need to understand:
|
|
2554
|
-
- [Unknown 1: e.g., "How should the settings page be laid out?"]
|
|
2555
|
-
- [Unknown 2: e.g., "What tone should error messages use?"]
|
|
2556
|
-
- [Unknown 3: e.g., "Should this be a modal or a full page?"]
|
|
2557
|
-
```
|
|
2558
|
-
|
|
2559
|
-
2. **Ask Targeted Questions** — NOT open-ended. Offer concrete options:
|
|
2560
|
-
```
|
|
2561
|
-
For [unknown], which approach do you prefer?
|
|
2562
|
-
1. [Option A] — [brief description/tradeoff]
|
|
2563
|
-
2. [Option B] — [brief description/tradeoff]
|
|
2564
|
-
3. [Option C] — [brief description/tradeoff]
|
|
2565
|
-
|
|
2566
|
-
Reply with the number or describe what you have in mind.
|
|
2567
|
-
```
|
|
2568
|
-
- Ask 1-3 questions max per Mini Discovery (don't overwhelm)
|
|
2569
|
-
- Show visual examples or references when possible
|
|
2570
|
-
- If user says "you decide" → pick the most common/conventional approach and note it in Project Brain
|
|
2571
|
-
|
|
2572
|
-
3. **Research if Needed** — If user references something unfamiliar:
|
|
2573
|
-
- Use `web_search` to find examples, patterns, or best practices
|
|
2574
|
-
- Show user what you found: "Here's what [reference] looks like — is this the direction?"
|
|
2575
|
-
|
|
2576
|
-
4. **Record Discoveries** — Update Project Brain with new preferences:
|
|
2577
|
-
- Add to Style & Tone section
|
|
2578
|
-
- Add to Validation Checks if applicable
|
|
2579
|
-
- Update vision doc if discoveries reveal scope changes
|
|
2580
|
-
|
|
2581
|
-
5. **Expand Roadmap if Needed** — If Mini Discovery reveals:
|
|
2582
|
-
- The task is bigger than estimated → split into sub-tasks
|
|
2583
|
-
- A prerequisite is missing → add it before current task
|
|
2584
|
-
- A new feature emerged from discussion → add to roadmap backlog
|
|
2585
|
-
- Display: "📋 Roadmap updated with [X] new items from Mini Discovery"
|
|
2586
|
-
|
|
2587
|
-
6. **Build/Update Skills** — If discoveries reveal domain knowledge:
|
|
2588
|
-
- Create or update skills with user preferences
|
|
2589
|
-
- These skills now carry the user's specific choices for future tasks
|
|
2590
|
-
|
|
2591
|
-
**Display at Mini Discovery start:**
|
|
2592
|
-
```
|
|
2593
|
-
🔍 Mini Discovery — before I build this, let me understand what you're looking for...
|
|
2594
|
-
```
|
|
2595
|
-
|
|
2596
|
-
**Display at Mini Discovery end:**
|
|
2597
|
-
```
|
|
2598
|
-
✅ Mini Discovery complete — proceeding with implementation
|
|
2599
|
-
📘 Project Brain updated with [X] new preferences
|
|
2600
|
-
```
|
|
2601
|
-
|
|
2602
|
-
**KEY PRINCIPLE**: The goal is to understand HOW the user will experience the outcome, not just WHAT the outcome is. A login page can be minimal or elaborate, friendly or corporate, social-login-first or email-first — Mini Discovery captures these specifics so Mother Brain builds what the user actually envisioned.
|
|
2603
|
-
|
|
2604
|
-
---
|
|
2605
|
-
|
|
2606
|
-
- **Pre-Task Analysis** (after gate passes):
|
|
2607
|
-
- Load current task document
|
|
2608
|
-
- Look ahead at next 3-5 tasks in current phase
|
|
2609
|
-
- Identify patterns across these tasks that might warrant new skills
|
|
2610
|
-
- If patterns found:
|
|
2611
|
-
- Invoke skill-creator to create skills proactively
|
|
2612
|
-
- Do NOT ask user for approval (Expert Autonomy)
|
|
2613
|
-
|
|
2614
|
-
- **DATA EXPOSURE CHECK (MANDATORY - BLOCKING GATE)**:
|
|
2615
|
-
- Before implementing ANY task, check:
|
|
2616
|
-
- Does this task involve displaying/exposing user or customer data?
|
|
2617
|
-
- Data types to watch for: PII, orders, payments, health records, personal info, financial data, private messages, user activity
|
|
2618
|
-
- If task exposes sensitive data:
|
|
2619
|
-
1. Check if authentication/authorization exists in project
|
|
2620
|
-
2. If NO auth exists → BLOCK implementation
|
|
2621
|
-
3. Display: "⚠️ BLOCKED: This task exposes [data type] without access control. Authentication required first."
|
|
2622
|
-
4. Check roadmap for auth task → If missing, add "Authentication & Authorization" task to Phase 1
|
|
2623
|
-
5. Guide user: "Let's implement authentication before continuing with data-facing features"
|
|
2624
|
-
- This is a BLOCKING GATE - do NOT implement data-exposing features without access control
|
|
2625
|
-
- Only unblock when auth is implemented OR user explicitly confirms data is public/non-sensitive
|
|
2626
|
-
|
|
2627
|
-
- **MANDATORY Skill Check for Creative/Visual/Narrative Tasks**:
|
|
2628
|
-
- Before implementing ANY task that involves:
|
|
2629
|
-
- **Visual art**: Pixel art, sprites, character design, scene backgrounds, UI design
|
|
2630
|
-
- **Narrative**: Dialogue, story text, character voice, personality writing
|
|
2631
|
-
- **Audio**: Sound design, music, audio cues
|
|
2632
|
-
- **Animation**: Movement cycles, visual effects, transitions
|
|
2633
|
-
- MUST check `.github/skills/` for relevant existing skills
|
|
2634
|
-
- If NO relevant skill exists:
|
|
2635
|
-
1. STOP implementation immediately
|
|
2636
|
-
2. Research the domain (use web_search for best practices)
|
|
2637
|
-
3. Invoke skill-creator to create the required skill(s)
|
|
2638
|
-
4. THEN resume task execution using the new skill(s)
|
|
2639
|
-
- This is NON-NEGOTIABLE for quality - never improvise creative work without proper skill creation
|
|
2640
|
-
- Example triggers:
|
|
2641
|
-
- "Pixel art horses" → requires pixel-art-renderer skill
|
|
2642
|
-
- "Personality dialogue" → requires game-narrative-designer skill
|
|
2643
|
-
- "Stable background scene" → requires pixel-art-renderer skill
|
|
2644
|
-
- "Character expressions" → requires both pixel-art-renderer AND game-narrative-designer
|
|
2645
|
-
|
|
2646
|
-
- **Mid-Task Skill Detection (MANDATORY)**:
|
|
2647
|
-
- During task execution, continuously check: "Is this task revealing a reusable pattern?"
|
|
2648
|
-
- Patterns that warrant skill creation:
|
|
2649
|
-
- **Complexity**: Task requires 100+ lines of specialized code
|
|
2650
|
-
- **Domain expertise**: Task needs research into a specific domain (audio, networking, AI, etc.)
|
|
2651
|
-
- **Reusability**: Pattern would apply to other projects of this type
|
|
2652
|
-
- **Wizard opportunity**: Future invocations would benefit from discovery questions
|
|
2653
|
-
- If pattern detected mid-task:
|
|
2654
|
-
1. Complete current task manually (don't interrupt for skill creation)
|
|
2655
|
-
2. After task completion, before validation, note: "This task revealed a skill opportunity"
|
|
2656
|
-
3. Add to post-task reflection: "[domain]-skill could automate this for future projects"
|
|
2657
|
-
4. In Step 10B, create the skill for future use
|
|
2658
|
-
- Example patterns that should trigger skill creation:
|
|
2659
|
-
- Game sound design → game-sound-designer skill
|
|
2660
|
-
- Database schema design → schema-generator skill
|
|
2661
|
-
- API integration → api-integrator skill
|
|
2662
|
-
- Animation systems → animation-engine skill
|
|
2663
|
-
|
|
2664
|
-
- **Skill Matching**:
|
|
2665
|
-
- **Check `.github/skills/`** for all skills (framework + project-specific)
|
|
2666
|
-
- Scan task requirements against available skill capabilities
|
|
2667
|
-
- Identify which skills to use (if any)
|
|
2668
|
-
- Project skills are differentiated by `skillsCreated` array in session-state.json
|
|
2669
|
-
|
|
2670
|
-
- **Working Directory & Platform Patterns**: Consult Elder Brain for platform-specific patterns (working directory management, Windows directory creation). See `experience-vault/platforms/working-directory-management.md` for known gotchas. Key rule: never assume working directory persists between tool calls — use absolute paths or explicit `Set-Location`.
|
|
2671
|
-
|
|
2672
|
-
- **Execution**:
|
|
2673
|
-
- If skill exists: Invoke it using `skill` tool with task context
|
|
2674
|
-
- If no skill: Execute task following approach in task doc
|
|
2675
|
-
- Log decisions and progress in task document's "Notes & Decisions" section
|
|
2676
|
-
- Create deliverables as specified
|
|
2677
|
-
|
|
2678
|
-
- **Error Detection** (if issues occur during execution):
|
|
2679
|
-
- If build fails, tests fail, or output is broken:
|
|
2680
|
-
- Don't just fix and move on
|
|
2681
|
-
- Jump to **Step 9A: Error Detection & Self-Healing**
|
|
1195
|
+
- Mandatory task start gate with Project Brain loading, skill sufficiency check, blocking dependencies, Mini Discovery for user preferences, and mid-task skill detection.
|
|
1196
|
+
- **Read `references/task-execution.md`** for the full execution procedure (Steps 9.0–9.1, data exposure checks, skill matching, working directory patterns, and error detection)
|
|
1197
|
+
- Includes: Elder Brain consultation, Mini Discovery (on-demand preference check), creative/visual skill gates, and continuous skill pattern detection
|
|
2682
1198
|
|
|
2683
1199
|
### 9A. **Error Detection & Self-Healing**
|
|
2684
1200
|
- When errors occur during task execution:
|
|
@@ -2730,144 +1246,9 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
2730
1246
|
- After fixing, continue task execution from where it failed
|
|
2731
1247
|
|
|
2732
1248
|
### 10. **Task Validation** (Critical)
|
|
2733
|
-
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
2. If interface shows user/customer data (PII, orders, payments, health records, personal info):
|
|
2737
|
-
- Verify authentication/authorization is implemented
|
|
2738
|
-
- Test that unauthenticated users CANNOT access sensitive data
|
|
2739
|
-
- If NO auth → BLOCK deployment
|
|
2740
|
-
- Display: "⚠️ DEPLOYMENT BLOCKED: This interface exposes [data type] without access control."
|
|
2741
|
-
3. Only allow deployment if:
|
|
2742
|
-
- Authentication exists AND is tested, OR
|
|
2743
|
-
- User explicitly confirms data is public/non-sensitive, OR
|
|
2744
|
-
- Data is anonymized/aggregated with no PII
|
|
2745
|
-
- This is a BLOCKING GATE for deployments - never deploy data-exposing interfaces without access control
|
|
2746
|
-
|
|
2747
|
-
- After completing deliverables:
|
|
2748
|
-
- ✅ **Build Test**: If code, build/compile it
|
|
2749
|
-
- ✅ **Functional Test**: Present output to user using environment-aware strategy
|
|
2750
|
-
|
|
2751
|
-
**Environment-Aware Presentation**:
|
|
2752
|
-
1. Load `presentationPreferences` from session-state.json → environment
|
|
2753
|
-
2. Identify output type (HTML, image, JSON, PDF, etc.)
|
|
2754
|
-
3. Match output type to preferred method from environment discovery
|
|
2755
|
-
4. **Presentation Strategy** (layered fallback):
|
|
2756
|
-
- **Primary**: Use stored preference (browser path, VS Code extension, etc.)
|
|
2757
|
-
- **Validate**: Check if method succeeded (process started, no error)
|
|
2758
|
-
- **Fallback 1**: If primary fails, try alternative from `detectedBrowsers` or VS Code
|
|
2759
|
-
- **Fallback 2**: Provide clear manual instructions with full file path
|
|
2760
|
-
- **Update prompt**: If methods fail repeatedly, offer to re-run Step 2.5
|
|
2761
|
-
5. Log presentation method used in task document Notes section
|
|
2762
|
-
|
|
2763
|
-
**Example - HTML Output**:
|
|
2764
|
-
```powershell
|
|
2765
|
-
# Load preference from session-state: e.g., "edge" or full path
|
|
2766
|
-
$browserPref = $env.presentationPreferences.html
|
|
2767
|
-
$htmlPath = Resolve-Path "index.html"
|
|
2768
|
-
$fileUrl = "file:///$($htmlPath.Path.Replace('\', '/'))"
|
|
2769
|
-
|
|
2770
|
-
# If preference is command name (e.g., "msedge"), try it
|
|
2771
|
-
# If preference is full path, use it directly
|
|
2772
|
-
if (Test-Path $browserPref) {
|
|
2773
|
-
Start-Process $browserPref $fileUrl
|
|
2774
|
-
} else {
|
|
2775
|
-
Start-Process $browserPref $fileUrl # Try as command
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
# If error, try fallback browser from detectedBrowsers array
|
|
2779
|
-
# Always show: "Or manually open: C:\full\path\index.html"
|
|
2780
|
-
```
|
|
2781
|
-
|
|
2782
|
-
**Important**: Browser preference may be:
|
|
2783
|
-
- Command name: "msedge", "chrome", "firefox"
|
|
2784
|
-
- Full path: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
|
|
2785
|
-
- Handle both cases when invoking
|
|
2786
|
-
|
|
2787
|
-
**If presentation fails**:
|
|
2788
|
-
- Don't keep retrying the same method
|
|
2789
|
-
- Offer user choice: "Would you like to update presentation preferences?"
|
|
2790
|
-
- Jump to Step 2.5 if user wants to reconfigure
|
|
2791
|
-
|
|
2792
|
-
- ✅ **Verification**: Test against success criteria
|
|
2793
|
-
|
|
2794
|
-
- **Roadmap Cross-Check** (CRITICAL - prevents out-of-order implementation):
|
|
2795
|
-
1. Load current outcome from `docs/roadmap.md`
|
|
2796
|
-
2. Identify which acceptance criteria this work addresses
|
|
2797
|
-
3. If user mentions missing features:
|
|
2798
|
-
- Check if feature is in a future outcome
|
|
2799
|
-
- Explain: "That's planned for [Outcome Name]"
|
|
2800
|
-
- Offer: "Continue as planned" or "Adjust roadmap"
|
|
2801
|
-
|
|
2802
|
-
- **OUTCOME VALIDATION (User validates acceptance criteria, not tasks)**:
|
|
2803
|
-
|
|
2804
|
-
When ALL tasks under an outcome are complete, present the outcome for validation:
|
|
2805
|
-
|
|
2806
|
-
```
|
|
2807
|
-
📋 Outcome Complete: [Ability to do X]
|
|
2808
|
-
|
|
2809
|
-
Please verify each criterion — can you do this now?
|
|
2810
|
-
```
|
|
2811
|
-
|
|
2812
|
-
- **MANDATORY: Outcome Demo First (Interactive Experience)**:
|
|
2813
|
-
1. Read `references/outcome-demo.md`
|
|
2814
|
-
2. Launch the experience for the user (app/page/flow) so they can interact with the outcome
|
|
2815
|
-
- Do NOT ask the user to run startup commands
|
|
2816
|
-
- If launching fails, use one fallback, then provide clear manual steps
|
|
2817
|
-
3. Only after the demo is in front of the user, proceed to acceptance-criteria Yes/No sign-off
|
|
2818
|
-
|
|
2819
|
-
- For EACH acceptance criterion, use `ask_user` with choices:
|
|
2820
|
-
- "Yes, I can do this ✅"
|
|
2821
|
-
- "No, something's wrong ❌"
|
|
2822
|
-
|
|
2823
|
-
- **If "Yes"**: Mark criterion complete, proceed to next
|
|
2824
|
-
- **If "No"**:
|
|
2825
|
-
- Invoke Child Brain immediately (friction detected)
|
|
2826
|
-
- Child Brain analyzes what went wrong
|
|
2827
|
-
- Fix applied, re-validate this criterion
|
|
2828
|
-
|
|
2829
|
-
- **Example validation flow**:
|
|
2830
|
-
```
|
|
2831
|
-
📋 Ability to see my emails inside the portal
|
|
2832
|
-
|
|
2833
|
-
Criterion 1: I can see my inbox with sender, subject, and preview
|
|
2834
|
-
→ [Yes, I can do this] [No, something's wrong]
|
|
2835
|
-
|
|
2836
|
-
Criterion 2: I can click an email to read the full content
|
|
2837
|
-
→ [Yes, I can do this] [No, something's wrong]
|
|
2838
|
-
|
|
2839
|
-
Criterion 3: New emails appear without refreshing the page
|
|
2840
|
-
→ [Yes, I can do this] [No, something's wrong]
|
|
2841
|
-
```
|
|
2842
|
-
|
|
2843
|
-
- **All criteria pass**: Mark outcome complete (✅)
|
|
2844
|
-
- Update roadmap.md to check off the outcome
|
|
2845
|
-
- Display: "✅ [Outcome name] — complete!"
|
|
2846
|
-
- If issues: Jump to **Step 10A: Three-Layered Learning from Feedback**
|
|
2847
|
-
- Update task document with final status
|
|
2848
|
-
- Update roadmap checklist
|
|
2849
|
-
|
|
2850
|
-
**⚠️ CRITICAL: After marking task complete, proceed through Steps 10B, 10C, and optionally 10D before returning to the Outcome Execution Menu (Layer 3).**
|
|
2851
|
-
|
|
2852
|
-
**⛔ BLOCKING GATE - Steps 10B and 10C are MANDATORY:**
|
|
2853
|
-
```
|
|
2854
|
-
Task marked complete by user
|
|
2855
|
-
↓
|
|
2856
|
-
[STOP] Run Step 10B (Post-Task Reflection) ← Friction analysis via Child Brain
|
|
2857
|
-
↓
|
|
2858
|
-
[STOP] Run Step 10C (Project Brain Checkpoint) ← Update living documentation
|
|
2859
|
-
↓
|
|
2860
|
-
IF last task in phase → Run Step 10D (Phase Feedback Checkpoint)
|
|
2861
|
-
↓
|
|
2862
|
-
IF more tasks in outcome → Return to Step 10E (Outcome Execution Menu - Layer 3)
|
|
2863
|
-
IF outcome complete → Proceed to Step 11 (Roadmap Menu - Layer 2)
|
|
2864
|
-
```
|
|
2865
|
-
|
|
2866
|
-
**DO NOT skip Steps 10B or 10C.** Even if the task had no issues:
|
|
2867
|
-
1. Step 10B: Scan for friction, invoke Child Brain if found
|
|
2868
|
-
2. Step 10C: Update project documentation silently
|
|
2869
|
-
3. Step 10D: If phase complete, gather user feedback
|
|
2870
|
-
4. After checkpoints → return to Layer 3 (or Layer 2 if outcome is done)
|
|
1249
|
+
- Validates deliverables with data exposure checks, environment-aware presentation, outcome acceptance criteria, and mandatory post-task checkpoints.
|
|
1250
|
+
- **Read `references/task-validation.md`** for the full validation procedure (data exposure gates, presentation strategy, outcome demo, acceptance criteria flow, and blocking gates for Steps 10B/10C)
|
|
1251
|
+
- After marking task complete: MUST run Step 10B (Post-Task Reflection) → Step 10C (Project Brain Checkpoint) → optionally Step 10D (Phase Feedback) before returning to Layer 3
|
|
2871
1252
|
|
|
2872
1253
|
### 10A. **Friction Analysis via Child Brain**
|
|
2873
1254
|
- When user provides negative/adjustment feedback in task validation:
|
|
@@ -3318,147 +1699,9 @@ Progress: [X/Y] criteria verified
|
|
|
3318
1699
|
```
|
|
3319
1700
|
|
|
3320
1701
|
### 11A. **MVP Complete & Beyond** (Phase Transition Flow)
|
|
3321
|
-
-
|
|
3322
|
-
- **
|
|
3323
|
-
|
|
3324
|
-
**Step 11A.1: Detect MVP Completion**
|
|
3325
|
-
- After any task is marked complete:
|
|
3326
|
-
- Load `docs/roadmap.md`
|
|
3327
|
-
- Check if all Phase 1 tasks are complete
|
|
3328
|
-
- If not all complete: Skip this step, proceed normally
|
|
3329
|
-
- If all Phase 1 complete: Proceed with MVP completion flow
|
|
3330
|
-
|
|
3331
|
-
**Step 11A.2: Celebrate & Assess**
|
|
3332
|
-
- Display:
|
|
3333
|
-
```
|
|
3334
|
-
🎉 MVP Complete!
|
|
3335
|
-
|
|
3336
|
-
You've completed all Phase 1 tasks for [Project Name].
|
|
3337
|
-
|
|
3338
|
-
✅ What's Done:
|
|
3339
|
-
- [List key deliverables from Phase 1]
|
|
3340
|
-
|
|
3341
|
-
📋 Original MVP Definition (from vision):
|
|
3342
|
-
- [MVP criteria 1]
|
|
3343
|
-
- [MVP criteria 2]
|
|
3344
|
-
- [MVP criteria N]
|
|
3345
|
-
|
|
3346
|
-
Now let's make sure you achieve your actual goal.
|
|
3347
|
-
```
|
|
3348
|
-
|
|
3349
|
-
**Step 11A.3: Research "Done" Criteria for This Project Type**
|
|
3350
|
-
- Use `web_search` to research (project-agnostic):
|
|
3351
|
-
1. "[project type from roadmap] deployment best practices 2026"
|
|
3352
|
-
2. "[project type] CI/CD pipeline setup"
|
|
3353
|
-
3. "[project type] release checklist"
|
|
3354
|
-
4. "[project type] production launch requirements"
|
|
3355
|
-
|
|
3356
|
-
- Extract delivery patterns:
|
|
3357
|
-
- **Deployment Options**: (Vercel, AWS, self-hosted, app stores, etc.)
|
|
3358
|
-
- **CI/CD Requirements**: (automated testing, build pipelines, etc.)
|
|
3359
|
-
- **Release Checklists**: (what needs to happen before "live")
|
|
3360
|
-
- **Monitoring/Observability**: (logging, error tracking, analytics)
|
|
3361
|
-
|
|
3362
|
-
**Step 11A.4: Present "Done" Criteria Options**
|
|
3363
|
-
- Use `ask_user` with dynamically generated choices based on project type:
|
|
3364
|
-
- Example for web app: "Deploy to production (Vercel/Netlify)"
|
|
3365
|
-
- Example for web app: "Set up CI/CD pipeline (GitHub Actions)"
|
|
3366
|
-
- Example for mobile app: "Prepare app store submission"
|
|
3367
|
-
- Example for library: "Publish to npm/PyPI"
|
|
3368
|
-
- "My MVP is already 'done' - I just wanted it working locally"
|
|
3369
|
-
- "I need something else for 'done' (describe)"
|
|
3370
|
-
|
|
3371
|
-
- Question: "What does 'done' mean for you? What makes this MVP complete?"
|
|
3372
|
-
|
|
3373
|
-
- If user selects a delivery option:
|
|
3374
|
-
- Check if relevant skill exists (e.g., "deployment-manager", "cicd-setup")
|
|
3375
|
-
- If skill doesn't exist: Invoke skill-creator to create delivery skill
|
|
3376
|
-
- Execute delivery using appropriate skill
|
|
3377
|
-
- Validate deployment/release succeeded
|
|
3378
|
-
|
|
3379
|
-
**Step 11A.5: Post-MVP Direction Menu**
|
|
3380
|
-
- After "done" criteria achieved (or skipped), present direction options:
|
|
3381
|
-
|
|
3382
|
-
- Display:
|
|
3383
|
-
```
|
|
3384
|
-
🧠 MVP Delivered! What's Next?
|
|
3385
|
-
|
|
3386
|
-
Your project is now at a decision point:
|
|
3387
|
-
|
|
3388
|
-
Current State:
|
|
3389
|
-
- Phase 1: ✅ Complete
|
|
3390
|
-
- "Done" Criteria: [Achieved/Skipped]
|
|
3391
|
-
- Phases Remaining: [Count]
|
|
3392
|
-
- Tasks in Post-MVP Backlog: [Count]
|
|
3393
|
-
```
|
|
3394
|
-
|
|
3395
|
-
- Use `ask_user` with choices:
|
|
3396
|
-
- "Extend roadmap - plan Phase 2 tasks in detail"
|
|
3397
|
-
- "Take a new direction - replan based on learnings"
|
|
3398
|
-
- "Add new features to roadmap (describe what you want)"
|
|
3399
|
-
- "Pause project - save progress and stop here"
|
|
3400
|
-
- "Continue exactly as planned in roadmap"
|
|
3401
|
-
|
|
3402
|
-
**Step 11A.6: Handle User's Direction Choice**
|
|
3403
|
-
|
|
3404
|
-
**If "Extend roadmap":**
|
|
3405
|
-
- Load Phase 2+ from roadmap (high-level items)
|
|
3406
|
-
- For each Phase 2+ item:
|
|
3407
|
-
- Break down into detailed tasks
|
|
3408
|
-
- Create task documents (like Step 8)
|
|
3409
|
-
- Identify patterns that need new skills
|
|
3410
|
-
- If new patterns detected: Create skills using skill-creator
|
|
3411
|
-
- Update roadmap with detailed tasks
|
|
3412
|
-
- Return to Step 11 (Roadmap Menu)
|
|
3413
|
-
|
|
3414
|
-
**If "Take a new direction":**
|
|
3415
|
-
- Use `ask_user` (freeform): "What direction do you want to take the project?"
|
|
3416
|
-
- Re-run vision discovery (Step 3) with context of what exists
|
|
3417
|
-
- Generate new roadmap phases while preserving completed work
|
|
3418
|
-
- Create any needed new skills using skill-creator
|
|
3419
|
-
- Return to Step 11 (Roadmap Menu)
|
|
3420
|
-
|
|
3421
|
-
**If "Add new features":**
|
|
3422
|
-
- Use `ask_user` (freeform): "What features do you want to add?"
|
|
3423
|
-
- Analyze feature description for skill patterns
|
|
3424
|
-
- If patterns detected that need skills:
|
|
3425
|
-
- Display: "I detect patterns that could benefit from new skills:"
|
|
3426
|
-
- List detected patterns
|
|
3427
|
-
- Invoke skill-creator for each pattern
|
|
3428
|
-
- Add features as new tasks to appropriate phase
|
|
3429
|
-
- Update roadmap
|
|
3430
|
-
- Return to Step 11 (Roadmap Menu)
|
|
3431
|
-
|
|
3432
|
-
**If "Pause project":**
|
|
3433
|
-
- Save comprehensive session state
|
|
3434
|
-
- Display summary of what was achieved
|
|
3435
|
-
- Explain how to resume
|
|
3436
|
-
- End session
|
|
3437
|
-
|
|
3438
|
-
**If "Continue as planned":**
|
|
3439
|
-
- Load next phase from roadmap
|
|
3440
|
-
- Proceed to first task of next phase
|
|
3441
|
-
- Return to Step 8 (Task Document Creation)
|
|
3442
|
-
|
|
3443
|
-
**Step 11A.7: Skill Pattern Detection**
|
|
3444
|
-
- Throughout this step, monitor user's freeform inputs for skill patterns
|
|
3445
|
-
- When user describes new features/directions:
|
|
3446
|
-
1. Analyze description for repetitive patterns that warrant skills
|
|
3447
|
-
2. If patterns detected:
|
|
3448
|
-
- Display: "🎯 I detected patterns that could use specialized skills:"
|
|
3449
|
-
- List patterns with potential skill names
|
|
3450
|
-
- Proceed to create skills automatically (Expert Autonomy)
|
|
3451
|
-
3. For each pattern:
|
|
3452
|
-
- Invoke skill-creator with context
|
|
3453
|
-
- Validate skill works
|
|
3454
|
-
- Add to session-state.json skillsCreated array
|
|
3455
|
-
|
|
3456
|
-
**Key Principles**:
|
|
3457
|
-
- **"Done" is user-defined**: Don't assume what "complete" means
|
|
3458
|
-
- **Research-driven delivery**: Use web search to find best practices for this project type
|
|
3459
|
-
- **Skill detection on new input**: Any time user describes new features, analyze for skill patterns
|
|
3460
|
-
- **Project-agnostic**: Works for web apps, mobile apps, libraries, CLIs, games, etc.
|
|
3461
|
-
- **Preserve learnings**: Replanning doesn't discard completed work or learned skills
|
|
1702
|
+
- Triggered when last Phase 1 (MVP) task completes. Celebrates MVP, researches "done" criteria for the project type, and presents post-MVP direction options.
|
|
1703
|
+
- **Read `references/mvp-complete.md`** for the full MVP completion and phase transition workflow (Steps 11A.1–11A.7)
|
|
1704
|
+
- Covers: MVP detection, celebration, deployment/release research, "done" criteria options, post-MVP direction menu, and skill pattern detection on new input
|
|
3462
1705
|
|
|
3463
1706
|
### 12. **Freeform Classification** (Utility Step)
|
|
3464
1707
|
|