mother-brain 0.5.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mother-brain",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "AI-powered project management framework for GitHub Copilot CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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 work meets expectations before marking complete
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
@@ -2055,10 +2058,11 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
2055
2058
  - **The Problem/Opportunity**: What pain point or gap exists?
2056
2059
  - **The Vision**: What does success look like?
2057
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.
2058
2062
  - **Differentiators**: What makes this unique in the space?
2059
2063
  - **Aesthetic/Experience**: How should it feel? Look? Sound?
2060
2064
  - **Constraints**: Budget, skills, platform limitations?
2061
- - **MVP Scope**: What proves the concept works?
2065
+ - **MVP Scope**: Which user needs are essential for MVP vs nice-to-have?
2062
2066
  - **Data Sensitivity (MANDATORY)**: If project involves user/customer data:
2063
2067
  - Identify what data is handled (PII, orders, payments, health data, financial data, personal info)
2064
2068
  - Ask: "Who should have access to this data?"
@@ -2231,8 +2235,43 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
2231
2235
  - **Proceed to Step 4** (Vision Document Creation)
2232
2236
 
2233
2237
  ### 4. **Vision Document Creation**
2234
- - **Read `references/doc-templates.md`** and use the Vision Document Template
2235
- - Create `docs/vision.md` using the loaded template, filling in content from vision discovery
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
+ ```
2236
2275
 
2237
2276
  - Create `README.md` with project overview
2238
2277
  - Display vision summary to user
@@ -2700,17 +2739,19 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
2700
2739
 
2701
2740
  **Step 7.0: Load Value Framework**
2702
2741
  - Read `.mother-brain/docs/value-framework.md`
2703
- - Use the priority dimensions and weights to order tasks
2704
- - Every task in the roadmap must be scored (even roughly) against the framework
2742
+ - Use the priority dimensions and weights to order **outcomes** (not tasks)
2743
+ - Every outcome in the roadmap must be scored against the framework
2705
2744
 
2706
- **Step 7.1: Define Phase 1 = MVP (Core Problem Solution)**
2707
- - Phase 1 scope = shortest path to solve core problem from vision
2745
+ **Step 7.1: Define Phase 1 = MVP (Core User Needs)**
2746
+ - Phase 1 scope = shortest path to fulfill core user needs from vision
2708
2747
  - Use:
2709
- - MVP definition from Step 4 (vision document)
2748
+ - User Needs table from Step 4 (vision document) — filter by MVP=✅
2710
2749
  - Delivery research from Step 6A
2711
2750
  - Mother Brain's expert judgment on optimal scope
2712
- - Mother Brain determines what's essential for Phase 1 vs what can wait
2713
- - Break Phase 1 into tasks that deliver only MVP
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
2714
2755
 
2715
2756
  **Step 7.2: Structure Post-MVP Work (Research-Driven)**
2716
2757
  - Phase 2+ content based on iteration pattern from Step 6A research
@@ -2718,12 +2759,151 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
2718
2759
  - Mark clearly as "post-MVP" and "subject to learning/validation"
2719
2760
  - Don't over-plan: assume learnings will inform these phases
2720
2761
 
2721
- **Step 7.3: Create `docs/roadmap.md` (Research-Driven Structure)**:
2722
- - **Read `references/doc-templates.md`** and use the Roadmap Template
2723
- - Create `docs/roadmap.md` using the loaded template
2724
- - Fill in from research findings (Steps 5, 5A, 6A) and Value Framework (Step 4A)
2725
- - Order tasks by Value Framework score
2726
- - Include "Why this order" explanation for each phase
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
+ ```
2727
2907
 
2728
2908
  **Step 7.3.5: CHECKPOINT - Review Roadmap Against Elder Brain**
2729
2909
  - **Purpose**: Surface known pitfalls for the tech stack BEFORE task execution begins
@@ -2893,16 +3073,54 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
2893
3073
 
2894
3074
  ### 8. **Task Document Creation**
2895
3075
  - Create `docs/tasks/` directory
