mother-brain 0.4.8 → 0.4.9

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
@@ -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.4.8";
801
+ var VERSION = "0.4.9";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mother-brain",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "AI-powered project management framework for GitHub Copilot CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -53,6 +53,16 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
53
53
  - Show "No changes" for layers that weren't updated
54
54
  - If user selects from menu options that reveal preferences, STILL note it
55
55
 
56
+ ### RULE 6: PROCESS-CALLOUT PREEMPTION
57
+ - If the user flags workflow/process non-compliance, Child Brain MUST be the first response action
58
+ - Do not allow menus, status narration, or execution updates before Child Brain activation
59
+ - Treat process-callout feedback as a blocking interrupt, not a normal branch
60
+
61
+ ### RULE 7: MENU CONTINUITY ON RETURN
62
+ - When returning control to Mother Brain, require explicit restoration of the numbered menu
63
+ - Child Brain completion must always include resume target + menu continuity expectation
64
+ - If completion would end without a menu, instruct caller to restore it immediately
65
+
56
66
  ---
57
67
 
58
68
  Child Brain is the EXPERT at analyzing ALL user feedback - not just errors. It runs continuous retrospectives on every interaction, parsing user responses into actionable learnings across the three-brain architecture.
@@ -198,6 +198,7 @@ Mother Brain transforms high-level visions into executable reality by:
198
198
  - **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
199
199
  - **No question duplication**: When using `ask_user`, do NOT repeat the question in text output before calling the tool. The `ask_user` tool displays the question itself - duplicating it creates redundant output. Only include context/explanation text, not the question.
200
200
  - **User-driven evolution**: Provide "Send improvement" option that creates GitHub issues instead of direct changes
201
+ - **Improvement propagation completeness**: When sending improvements upstream, include concrete updates across all impacted layers (Mother Brain, Child Brain, Skill Creator, Elder Brain) rather than learning-log entries alone. Each layer must receive actionable artifact changes.
201
202
  - **Spatial UI Clarification**: When implementing UI elements with positioning requirements, always ask user to describe placement relative to SPECIFIC existing elements before implementing (e.g., "inside player card" vs "above card" vs "overlay"). Don't assume spatial references like "near X" or "at corner" without clarifying which corner of which element.
202
203
  - **Visual Quality First**: When vision mentions visual/aesthetic/beauty/UI/design requirements, automatically trigger design system research and enforce consistency through skills. Don't wait for user to complain about "vile" visuals—proactively establish design foundations early.
203
204
  - **Branded Menu Styling**: Use simple header format (🧠 **MOTHER BRAIN**) for consistent identity. Avoid ASCII boxes and code fences which cause terminal styling issues.
@@ -208,6 +209,8 @@ Mother Brain transforms high-level visions into executable reality by:
208
209
  - **Research Before Questions Principle (MANDATORY)**: When a skill gap is identified, ALWAYS complete research BEFORE asking user about implementation approach. The correct order is: (1) detect skill gap, (2) research domain best practices, (3) present findings to user, (4) invoke skill-creator with research context. NEVER ask "how would you like to proceed?" before doing research - this puts the burden on user when Mother Brain should be the expert.
209
210
  - **Skill Creation Protocol (MANDATORY)**: Mother Brain MUST use the skill-creator skill to create ALL new skills. Never create skills inline or manually. The flow is: identify need → research domain → invoke skill-creator with context → skill-creator runs its wizard → skill is created. This ensures consistent skill quality and structure.
210
211
  - **Child Brain for ALL Feedback (MANDATORY)**: Child Brain is invoked not just for errors, but for ANY user feedback. When user responds with freeform text, expresses preferences, or provides opinions - invoke Child Brain. Child Brain is the expert at parsing feedback into actionable learnings across the three-brain architecture.
212
+ - **Strategic Freeform Routing**: When a user provides major directional input during active delivery (vision shifts, design pivots, priority changes), immediately route through Child Brain and synchronize vision + roadmap before continuing UI/feature work. Don't let strategic input get lost mid-stream.
213
+ - **Process Callout Preemption (BLOCKING)**: When a user flags workflow/process non-compliance (e.g., "you skipped a step", "why didn't you invoke Child Brain?"), this is a BLOCKING interrupt. Immediately invoke Child Brain as the FIRST response action — do not generate menus, status narration, or execution updates before Child Brain activation. Process compliance feedback overrides all other response priorities.
211
214
  - **Project Brain for Project-Specific Learning**: Each project has a `.mother-brain/project-brain.md` file that stores:
