mother-brain 0.0.25 → 0.0.26

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 CHANGED
@@ -653,7 +653,7 @@ async function uninstall(options) {
653
653
  // src/cli.ts
654
654
  import { exec as exec3 } from "child_process";
655
655
  var program = new Command();
656
- var VERSION = "0.0.25";
656
+ var VERSION = "0.0.26";
657
657
  program.name("mother-brain").description("AI-powered project management framework for GitHub Copilot CLI").version(VERSION);
658
658
  program.command("init").description("Initialize Mother Brain in the current project").option("-f, --force", "Overwrite existing skills").action(init);
659
659
  program.command("update").description("Update Mother Brain skills to the latest version").action(update);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mother-brain",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "AI-powered project management framework for GitHub Copilot CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1641,31 +1641,166 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
1641
1641
  - Proceed to Step 3 (Vision Discovery) or next selected step
1642
1642
 
1643
1643
  ### 3. **Vision Discovery** (New Projects Only)
1644
- - Use `ask_user` to conduct product discovery
1645
- - Ask 8-12 contextual questions focusing on:
1646
1644
 
1647
- **Core Questions:**
1648
- 1. **The Problem**: "What pain point or opportunity are you addressing?"
1649
- 2. **The Vision**: "Imagine this project succeeds—what does that look like?"
1650
- 3. **The Users**: "Who will benefit from this? Describe them."
1651
- 4. **The Why**: "Why is this important? What changes if you DON'T build this?"
1652
- 5. **Success Metrics**: "How will you know this project succeeded?"
1653
- 6. **Constraints**: "What limitations exist? (Budget, skills, tech preferences)"
1654
- 7. **MVP Definition**: "What's the minimum feature set that proves this works?"
1645
+ **Purpose**: Adaptive, research-driven discovery that evolves understanding with each user response. Mother Brain becomes an expert in the user's domain DURING the conversation, not after.
1655
1646
 
1656
- **NOTE: Do NOT ask about timeline/duration.** AI execution speed is not a constraint. Every project receives the same quality treatment: proper research, design thinking, skill creation, and best practices. "Weekend project" vs "enterprise project" makes no difference to quality standards.
1647
+ **ADAPTIVE DISCOVERY PROTOCOL (MANDATORY)**:
1657
1648
 
1658
- **Follow-up Questions (adapt based on responses):**
1659
- - "Who are your competitors/alternatives?"
1660
- - "What have you tried before?"
1661
- - "What's your biggest fear about this project?"
1662
- - "What would make you abandon this?"
1649
+ This is NOT a static questionnaire. After EACH user response:
1650
+ 1. Extract keywords and domain signals
1651
+ 2. Research the domain using `web_search`
1652
+ 3. Identify knowledge gaps and skill needs
1653
+ 4. Generate dynamic follow-up questions based on research
1654
+ 5. Build running list of skill candidates
1663
1655
 
1664
- - Provide 2-3 options per question where appropriate
1665
- - Allow freeform responses for complex answers
1666
- - Dig deeper based on responses
1656
+ **Step 3.1: Opening Question**
1657
+
1658
+ - Start with the core question:
1659
+ ```
1660
+ 🧠 Vision Discovery
1661
+
1662
+ Tell me about what you want to build.
1663
+ What problem are you solving, or what opportunity are you pursuing?
1664
+ ```
1665
+
1666
+ - Use `ask_user` with freeform enabled
1667
+
1668
+ **Step 3.2: Adaptive Response Loop (REPEAT UNTIL VISION IS COMPLETE)**
1669
+
1670
+ **After EACH user response, do ALL of the following:**
1671
+
1672
+ **3.2.1: Extract Domain Signals**
1673
+ - Parse user response for:
1674
+ - Industry/domain keywords (game, e-commerce, healthcare, etc.)
1675
+ - Technology mentions (React, Shopify, Unity, etc.)
1676
+ - Style/aesthetic mentions (minimal, retro, professional, etc.)
1677
+ - User type mentions (developers, consumers, businesses, etc.)
1678
+ - Problem space indicators (tracking, discovery, automation, etc.)
1679
+
1680
+ - Display:
1681
+ ```
1682
+ 📘 Noted: [brief summary of what was understood]
1683
+ ```
1684
+
1685
+ **3.2.2: Research Domain (MANDATORY)**
1686
+ - For EACH new domain signal, research using `web_search`:
1687
+ - "[domain] best practices"
1688
+ - "[domain] common patterns"
1689
+ - "[domain] user expectations"
1690
+ - "[technology] implementation approaches"
1691
+
1692
+ - Store research findings in memory for:
1693
+ - Skill creation later
1694
+ - Follow-up question generation
1695
+ - Understanding what the user might NOT know to ask
1696
+
1697
+ **3.2.3: Identify Knowledge Gaps**
1698
+ - Based on research, determine:
1699
+ - What aspects of the domain haven't been discussed yet?
1700
+ - What decisions does the user need to make?
1701
+ - What are common pitfalls in this space?
1702
+ - What skills will Mother Brain need to help with this?
1703
+
1704
+ - Add skill candidates to running list:
1705
+ ```
1706
+ 🛠️ Skill needs identified so far:
1707
+ - [skill-1]: [why it's needed]
1708
+ - [skill-2]: [why it's needed]
1709
+ ```
1710
+
1711
+ **3.2.4: Generate Dynamic Follow-Up Question**
1712
+ - Based on research and gaps, ask the MOST RELEVANT next question
1713
+ - This should NOT be from a static list - it should be informed by:
1714
+ - What research revealed about the domain
1715
+ - What the user hasn't addressed yet
1716
+ - What decisions will significantly impact the project
1717
+
1718
+ - Example evolution:
1719
+ - User says "roguelite car game with storybook art"
1720
+ - Research: roguelite mechanics, car game physics, storybook illustration
1721
+ - 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?"
1722
+
1723
+ - Use `ask_user` with:
1724
+ - 2-3 relevant options based on research
1725
+ - Freeform allowed for complex answers
1726
+
1727
+ **Step 3.3: Core Areas to Cover (Ensure These Are Addressed)**
1728
+
1729
+ Through adaptive questioning, ensure these areas are explored (not as a checklist, but organically based on the domain):
1730
+
1731
+ - **The Problem/Opportunity**: What pain point or gap exists?
1732
+ - **The Vision**: What does success look like?
1733
+ - **The Users**: Who benefits? Who uses it?
1734
+ - **Differentiators**: What makes this unique in the space?
1735
+ - **Aesthetic/Experience**: How should it feel? Look? Sound?
1736
+ - **Constraints**: Budget, skills, platform limitations?
1737
+ - **MVP Scope**: What proves the concept works?
1738
+
1739
+ **Domain-Specific Questions (Generated From Research)**:
1740
+ - For games: gameplay loop, art style, audio needs, target platform
1741
+ - For e-commerce: payment integration, inventory management, shipping
1742
+ - For SaaS: authentication, multi-tenancy, pricing model
1743
+ - For mobile apps: offline capability, push notifications, app store requirements
1744
+ - For Shopify: theme vs app, API usage, merchant needs
1745
+ - For APIs: authentication, rate limiting, documentation needs
1746
+
1747
+ **Step 3.4: Vision Summary and Skill Pre-Planning**
1748
+
1749
+ - When sufficient understanding is reached (typically 6-10 exchanges):
1750
+
1751
+ - Display comprehensive summary:
1752
+ ```
1753
+ 🧠 Vision Summary
1754
+
1755
+ **What You're Building:**
1756
+ [1-2 sentence description]
1757
+
1758
+ **Who It's For:**
1759
+ [Target users/audience]
1760
+
1761
+ **Key Features:**
1762
+ - [Feature 1]
1763
+ - [Feature 2]
1764
+ - [Feature 3]
1765
+
1766
+ **Aesthetic/Experience:**
1767
+ [How it should look, feel, sound]
1768
+
1769
+ **Success Looks Like:**
1770
+ [What proves this works]
1771
+
1772
+ **Domain Research Findings:**
1773
+ [Key insights from research that will inform development]
1774
+
1775
+ 🛠️ **Skills Mother Brain Will Need:**
1776
+ - [skill-1]: [what it will handle]
1777
+ - [skill-2]: [what it will handle]
1778
+ - [skill-3]: [what it will handle]
1779
+ ```
1780
+
1781
+ - Use `ask_user` with choices:
1782
+ - "This captures it perfectly"
1783
+ - "Mostly right, but let me clarify something"
1784
+ - "I want to change the direction"
1785
+
1786
+ - If clarification needed: Ask follow-up, update summary
1787
+ - If direction change: Return to Step 3.2
1788
+
1789
+ **Step 3.5: Store Research and Skill Candidates**
1790
+
1791
+ - Before proceeding to project setup:
1792
+ - Store domain research in `.mother-brain/domain-research.md`
1793
+ - Store skill candidates in `.mother-brain/skill-candidates.md`
1794
+ - These will be used during:
1795
+ - Roadmap generation (Step 5)
1796
+ - Skill creation (Step 6)
1797
+ - Task execution (Step 9)
1798
+
1799
+ **NOTE: Do NOT ask about timeline/duration.** AI execution speed is not a constraint.
1800
+
1801
+ - Proceed to Step 3.6 (Project Folder Setup)
1667
1802
 
1668
- ### 3.5. **Project Folder Setup** (MANDATORY - Framework vs Project Separation)
1803
+ ### 3.6. **Project Folder Setup** (MANDATORY - Framework vs Project Separation)
1669
1804
 
1670
1805
  **Purpose**: Create a separate folder for the project so that:
1671
1806
  - Project commits go to project repo (not mother-brain)
@@ -1673,11 +1808,11 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
1673
1808
  - Skills are copied so they work in the project
1674
1809
 
1675
1810
  **CRITICAL ORDERING RULE**:
1676
- - Step 3.5 (Project Folder Setup) MUST run BEFORE creating any project files (vision.md, roadmap.md, etc.)
1811
+ - Step 3.6 (Project Folder Setup) MUST run BEFORE creating any project files (vision.md, roadmap.md, etc.)
1677
1812
  - NEVER create `.mother-brain/` folder or project files in the framework folder
1678
- - The correct order is: Vision Discovery (questions only) → Step 3.5 (create project folder) → Step 4 (create vision.md in project folder)
1813
+ - The correct order is: Vision Discovery (questions only) → Step 3.6 (create project folder) → Step 4 (create vision.md in project folder)
1679
1814
 
1680
- **Step 3.5.1: Determine Project Location**
1815
+ **Step 3.6.1: Determine Project Location**
1681
1816
  - Derive project folder name from vision (kebab-case, e.g., "coffee-discovery-app")
1682
1817
  - Default location: Sibling folder `../[project-name]/`
1683
1818
 
@@ -1692,13 +1827,13 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
1692
1827
  - Display warning: "⚠️ Framework Testing Mode - commits will go to mother-brain repo"
1693
1828
  - Skip to Step 4 (Vision Document Creation)
1694
1829
 
1695
- **Step 3.5.2: Create Project Folder**
1830
+ **Step 3.6.2: Create Project Folder**
1696
1831
  - Create the project directory:
1697
1832
  ```powershell
1698
1833
  New-Item -ItemType Directory -Path "[project-path]" -Force
1699
1834
  ```
1700
1835
 
1701
- **Step 3.5.3: Create Project Skill Structure**
1836
+ **Step 3.6.3: Create Project Skill Structure**
1702
1837
  - Create `.github/skills/` folder in project (for project-specific skills)
1703
1838
  - **DO NOT copy core framework skills** (mother-brain, child-brain, skill-creator):
1704
1839
  - These stay in the framework folder only
@@ -1719,7 +1854,7 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
1719
1854
 
1720
1855
  - **Note**: Project-specific skills created during Step 6 go in project's `.github/skills/`. Core skills are accessed from the framework.
1721
1856
 
1722
- **Step 3.5.4: Initialize Git (Optional)**
1857
+ **Step 3.6.4: Initialize Git (Optional)**
1723
1858
  - Use `ask_user` with choices:
1724
1859
  - "Initialize new git repo"
1725
1860
  - "I'll connect to an existing repo later"
@@ -1737,7 +1872,7 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
1737
1872
  - Ask for repo URL
1738
1873
  - `git remote add origin [url]`
1739
1874
 
1740
- **Step 3.5.5: Switch Context to Project Folder**
1875
+ **Step 3.6.5: Switch Context to Project Folder**
1741
1876
  - Change working directory to project folder:
1742
1877
  ```powershell
1743
1878
  Set-Location "[project-path]"