mother-brain 0.5.2 → 0.6.0
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 +822 -89
- package/skills/mother-brain/references/improvement-pipeline.md +0 -114
- package/skills/mother-brain/references/onboarding-workflow.md +0 -71
- package/skills/mother-brain/references/release-checklist.md +0 -65
- package/skills/mother-brain/references/setup-validation.md +0 -70
package/dist/cli.js
CHANGED
|
@@ -798,7 +798,7 @@ async function uninstall(options) {
|
|
|
798
798
|
// src/cli.ts
|
|
799
799
|
import { exec as exec3 } from "child_process";
|
|
800
800
|
var program = new Command();
|
|
801
|
-
var VERSION = "0.5.
|
|
801
|
+
var VERSION = "0.5.1";
|
|
802
802
|
program.name("mother-brain").description("AI-powered project management framework for GitHub Copilot CLI and Codex CLI").version(VERSION);
|
|
803
803
|
program.command("init").description("Initialize Mother Brain in the current project").option("-f, --force", "Overwrite existing skills").action(init);
|
|
804
804
|
program.command("update").description("Update Mother Brain skills to the latest version").action(update);
|
package/package.json
CHANGED
|
@@ -211,9 +211,12 @@ Mother Brain transforms high-level visions into executable reality by:
|
|
|
211
211
|
- **Product-first thinking**: Focus on outcomes, not implementation details
|
|
212
212
|
- **Vision clarity**: Always trace back to the WHY
|
|
213
213
|
- **Adaptive planning**: Roadmaps are living documents, not contracts
|
|
214
|
+
- **Outcome-Driven Roadmap (CORE PRINCIPLE)**: Roadmaps are organized by **Outcomes** (user abilities), not tasks. Each outcome is an "Ability to [do something]" that fulfills a user need. Tasks exist only as internal implementation details. Users validate **acceptance criteria** for outcomes, never technical tasks. This keeps validation meaningful ("Can I now do X?") rather than abstract ("Does this code look right?").
|
|
215
|
+
- **User Needs as Foundation**: During Vision Discovery, capture explicit user needs as "Ability to..." statements. These become the outcomes in the roadmap. Every outcome traces back to which user need it fulfills.
|
|
216
|
+
- **Acceptance Criteria Validation**: User signs off on acceptance criteria for each outcome, not on individual tasks. For each criterion, ask: "Can you do this now? Yes/No". If "No" → invoke Child Brain to analyze and fix.
|
|
214
217
|
- **Best practice structure**: Organize projects using standard dev conventions
|
|
215
218
|
- **Skill automation**: Create skills for repetitive tasks proactively
|
|
216
|
-
- **User validation**: Always confirm
|
|
219
|
+
- **User validation**: Always confirm outcomes meet expectations via acceptance criteria before marking complete
|
|
217
220
|
- **Self-improvement**: Learn from user feedback and update own SKILL.md to prevent future issues
|
|
218
221
|
- **Transparency**: Document decisions, rationale, and changes
|
|
219
222
|
- **Wizard pattern for all interactions**: Use `ask_user` tool with numbered, selectable choices (2-3 options) for ALL user decisions—never ask freeform yes/no questions in text
|
|
@@ -597,9 +600,75 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
597
600
|
|
|
598
601
|
### 2.2. **Existing Project Onboarding**
|
|
599
602
|
- When user selects to onboard Mother Brain into an existing project:
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
-
|
|
603
|
+
|
|
604
|
+
**Step 2.2.1: Deep Repo Analysis**
|
|
605
|
+
- Scan ALL files in the directory (not just specific ones)
|
|
606
|
+
- Use `glob` and `view` to understand:
|
|
607
|
+
- **Project Type**: What kind of project is this? (web app, game, library, CLI, etc.)
|
|
608
|
+
- **Tech Stack**: Languages, frameworks, dependencies
|
|
609
|
+
- **Architecture**: Folder structure, patterns, modules
|
|
610
|
+
- **Features Built**: What functionality already exists?
|
|
611
|
+
- **Current State**: Is it working? Partially complete? Early stage?
|
|
612
|
+
|
|
613
|
+
- Display findings:
|
|
614
|
+
```
|
|
615
|
+
🔍 Project Analysis Complete
|
|
616
|
+
|
|
617
|
+
What I Found:
|
|
618
|
+
- Type: [Project type detected]
|
|
619
|
+
- Tech Stack: [Languages, frameworks]
|
|
620
|
+
- Features Built: [List of detected features]
|
|
621
|
+
- Current State: [Assessment of completeness]
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
**Step 2.2.2: Vision Extraction (Clarifying Questions)**
|
|
625
|
+
- Ask user questions to fill gaps (like vision discovery, but informed by analysis):
|
|
626
|
+
- "What is the main goal of this project?"
|
|
627
|
+
- "Who is this for? Who will use it?"
|
|
628
|
+
- "What problem does this solve?"
|
|
629
|
+
- "What inspired this project?" (to trigger domain research)
|
|
630
|
+
- "What's the most important thing to get right?"
|
|
631
|
+
- "Where are you trying to get to next? What's your next milestone?"
|
|
632
|
+
|
|
633
|
+
- Create `.mother-brain/docs/vision.md` with extracted vision
|
|
634
|
+
|
|
635
|
+
**Step 2.2.3: Retrospective Roadmap**
|
|
636
|
+
- Build roadmap that reflects reality:
|
|
637
|
+
- **Phase 0 (Done)**: What's already built (based on repo analysis)
|
|
638
|
+
- **Phase 1 (Current)**: What's in progress or next immediate steps
|
|
639
|
+
- **Phase 2+**: Future milestones based on user's stated goals
|
|
640
|
+
|
|
641
|
+
- Mark completed work as DONE in roadmap
|
|
642
|
+
- Identify current position in timeline
|
|
643
|
+
|
|
644
|
+
- Create `.mother-brain/docs/roadmap.md`
|
|
645
|
+
|
|
646
|
+
**Step 2.2.4: Skill Identification**
|
|
647
|
+
- Analyze patterns in existing code
|
|
648
|
+
- Identify repetitive work that warrants skills
|
|
649
|
+
- Invoke skill-creator for detected patterns
|
|
650
|
+
|
|
651
|
+
**Step 2.2.5: Confirmation**
|
|
652
|
+
- Display:
|
|
653
|
+
```
|
|
654
|
+
✅ Mother Brain Onboarded!
|
|
655
|
+
|
|
656
|
+
📋 Vision: Captured
|
|
657
|
+
📊 Roadmap: [X] tasks identified
|
|
658
|
+
- [Y] already complete
|
|
659
|
+
- [Z] remaining
|
|
660
|
+
🛠️ Skills: [N] identified for creation
|
|
661
|
+
|
|
662
|
+
Ready to help you reach your next milestone!
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
- Use `ask_user` with choices:
|
|
666
|
+
- "Start next task"
|
|
667
|
+
- "Review the roadmap"
|
|
668
|
+
- "Review the vision"
|
|
669
|
+
- "Adjust something before continuing"
|
|
670
|
+
|
|
671
|
+
- Proceed to normal workflow (Step 8+)
|
|
603
672
|
|
|
604
673
|
### 2A. **Improve Mother Brain Menu** (From Any Project)
|
|
605
674
|
- When user selects "🧠 Improve Mother Brain" from the existing project menu:
|
|
@@ -684,10 +753,217 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
684
753
|
|
|
685
754
|
### 2A.1 **Send Improvement** (Automatic Multi-Issue Contribution)
|
|
686
755
|
- When user selects "📤 Send my local improvements":
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
756
|
+
|
|
757
|
+
**Purpose**: Automatically detect ALL local Mother Brain improvements, parse learning logs for each distinct improvement, and submit a separate GitHub issue for each one. Handles multiple improvements in one session.
|
|
758
|
+
|
|
759
|
+
**AUTOMATIC WORKFLOW (No User Prompts)**:
|
|
760
|
+
|
|
761
|
+
**Step 2A.1.1: Gather All Improvement Sources**
|
|
762
|
+
|
|
763
|
+
- Collect from THREE sources:
|
|
764
|
+
|
|
765
|
+
**Source 1: Learning Log Entries**
|
|
766
|
+
- Read `.mother-brain/project-brain.md` or `docs/learning-log.md`
|
|
767
|
+
- Parse for individual learning entries (marked by `## [Date]` or similar)
|
|
768
|
+
- Each entry = potential improvement
|
|
769
|
+
- Extract: date, trigger, learning, resolution
|
|
770
|
+
|
|
771
|
+
**Source 2: Core File Changes**
|
|
772
|
+
- Get changes to Mother Brain core files:
|
|
773
|
+
```powershell
|
|
774
|
+
git diff HEAD -- ".github/skills/mother-brain/SKILL.md"
|
|
775
|
+
git diff HEAD -- ".github/skills/child-brain/SKILL.md"
|
|
776
|
+
git diff HEAD -- ".github/skills/skill-creator/SKILL.md"
|
|
777
|
+
```
|
|
778
|
+
- If files are new/untracked: `git diff /dev/null -- [file]`
|
|
779
|
+
|
|
780
|
+
**Source 3: Conversation Context**
|
|
781
|
+
- Scan conversation history for:
|
|
782
|
+
- Friction points discussed
|
|
783
|
+
- Problems reported
|
|
784
|
+
- Solutions implemented
|
|
785
|
+
- Pattern: "this isn't working" → "fixed by..."
|
|
786
|
+
|
|
787
|
+
- **If no improvements found across all sources**:
|
|
788
|
+
- Display: "📭 No local Mother Brain improvements to send."
|
|
789
|
+
- Return to Step 2A (Improve Mother Brain Menu)
|
|
790
|
+
|
|
791
|
+
**Step 2A.1.1A: Check Issues Tracker (Deduplication)**
|
|
792
|
+
|
|
793
|
+
- Check if `.mother-brain/issues-tracker.md` exists
|
|
794
|
+
- **If exists**:
|
|
795
|
+
- Read file and parse submitted issues list
|
|
796
|
+
- Extract issue numbers and titles already submitted
|
|
797
|
+
- Store in memory for comparison
|
|
798
|
+
- **If doesn't exist**:
|
|
799
|
+
- Create empty tracker file with template:
|
|
800
|
+
```markdown
|
|
801
|
+
# Mother Brain Issues Tracker
|
|
802
|
+
|
|
803
|
+
## Issues Submitted to GitHub (super-state/mother-brain)
|
|
804
|
+
|
|
805
|
+
(No issues submitted yet)
|
|
806
|
+
```
|
|
807
|
+
|
|
808
|
+
**Step 2A.1.2: Correlate Learnings with File Changes**
|
|
809
|
+
|
|
810
|
+
- For each learning entry found:
|
|
811
|
+
1. Identify which file(s) were modified for this learning
|
|
812
|
+
2. Extract the relevant diff sections (not the whole file diff)
|
|
813
|
+
3. Match learning description to code changes
|
|
814
|
+
|
|
815
|
+
- Group by improvement type:
|
|
816
|
+
- **Behavioral improvements** → Mother Brain SKILL.md changes
|
|
817
|
+
- **Feedback handling** → Child Brain SKILL.md changes
|
|
818
|
+
- **Skill creation** → Skill Creator SKILL.md changes
|
|
819
|
+
|
|
820
|
+
**Step 2A.1.3: Generate Individual Issues (with Deduplication)**
|
|
821
|
+
|
|
822
|
+
- **Before generating issues**: Check each improvement against issues tracker
|
|
823
|
+
- Compare improvement title/description against already-submitted issues
|
|
824
|
+
- If match found: Skip this improvement
|
|
825
|
+
- If no match: Proceed to generate issue
|
|
826
|
+
|
|
827
|
+
- Display deduplication results:
|
|
828
|
+
```
|
|
829
|
+
🔍 Checking for duplicate submissions...
|
|
830
|
+
|
|
831
|
+
Found [X] improvements:
|
|
832
|
+
- [Y] new (will be submitted)
|
|
833
|
+
- [Z] already submitted (skipped)
|
|
834
|
+
```
|
|
835
|
+
|
|
836
|
+
- **If all improvements already submitted**:
|
|
837
|
+
- Display: "✅ All improvements already submitted! No duplicates created."
|
|
838
|
+
- Return to Step 2A (Improve Mother Brain Menu)
|
|
839
|
+
|
|
840
|
+
- For EACH NEW (not duplicate) improvement, create a separate issue:
|
|
841
|
+
|
|
842
|
+
```markdown
|
|
843
|
+
Title: [Improvement] [Brief title describing THIS specific improvement]
|
|
844
|
+
|
|
845
|
+
## Summary
|
|
846
|
+
[2-3 sentences explaining what this specific improvement does]
|
|
847
|
+
|
|
848
|
+
## Problem
|
|
849
|
+
[What friction was encountered that triggered this improvement]
|
|
850
|
+
|
|
851
|
+
## Solution
|
|
852
|
+
[How Mother Brain addressed the friction]
|
|
853
|
+
|
|
854
|
+
## Changes Made
|
|
855
|
+
**File**: [filename] (lines ~X-Y)
|
|
856
|
+
|
|
857
|
+
<details>
|
|
858
|
+
<summary>View diff</summary>
|
|
859
|
+
|
|
860
|
+
```diff
|
|
861
|
+
[relevant diff for THIS improvement only - not entire file]
|
|
862
|
+
```
|
|
863
|
+
</details>
|
|
864
|
+
|
|
865
|
+
## Benefits
|
|
866
|
+
[How this helps all Mother Brain users]
|
|
867
|
+
|
|
868
|
+
## Testing
|
|
869
|
+
[How the improvement was validated]
|
|
870
|
+
|
|
871
|
+
---
|
|
872
|
+
*Submitted via Mother Brain v[version]*
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
**Step 2A.1.4: Submit Issues via gh CLI**
|
|
876
|
+
|
|
877
|
+
- **Pre-flight Check**: Verify gh CLI is available and authenticated
|
|
878
|
+
```powershell
|
|
879
|
+
gh --version
|
|
880
|
+
gh auth status
|
|
881
|
+
```
|
|
882
|
+
|
|
883
|
+
- **If gh CLI available and authenticated**:
|
|
884
|
+
- For each generated improvement:
|
|
885
|
+
1. Create GitHub issue using gh CLI:
|
|
886
|
+
```powershell
|
|
887
|
+
gh issue create --repo super-state/mother-brain --title "[title]" --body "[body]"
|
|
888
|
+
```
|
|
889
|
+
2. Parse output to get issue number and URL
|
|
890
|
+
3. Collect issue numbers and URLs
|
|
891
|
+
4. Add small delay between submissions (avoid rate limiting): `Start-Sleep -Seconds 2`
|
|
892
|
+
|
|
893
|
+
- Target repository: `super-state/mother-brain`
|
|
894
|
+
- Detected from: git remote (if configured)
|
|
895
|
+
- Fallback: hardcoded default
|
|
896
|
+
|
|
897
|
+
- **If gh CLI not installed or not authenticated**:
|
|
898
|
+
- **Fallback to manual submission**:
|
|
899
|
+
1. Save each issue to `.mother-brain/github-issues/issue-[N].md`
|
|
900
|
+
2. Display instructions:
|
|
901
|
+
```
|
|
902
|
+
⚠️ gh CLI not available
|
|
903
|
+
|
|
904
|
+
To auto-submit improvements, install gh CLI:
|
|
905
|
+
https://cli.github.com
|
|
906
|
+
|
|
907
|
+
Then authenticate: gh auth login
|
|
908
|
+
|
|
909
|
+
📁 Issue content saved to:
|
|
910
|
+
- .mother-brain/github-issues/issue-1.md
|
|
911
|
+
- .mother-brain/github-issues/issue-2.md
|
|
912
|
+
|
|
913
|
+
You can submit these manually at:
|
|
914
|
+
https://github.com/super-state/mother-brain/issues/new
|
|
915
|
+
```
|
|
916
|
+
3. Return to main menu with saved files
|
|
917
|
+
|
|
918
|
+
**Step 2A.1.5: Update Issues Tracker & Display Results**
|
|
919
|
+
|
|
920
|
+
- **Update `.mother-brain/issues-tracker.md`**:
|
|
921
|
+
- Add new section for this session (if new issues were created):
|
|
922
|
+
```markdown
|
|
923
|
+
### Session: [Date] - [Context]
|
|
924
|
+
|
|
925
|
+
| Issue # | Title | Status | URL |
|
|
926
|
+
|---------|-------|--------|-----|
|
|
927
|
+
| #[N] | [Title] | ✅ Submitted | [URL] |
|
|
928
|
+
```
|
|
929
|
+
- Commit changes to git:
|
|
930
|
+
```powershell
|
|
931
|
+
git add .mother-brain/issues-tracker.md
|
|
932
|
+
git commit -m "docs: track submitted issues from [session context]"
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
- Display summary of ALL submitted issues:
|
|
936
|
+
```
|
|
937
|
+
✅ Improvements Submitted!
|
|
938
|
+
|
|
939
|
+
Created [N] new issues:
|
|
940
|
+
|
|
941
|
+
📝 #[1]: [title1]
|
|
942
|
+
[issue URL]
|
|
943
|
+
|
|
944
|
+
📝 #[2]: [title2]
|
|
945
|
+
[issue URL]
|
|
946
|
+
|
|
947
|
+
📝 #[3]: [title3]
|
|
948
|
+
[issue URL]
|
|
949
|
+
|
|
950
|
+
[If any were skipped] Skipped [Z] duplicates already submitted
|
|
951
|
+
|
|
952
|
+
Your contributions are now visible to maintainers.
|
|
953
|
+
Tracker updated: .mother-brain/issues-tracker.md
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
- Use `ask_user` with choices:
|
|
957
|
+
- "Keep local changes (for further work)"
|
|
958
|
+
- "Revert Mother Brain files (clean slate)"
|
|
959
|
+
|
|
960
|
+
- **If revert selected**:
|
|
961
|
+
```powershell
|
|
962
|
+
git checkout HEAD -- ".github/skills/mother-brain/" ".github/skills/child-brain/" ".github/skills/skill-creator/" "cli/"
|
|
963
|
+
```
|
|
964
|
+
- Display: "✨ Local Mother Brain files reverted to clean slate."
|
|
965
|
+
|
|
966
|
+
- Return to main menu (Step 2)
|
|
691
967
|
|
|
692
968
|
### 2A.2 **Review Community Improvements** (Maintainer Workflow)
|
|
693
969
|
- **Access**: Only shown when meta-mode is active (in Mother Brain framework repo)
|
|
@@ -1048,10 +1324,92 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
1048
1324
|
|
|
1049
1325
|
### 2D. **Release Mother Brain** (Framework Versioning)
|
|
1050
1326
|
- When user selects "Release Mother Brain" from menu or after eject:
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1327
|
+
|
|
1328
|
+
**Purpose**: One-click release - commit, version bump, push, tag, and publish.
|
|
1329
|
+
|
|
1330
|
+
**Prerequisite**: Must be in the mother-brain framework folder (not a project folder)
|
|
1331
|
+
|
|
1332
|
+
**⚡ MANDATORY RELEASE CHECKLIST (All items MUST be completed)**
|
|
1333
|
+
|
|
1334
|
+
Every release MUST update ALL of the following:
|
|
1335
|
+
```
|
|
1336
|
+
[ ] cli/package.json - version field
|
|
1337
|
+
[ ] cli/src/cli.ts - version constant (if exists)
|
|
1338
|
+
[ ] README.md - version badge AND version text
|
|
1339
|
+
[ ] Git commit with changes
|
|
1340
|
+
[ ] Git tag (v0.0.X)
|
|
1341
|
+
[ ] Push to remote (main + tags)
|
|
1342
|
+
[ ] GitHub Release (created automatically by workflow)
|
|
1343
|
+
[ ] npm publish (triggered by tag push via workflow)
|
|
1344
|
+
```
|
|
1345
|
+
|
|
1346
|
+
**⛔ BLOCKING RULE**: Do NOT return to menu until ALL items above are completed.
|
|
1347
|
+
|
|
1348
|
+
**⚡ ONE-CLICK RELEASE FLOW (No prompts, no menus)**
|
|
1349
|
+
|
|
1350
|
+
When user selects "Release Mother Brain", execute ALL of the following automatically:
|
|
1351
|
+
|
|
1352
|
+
**Step 2D.1: Verify & Analyze**
|
|
1353
|
+
- Check current folder is mother-brain framework folder
|
|
1354
|
+
- If in a project folder: Display error and offer to return to framework
|
|
1355
|
+
- Run `git status` to verify there are changes to release
|
|
1356
|
+
- If no changes: Display "Nothing to release" and return to menu
|
|
1357
|
+
|
|
1358
|
+
**Step 2D.2: Auto-Determine Version**
|
|
1359
|
+
- Read current version from `cli/package.json`
|
|
1360
|
+
- Scan learning-log.md entries since last release tag (if exists)
|
|
1361
|
+
- **Auto-determine version bump**:
|
|
1362
|
+
- If any entry contains "breaking" or "major" → **major** bump (X.0.0)
|
|
1363
|
+
- If any entry contains "feature", "new", "add" → **minor** bump (0.X.0)
|
|
1364
|
+
- Otherwise → **patch** bump (0.0.X)
|
|
1365
|
+
- Do NOT ask user - auto-decide based on content
|
|
1366
|
+
|
|
1367
|
+
**Step 2D.3: Update ALL Version References (MANDATORY)**
|
|
1368
|
+
- Update `cli/package.json`: `"version": "[new-version]"`
|
|
1369
|
+
- Update `cli/src/cli.ts`: version constant (search for old version, replace with new)
|
|
1370
|
+
- Update `README.md`:
|
|
1371
|
+
- Find `version-X.X.X-blue` badge and replace with new version
|
|
1372
|
+
- Find `**Version**: X.X.X` text and replace with new version
|
|
1373
|
+
- **Verify all files updated before proceeding**
|
|
1374
|
+
|
|
1375
|
+
**Step 2D.4: Sync Skills to CLI and Agents**
|
|
1376
|
+
- Copy `.github/skills/*` to `cli/skills/` (overwrite) — for npm package
|
|
1377
|
+
- Verify `.agents/skills/` symlinks point to `.github/skills/` — for Codex CLI in framework repo
|
|
1378
|
+
|
|
1379
|
+
**Step 2D.5: Build CLI**
|
|
1380
|
+
- Run `cd cli && npm run build`
|
|
1381
|
+
- If build fails: STOP and display error
|
|
1382
|
+
|
|
1383
|
+
**Step 2D.6: Execute Git Operations**
|
|
1384
|
+
- Stage all changes: `git add -A`
|
|
1385
|
+
- Commit: `git commit -m "[type]: [description] (v[version])"`
|
|
1386
|
+
- Create tag: `git tag v[version]`
|
|
1387
|
+
- **Push to origin (super-state) ONLY**: `git push origin main --tags`
|
|
1388
|
+
- **NEVER push to personal fork** - only super-state has npm publish token
|
|
1389
|
+
|
|
1390
|
+
**Step 2D.7: Confirmation**
|
|
1391
|
+
- Wait for workflow to complete (or check status)
|
|
1392
|
+
- Display:
|
|
1393
|
+
```
|
|
1394
|
+
✅ Release v[version] Published!
|
|
1395
|
+
|
|
1396
|
+
✅ cli/package.json updated
|
|
1397
|
+
✅ cli/src/cli.ts updated
|
|
1398
|
+
✅ README.md updated
|
|
1399
|
+
✅ Git tag created and pushed
|
|
1400
|
+
✅ GitHub Release created (via workflow)
|
|
1401
|
+
✅ npm publish triggered (via workflow)
|
|
1402
|
+
|
|
1403
|
+
Tag: v[version]
|
|
1404
|
+
Release: https://github.com/superdenby/MotherBrain/releases/tag/v[version]
|
|
1405
|
+
```
|
|
1406
|
+
|
|
1407
|
+
- Use `ask_user` with choices:
|
|
1408
|
+
- "Open release on GitHub"
|
|
1409
|
+
- "Return to main menu"
|
|
1410
|
+
- "Start new project"
|
|
1411
|
+
|
|
1412
|
+
- Handle selection appropriately
|
|
1055
1413
|
|
|
1056
1414
|
### 2E. **Brainstorm Mode** (Thinking Partner)
|
|
1057
1415
|
- When user selects "Just talk (brainstorm mode)":
|
|
@@ -1700,10 +2058,11 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
1700
2058
|
- **The Problem/Opportunity**: What pain point or gap exists?
|
|
1701
2059
|
- **The Vision**: What does success look like?
|
|
1702
2060
|
- **The Users**: Who benefits? Who uses it?
|
|
2061
|
+
- **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.
|
|
1703
2062
|
- **Differentiators**: What makes this unique in the space?
|
|
1704
2063
|
- **Aesthetic/Experience**: How should it feel? Look? Sound?
|
|
1705
2064
|
- **Constraints**: Budget, skills, platform limitations?
|
|
1706
|
-
- **MVP Scope**:
|
|
2065
|
+
- **MVP Scope**: Which user needs are essential for MVP vs nice-to-have?
|
|
1707
2066
|
- **Data Sensitivity (MANDATORY)**: If project involves user/customer data:
|
|
1708
2067
|
- Identify what data is handled (PII, orders, payments, health data, financial data, personal info)
|
|
1709
2068
|
- Ask: "Who should have access to this data?"
|
|
@@ -1876,8 +2235,43 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
1876
2235
|
- **Proceed to Step 4** (Vision Document Creation)
|
|
1877
2236
|
|
|
1878
2237
|
### 4. **Vision Document Creation**
|
|
1879
|
-
-
|
|
1880
|
-
|
|
2238
|
+
- Create `docs/vision.md` with structured content:
|
|
2239
|
+
```markdown
|
|
2240
|
+
# [Project Name] - Vision
|
|
2241
|
+
|
|
2242
|
+
## The Problem
|
|
2243
|
+
[User's pain point/opportunity]
|
|
2244
|
+
|
|
2245
|
+
## The Vision
|
|
2246
|
+
[3-12 month desired future state]
|
|
2247
|
+
|
|
2248
|
+
## Target Users
|
|
2249
|
+
[Who benefits and how]
|
|
2250
|
+
|
|
2251
|
+
## Why This Matters
|
|
2252
|
+
[The deeper purpose]
|
|
2253
|
+
|
|
2254
|
+
## User Needs
|
|
2255
|
+
> These are the core abilities users need. Each becomes an outcome in the roadmap.
|
|
2256
|
+
|
|
2257
|
+
| Need | Description | MVP? |
|
|
2258
|
+
|------|-------------|------|
|
|
2259
|
+
| Ability to [do X] | [Why this matters] | ✅/❌ |
|
|
2260
|
+
| Ability to [do Y] | [Why this matters] | ✅/❌ |
|
|
2261
|
+
| Ability to [do Z] | [Why this matters] | ✅/❌ |
|
|
2262
|
+
|
|
2263
|
+
## Success Looks Like
|
|
2264
|
+
[Measurable outcomes - tied to user needs being fulfilled]
|
|
2265
|
+
|
|
2266
|
+
## Constraints
|
|
2267
|
+
[Budget, skills, tech preferences. NOT timeline - AI has no time constraints.]
|
|
2268
|
+
|
|
2269
|
+
## MVP Definition
|
|
2270
|
+
[Which user needs must be fulfilled for minimum viable success]
|
|
2271
|
+
|
|
2272
|
+
## Strategic Themes
|
|
2273
|
+
[3-5 key focus areas derived from vision]
|
|
2274
|
+
```
|
|
1881
2275
|
|
|
1882
2276
|
- Create `README.md` with project overview
|
|
1883
2277
|
- Display vision summary to user
|
|
@@ -2345,17 +2739,19 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
2345
2739
|
|
|
2346
2740
|
**Step 7.0: Load Value Framework**
|
|
2347
2741
|
- Read `.mother-brain/docs/value-framework.md`
|
|
2348
|
-
- Use the priority dimensions and weights to order tasks
|
|
2349
|
-
- Every
|
|
2742
|
+
- Use the priority dimensions and weights to order **outcomes** (not tasks)
|
|
2743
|
+
- Every outcome in the roadmap must be scored against the framework
|
|
2350
2744
|
|
|
2351
|
-
**Step 7.1: Define Phase 1 = MVP (Core
|
|
2352
|
-
- Phase 1 scope = shortest path to
|
|
2745
|
+
**Step 7.1: Define Phase 1 = MVP (Core User Needs)**
|
|
2746
|
+
- Phase 1 scope = shortest path to fulfill core user needs from vision
|
|
2353
2747
|
- Use:
|
|
2354
|
-
-
|
|
2748
|
+
- User Needs table from Step 4 (vision document) — filter by MVP=✅
|
|
2355
2749
|
- Delivery research from Step 6A
|
|
2356
2750
|
- Mother Brain's expert judgment on optimal scope
|
|
2357
|
-
- Mother Brain determines
|
|
2358
|
-
-
|
|
2751
|
+
- Mother Brain determines which user needs are essential for Phase 1 vs can wait
|
|
2752
|
+
- Each user need becomes an **Outcome** (📋 Ability to...)
|
|
2753
|
+
- Each outcome has **Acceptance Criteria** (testable by user)
|
|
2754
|
+
- Tasks are internal implementation details — user validates outcomes, not tasks
|
|
2359
2755
|
|
|
2360
2756
|
**Step 7.2: Structure Post-MVP Work (Research-Driven)**
|
|
2361
2757
|
- Phase 2+ content based on iteration pattern from Step 6A research
|
|
@@ -2363,12 +2759,151 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
2363
2759
|
- Mark clearly as "post-MVP" and "subject to learning/validation"
|
|
2364
2760
|
- Don't over-plan: assume learnings will inform these phases
|
|
2365
2761
|
|
|
2366
|
-
**Step 7.3: Create `docs/roadmap.md` (
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2762
|
+
**Step 7.3: Create `docs/roadmap.md` (Outcome-Driven Structure)**:
|
|
2763
|
+
```markdown
|
|
2764
|
+
# [Project Name] - Roadmap
|
|
2765
|
+
|
|
2766
|
+
## Delivery Strategy (Research-Based)
|
|
2767
|
+
**Project Type**: [From Step 5 research]
|
|
2768
|
+
**MVP Approach**: [From Step 6A research - what minimum viable means for this type]
|
|
2769
|
+
**Launch Pattern**: [From Step 6A research - how to reach users]
|
|
2770
|
+
**Iteration Strategy**: [From Step 6A research - how to improve post-launch]
|
|
2771
|
+
|
|
2772
|
+
---
|
|
2773
|
+
|
|
2774
|
+
## User Needs Traceability
|
|
2775
|
+
|
|
2776
|
+
| User Need (from Vision) | Fulfilled By |
|
|
2777
|
+
|-------------------------|--------------|
|
|
2778
|
+
| Ability to [X] | Outcome 1, Outcome 3 |
|
|
2779
|
+
| Ability to [Y] | Outcome 2 |
|
|
2780
|
+
| Ability to [Z] | Outcome 4 (Phase 2) |
|
|
2781
|
+
|
|
2782
|
+
---
|
|
2783
|
+
|
|
2784
|
+
## Phase 1: MVP — [Core Problem Solution]
|
|
2785
|
+
|
|
2786
|
+
**Goal**: Shortest path to deliver user value
|
|
2787
|
+
**Success Gate**: User can [primary outcome from vision]
|
|
2788
|
+
**Strategy**: Fulfill core user needs, defer everything else
|
|
2789
|
+
|
|
2790
|
+
---
|
|
2791
|
+
|
|
2792
|
+
### 📋 Ability to [do something concrete]
|
|
2793
|
+
|
|
2794
|
+
> So [the benefit/why this matters — traced to user need]
|
|
2795
|
+
|
|
2796
|
+
**Acceptance Criteria:**
|
|
2797
|
+
- [ ] [Testable condition 1 — user can verify this]
|
|
2798
|
+
- [ ] [Testable condition 2 — user can verify this]
|
|
2799
|
+
- [ ] [Testable condition 3 — user can verify this]
|
|
2800
|
+
|
|
2801
|
+
**Priority Score:** [N] (Vision: X, MVP: X, User Impact: X)
|
|
2802
|
+
|
|
2803
|
+
**🔧 Tasks (internal — not shown to user during validation):**
|
|
2804
|
+
- Task 001: [Technical implementation step]
|
|
2805
|
+
- Task 002: [Technical implementation step]
|
|
2806
|
+
- Task 003: [Technical implementation step]
|
|
2807
|
+
|
|
2808
|
+
---
|
|
2809
|
+
|
|
2810
|
+
### 📋 Ability to [second outcome]
|
|
2811
|
+
|
|
2812
|
+
> So [benefit — traced to user need]
|
|
2813
|
+
|
|
2814
|
+
**Acceptance Criteria:**
|
|
2815
|
+
- [ ] [Testable condition 1]
|
|
2816
|
+
- [ ] [Testable condition 2]
|
|
2817
|
+
|
|
2818
|
+
**Priority Score:** [N]
|
|
2819
|
+
|
|
2820
|
+
**🔧 Tasks (internal):**
|
|
2821
|
+
- Task 004: [Technical step]
|
|
2822
|
+
- Task 005: [Technical step]
|
|
2823
|
+
|
|
2824
|
+
---
|
|
2825
|
+
|
|
2826
|
+
## Phase 2+: Post-MVP Iteration
|
|
2827
|
+
|
|
2828
|
+
**Strategy**: [Iteration approach from Step 6A research]
|
|
2829
|
+
**Trigger**: Phase 1 complete + user feedback
|
|
2830
|
+
**Focus**: Learn from users and iterate
|
|
2831
|
+
|
|
2832
|
+
### 📋 Ability to [future outcome]
|
|
2833
|
+
|
|
2834
|
+
> So [benefit]
|
|
2835
|
+
|
|
2836
|
+
**Acceptance Criteria:**
|
|
2837
|
+
- [ ] [Criterion 1]
|
|
2838
|
+
- [ ] [Criterion 2]
|
|
2839
|
+
|
|
2840
|
+
**Note**: Subject to validation — may change based on user feedback
|
|
2841
|
+
|
|
2842
|
+
---
|
|
2843
|
+
|
|
2844
|
+
## MVP Checkpoint (End of Phase 1)
|
|
2845
|
+
|
|
2846
|
+
✅ **Phase 1 Complete When ALL acceptance criteria verified for:**
|
|
2847
|
+
- Outcome 1: [name]
|
|
2848
|
+
- Outcome 2: [name]
|
|
2849
|
+
- Outcome 3: [name]
|
|
2850
|
+
|
|
2851
|
+
**Validation Method**: User confirms each criterion with "Yes, I can do this"
|
|
2852
|
+
|
|
2853
|
+
**Next Step After MVP**: [From Step 6A research]
|
|
2854
|
+
|
|
2855
|
+
---
|
|
2856
|
+
|
|
2857
|
+
## Future Enhancements (Post-MVP Backlog)
|
|
2858
|
+
|
|
2859
|
+
**Defer Until After MVP** (nice-to-have):
|
|
2860
|
+
- 📋 Ability to [future feature 1]
|
|
2861
|
+
- 📋 Ability to [future feature 2]
|
|
2862
|
+
|
|
2863
|
+
**Validation Required**: Don't build until validated by user feedback
|
|
2864
|
+
|
|
2865
|
+
---
|
|
2866
|
+
|
|
2867
|
+
## Internal Task Index
|
|
2868
|
+
|
|
2869
|
+
> Tasks exist for implementation tracking but are NOT validated by user.
|
|
2870
|
+
> User validates outcomes (acceptance criteria), not tasks.
|
|
2871
|
+
|
|
2872
|
+
| Task | Under Outcome | Status |
|
|
2873
|
+
|------|---------------|--------|
|
|
2874
|
+
| 001 | Ability to X | ⬜ |
|
|
2875
|
+
| 002 | Ability to X | ⬜ |
|
|
2876
|
+
| 003 | Ability to Y | ⬜ |
|
|
2877
|
+
|
|
2878
|
+
---
|
|
2879
|
+
|
|
2880
|
+
## Iteration & Learning Plan (Research-Based)
|
|
2881
|
+
|
|
2882
|
+
**Feedback Collection** (from Step 6A research):
|
|
2883
|
+
- [How we'll gather user input for this project type]
|
|
2884
|
+
- [Metrics/analytics to track]
|
|
2885
|
+
|
|
2886
|
+
**Iteration Cycle**:
|
|
2887
|
+
1. Complete Phase 1 outcomes
|
|
2888
|
+
2. User validates all acceptance criteria
|
|
2889
|
+
3. Collect feedback, analyze learnings
|
|
2890
|
+
4. Prioritize Phase 2 outcomes based on data
|
|
2891
|
+
|
|
2892
|
+
---
|
|
2893
|
+
|
|
2894
|
+
## Risk Mitigation
|
|
2895
|
+
|
|
2896
|
+
**MVP Risks**: [Potential issues with Phase 1 approach]
|
|
2897
|
+
|
|
2898
|
+
**Delivery Strategy**: Protect MVP outcomes at all costs. Phase 2+ can be deferred.
|
|
2899
|
+
|
|
2900
|
+
---
|
|
2901
|
+
|
|
2902
|
+
**Total Tasks**: [Count]
|
|
2903
|
+
**Phase 1 (MVP) Tasks**: [Count essential tasks]
|
|
2904
|
+
**Post-MVP Tasks**: [Count - subject to change based on feedback]
|
|
2905
|
+
**Estimated Timeline**: [From vision document]
|
|
2906
|
+
```
|
|
2372
2907
|
|
|
2373
2908
|
**Step 7.3.5: CHECKPOINT - Review Roadmap Against Elder Brain**
|
|
2374
2909
|
- **Purpose**: Surface known pitfalls for the tech stack BEFORE task execution begins
|
|
@@ -2442,25 +2977,150 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
2442
2977
|
- Emphasize learning and iteration mindset
|
|
2443
2978
|
|
|
2444
2979
|
### 7.6 **Setup Validation & Self-Healing (MANDATORY REFLECTION - BLOCKS COMPLETION)**
|
|
2445
|
-
- **
|
|
2446
|
-
- **When to run**: IMMEDIATELY after Step 7.5 menu response, BEFORE proceeding to any next action
|
|
2447
|
-
- **Purpose**: Detect and learn from issues during setup flow (Steps 3-7)
|
|
2448
|
-
|
|
2449
|
-
|
|
2980
|
+
- **Purpose**: This is the REFLECTION step mentioned in RULE 8. It MUST complete before declaring "setup complete".
|
|
2981
|
+
- **When to run**: IMMEDIATELY after Step 7.5 displays menu and receives user response, BEFORE proceeding to any next action
|
|
2982
|
+
- **Purpose**: Detect and learn from any issues that occurred during the setup flow (Steps 3-7)
|
|
2983
|
+
|
|
2984
|
+
**Step 7.6.1: Scan Conversation for Setup Issues**
|
|
2985
|
+
- Review the conversation history from Steps 3-7 for:
|
|
2986
|
+
- **Build/Tool Failures**: Commands that failed, tools that errored
|
|
2987
|
+
- **Skill Creation Failures**: Skills that failed to create or validate
|
|
2988
|
+
- **Research Failures**: Web searches that returned no results
|
|
2989
|
+
- **File Creation Errors**: Documents that failed to create
|
|
2990
|
+
- **Retry Attempts**: Any step that had to be re-run
|
|
2991
|
+
- **Partial Completions**: Steps that succeeded but with warnings
|
|
2992
|
+
|
|
2993
|
+
- If 0 issues detected: Skip to Step 8 (Task Document Creation) when user selects "Start Task 001"
|
|
2994
|
+
- If 1+ issues detected: Proceed with healing
|
|
2995
|
+
|
|
2996
|
+
**Step 7.6.2: Layer 1 - Fix Current Project Setup**
|
|
2997
|
+
- For each issue found:
|
|
2998
|
+
- Identify what failed
|
|
2999
|
+
- Determine root cause
|
|
3000
|
+
- Apply fix to current project:
|
|
3001
|
+
- Re-run failed command/tool
|
|
3002
|
+
- Re-create failed file
|
|
3003
|
+
- Re-validate failed skill
|
|
3004
|
+
- Fix any incomplete setup
|
|
3005
|
+
- Continue until all issues resolved
|
|
3006
|
+
|
|
3007
|
+
**Step 7.6.3: Layer 2 - Extract Meta-Lessons for Mother Brain**
|
|
3008
|
+
- For each issue, ask: "What could Mother Brain do differently to prevent this in ALL future projects?"
|
|
3009
|
+
- Categories to consider:
|
|
3010
|
+
- **Missing Validation**: Should a validation step exist where it doesn't?
|
|
3011
|
+
- **Error Handling Gap**: Should Mother Brain catch and handle this error type?
|
|
3012
|
+
- **Workflow Ordering**: Should steps be reordered to prevent this?
|
|
3013
|
+
- **Missing Retry Logic**: Should automatic retry be added?
|
|
3014
|
+
- **Missing Pre-Checks**: Should a prerequisite check exist?
|
|
3015
|
+
|
|
3016
|
+
- Extract project-agnostic principle:
|
|
3017
|
+
- ❌ Bad: "Coffee project skill creation failed"
|
|
3018
|
+
- ✅ Good: "Skill creation should validate tool permissions before creating files"
|
|
3019
|
+
|
|
3020
|
+
**Step 7.6.4: Auto-Apply Mother Brain Updates**
|
|
3021
|
+
- For each meta-lesson extracted:
|
|
3022
|
+
- Identify which step/section of SKILL.md to update
|
|
3023
|
+
- Apply update using edit tool
|
|
3024
|
+
- Display what was changed (transparency, not approval)
|
|
3025
|
+
|
|
3026
|
+
- Log in `docs/learning-log.md`:
|
|
3027
|
+
```markdown
|
|
3028
|
+
## [Date] - Setup Self-Healing: [Project Name]
|
|
3029
|
+
**Issues Found**: [Count]
|
|
3030
|
+
**Layer 1 Fixes Applied**:
|
|
3031
|
+
- [What was fixed in this project's setup]
|
|
3032
|
+
**Layer 2 Meta-Lessons Extracted**:
|
|
3033
|
+
- [Project-agnostic principle 1]
|
|
3034
|
+
- [Project-agnostic principle 2]
|
|
3035
|
+
**Mother Brain Updates Applied**:
|
|
3036
|
+
- [Which step/section was updated]
|
|
3037
|
+
- [What preventive measure was added]
|
|
3038
|
+
**Impact**: Prevents [issue type] in all future projects
|
|
3039
|
+
```
|
|
3040
|
+
|
|
3041
|
+
**Step 7.6.5: Display Summary**
|
|
3042
|
+
- If issues were found, display:
|
|
3043
|
+
```
|
|
3044
|
+
🔧 Setup Validation & Reflection Complete
|
|
3045
|
+
|
|
3046
|
+
Found [X] issue(s) during setup - all resolved:
|
|
3047
|
+
|
|
3048
|
+
✅ Project Fixes:
|
|
3049
|
+
- [What was fixed in this project]
|
|
3050
|
+
|
|
3051
|
+
✅ Mother Brain Improvements:
|
|
3052
|
+
- [Meta-lesson applied for future projects]
|
|
3053
|
+
|
|
3054
|
+
✅ Reflection complete - setup is now truly complete!
|
|
3055
|
+
```
|
|
3056
|
+
|
|
3057
|
+
- If no issues found, display:
|
|
3058
|
+
```
|
|
3059
|
+
✅ Reflection Complete
|
|
3060
|
+
|
|
3061
|
+
No issues detected during setup.
|
|
3062
|
+
All steps executed successfully.
|
|
3063
|
+
|
|
3064
|
+
Setup is now complete!
|
|
3065
|
+
```
|
|
3066
|
+
|
|
2450
3067
|
- **ONLY AFTER this step completes can you proceed to user's selected action from Step 7.5 menu**
|
|
3068
|
+
- This checkpoint ensures learning happens every session, not just when errors occur
|
|
3069
|
+
|
|
3070
|
+
- Continue to user's selected action from Step 7.5 menu
|
|
3071
|
+
|
|
3072
|
+
**Key Principle**: Every setup run improves Mother Brain for all future projects. Issues are not just fixed—they're learned from.
|
|
2451
3073
|
|
|
2452
3074
|
### 8. **Task Document Creation**
|
|
2453
3075
|
- Create `docs/tasks/` directory
|
|
2454
|
-
-
|
|
2455
|
-
- For
|
|
3076
|
+
- Tasks are internal implementation details — users validate **outcomes**, not tasks
|
|
3077
|
+
- For each task in Phase 1, create `docs/tasks/001-[task-name].md`:
|
|
3078
|
+
```markdown
|
|
3079
|
+
# Task 001: [Task Name]
|
|
3080
|
+
|
|
3081
|
+
**Status**: 🟡 In Progress
|
|
3082
|
+
**Phase**: Phase 1 - MVP
|
|
3083
|
+
**Parent Outcome**: 📋 Ability to [outcome name this task contributes to]
|
|
3084
|
+
**Assigned**: [Date]
|
|
3085
|
+
|
|
3086
|
+
## Objective
|
|
3087
|
+
[What this task achieves — how it contributes to the parent outcome]
|
|
3088
|
+
|
|
3089
|
+
## Technical Details
|
|
3090
|
+
- **Type**: [Logic | UI | Animation | Integration | Testing]
|
|
3091
|
+
- **Focus**: [What this task implements specifically]
|
|
3092
|
+
- **NOT in scope**: [What related features are in other tasks]
|
|
3093
|
+
|
|
3094
|
+
## Implementation Notes
|
|
3095
|
+
[Technical approach — user does NOT see this during validation]
|
|
3096
|
+
|
|
3097
|
+
## Dependencies
|
|
3098
|
+
- [What must exist before this]
|
|
3099
|
+
|
|
3100
|
+
## Skills to Use
|
|
3101
|
+
- [Relevant skill name and purpose]
|
|
3102
|
+
|
|
3103
|
+
## Deliverables
|
|
3104
|
+
- [Specific files/outputs]
|
|
3105
|
+
|
|
3106
|
+
## Notes & Decisions
|
|
3107
|
+
[Log decisions made during execution]
|
|
3108
|
+
|
|
3109
|
+
## Internal Verification (NOT user validation)
|
|
3110
|
+
[ ] Built successfully
|
|
3111
|
+
[ ] Tests pass
|
|
3112
|
+
[ ] Deliverables created
|
|
3113
|
+
|
|
3114
|
+
---
|
|
3115
|
+
|
|
3116
|
+
**Note**: User validates the parent outcome's acceptance criteria,
|
|
3117
|
+
not this task directly. This task is complete when deliverables
|
|
3118
|
+
are ready and internal verification passes.
|
|
3119
|
+
```
|
|
2456
3120
|
|
|
2457
|
-
-
|
|
2458
|
-
-
|
|
2459
|
-
|
|
2460
|
-
- "Skip to next task"
|
|
2461
|
-
- "Let me review the roadmap first"
|
|
2462
|
-
- "🚨 Report Issue (something's not working)"
|
|
2463
|
-
- Proceed based on selection
|
|
3121
|
+
- **DO NOT ask user to validate individual tasks**
|
|
3122
|
+
- Tasks complete silently when internal verification passes
|
|
3123
|
+
- User validates only when ALL tasks under an outcome are complete (Step 10)
|
|
2464
3124
|
|
|
2465
3125
|
### 9. **Task Execution**
|
|
2466
3126
|
|
|
@@ -2825,48 +3485,50 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
|
|
|
2825
3485
|
- ✅ **Verification**: Test against success criteria
|
|
2826
3486
|
|
|
2827
3487
|
- **Roadmap Cross-Check** (CRITICAL - prevents out-of-order implementation):
|
|
2828
|
-
1. Load current
|
|
2829
|
-
2.
|
|
2830
|
-
3.
|
|
2831
|
-
-
|
|
2832
|
-
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
-
|
|
2854
|
-
- Task [Y]: [Future feature user might expect]
|
|
2855
|
-
|
|
2856
|
-
Questions about THIS task specifically:
|
|
2857
|
-
1. Does this task's output look how you expected?
|
|
2858
|
-
2. Does THIS task's functionality work properly?
|
|
2859
|
-
3. Anything you'd like changed about THIS task?
|
|
2860
|
-
```
|
|
2861
|
-
|
|
2862
|
-
- Use `ask_user` to get feedback with choices:
|
|
2863
|
-
- "Looks perfect, mark as complete"
|
|
2864
|
-
- "Works but needs adjustment"
|
|
2865
|
-
- "Doesn't meet expectations, needs rework"
|
|
2866
|
-
- "🚨 Report Issue (something's not working)"
|
|
2867
|
-
- Provide freeform for detailed feedback
|
|
3488
|
+
1. Load current outcome from `docs/roadmap.md`
|
|
3489
|
+
2. Identify which acceptance criteria this work addresses
|
|
3490
|
+
3. If user mentions missing features:
|
|
3491
|
+
- Check if feature is in a future outcome
|
|
3492
|
+
- Explain: "That's planned for [Outcome Name]"
|
|
3493
|
+
- Offer: "Continue as planned" or "Adjust roadmap"
|
|
3494
|
+
|
|
3495
|
+
- **OUTCOME VALIDATION (User validates acceptance criteria, not tasks)**:
|
|
3496
|
+
|
|
3497
|
+
When ALL tasks under an outcome are complete, present the outcome for validation:
|
|
3498
|
+
|
|
3499
|
+
```
|
|
3500
|
+
📋 Outcome Complete: [Ability to do X]
|
|
3501
|
+
|
|
3502
|
+
Please verify each criterion — can you do this now?
|
|
3503
|
+
```
|
|
3504
|
+
|
|
3505
|
+
- For EACH acceptance criterion, use `ask_user` with choices:
|
|
3506
|
+
- "Yes, I can do this ✅"
|
|
3507
|
+
- "No, something's wrong ❌"
|
|
3508
|
+
|
|
3509
|
+
- **If "Yes"**: Mark criterion complete, proceed to next
|
|
3510
|
+
- **If "No"**:
|
|
3511
|
+
- Invoke Child Brain immediately (friction detected)
|
|
3512
|
+
- Child Brain analyzes what went wrong
|
|
3513
|
+
- Fix applied, re-validate this criterion
|
|
2868
3514
|
|
|
2869
|
-
-
|
|
3515
|
+
- **Example validation flow**:
|
|
3516
|
+
```
|
|
3517
|
+
📋 Ability to see my emails inside the portal
|
|
3518
|
+
|
|
3519
|
+
Criterion 1: I can see my inbox with sender, subject, and preview
|
|
3520
|
+
→ [Yes, I can do this] [No, something's wrong]
|
|
3521
|
+
|
|
3522
|
+
Criterion 2: I can click an email to read the full content
|
|
3523
|
+
→ [Yes, I can do this] [No, something's wrong]
|
|
3524
|
+
|
|
3525
|
+
Criterion 3: New emails appear without refreshing the page
|
|
3526
|
+
→ [Yes, I can do this] [No, something's wrong]
|
|
3527
|
+
```
|
|
3528
|
+
|
|
3529
|
+
- **All criteria pass**: Mark outcome complete (✅)
|
|
3530
|
+
- Update roadmap.md to check off the outcome
|
|
3531
|
+
- Display: "✅ [Outcome name] — complete!"
|
|
2870
3532
|
- If issues: Jump to **Step 10A: Three-Layered Learning from Feedback**
|
|
2871
3533
|
- Update task document with final status
|
|
2872
3534
|
- Update roadmap checklist
|
|
@@ -3387,15 +4049,86 @@ When heal fixes an issue:
|
|
|
3387
4049
|
|
|
3388
4050
|
## Example Session Flow
|
|
3389
4051
|
|
|
3390
|
-
**
|
|
4052
|
+
**New Project:**
|
|
4053
|
+
```
|
|
4054
|
+
User: I want to build a music marketing SaaS platform
|
|
4055
|
+
|
|
4056
|
+
Mother Brain:
|
|
4057
|
+
🧠 Welcome to Mother Brain!
|
|
4058
|
+
|
|
4059
|
+
[Runs vision discovery wizard - captures user needs]
|
|
4060
|
+
|
|
4061
|
+
User Needs Identified:
|
|
4062
|
+
- Ability to connect Spotify and see my artist analytics
|
|
4063
|
+
- Ability to schedule social media posts for releases
|
|
4064
|
+
- Ability to build email lists and send campaigns
|
|
4065
|
+
- Ability to track which promotions drive streams
|
|
4066
|
+
|
|
4067
|
+
Creates:
|
|
4068
|
+
- docs/vision.md (with User Needs table)
|
|
4069
|
+
- docs/roadmap.md (outcomes organized by phase)
|
|
4070
|
+
- README.md
|
|
4071
|
+
|
|
4072
|
+
Skills created:
|
|
4073
|
+
- spotify-api-integrator
|
|
4074
|
+
- social-media-scheduler
|
|
4075
|
+
- email-campaign-manager
|
|
4076
|
+
|
|
4077
|
+
Phase 1 (MVP) Outcomes:
|
|
4078
|
+
📋 Ability to connect Spotify and see my artist analytics
|
|
4079
|
+
📋 Ability to track which promotions drive streams
|
|
4080
|
+
|
|
4081
|
+
[Mother Brain executes tasks internally - user doesn't validate each task]
|
|
4082
|
+
|
|
4083
|
+
When outcome tasks complete:
|
|
4084
|
+
|
|
4085
|
+
Mother Brain:
|
|
4086
|
+
📋 Outcome Complete: Ability to connect Spotify and see my artist analytics
|
|
4087
|
+
|
|
4088
|
+
Please verify each criterion:
|
|
4089
|
+
|
|
4090
|
+
1. I can connect my Spotify artist account
|
|
4091
|
+
→ [Yes, I can do this] [No, something's wrong]
|
|
4092
|
+
|
|
4093
|
+
2. I can see my streaming numbers and top tracks
|
|
4094
|
+
→ [Yes, I can do this] [No, something's wrong]
|
|
4095
|
+
|
|
4096
|
+
3. Data updates automatically each day
|
|
4097
|
+
→ [Yes, I can do this] [No, something's wrong]
|
|
4098
|
+
|
|
4099
|
+
User: "Yes" to all
|
|
4100
|
+
|
|
4101
|
+
Mother Brain: ✅ Outcome complete! Moving to next outcome...
|
|
4102
|
+
```
|
|
4103
|
+
|
|
4104
|
+
**Returning to Project:**
|
|
4105
|
+
```
|
|
4106
|
+
User: /mother-brain
|
|
4107
|
+
|
|
4108
|
+
Mother Brain:
|
|
4109
|
+
🧠 Welcome back to MusicMarketingSaaS!
|
|
4110
|
+
|
|
4111
|
+
Current Status:
|
|
4112
|
+
Phase: 1 - MVP (2 of 4 outcomes complete)
|
|
4113
|
+
Current Outcome: 📋 Ability to track which promotions drive streams
|
|
4114
|
+
Progress: 50% of MVP outcomes validated
|
|
4115
|
+
Skills: 3 available
|
|
4116
|
+
|
|
4117
|
+
What would you like to do?
|
|
4118
|
+
1. Continue where I left off
|
|
4119
|
+
2. Review roadmap
|
|
4120
|
+
3. 💡 I have a new idea
|
|
4121
|
+
...
|
|
4122
|
+
```
|
|
3391
4123
|
|
|
3392
4124
|
## Notes
|
|
3393
4125
|
|
|
3394
|
-
- **
|
|
3395
|
-
- **
|
|
3396
|
-
- **
|
|
3397
|
-
- **
|
|
3398
|
-
- **
|
|
4126
|
+
- **Outcome-driven**: Users validate abilities, not technical tasks
|
|
4127
|
+
- **User Needs as foundation**: Every outcome traces to a captured user need
|
|
4128
|
+
- **Living documents**: Vision and roadmap evolve with user feedback
|
|
4129
|
+
- **Acceptance criteria validation**: Each criterion gets explicit Yes/No
|
|
4130
|
+
- **Child Brain on "No"**: Any failed criterion triggers learning
|
|
4131
|
+
- **Session state**: All progress saved in .mother-brain/ folder
|
|
3399
4132
|
- **Skill ecosystem**: Builds project-specific skill library over time
|
|
3400
4133
|
|
|
3401
4134
|
## Resources
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# Improvement Submission Pipeline
|
|
2
|
-
|
|
3
|
-
Automatically detect ALL local Mother Brain improvements, parse learning logs for each distinct improvement, and submit a separate GitHub issue for each one.
|
|
4
|
-
|
|
5
|
-
## Step 2A.1.1: Gather All Improvement Sources
|
|
6
|
-
|
|
7
|
-
Collect from THREE sources:
|
|
8
|
-
|
|
9
|
-
### Source 1: Learning Log Entries
|
|
10
|
-
- Read `.mother-brain/project-brain.md` or `docs/learning-log.md`
|
|
11
|
-
- Parse for individual learning entries (marked by `## [Date]` or similar)
|
|
12
|
-
- Each entry = potential improvement
|
|
13
|
-
- Extract: date, trigger, learning, resolution
|
|
14
|
-
|
|
15
|
-
### Source 2: Core File Changes
|
|
16
|
-
- Get changes to Mother Brain core files:
|
|
17
|
-
```powershell
|
|
18
|
-
git diff HEAD -- ".github/skills/mother-brain/SKILL.md"
|
|
19
|
-
git diff HEAD -- ".github/skills/child-brain/SKILL.md"
|
|
20
|
-
git diff HEAD -- ".github/skills/skill-creator/SKILL.md"
|
|
21
|
-
```
|
|
22
|
-
- If files are new/untracked: `git diff /dev/null -- [file]`
|
|
23
|
-
|
|
24
|
-
### Source 3: Conversation Context
|
|
25
|
-
- Scan conversation history for:
|
|
26
|
-
- Friction points discussed
|
|
27
|
-
- Problems reported
|
|
28
|
-
- Solutions implemented
|
|
29
|
-
- Pattern: "this isn't working" → "fixed by..."
|
|
30
|
-
|
|
31
|
-
- **If no improvements found across all sources**:
|
|
32
|
-
- Display: "📭 No local Mother Brain improvements to send."
|
|
33
|
-
- Return to Step 2A (Improve Mother Brain Menu)
|
|
34
|
-
|
|
35
|
-
## Step 2A.1.1A: Check Issues Tracker (Deduplication)
|
|
36
|
-
|
|
37
|
-
- Check if `.mother-brain/issues-tracker.md` exists
|
|
38
|
-
- **If exists**: Read and parse submitted issues list for comparison
|
|
39
|
-
- **If doesn't exist**: Create empty tracker file
|
|
40
|
-
|
|
41
|
-
## Step 2A.1.2: Correlate Learnings with File Changes
|
|
42
|
-
|
|
43
|
-
- For each learning entry found:
|
|
44
|
-
1. Identify which file(s) were modified for this learning
|
|
45
|
-
2. Extract the relevant diff sections (not the whole file diff)
|
|
46
|
-
3. Match learning description to code changes
|
|
47
|
-
|
|
48
|
-
- Group by improvement type:
|
|
49
|
-
- **Behavioral improvements** → Mother Brain SKILL.md changes
|
|
50
|
-
- **Feedback handling** → Child Brain SKILL.md changes
|
|
51
|
-
- **Skill creation** → Skill Creator SKILL.md changes
|
|
52
|
-
|
|
53
|
-
## Step 2A.1.3: Generate Individual Issues (with Deduplication)
|
|
54
|
-
|
|
55
|
-
- Check each improvement against issues tracker — skip duplicates
|
|
56
|
-
- For EACH NEW improvement, create a separate issue using this template:
|
|
57
|
-
|
|
58
|
-
```markdown
|
|
59
|
-
Title: [Improvement] [Brief title describing THIS specific improvement]
|
|
60
|
-
|
|
61
|
-
## Summary
|
|
62
|
-
[2-3 sentences explaining what this specific improvement does]
|
|
63
|
-
|
|
64
|
-
## Problem
|
|
65
|
-
[What friction was encountered that triggered this improvement]
|
|
66
|
-
|
|
67
|
-
## Solution
|
|
68
|
-
[How Mother Brain addressed the friction]
|
|
69
|
-
|
|
70
|
-
## Changes Made
|
|
71
|
-
**File**: [filename] (lines ~X-Y)
|
|
72
|
-
|
|
73
|
-
<details>
|
|
74
|
-
<summary>View diff</summary>
|
|
75
|
-
|
|
76
|
-
\```diff
|
|
77
|
-
[relevant diff for THIS improvement only - not entire file]
|
|
78
|
-
\```
|
|
79
|
-
</details>
|
|
80
|
-
|
|
81
|
-
## Benefits
|
|
82
|
-
[How this helps all Mother Brain users]
|
|
83
|
-
|
|
84
|
-
## Testing
|
|
85
|
-
[How the improvement was validated]
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
*Submitted via Mother Brain v[version]*
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Step 2A.1.4: Submit Issues via gh CLI
|
|
92
|
-
|
|
93
|
-
- **Pre-flight Check**: `gh --version && gh auth status`
|
|
94
|
-
|
|
95
|
-
- **If gh CLI available and authenticated**:
|
|
96
|
-
- For each improvement: `gh issue create --repo super-state/mother-brain --title "[title]" --body "[body]"`
|
|
97
|
-
- Parse output for issue number and URL
|
|
98
|
-
- Add `Start-Sleep -Seconds 2` between submissions (rate limiting)
|
|
99
|
-
- Target repository: `super-state/mother-brain`
|
|
100
|
-
|
|
101
|
-
- **If gh CLI not available**:
|
|
102
|
-
- Save each issue to `.mother-brain/github-issues/issue-[N].md`
|
|
103
|
-
- Display instructions for manual submission at https://github.com/super-state/mother-brain/issues/new
|
|
104
|
-
|
|
105
|
-
## Step 2A.1.5: Update Issues Tracker & Display Results
|
|
106
|
-
|
|
107
|
-
- Update `.mother-brain/issues-tracker.md` with new session entries
|
|
108
|
-
- Commit tracker: `git add .mother-brain/issues-tracker.md && git commit -m "docs: track submitted issues"`
|
|
109
|
-
- Display summary of all submitted issues with numbers and URLs
|
|
110
|
-
- Use `ask_user` with choices:
|
|
111
|
-
- "Keep local changes (for further work)"
|
|
112
|
-
- "Revert Mother Brain files (clean slate)"
|
|
113
|
-
- If revert: `git checkout HEAD -- ".github/skills/mother-brain/" ".github/skills/child-brain/" ".github/skills/skill-creator/" "cli/"`
|
|
114
|
-
- Return to main menu (Step 2)
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Existing Project Onboarding Workflow
|
|
2
|
-
|
|
3
|
-
When user selects to onboard Mother Brain into an existing project, follow these steps:
|
|
4
|
-
|
|
5
|
-
## Step 2.2.1: Deep Repo Analysis
|
|
6
|
-
- Scan ALL files in the directory (not just specific ones)
|
|
7
|
-
- Use `glob` and `view` to understand:
|
|
8
|
-
- **Project Type**: What kind of project is this? (web app, game, library, CLI, etc.)
|
|
9
|
-
- **Tech Stack**: Languages, frameworks, dependencies
|
|
10
|
-
- **Architecture**: Folder structure, patterns, modules
|
|
11
|
-
- **Features Built**: What functionality already exists?
|
|
12
|
-
- **Current State**: Is it working? Partially complete? Early stage?
|
|
13
|
-
|
|
14
|
-
- Display findings:
|
|
15
|
-
```
|
|
16
|
-
🔍 Project Analysis Complete
|
|
17
|
-
|
|
18
|
-
What I Found:
|
|
19
|
-
- Type: [Project type detected]
|
|
20
|
-
- Tech Stack: [Languages, frameworks]
|
|
21
|
-
- Features Built: [List of detected features]
|
|
22
|
-
- Current State: [Assessment of completeness]
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Step 2.2.2: Vision Extraction (Clarifying Questions)
|
|
26
|
-
- Ask user questions to fill gaps (like vision discovery, but informed by analysis):
|
|
27
|
-
- "What is the main goal of this project?"
|
|
28
|
-
- "Who is this for? Who will use it?"
|
|
29
|
-
- "What problem does this solve?"
|
|
30
|
-
- "What inspired this project?" (to trigger domain research)
|
|
31
|
-
- "What's the most important thing to get right?"
|
|
32
|
-
- "Where are you trying to get to next? What's your next milestone?"
|
|
33
|
-
|
|
34
|
-
- Create `.mother-brain/docs/vision.md` with extracted vision
|
|
35
|
-
|
|
36
|
-
## Step 2.2.3: Retrospective Roadmap
|
|
37
|
-
- Build roadmap that reflects reality:
|
|
38
|
-
- **Phase 0 (Done)**: What's already built (based on repo analysis)
|
|
39
|
-
- **Phase 1 (Current)**: What's in progress or next immediate steps
|
|
40
|
-
- **Phase 2+**: Future milestones based on user's stated goals
|
|
41
|
-
|
|
42
|
-
- Mark completed work as DONE in roadmap
|
|
43
|
-
- Identify current position in timeline
|
|
44
|
-
- Create `.mother-brain/docs/roadmap.md`
|
|
45
|
-
|
|
46
|
-
## Step 2.2.4: Skill Identification
|
|
47
|
-
- Analyze patterns in existing code
|
|
48
|
-
- Identify repetitive work that warrants skills
|
|
49
|
-
- Invoke skill-creator for detected patterns
|
|
50
|
-
|
|
51
|
-
## Step 2.2.5: Confirmation
|
|
52
|
-
- Display:
|
|
53
|
-
```
|
|
54
|
-
✅ Mother Brain Onboarded!
|
|
55
|
-
|
|
56
|
-
📋 Vision: Captured
|
|
57
|
-
📊 Roadmap: [X] tasks identified
|
|
58
|
-
- [Y] already complete
|
|
59
|
-
- [Z] remaining
|
|
60
|
-
🛠️ Skills: [N] identified for creation
|
|
61
|
-
|
|
62
|
-
Ready to help you reach your next milestone!
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
- Use `ask_user` with choices:
|
|
66
|
-
- "Start next task"
|
|
67
|
-
- "Review the roadmap"
|
|
68
|
-
- "Review the vision"
|
|
69
|
-
- "Adjust something before continuing"
|
|
70
|
-
|
|
71
|
-
- Proceed to normal workflow (Step 8+)
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Release Checklist — Mother Brain Framework
|
|
2
|
-
|
|
3
|
-
One-click release: commit, version bump, push, tag, and publish.
|
|
4
|
-
|
|
5
|
-
**Prerequisite**: Must be in the mother-brain framework folder (not a project folder)
|
|
6
|
-
|
|
7
|
-
## Mandatory Checklist (ALL items MUST be completed)
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
[ ] cli/package.json - version field
|
|
11
|
-
[ ] cli/src/cli.ts - version constant (if exists)
|
|
12
|
-
[ ] README.md - version badge AND version text
|
|
13
|
-
[ ] Git commit with changes
|
|
14
|
-
[ ] Git tag (v0.0.X)
|
|
15
|
-
[ ] Push to remote (main + tags)
|
|
16
|
-
[ ] GitHub Release (created automatically by workflow)
|
|
17
|
-
[ ] npm publish (triggered by tag push via workflow)
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
**⛔ BLOCKING RULE**: Do NOT return to menu until ALL items above are completed.
|
|
21
|
-
|
|
22
|
-
## Step 2D.1: Verify & Analyze
|
|
23
|
-
- Check current folder is mother-brain framework folder
|
|
24
|
-
- If in a project folder: Display error and offer to return to framework
|
|
25
|
-
- Run `git status` to verify there are changes to release
|
|
26
|
-
- If no changes: Display "Nothing to release" and return to menu
|
|
27
|
-
|
|
28
|
-
## Step 2D.2: Auto-Determine Version
|
|
29
|
-
- Read current version from `cli/package.json`
|
|
30
|
-
- Scan learning-log.md entries since last release tag (if exists)
|
|
31
|
-
- **Auto-determine version bump**:
|
|
32
|
-
- If any entry contains "breaking" or "major" → **major** bump (X.0.0)
|
|
33
|
-
- If any entry contains "feature", "new", "add" → **minor** bump (0.X.0)
|
|
34
|
-
- Otherwise → **patch** bump (0.0.X)
|
|
35
|
-
- Do NOT ask user - auto-decide based on content
|
|
36
|
-
|
|
37
|
-
## Step 2D.3: Update ALL Version References (MANDATORY)
|
|
38
|
-
- Update `cli/package.json`: `"version": "[new-version]"`
|
|
39
|
-
- Update `cli/src/cli.ts`: version constant (search for old version, replace with new)
|
|
40
|
-
- Update `README.md`:
|
|
41
|
-
- Find `version-X.X.X-blue` badge and replace with new version
|
|
42
|
-
- Find `**Version**: X.X.X` text and replace with new version
|
|
43
|
-
- **Verify all files updated before proceeding**
|
|
44
|
-
|
|
45
|
-
## Step 2D.4: Sync Skills to CLI and Agents
|
|
46
|
-
- Copy `.github/skills/*` to `cli/skills/` (overwrite) — for npm package
|
|
47
|
-
- Verify `.agents/skills/` symlinks point to `.github/skills/` — for Codex CLI in framework repo
|
|
48
|
-
|
|
49
|
-
## Step 2D.5: Build CLI
|
|
50
|
-
- Run `cd cli && npm run build`
|
|
51
|
-
- If build fails: STOP and display error
|
|
52
|
-
|
|
53
|
-
## Step 2D.6: Execute Git Operations
|
|
54
|
-
- Stage all changes: `git add -A`
|
|
55
|
-
- Commit: `git commit -m "[type]: [description] (v[version])"`
|
|
56
|
-
- Create tag: `git tag v[version]`
|
|
57
|
-
- **Push to origin (super-state) ONLY**: `git push origin main --tags`
|
|
58
|
-
- **NEVER push to personal fork** - only super-state has npm publish token
|
|
59
|
-
|
|
60
|
-
## Step 2D.7: Confirmation
|
|
61
|
-
- Display release summary with all checkmarks
|
|
62
|
-
- Use `ask_user` with choices:
|
|
63
|
-
- "Open release on GitHub"
|
|
64
|
-
- "Return to main menu"
|
|
65
|
-
- "Start new project"
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Setup Validation & Self-Healing Protocol
|
|
2
|
-
|
|
3
|
-
**MANDATORY REFLECTION — Blocks setup completion.**
|
|
4
|
-
|
|
5
|
-
This is the REFLECTION step mentioned in RULE 8. It MUST complete before declaring "setup complete".
|
|
6
|
-
|
|
7
|
-
**When to run**: IMMEDIATELY after Step 7.5 menu response, BEFORE proceeding to any next action.
|
|
8
|
-
**Purpose**: Detect and learn from any issues during the setup flow (Steps 3-7).
|
|
9
|
-
|
|
10
|
-
## Step 7.6.1: Scan Conversation for Setup Issues
|
|
11
|
-
- Review conversation history from Steps 3-7 for:
|
|
12
|
-
- **Build/Tool Failures**: Commands that failed, tools that errored
|
|
13
|
-
- **Skill Creation Failures**: Skills that failed to create or validate
|
|
14
|
-
- **Research Failures**: Web searches that returned no results
|
|
15
|
-
- **File Creation Errors**: Documents that failed to create
|
|
16
|
-
- **Retry Attempts**: Any step that had to be re-run
|
|
17
|
-
- **Partial Completions**: Steps that succeeded but with warnings
|
|
18
|
-
|
|
19
|
-
- If 0 issues detected: Skip to Step 8 when user selects "Start Task 001"
|
|
20
|
-
- If 1+ issues detected: Proceed with healing
|
|
21
|
-
|
|
22
|
-
## Step 7.6.2: Layer 1 — Fix Current Project Setup
|
|
23
|
-
- For each issue found:
|
|
24
|
-
- Identify what failed
|
|
25
|
-
- Determine root cause
|
|
26
|
-
- Apply fix: re-run failed command, re-create failed file, re-validate failed skill
|
|
27
|
-
- Continue until all issues resolved
|
|
28
|
-
|
|
29
|
-
## Step 7.6.3: Layer 2 — Extract Meta-Lessons for Mother Brain
|
|
30
|
-
- For each issue, ask: "What could Mother Brain do differently to prevent this in ALL future projects?"
|
|
31
|
-
- Categories:
|
|
32
|
-
- **Missing Validation**: Should a validation step exist where it doesn't?
|
|
33
|
-
- **Error Handling Gap**: Should Mother Brain catch and handle this error type?
|
|
34
|
-
- **Workflow Ordering**: Should steps be reordered to prevent this?
|
|
35
|
-
- **Missing Retry Logic**: Should automatic retry be added?
|
|
36
|
-
- **Missing Pre-Checks**: Should a prerequisite check exist?
|
|
37
|
-
|
|
38
|
-
- Extract project-agnostic principle:
|
|
39
|
-
- ❌ Bad: "Coffee project skill creation failed"
|
|
40
|
-
- ✅ Good: "Skill creation should validate tool permissions before creating files"
|
|
41
|
-
|
|
42
|
-
## Step 7.6.4: Auto-Apply Mother Brain Updates
|
|
43
|
-
- For each meta-lesson: identify SKILL.md section to update, apply edit, display changes
|
|
44
|
-
- Log in `docs/learning-log.md`:
|
|
45
|
-
```markdown
|
|
46
|
-
## [Date] - Setup Self-Healing: [Project Name]
|
|
47
|
-
**Issues Found**: [Count]
|
|
48
|
-
**Layer 1 Fixes Applied**: [What was fixed]
|
|
49
|
-
**Layer 2 Meta-Lessons Extracted**: [Principles]
|
|
50
|
-
**Mother Brain Updates Applied**: [Steps/sections updated]
|
|
51
|
-
**Impact**: Prevents [issue type] in all future projects
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Step 7.6.5: Display Summary
|
|
55
|
-
- If issues found:
|
|
56
|
-
```
|
|
57
|
-
🔧 Setup Validation & Reflection Complete
|
|
58
|
-
Found [X] issue(s) — all resolved.
|
|
59
|
-
✅ Project Fixes: [summary]
|
|
60
|
-
✅ Mother Brain Improvements: [meta-lessons]
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
- If no issues:
|
|
64
|
-
```
|
|
65
|
-
✅ Reflection Complete — No issues detected. Setup is complete!
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
- **ONLY AFTER this step completes** → proceed to user's selected action from Step 7.5 menu
|
|
69
|
-
|
|
70
|
-
**Key Principle**: Every setup run improves Mother Brain for all future projects. Issues are not just fixed—they're learned from.
|