mother-brain 0.0.21 → 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 +248 -115
- 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)
|
|
@@ -639,20 +724,22 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
639
724
|
|
|
640
725
|
- Proceed to normal workflow (Step 8+)
|
|
641
726
|
|
|
642
|
-
### 2A. **Send Improvement to Mother Brain** (
|
|
727
|
+
### 2A. **Send Improvement to Mother Brain** (Automatic One-Click Contribution)
|
|
643
728
|
- When user selects "📤 Send improvement to Mother Brain":
|
|
644
729
|
|
|
645
|
-
**Purpose**:
|
|
730
|
+
**Purpose**: Automatically detect local Mother Brain improvements, gather context from learning logs, and submit a fully-formed GitHub issue in one click. No questions asked - just send.
|
|
731
|
+
|
|
732
|
+
**AUTOMATIC WORKFLOW (No User Prompts)**:
|
|
646
733
|
|
|
647
|
-
**Step 2A.1: Detect Local Changes**
|
|
734
|
+
**Step 2A.1: Auto-Detect Local Changes**
|
|
648
735
|
|
|
649
|
-
-
|
|
736
|
+
- Silently scan for changes to core files:
|
|
650
737
|
```powershell
|
|
651
|
-
git diff --name-only HEAD -- ".github/skills/mother-brain/" "cli/"
|
|
652
|
-
git status --porcelain -- ".github/skills/mother-brain/" "cli/"
|
|
738
|
+
git diff --name-only HEAD -- ".github/skills/mother-brain/" ".github/skills/child-brain/" ".github/skills/skill-creator/" "cli/"
|
|
739
|
+
git status --porcelain -- ".github/skills/mother-brain/" ".github/skills/child-brain/" ".github/skills/skill-creator/" "cli/"
|
|
653
740
|
```
|
|
654
741
|
|
|
655
|
-
- **Core files
|
|
742
|
+
- **Core files checked**:
|
|
656
743
|
- `.github/skills/mother-brain/SKILL.md`
|
|
657
744
|
- `.github/skills/child-brain/SKILL.md`
|
|
658
745
|
- `.github/skills/skill-creator/SKILL.md`
|
|
@@ -660,100 +747,97 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
660
747
|
- `cli/package.json`
|
|
661
748
|
|
|
662
749
|
- **If no changes detected**:
|
|
663
|
-
- Display: "No local Mother Brain changes
|
|
664
|
-
-
|
|
750
|
+
- Display: "📭 No local Mother Brain changes to send. Make improvements first, then come back here."
|
|
751
|
+
- Return to main menu (Step 2)
|
|
665
752
|
|
|
666
|
-
**Step 2A.2:
|
|
753
|
+
**Step 2A.2: Auto-Generate Diff Summary**
|
|
667
754
|
|
|
668
|
-
- For each changed file, get the diff
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
755
|
+
- For each changed file, get the diff silently
|
|
756
|
+
- AI generates a human-readable summary:
|
|
757
|
+
- What was changed
|
|
758
|
+
- Why it was changed (inferred from diff context)
|
|
759
|
+
- Expected benefit
|
|
672
760
|
|
|
673
|
-
|
|
674
|
-
```
|
|
675
|
-
📝 Local Mother Brain Changes Detected
|
|
676
|
-
|
|
677
|
-
Files Changed:
|
|
678
|
-
- [file1]: [brief description of change]
|
|
679
|
-
- [file2]: [brief description of change]
|
|
680
|
-
|
|
681
|
-
Summary:
|
|
682
|
-
[AI-generated summary of what the changes accomplish]
|
|
683
|
-
```
|
|
761
|
+
**Step 2A.3: Auto-Extract Learning Context**
|
|
684
762
|
|
|
685
|
-
|
|
763
|
+
- Check `.mother-brain/project-brain.md` for recent learnings:
|
|
764
|
+
- Extract last 3-5 relevant learning entries
|
|
765
|
+
- Focus on friction that triggered Mother Brain improvements
|
|
686
766
|
|
|
687
|
-
- Check
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
Why This Improvement:
|
|
692
|
-
- Friction encountered: [description]
|
|
693
|
-
- Learning from project: [what was learned]
|
|
694
|
-
- Expected benefit: [how this helps all users]
|
|
695
|
-
```
|
|
767
|
+
- Check conversation history for:
|
|
768
|
+
- What friction was encountered
|
|
769
|
+
- How it was resolved
|
|
770
|
+
- What insight led to the improvement
|
|
696
771
|
|
|
697
|
-
**Step 2A.4: Create GitHub Issue**
|
|
772
|
+
**Step 2A.4: Auto-Create GitHub Issue**
|
|
698
773
|
|
|
699
|
-
- Generate issue
|
|
774
|
+
- Generate complete issue automatically:
|
|
700
775
|
```markdown
|
|
701
|
-
Title: [Improvement] [
|
|
776
|
+
Title: [Improvement] [AI-generated brief title from changes]
|
|
702
777
|
|
|
703
778
|
## Summary
|
|
704
|
-
[AI-generated summary
|
|
779
|
+
[AI-generated summary explaining the improvement in 2-3 sentences]
|
|
705
780
|
|
|
706
|
-
## Changes
|
|
707
|
-
[
|
|
781
|
+
## Changes
|
|
782
|
+
[Collapsible diff for each file]
|
|
783
|
+
<details>
|
|
784
|
+
<summary>[filename] - [brief description]</summary>
|
|
785
|
+
|
|
786
|
+
```diff
|
|
787
|
+
[actual diff]
|
|
788
|
+
```
|
|
789
|
+
</details>
|
|
708
790
|
|
|
709
791
|
## Why This Improvement
|
|
710
|
-
|
|
711
|
-
-
|
|
712
|
-
|
|
792
|
+
**Friction Encountered:**
|
|
793
|
+
[Extracted from learning log - what problem was faced]
|
|
794
|
+
|
|
795
|
+
**Resolution:**
|
|
796
|
+
[How the improvement addresses the friction]
|
|
713
797
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
- [ ] [other files]
|
|
798
|
+
**Expected Benefit:**
|
|
799
|
+
[How this helps all Mother Brain users]
|
|
717
800
|
|
|
718
|
-
##
|
|
719
|
-
[
|
|
801
|
+
## Learning Log Context
|
|
802
|
+
[Relevant excerpts from project-brain.md that led to this improvement]
|
|
720
803
|
|
|
721
804
|
---
|
|
722
|
-
*Submitted via Mother Brain
|
|
805
|
+
*Submitted automatically via Mother Brain v[version]*
|
|
723
806
|
```
|
|
724
807
|
|
|
725
|
-
-
|
|
808
|
+
- Create issue using GitHub MCP:
|
|
726
809
|
```
|
|
727
810
|
github-mcp-server: create_issue
|
|
728
|
-
owner: [Mother Brain repo owner]
|
|
811
|
+
owner: [Mother Brain repo owner from git remote]
|
|
729
812
|
repo: [Mother Brain repo name]
|
|
730
813
|
title: [Generated title]
|
|
731
814
|
body: [Generated body]
|
|
732
815
|
labels: ["improvement", "community-contribution"]
|
|
733
816
|
```
|
|
734
817
|
|
|
735
|
-
|
|
818
|
+
**Step 2A.5: Confirm and Offer Revert**
|
|
819
|
+
|
|
820
|
+
- Display success message:
|
|
736
821
|
```
|
|
737
822
|
✅ Improvement Submitted!
|
|
738
823
|
|
|
739
|
-
Issue
|
|
740
|
-
|
|
824
|
+
Issue #[number]: [title]
|
|
825
|
+
[issue URL]
|
|
741
826
|
|
|
742
|
-
|
|
743
|
-
|
|
827
|
+
Changes detected:
|
|
828
|
+
• [file1] - [brief change description]
|
|
829
|
+
• [file2] - [brief change description]
|
|
744
830
|
```
|
|
745
831
|
|
|
746
|
-
**Step 2A.5: Offer to Revert Local Changes**
|
|
747
|
-
|
|
748
832
|
- Use `ask_user` with choices:
|
|
749
|
-
- "Keep local changes (for further
|
|
833
|
+
- "Keep local changes (for further work)"
|
|
750
834
|
- "Revert Mother Brain files (clean slate)"
|
|
751
835
|
|
|
752
836
|
- **If revert selected**:
|
|
753
837
|
```powershell
|
|
754
838
|
git checkout HEAD -- ".github/skills/mother-brain/" ".github/skills/child-brain/" ".github/skills/skill-creator/" "cli/"
|
|
755
839
|
```
|
|
756
|
-
- Display: "Local Mother Brain files reverted to
|
|
840
|
+
- Display: "✨ Local Mother Brain files reverted to clean slate."
|
|
757
841
|
|
|
758
842
|
- Return to main menu (Step 2)
|
|
759
843
|
|
|
@@ -769,81 +853,130 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
769
853
|
labels: ["improvement"]
|
|
770
854
|
```
|
|
771
855
|
|
|
772
|
-
- Display
|
|
856
|
+
- **If no issues**: Display "📭 No community improvements pending review." → Return to menu
|
|
857
|
+
|
|
858
|
+
- **If issues exist**: Display summarized list:
|
|
773
859
|
```
|
|
774
|
-
📥 Community Improvements to Review
|
|
860
|
+
📥 Community Improvements to Review ([count] pending)
|
|
775
861
|
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
[
|
|
862
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
863
|
+
│ #[number] - [title] │
|
|
864
|
+
│ by @[author] • [time ago] │
|
|
865
|
+
│ │
|
|
866
|
+
│ 📝 [AI-generated 1-sentence summary of what this improves] │
|
|
867
|
+
│ 📁 [files affected count] files • [lines changed] lines │
|
|
868
|
+
└─────────────────────────────────────────────────────────────┘
|
|
781
869
|
|
|
782
|
-
|
|
870
|
+
[Repeat for each issue, max 5 shown]
|
|
783
871
|
```
|
|
784
872
|
|
|
785
873
|
- Use `ask_user` with issue numbers as choices + "Back to menu"
|
|
786
874
|
|
|
787
875
|
**Step 2A.1.2: Review Selected Issue**
|
|
788
876
|
|
|
789
|
-
- Fetch full issue details
|
|
790
|
-
```
|
|
791
|
-
github-mcp-server: get_issue
|
|
792
|
-
issue_number: [selected]
|
|
793
|
-
```
|
|
877
|
+
- Fetch full issue details
|
|
794
878
|
|
|
795
|
-
- Display
|
|
879
|
+
- Display with AI-generated analysis:
|
|
796
880
|
```
|
|
797
881
|
📋 Issue #[number]: [title]
|
|
798
882
|
|
|
799
|
-
Submitted by: @[author]
|
|
800
|
-
Date: [created_at]
|
|
883
|
+
Submitted by: @[author] • [created_at]
|
|
801
884
|
|
|
802
|
-
|
|
885
|
+
═══════════════════════════════════════════════════════════════
|
|
803
886
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
-
|
|
808
|
-
|
|
887
|
+
🔍 IMPACT SUMMARY
|
|
888
|
+
|
|
889
|
+
What It Does:
|
|
890
|
+
[AI-generated 2-3 sentence explanation of the improvement]
|
|
891
|
+
|
|
892
|
+
Why It Was Submitted:
|
|
893
|
+
[Extract from "Friction Encountered" section of issue]
|
|
894
|
+
|
|
895
|
+
Risk Assessment:
|
|
896
|
+
• Scope: [Low/Medium/High] - [brief reason]
|
|
897
|
+
• Breaking Changes: [None/Minor/Major]
|
|
898
|
+
• Files: [list affected files]
|
|
899
|
+
|
|
900
|
+
═══════════════════════════════════════════════════════════════
|
|
901
|
+
|
|
902
|
+
📄 FULL DIFF
|
|
903
|
+
[Collapsible or scrollable diff from issue body]
|
|
809
904
|
```
|
|
810
905
|
|
|
811
906
|
- Use `ask_user` with choices:
|
|
812
|
-
- "Accept
|
|
813
|
-
- "
|
|
814
|
-
- "
|
|
815
|
-
- "Skip
|
|
907
|
+
- "✅ Accept - integrate this improvement"
|
|
908
|
+
- "❌ Reject - close with explanation"
|
|
909
|
+
- "💬 Request changes - ask for modifications"
|
|
910
|
+
- "⏭️ Skip - review later"
|
|
816
911
|
|
|
817
|
-
**Step 2A.1.3:
|
|
912
|
+
**Step 2A.1.3: Accept Improvement**
|
|
818
913
|
|
|
819
914
|
- If accepted:
|
|
820
|
-
1.
|
|
821
|
-
2.
|
|
822
|
-
3.
|
|
823
|
-
4.
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
915
|
+
1. Parse the diffs from the issue body
|
|
916
|
+
2. Apply changes using `edit` tool
|
|
917
|
+
3. Run validation (npm build if CLI changes)
|
|
918
|
+
4. **Auto-comment** on issue:
|
|
919
|
+
```markdown
|
|
920
|
+
✅ **Improvement Integrated**
|
|
921
|
+
|
|
922
|
+
Thank you for this contribution! Your improvement has been integrated
|
|
923
|
+
and will be included in the next release.
|
|
924
|
+
|
|
925
|
+
Changes applied:
|
|
926
|
+
- [list of files modified]
|
|
927
|
+
|
|
928
|
+
🚀 *Integrated by Mother Brain*
|
|
929
|
+
```
|
|
930
|
+
5. Close issue with "integrated" label
|
|
931
|
+
|
|
932
|
+
- Display: "✅ Improvement from #[number] integrated. Ready for release."
|
|
933
|
+
|
|
934
|
+
**Step 2A.1.4: Reject Improvement**
|
|
935
|
+
|
|
936
|
+
- If rejected:
|
|
937
|
+
1. Use `ask_user` to get brief reason (or offer common reasons):
|
|
938
|
+
- "Doesn't align with framework direction"
|
|
939
|
+
- "Implementation approach needs rework"
|
|
940
|
+
- "Duplicate of existing functionality"
|
|
941
|
+
- "Custom reason..."
|
|
942
|
+
2. **Auto-comment** on issue:
|
|
943
|
+
```markdown
|
|
944
|
+
❌ **Improvement Not Accepted**
|
|
945
|
+
|
|
946
|
+
Thank you for taking the time to submit this improvement.
|
|
947
|
+
After review, we've decided not to integrate it at this time.
|
|
948
|
+
|
|
949
|
+
**Reason:** [selected/custom reason]
|
|
950
|
+
|
|
951
|
+
[If appropriate: "Feel free to revise and resubmit if you'd like
|
|
952
|
+
to address this feedback."]
|
|
953
|
+
|
|
954
|
+
🙏 *We appreciate your contribution to Mother Brain*
|
|
955
|
+
```
|
|
956
|
+
3. Close issue with "wontfix" label
|
|
957
|
+
|
|
958
|
+
- Display: "Issue #[number] closed with explanation."
|
|
959
|
+
|
|
960
|
+
**Step 2A.1.5: Request Changes**
|
|
834
961
|
|
|
835
962
|
- If "Request changes" selected:
|
|
836
|
-
|
|
837
|
-
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
963
|
+
1. Use `ask_user` to get feedback text
|
|
964
|
+
2. **Auto-comment** on issue:
|
|
965
|
+
```markdown
|
|
966
|
+
💬 **Changes Requested**
|
|
967
|
+
|
|
968
|
+
Thanks for this improvement! Before we can integrate it,
|
|
969
|
+
please address the following:
|
|
970
|
+
|
|
971
|
+
[user's feedback]
|
|
972
|
+
|
|
973
|
+
Once updated, we'll review again.
|
|
974
|
+
|
|
975
|
+
🔄 *Feedback from Mother Brain maintainer*
|
|
976
|
+
```
|
|
977
|
+
3. Add "changes-requested" label
|
|
978
|
+
|
|
979
|
+
- Display: "Feedback posted to #[number]."
|
|
847
980
|
|
|
848
981
|
|
|
849
982
|
|
|
@@ -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
|