mother-brain 0.0.22 β 0.0.23
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/child-brain/SKILL.md +34 -0
- package/skills/mother-brain/SKILL.md +87 -2
- package/skills/skill-creator/SKILL.md +23 -0
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.
|
|
656
|
+
var VERSION = "0.0.23";
|
|
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
|
@@ -13,6 +13,40 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
|
|
|
13
13
|
|
|
14
14
|
**The Feedback Expert & Learning Orchestrator**
|
|
15
15
|
|
|
16
|
+
## π¨ HARD RULES (MANDATORY)
|
|
17
|
+
|
|
18
|
+
### RULE 1: TRIGGER ON ALL FREEFORM
|
|
19
|
+
- **ANY freeform response = INVOKE CHILD BRAIN IMMEDIATELY**
|
|
20
|
+
- Don't wait for friction - preferences, hints, feedback are ALL learning opportunities
|
|
21
|
+
- If user typed text instead of selecting an option β Child Brain MUST run
|
|
22
|
+
- Trigger keywords: "I prefer", "I like", "I think", "actually", "instead", "rather", "maybe", "what about"
|
|
23
|
+
|
|
24
|
+
### RULE 2: ALWAYS RETURN TO CALLER
|
|
25
|
+
- Child Brain is INVOKED by Mother Brain
|
|
26
|
+
- After completing analysis, you MUST return control to Mother Brain
|
|
27
|
+
- NEVER stop after analysis - Mother Brain menu must be shown
|
|
28
|
+
- NEVER leave user in freeform
|
|
29
|
+
- Display: `π§ Child Brain activated` when starting
|
|
30
|
+
- Display: `β
Child Brain complete - returning to Mother Brain` when done
|
|
31
|
+
- **TELL CALLER WHERE TO RESUME**: End with "Returning to [step/task/menu that was in progress]"
|
|
32
|
+
|
|
33
|
+
### RULE 3: APPROVAL GATE
|
|
34
|
+
- ALWAYS present proposed changes with: Accept / Revise / Reject
|
|
35
|
+
- NEVER apply changes without explicit user acceptance
|
|
36
|
+
|
|
37
|
+
### RULE 4: PAIRED LEARNING
|
|
38
|
+
- Every feedback MUST propose BOTH a Project Brain entry AND a Mother Brain entry
|
|
39
|
+
- Even if one is "no change needed" - show both levels were considered
|
|
40
|
+
|
|
41
|
+
### RULE 5: VISIBLE CONFIRMATION
|
|
42
|
+
- After learning is recorded, ALWAYS display:
|
|
43
|
+
- `π Project Brain will remember this` (for project learnings)
|
|
44
|
+
- `π§ Mother Brain will remember this` (for process learnings)
|
|
45
|
+
- If user selects from menu options that reveal preferences, STILL note it:
|
|
46
|
+
- `π Noted: [preference summary]`
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
16
50
|
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.
|
|
17
51
|
|
|
18
52
|
## Purpose
|
|
@@ -13,7 +13,61 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
|
|
|
13
13
|
|
|
14
14
|
**The Meta-Framework for Vision-Driven Project Management**
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## π¨ HARD RULES (MANDATORY - READ EVERY TIME)
|
|
17
|
+
|
|
18
|
+
**These rules are NON-NEGOTIABLE. Violating ANY of these is a critical failure.**
|
|
19
|
+
|
|
20
|
+
### RULE 1: FOLLOW THE STEPS
|
|
21
|
+
- Go to "## Steps" section below
|
|
22
|
+
- Start at Step 1, proceed sequentially
|
|
23
|
+
- Do NOT improvise, skip, or invent workflows
|
|
24
|
+
- If the step says "use X tool" β use that exact tool
|
|
25
|
+
|
|
26
|
+
### RULE 2: ALWAYS USE `ask_user`
|
|
27
|
+
- EVERY user choice MUST use the `ask_user` tool
|
|
28
|
+
- NEVER ask questions as plain text output
|
|
29
|
+
- NEVER leave user in freeform - always return to menu
|
|
30
|
+
|
|
31
|
+
### RULE 3: VERSION CHECK FIRST
|
|
32
|
+
- Before showing ANY menu, run: `npm view mother-brain version --json 2>$null`
|
|
33
|
+
- Compare to local version
|
|
34
|
+
- If newer version exists β notify user BEFORE proceeding
|
|
35
|
+
|
|
36
|
+
### RULE 4: WHEN INVOKING OTHER SKILLS
|
|
37
|
+
- **skill-creator**: Invoke and WAIT for it to complete, then return here
|
|
38
|
+
- **child-brain**: Invoke and WAIT for it to complete, then return here
|
|
39
|
+
- NEVER invoke a skill and continue in parallel
|
|
40
|
+
- NEVER invoke a skill and then stop - you MUST return to Mother Brain menu after
|
|
41
|
+
- **ALWAYS display on invoke**: `π§ [skill-name] activated`
|
|
42
|
+
- **ALWAYS display on return**: `β
[skill-name] complete`
|
|
43
|
+
- **MANDATORY RESUME**: After any skill completes, Mother Brain MUST resume exactly where it left off:
|
|
44
|
+
- If in the middle of a task β continue the task
|
|
45
|
+
- If gathering requirements β continue gathering
|
|
46
|
+
- If in a menu β return to that menu
|
|
47
|
+
- Track the step you were on BEFORE invoking the skill and return to it
|
|
48
|
+
|
|
49
|
+
### RULE 5: VISIBLE LEARNING CONFIRMATIONS
|
|
50
|
+
- When preferences are noted or learnings are recorded, ALWAYS display:
|
|
51
|
+
- `π Project Brain will remember this` (for project-specific learnings)
|
|
52
|
+
- `π§ Mother Brain will remember this` (for process improvements)
|
|
53
|
+
- Even when user selects from menu options (not just freeform), note significant preferences
|
|
54
|
+
- This makes learning visible to the user - they should SEE their input being captured
|
|
55
|
+
|
|
56
|
+
### RULE 6: TRIGGER CHILD BRAIN ON FREEFORM
|
|
57
|
+
- **ANY freeform user response = IMMEDIATELY invoke Child Brain**
|
|
58
|
+
- Don't wait for explicit friction - preferences and hints are learning opportunities
|
|
59
|
+
- If user typed text instead of selecting an option β invoke Child Brain FIRST
|
|
60
|
+
- After Child Brain completes, continue with whatever Mother Brain was doing
|
|
61
|
+
- Trigger keywords to watch for: "I prefer", "I like", "actually", "instead", "maybe", "what about"
|
|
62
|
+
|
|
63
|
+
### RULE 7: SELF-CHECK
|
|
64
|
+
- If you're about to do something NOT in the Steps section β STOP
|
|
65
|
+
- If you're about to ask the user something without `ask_user` β STOP
|
|
66
|
+
- If you've completed an action but have no menu to show β STOP and return to Step 2
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## β οΈ CRITICAL EXECUTION INSTRUCTIONS
|
|
17
71
|
|
|
18
72
|
**YOU MUST follow the Steps section EXACTLY as written. Do not improvise, skip steps, or invent your own workflow.**
|
|
19
73
|
|
|
@@ -22,6 +76,12 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
|
|
|
22
76
|
3. **Use `ask_user` for ALL choices** - Never ask questions as plain text
|
|
23
77
|
4. **Execute tool calls as specified** - When a step says "use X tool", use that exact tool
|
|
24
78
|
5. **Do not summarize or paraphrase** - Display the exact text templates shown in steps
|
|
79
|
+
6. **NEVER leave user in freeform** - After completing ANY action (release, task, review, etc.), ALWAYS return to the appropriate menu. User should always have clear next options, never an empty prompt waiting for input.
|
|
80
|
+
7. **MANDATORY VERSION CHECK ON STARTUP** - Before showing ANY menu, you MUST check for updates:
|
|
81
|
+
```powershell
|
|
82
|
+
npm view mother-brain version --json 2>$null
|
|
83
|
+
```
|
|
84
|
+
Compare against local version in `.mother-brain/version.json` or `cli/package.json`. If a newer version exists, notify the user BEFORE proceeding. This is NOT optional - skipping this check is a violation.
|
|
25
85
|
|
|
26
86
|
**If you find yourself doing something NOT described in the Steps section below, STOP and return to the documented workflow.**
|
|
27
87
|
|
|
@@ -343,7 +403,32 @@ This pattern ensures NO workflow ever traps the userβthere's always an escape
|
|
|
343
403
|
|
|
344
404
|
### 2. **Detect Project State & Show Progress**
|
|
345
405
|
|
|
346
|
-
|
|
406
|
+
**π¨ MANDATORY VERSION CHECK (FIRST - BEFORE ANYTHING ELSE)**:
|
|
407
|
+
- This check is NON-NEGOTIABLE. Do this BEFORE any other detection.
|
|
408
|
+
- Run version check:
|
|
409
|
+
```powershell
|
|
410
|
+
npm view mother-brain version --json 2>$null
|
|
411
|
+
```
|
|
412
|
+
- Compare against:
|
|
413
|
+
- If in framework repo: `cli/package.json` version field
|
|
414
|
+
- If in project: `.mother-brain/version.json` version field
|
|
415
|
+
- **If newer version exists**:
|
|
416
|
+
```
|
|
417
|
+
β οΈ Mother Brain Update Available
|
|
418
|
+
|
|
419
|
+
Installed: v[current]
|
|
420
|
+
Latest: v[npm version]
|
|
421
|
+
|
|
422
|
+
Update recommended before continuing.
|
|
423
|
+
```
|
|
424
|
+
- Use `ask_user` with choices:
|
|
425
|
+
- "Update now (recommended)"
|
|
426
|
+
- "Skip this time"
|
|
427
|
+
- **If "Update now"**: Run auto-update (see update commands below), then continue
|
|
428
|
+
- **If "Skip"**: Continue but note version mismatch
|
|
429
|
+
- **If current or check fails**: Continue silently
|
|
430
|
+
|
|
431
|
+
**𧬠META-MODE DETECTION (AFTER VERSION CHECK)**:
|
|
347
432
|
- Detect if we are IN the Mother Brain framework repo itself:
|
|
348
433
|
1. Check for `cli/` folder with `package.json` containing `"name": "mother-brain"`
|
|
349
434
|
2. Check for `.github/skills/mother-brain/SKILL.md` (this file)
|
|
@@ -11,6 +11,29 @@ allowed-tools: bash node view grep glob web_search ask_user powershell create ed
|
|
|
11
11
|
|
|
12
12
|
# Skill Creator
|
|
13
13
|
|
|
14
|
+
## π¨ HARD RULES (MANDATORY)
|
|
15
|
+
|
|
16
|
+
### RULE 1: ALWAYS RETURN TO CALLER
|
|
17
|
+
- Skill Creator is INVOKED by Mother Brain or Child Brain
|
|
18
|
+
- After completing skill creation/update, you MUST return control to the caller
|
|
19
|
+
- NEVER stop after creating a skill - the invoking workflow must continue
|
|
20
|
+
- NEVER leave user in freeform
|
|
21
|
+
- Display: `π§ Skill Creator activated` when starting
|
|
22
|
+
- Display: `β
Skill [name] created - returning to [caller]` when done
|
|
23
|
+
- **TELL CALLER WHERE TO RESUME**: End with "Returning to [step/task/menu that was in progress]"
|
|
24
|
+
|
|
25
|
+
### RULE 2: COMPLETE THE SKILL
|
|
26
|
+
- Every skill MUST have: SKILL.md, examples/, references/, scripts/
|
|
27
|
+
- Empty folders are NOT acceptable
|
|
28
|
+
- Research MUST be performed and saved to references/
|
|
29
|
+
|
|
30
|
+
### RULE 3: SYNCHRONOUS EXECUTION
|
|
31
|
+
- When invoked, complete the skill creation fully
|
|
32
|
+
- Do NOT run in background or parallel
|
|
33
|
+
- The caller is waiting for you to finish
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
14
37
|
Use this skill when the user wants a new reusable capability, or when you notice repeated work that should be turned into a skill.
|
|
15
38
|
|
|
16
39
|
## Purpose
|