2896
- - **Read `references/doc-templates.md`** and use the Task Document Template
2897
- - For first task in Phase 1, create `docs/tasks/001-[task-name].md` using the loaded template
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
+ ```
2898
3120
 
2899
- - Display task to user
2900
- - Use `ask_user` with choices:
2901
- - "Yes, start this task now"
2902
- - "Skip to next task"
2903
- - "Let me review the roadmap first"
2904
- - "🚨 Report Issue (something's not working)"
2905
- - 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)
2906
3124
 
2907
3125
  ### 9. **Task Execution**
2908
3126
 
@@ -3267,48 +3485,50 @@ Key rules: Use `allow_freeform: true` on all `ask_user` calls. Check freeform re
3267
3485
  - ✅ **Verification**: Test against success criteria
3268
3486
 
3269
3487
  - **Roadmap Cross-Check** (CRITICAL - prevents out-of-order implementation):
3270
- 1. Load current task document from `docs/tasks/[number]-[name].md`
3271
- 2. Load roadmap from `docs/roadmap.md`
3272
- 3. Identify:
3273
- - What THIS task's deliverables are (from task doc "Deliverables" section)
3274
- - What FUTURE tasks will deliver (scan roadmap for uncompleted tasks)
3275
- 4. **Only validate what THIS task was supposed to deliver**
3276
- 5. If user mentions missing features during validation:
3277
- - Check if feature is in a future task
3278
- - Explain: "That's planned for Task [X] - [Name]"
3279
- - Offer choices: "Continue with roadmap as planned" or "Adjust roadmap to include this now"
3280
- - If user chooses continue: Mark current task complete, proceed to next
3281
- - If user chooses adjust: Update roadmap, then implement requested feature
3282
-
3283
- - Ask user to review:
3284
- ```
3285
- ✅ Task [Number]: [Task Name] - Ready for Review
3286
-
3287
- What was created in THIS task:
3288
- - [List deliverables with paths - only from this task]
3289
-
3290
- Success criteria for THIS task:
3291
- - [✓] [Criterion met from task doc]
3292
- - [✓] [Criterion met from task doc]
3293
-
3294
- Coming in future tasks (not expected yet):
3295
- - Task [X]: [Future feature user might expect]
3296
- - Task [Y]: [Future feature user might expect]
3297
-
3298
- Questions about THIS task specifically:
3299
- 1. Does this task's output look how you expected?
3300
- 2. Does THIS task's functionality work properly?
3301
- 3. Anything you'd like changed about THIS task?
3302
- ```
3303
-
3304
- - Use `ask_user` to get feedback with choices:
3305
- - "Looks perfect, mark as complete"
3306
- - "Works but needs adjustment"
3307
- - "Doesn't meet expectations, needs rework"
3308
- - "🚨 Report Issue (something's not working)"
3309
- - 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
3514
+
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
+ ```
3310
3528
 
3311
- - If user confirms: Mark task complete (🟢 Complete)
3529
+ - **All criteria pass**: Mark outcome complete ()
3530
+ - Update roadmap.md to check off the outcome
3531
+ - Display: "✅ [Outcome name] — complete!"
3312
3532
  - If issues: Jump to **Step 10A: Three-Layered Learning from Feedback**
3313
3533
  - Update task document with final status
3314
3534
  - Update roadmap checklist
@@ -3829,15 +4049,86 @@ When heal fixes an issue:
3829
4049
 
3830
4050
  ## Example Session Flow
3831
4051
 
3832
- **Read `examples/session-flow.md` for full new project and returning project examples.**
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
+ ```
3833
4123
 
3834
4124
  ## Notes
3835
4125
 
3836
- - **Not a replacement for the user**: Mother Brain guides, but user makes final decisions
3837
- - **Living documents**: Vision and roadmap can be updated as project evolves
3838
- - **Flexible pacing**: Work on tasks in any order if dependencies allow
3839
- - **Session state**: All progress saved in docs/ folder
3840
- - **Best practices**: Uses industry-standard project structure
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
3841
4132
  - **Skill ecosystem**: Builds project-specific skill library over time
3842
4133
 
3843
4134
  ## Resources