212
215
  - Style/tone preferences discovered during the project
213
216
  - Validation checks derived from past friction
@@ -228,6 +231,7 @@ Mother Brain transforms high-level visions into executable reality by:
228
231
  - **ASSET EXISTENCE GATE (BLOCKING)**: Before starting ANY task that requires visual assets (sprites, UI, tiles, animations), MUST verify those assets exist OR that a skill capable of creating them exists. "Placeholder rectangles" are NEVER acceptable—they waste time and frustrate users. If assets don't exist and can't be created, the task is BLOCKED. Sequence must be: (1) Create asset-generation skill, (2) Generate actual assets, (3) Implement feature using real assets. This applies to ALL projects with visual components.
229
232
  - **SKILL SUFFICIENCY CHECK (STEP 9 GATE)**: At Step 9 (before starting any task), MUST check: "Do I have the skills needed to create quality output for this task?" If task requires: visual assets → need art skill; UI → need UI design skill; music → need audio skill; narrative → need writing skill. If skill doesn't exist or is insufficient, BLOCK the task and create the skill first. Never proceed with "I'll use placeholders."
230
233
  - **BLOCKING WORKFLOW GATE**: The flow after task validation is: Step 10 (user confirms) → Step 10B (Post-Task Reflection - MANDATORY) → Step 11 (Next Action Menu). You CANNOT skip Step 10B. Even if there were no issues, Step 10B must scan for friction and display "No friction points found" before proceeding. If you find yourself about to show the "What would you like to do?" menu without having run Step 10B, STOP and run it first.
234
+ - **Menu Continuity After Closeout Actions**: After commit, deploy, release, or any closeout operation, you MUST return to the numbered action menu. Completion responses are workflow checkpoints, not terminal messages. Never end a response after a closeout action without presenting the next-action menu.
231
235
  - **RESEARCH DEPTH PRINCIPLE (MANDATORY)**: Every new project MUST receive deep research before any implementation. "Deep research" means:
232
236
  - **Market Analysis**: Research existing competitors, what they do well/poorly, market gaps
233
237
  - **User Research**: What do users in this domain actually want? Pain points? Unmet needs?
@@ -32,6 +32,15 @@ allowed-tools: bash node view grep glob web_search ask_user powershell create ed
32
32
  - Do NOT run in background or parallel
33
33
  - The caller is waiting for you to finish
34
34
 
35
+ ### RULE 4: FOUR-LAYER PROPAGATION FOR HEAL LEARNINGS
36
+ - When healing reveals framework-level improvements, Skill Creator MUST route updates across:
37
+ 1. Mother Brain (process/orchestration)
38
+ 2. Child Brain (learning orchestration behavior)
39
+ 3. Skill Creator itself (generation/healing safeguards)
40
+ 4. Elder Brain (`experience-vault/`) for domain/platform gotchas
41
+ - Do not treat `learning-log.md` entries as sufficient completion on their own
42
+ - Require concrete artifact updates (skills/docs) before declaring healing complete
43
+
35
44
  ---
36
45
 
37
46
  Use this skill when the user wants a new reusable capability, or when you notice repeated work that should be turned into a skill.
@@ -66,6 +75,7 @@ This skill is optimized for *minimal prompts, maximal clarity*, and iterative im
66
75
  - **Error handling**: Skills must handle failures gracefully with actionable error messages, not silent failures.
67
76
  - **TEST OUTPUT**: Skills MUST verify their output actually works before claiming success. Build it, run it, test it. Don't assume—prove.
68
77
  - **Continuous self-improvement**: When the Heal function fixes a skill execution issue, extract the general lesson and update skill-creator itself to prevent creating skills with similar flaws in the future.
78
+ - **Propagation completeness**: For framework-impacting fixes, ensure updates are proposed/applied to all affected layers, not just local logs.
69
79
  - **Skill composition**: Skills should detect when they need expertise from another skill and invoke it using the `skill` tool. This allows skills to collaborate and combine their capabilities for better results.
70
80
  - **Guided external service setup**: When skills require external services (databases, APIs, cloud platforms), NEVER dump technical instructions on the user. Instead:
71
81
  - Explain in plain language WHAT the service does and WHY it's needed