mindforge-cc 2.1.0 → 2.1.2

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.
Files changed (236) hide show
  1. package/.agent/bin/lib/commands.cjs +959 -0
  2. package/.agent/bin/lib/config.cjs +421 -0
  3. package/.agent/bin/lib/core.cjs +1166 -0
  4. package/.agent/bin/lib/frontmatter.cjs +307 -0
  5. package/.agent/bin/lib/init.cjs +1336 -0
  6. package/.agent/bin/lib/milestone.cjs +252 -0
  7. package/.agent/bin/lib/model-profiles.cjs +68 -0
  8. package/.agent/bin/lib/phase.cjs +888 -0
  9. package/.agent/bin/lib/profile-output.cjs +952 -0
  10. package/.agent/bin/lib/profile-pipeline.cjs +539 -0
  11. package/.agent/bin/lib/roadmap.cjs +329 -0
  12. package/.agent/bin/lib/security.cjs +356 -0
  13. package/.agent/bin/lib/state.cjs +969 -0
  14. package/.agent/bin/lib/template.cjs +222 -0
  15. package/.agent/bin/lib/uat.cjs +189 -0
  16. package/.agent/bin/lib/verify.cjs +851 -0
  17. package/.agent/bin/lib/workstream.cjs +491 -0
  18. package/.agent/bin/mindforge-tools.cjs +897 -0
  19. package/.agent/file-manifest.json +219 -0
  20. package/.agent/hooks/mindforge-check-update.js +114 -0
  21. package/.agent/hooks/mindforge-context-monitor.js +156 -0
  22. package/.agent/hooks/mindforge-prompt-guard.js +96 -0
  23. package/.agent/hooks/mindforge-statusline.js +119 -0
  24. package/.agent/hooks/mindforge-workflow-guard.js +94 -0
  25. package/.agent/mindforge/discuss-phase.md +1 -1
  26. package/.agent/mindforge/help.md +1 -1
  27. package/.agent/mindforge/learn.md +3 -2
  28. package/.agent/mindforge/research.md +3 -2
  29. package/.agent/mindforge/steer.md +1 -1
  30. package/.agent/settings.json +38 -0
  31. package/.agent/skills/mindforge-add-backlog/SKILL.md +72 -0
  32. package/.agent/skills/mindforge-add-phase/SKILL.md +39 -0
  33. package/.agent/skills/mindforge-add-tests/SKILL.md +28 -0
  34. package/.agent/skills/mindforge-add-todo/SKILL.md +42 -0
  35. package/.agent/skills/mindforge-audit-milestone/SKILL.md +29 -0
  36. package/.agent/skills/mindforge-audit-uat/SKILL.md +20 -0
  37. package/.agent/skills/mindforge-autonomous/SKILL.md +33 -0
  38. package/.agent/skills/mindforge-check-todos/SKILL.md +40 -0
  39. package/.agent/skills/mindforge-cleanup/SKILL.md +19 -0
  40. package/.agent/skills/mindforge-complete-milestone/SKILL.md +131 -0
  41. package/.agent/skills/mindforge-debug/SKILL.md +163 -0
  42. package/.agent/skills/mindforge-discuss-phase/SKILL.md +54 -0
  43. package/.agent/skills/mindforge-do/SKILL.md +26 -0
  44. package/.agent/skills/mindforge-execute-phase/SKILL.md +49 -0
  45. package/.agent/skills/mindforge-fast/SKILL.md +23 -0
  46. package/.agent/skills/mindforge-forensics/SKILL.md +49 -0
  47. package/.agent/skills/mindforge-health/SKILL.md +17 -0
  48. package/.agent/skills/mindforge-help/SKILL.md +23 -0
  49. package/.agent/skills/mindforge-insert-phase/SKILL.md +28 -0
  50. package/.agent/skills/mindforge-join-discord/SKILL.md +19 -0
  51. package/.agent/skills/mindforge-list-phase-assumptions/SKILL.md +41 -0
  52. package/.agent/skills/mindforge-list-workspaces/SKILL.md +17 -0
  53. package/.agent/skills/mindforge-manager/SKILL.md +32 -0
  54. package/.agent/skills/mindforge-map-codebase/SKILL.md +64 -0
  55. package/.agent/skills/mindforge-milestone-summary/SKILL.md +44 -0
  56. package/.agent/skills/mindforge-new-milestone/SKILL.md +38 -0
  57. package/.agent/skills/mindforge-new-project/SKILL.md +36 -0
  58. package/.agent/skills/mindforge-new-workspace/SKILL.md +39 -0
  59. package/.agent/skills/mindforge-next/SKILL.md +19 -0
  60. package/.agent/skills/mindforge-note/SKILL.md +29 -0
  61. package/.agent/skills/mindforge-pause-work/SKILL.md +35 -0
  62. package/.agent/skills/mindforge-plan-milestone-gaps/SKILL.md +28 -0
  63. package/.agent/skills/mindforge-plan-phase/SKILL.md +37 -0
  64. package/.agent/skills/mindforge-plant-seed/SKILL.md +22 -0
  65. package/.agent/skills/mindforge-pr-branch/SKILL.md +21 -0
  66. package/.agent/skills/mindforge-profile-user/SKILL.md +38 -0
  67. package/.agent/skills/mindforge-progress/SKILL.md +19 -0
  68. package/.agent/skills/mindforge-quick/SKILL.md +38 -0
  69. package/.agent/skills/mindforge-reapply-patches/SKILL.md +124 -0
  70. package/.agent/skills/mindforge-remove-phase/SKILL.md +26 -0
  71. package/.agent/skills/mindforge-remove-workspace/SKILL.md +22 -0
  72. package/.agent/skills/mindforge-research-phase/SKILL.md +186 -0
  73. package/.agent/skills/mindforge-resume-work/SKILL.md +35 -0
  74. package/.agent/skills/mindforge-review/SKILL.md +31 -0
  75. package/.agent/skills/mindforge-review-backlog/SKILL.md +58 -0
  76. package/.agent/skills/mindforge-session-report/SKILL.md +16 -0
  77. package/.agent/skills/mindforge-set-profile/SKILL.md +9 -0
  78. package/.agent/skills/mindforge-settings/SKILL.md +32 -0
  79. package/.agent/skills/mindforge-ship/SKILL.md +16 -0
  80. package/.agent/skills/mindforge-stats/SKILL.md +16 -0
  81. package/.agent/skills/mindforge-thread/SKILL.md +123 -0
  82. package/.agent/skills/mindforge-ui-phase/SKILL.md +24 -0
  83. package/.agent/skills/mindforge-ui-review/SKILL.md +24 -0
  84. package/.agent/skills/mindforge-update/SKILL.md +35 -0
  85. package/.agent/skills/mindforge-validate-phase/SKILL.md +26 -0
  86. package/.agent/skills/mindforge-verify-work/SKILL.md +30 -0
  87. package/.agent/skills/mindforge-workstreams/SKILL.md +65 -0
  88. package/.agent/workflows/mindforge-add-phase.md +112 -0
  89. package/.agent/workflows/mindforge-add-tests.md +351 -0
  90. package/.agent/workflows/mindforge-add-todo.md +158 -0
  91. package/.agent/workflows/mindforge-audit-milestone.md +332 -0
  92. package/.agent/workflows/mindforge-audit-uat.md +109 -0
  93. package/.agent/workflows/mindforge-autonomous.md +815 -0
  94. package/.agent/workflows/mindforge-check-todos.md +177 -0
  95. package/.agent/workflows/mindforge-cleanup.md +152 -0
  96. package/.agent/workflows/mindforge-complete-milestone.md +766 -0
  97. package/.agent/workflows/mindforge-diagnose-issues.md +220 -0
  98. package/.agent/workflows/mindforge-discovery-phase.md +289 -0
  99. package/.agent/workflows/mindforge-discuss-phase-assumptions.md +645 -0
  100. package/.agent/workflows/mindforge-discuss-phase.md +1047 -0
  101. package/.agent/workflows/mindforge-do.md +104 -0
  102. package/.agent/workflows/mindforge-execute-phase.md +838 -0
  103. package/.agent/workflows/mindforge-execute-plan.md +509 -0
  104. package/.agent/workflows/mindforge-fast.md +105 -0
  105. package/.agent/workflows/mindforge-forensics.md +265 -0
  106. package/.agent/workflows/mindforge-health.md +181 -0
  107. package/.agent/workflows/mindforge-help.md +606 -0
  108. package/.agent/workflows/mindforge-insert-phase.md +130 -0
  109. package/.agent/workflows/mindforge-list-phase-assumptions.md +178 -0
  110. package/.agent/workflows/mindforge-list-workspaces.md +56 -0
  111. package/.agent/workflows/mindforge-manager.md +360 -0
  112. package/.agent/workflows/mindforge-map-codebase.md +370 -0
  113. package/.agent/workflows/mindforge-milestone-summary.md +223 -0
  114. package/.agent/workflows/mindforge-new-milestone.md +469 -0
  115. package/.agent/workflows/mindforge-new-project.md +1226 -0
  116. package/.agent/workflows/mindforge-new-workspace.md +237 -0
  117. package/.agent/workflows/mindforge-next.md +97 -0
  118. package/.agent/workflows/mindforge-node-repair.md +92 -0
  119. package/.agent/workflows/mindforge-note.md +156 -0
  120. package/.agent/workflows/mindforge-pause-work.md +176 -0
  121. package/.agent/workflows/mindforge-plan-milestone-gaps.md +273 -0
  122. package/.agent/workflows/mindforge-plan-phase.md +848 -0
  123. package/.agent/workflows/mindforge-plant-seed.md +169 -0
  124. package/.agent/workflows/mindforge-pr-branch.md +129 -0
  125. package/.agent/workflows/mindforge-profile-user.md +450 -0
  126. package/.agent/workflows/mindforge-progress.md +507 -0
  127. package/.agent/workflows/mindforge-quick.md +732 -0
  128. package/.agent/workflows/mindforge-remove-phase.md +155 -0
  129. package/.agent/workflows/mindforge-remove-workspace.md +90 -0
  130. package/.agent/workflows/mindforge-research-phase.md +74 -0
  131. package/.agent/workflows/mindforge-resume-project.md +325 -0
  132. package/.agent/workflows/mindforge-review.md +228 -0
  133. package/.agent/workflows/mindforge-session-report.md +146 -0
  134. package/.agent/workflows/mindforge-settings.md +283 -0
  135. package/.agent/workflows/mindforge-ship.md +228 -0
  136. package/.agent/workflows/mindforge-stats.md +60 -0
  137. package/.agent/workflows/mindforge-transition.md +671 -0
  138. package/.agent/workflows/mindforge-ui-phase.md +290 -0
  139. package/.agent/workflows/mindforge-ui-review.md +157 -0
  140. package/.agent/workflows/mindforge-update.md +323 -0
  141. package/.agent/workflows/mindforge-validate-phase.md +167 -0
  142. package/.agent/workflows/mindforge-verify-phase.md +254 -0
  143. package/.agent/workflows/mindforge-verify-work.md +623 -0
  144. package/.mindforge/personas/advisor-researcher.md +3 -3
  145. package/.mindforge/personas/debug-specialist.md +1 -1
  146. package/.mindforge/personas/debugger.md +1 -1
  147. package/.mindforge/personas/developer.md +1 -1
  148. package/.mindforge/personas/phase-researcher.md +4 -4
  149. package/.mindforge/personas/project-researcher.md +3 -3
  150. package/.mindforge/personas/research-agent.md +4 -3
  151. package/.mindforge/personas/tech-writer.md +1 -1
  152. package/.mindforge/personas/ui-researcher.md +1 -1
  153. package/.planning/ROADMAP.md +10 -0
  154. package/CHANGELOG.md +34 -0
  155. package/README.md +70 -45
  156. package/RELEASENOTES.md +26 -26
  157. package/bin/install.js +41 -41
  158. package/bin/installer-core.js +67 -26
  159. package/bin/wizard/setup-wizard.js +11 -24
  160. package/bin/wizard/theme.js +141 -0
  161. package/docs/PERSONAS.md +119 -87
  162. package/docs/References/checkpoints.md +778 -0
  163. package/docs/References/config-reference.md +81 -0
  164. package/docs/References/continuation-format.md +249 -0
  165. package/docs/References/decimal-phase-calculation.md +64 -0
  166. package/docs/References/git-integration.md +295 -0
  167. package/docs/References/git-planning-commit.md +38 -0
  168. package/docs/References/model-profile-resolution.md +36 -0
  169. package/docs/References/model-profiles.md +139 -0
  170. package/docs/References/phase-argument-parsing.md +61 -0
  171. package/docs/References/planning-config.md +202 -0
  172. package/docs/References/questioning.md +162 -0
  173. package/docs/References/tdd.md +263 -0
  174. package/docs/References/ui-brand.md +160 -0
  175. package/docs/References/user-profiling.md +681 -0
  176. package/docs/References/verification-patterns.md +612 -0
  177. package/docs/References/workstream-flag.md +58 -0
  178. package/docs/Templates/Agents/CLAUDE-MD.md +122 -0
  179. package/docs/Templates/Agents/COPILOT-INSTRUCTIONS.md +7 -0
  180. package/docs/Templates/Agents/DEBUGGER-PROMPT.md +91 -0
  181. package/docs/Templates/Agents/PLANNER-PROMPT.md +117 -0
  182. package/docs/Templates/Codebase/architecture.md +255 -0
  183. package/docs/Templates/Codebase/concerns.md +310 -0
  184. package/docs/Templates/Codebase/conventions.md +307 -0
  185. package/docs/Templates/Codebase/integrations.md +280 -0
  186. package/docs/Templates/Codebase/stack.md +186 -0
  187. package/docs/Templates/Codebase/structure.md +285 -0
  188. package/docs/Templates/Codebase/testing.md +480 -0
  189. package/docs/Templates/Execution/CONTINUE-HERE.md +78 -0
  190. package/docs/Templates/Execution/DISCUSSION-LOG.md +63 -0
  191. package/docs/Templates/Execution/PHASE-PROMPT.md +610 -0
  192. package/docs/Templates/Execution/STATE.md +176 -0
  193. package/docs/Templates/Execution/SUMMARY-COMPLEX.md +59 -0
  194. package/docs/Templates/Execution/SUMMARY-MINIMAL.md +41 -0
  195. package/docs/Templates/Execution/SUMMARY-STANDARD.md +48 -0
  196. package/docs/Templates/Execution/SUMMARY.md +248 -0
  197. package/docs/Templates/Profile/DEV-PREFERENCES.md +21 -0
  198. package/docs/Templates/Profile/USER-PROFILE.md +146 -0
  199. package/docs/Templates/Profile/USER-SETUP.md +311 -0
  200. package/docs/Templates/Project/DISCOVERY.md +146 -0
  201. package/docs/Templates/Project/MILESTONE-ARCHIVE.md +123 -0
  202. package/docs/Templates/Project/MILESTONE.md +115 -0
  203. package/docs/Templates/Project/PROJECT.md +206 -0
  204. package/docs/Templates/Project/REQUIREMENTS.md +231 -0
  205. package/docs/Templates/Project/RETROSPECTIVE.md +54 -0
  206. package/docs/Templates/Project/ROADMAP.md +202 -0
  207. package/docs/Templates/Quality/DEBUG.md +164 -0
  208. package/docs/Templates/Quality/UAT.md +280 -0
  209. package/docs/Templates/Quality/UI-SPEC.md +100 -0
  210. package/docs/Templates/Quality/VALIDATION.md +76 -0
  211. package/docs/Templates/Quality/VERIFICATION-REPORT.md +322 -0
  212. package/docs/Templates/Research/ARCHITECTURE.md +204 -0
  213. package/docs/Templates/Research/FEATURES.md +147 -0
  214. package/docs/Templates/Research/PITFALLS.md +200 -0
  215. package/docs/Templates/Research/STACK.md +120 -0
  216. package/docs/Templates/Research/SUMMARY.md +170 -0
  217. package/docs/Templates/System/CONFIG.json +43 -0
  218. package/docs/Templates/System/CONTEXT.md +352 -0
  219. package/docs/architecture/README.md +54 -42
  220. package/docs/commands-reference.md +62 -14
  221. package/docs/getting-started.md +26 -18
  222. package/docs/skills-authoring-guide.md +40 -12
  223. package/docs/tutorial.md +83 -116
  224. package/docs/user-guide.md +72 -198
  225. package/package.json +7 -2
  226. package/.mindforge/memory/knowledge-base.jsonl +0 -7
  227. package/.mindforge/memory/pattern-library.jsonl +0 -1
  228. package/.mindforge/memory/team-preferences.jsonl +0 -4
  229. package/.planning/browser-daemon.log +0 -32
  230. package/docs/mindforge-md-reference.md +0 -57
  231. package/docs/reference/config-reference.md +0 -64
  232. /package/{.mindforge/memory/decision-library.jsonl → .planning/phases/01-migrate-gsd-to-mindforge/.gitkeep} +0 -0
  233. /package/docs/{reference → References}/audit-events.md +0 -0
  234. /package/docs/{reference → References}/commands.md +0 -0
  235. /package/docs/{reference → References}/sdk-api.md +0 -0
  236. /package/docs/{reference → References}/skills-api.md +0 -0
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: mindforge-complete-milestone
3
+ description: Archive completed milestone and prepare for next version
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
9
+
10
+ Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
11
+ Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ **Load these files NOW (before proceeding):**
16
+
17
+ - @.agent/workflows/mindforge-complete-milestone.md (main workflow)
18
+ - @.agent/templates/milestone-archive.md (archive template)
19
+ </execution_context>
20
+
21
+ <context>
22
+ **Project files:**
23
+ - `.planning/ROADMAP.md`
24
+ - `.planning/REQUIREMENTS.md`
25
+ - `.planning/STATE.md`
26
+ - `.planning/PROJECT.md`
27
+
28
+ **User input:**
29
+
30
+ - Version: {{version}} (e.g., "1.0", "1.1", "2.0")
31
+ </context>
32
+
33
+ <process>
34
+
35
+ **Follow complete-milestone.md workflow:**
36
+
37
+ 0. **Check for audit:**
38
+
39
+ - Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`
40
+ - If missing or stale: recommend `/mindforge-audit-milestone` first
41
+ - If audit status is `gaps_found`: recommend `/mindforge-plan-milestone-gaps` first
42
+ - If audit status is `passed`: proceed to step 1
43
+
44
+ ```markdown
45
+ ## Pre-flight Check
46
+
47
+ {If no v{{version}}-MILESTONE-AUDIT.md:}
48
+ ⚠ No milestone audit found. Run `/mindforge-audit-milestone` first to verify
49
+ requirements coverage, cross-phase integration, and E2E flows.
50
+
51
+ {If audit has gaps:}
52
+ ⚠ Milestone audit found gaps. Run `/mindforge-plan-milestone-gaps` to create
53
+ phases that close the gaps, or proceed anyway to accept as tech debt.
54
+
55
+ {If audit passed:}
56
+ ✓ Milestone audit passed. Proceeding with completion.
57
+ ```
58
+
59
+ 1. **Verify readiness:**
60
+
61
+ - Check all phases in milestone have completed plans (SUMMARY.md exists)
62
+ - Present milestone scope and stats
63
+ - Wait for confirmation
64
+
65
+ 2. **Gather stats:**
66
+
67
+ - Count phases, plans, tasks
68
+ - Calculate git range, file changes, LOC
69
+ - Extract timeline from git log
70
+ - Present summary, confirm
71
+
72
+ 3. **Extract accomplishments:**
73
+
74
+ - Read all phase SUMMARY.md files in milestone range
75
+ - Extract 4-6 key accomplishments
76
+ - Present for approval
77
+
78
+ 4. **Archive milestone:**
79
+
80
+ - Create `.planning/milestones/v{{version}}-ROADMAP.md`
81
+ - Extract full phase details from ROADMAP.md
82
+ - Fill milestone-archive.md template
83
+ - Update ROADMAP.md to one-line summary with link
84
+
85
+ 5. **Archive requirements:**
86
+
87
+ - Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
88
+ - Mark all v1 requirements as complete (checkboxes checked)
89
+ - Note requirement outcomes (validated, adjusted, dropped)
90
+ - Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
91
+
92
+ 6. **Update PROJECT.md:**
93
+
94
+ - Add "Current State" section with shipped version
95
+ - Add "Next Milestone Goals" section
96
+ - Archive previous content in `<details>` (if v1.1+)
97
+
98
+ 7. **Commit and tag:**
99
+
100
+ - Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
101
+ - Commit: `chore: archive v{{version}} milestone`
102
+ - Tag: `git tag -a v{{version}} -m "[milestone summary]"`
103
+ - Ask about pushing tag
104
+
105
+ 8. **Offer next steps:**
106
+ - `/mindforge-new-milestone` — start next milestone (questioning → research → requirements → roadmap)
107
+
108
+ </process>
109
+
110
+ <success_criteria>
111
+
112
+ - Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
113
+ - Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
114
+ - `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
115
+ - ROADMAP.md collapsed to one-line entry
116
+ - PROJECT.md updated with current state
117
+ - Git tag v{{version}} created
118
+ - Commit successful
119
+ - User knows next steps (including need for fresh requirements)
120
+ </success_criteria>
121
+
122
+ <critical_rules>
123
+
124
+ - **Load workflow first:** Read complete-milestone.md before executing
125
+ - **Verify completion:** All phases must have SUMMARY.md files
126
+ - **User confirmation:** Wait for approval at verification gates
127
+ - **Archive before deleting:** Always create archive files before updating/deleting originals
128
+ - **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
129
+ - **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
130
+ - **Fresh requirements:** Next milestone starts with `/mindforge-new-milestone` which includes requirements definition
131
+ </critical_rules>
@@ -0,0 +1,163 @@
1
+ ---
2
+ name: mindforge-debug
3
+ description: Systematic debugging with persistent state across context resets
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Debug issues using scientific method with subagent isolation.
9
+
10
+ **Orchestrator role:** Gather symptoms, spawn mindforge-debugger agent, handle checkpoints, spawn continuations.
11
+
12
+ **Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
13
+ </objective>
14
+
15
+ <context>
16
+ User's issue: $ARGUMENTS
17
+
18
+ Check for active sessions:
19
+ ```bash
20
+ ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
21
+ ```
22
+ </context>
23
+
24
+ <process>
25
+
26
+ ## 0. Initialize Context
27
+
28
+ ```bash
29
+ INIT=$(node ".agent/bin/mindforge-tools.cjs" state load)
30
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
31
+ ```
32
+
33
+ Extract `commit_docs` from init JSON. Resolve debugger model:
34
+ ```bash
35
+ debugger_model=$(node ".agent/bin/mindforge-tools.cjs" resolve-model mindforge-debugger --raw)
36
+ ```
37
+
38
+ ## 1. Check Active Sessions
39
+
40
+ If active sessions exist AND no $ARGUMENTS:
41
+ - List sessions with status, hypothesis, next action
42
+ - User picks number to resume OR describes new issue
43
+
44
+ If $ARGUMENTS provided OR user describes new issue:
45
+ - Continue to symptom gathering
46
+
47
+ ## 2. Gather Symptoms (if new issue)
48
+
49
+ Use AskUserQuestion for each:
50
+
51
+ 1. **Expected behavior** - What should happen?
52
+ 2. **Actual behavior** - What happens instead?
53
+ 3. **Error messages** - Any errors? (paste or describe)
54
+ 4. **Timeline** - When did this start? Ever worked?
55
+ 5. **Reproduction** - How do you trigger it?
56
+
57
+ After all gathered, confirm ready to investigate.
58
+
59
+ ## 3. Spawn mindforge-debugger Agent
60
+
61
+ Fill prompt and spawn:
62
+
63
+ ```markdown
64
+ <objective>
65
+ Investigate issue: {slug}
66
+
67
+ **Summary:** {trigger}
68
+ </objective>
69
+
70
+ <symptoms>
71
+ expected: {expected}
72
+ actual: {actual}
73
+ errors: {errors}
74
+ reproduction: {reproduction}
75
+ timeline: {timeline}
76
+ </symptoms>
77
+
78
+ <mode>
79
+ symptoms_prefilled: true
80
+ goal: find_and_fix
81
+ </mode>
82
+
83
+ <debug_file>
84
+ Create: .planning/debug/{slug}.md
85
+ </debug_file>
86
+ ```
87
+
88
+ ```
89
+ Task(
90
+ prompt=filled_prompt,
91
+ subagent_type="mindforge-debugger",
92
+ model="{debugger_model}",
93
+ description="Debug {slug}"
94
+ )
95
+ ```
96
+
97
+ ## 4. Handle Agent Return
98
+
99
+ **If `## ROOT CAUSE FOUND`:**
100
+ - Display root cause and evidence summary
101
+ - Offer options:
102
+ - "Fix now" - spawn fix subagent
103
+ - "Plan fix" - suggest /mindforge-plan-phase --gaps
104
+ - "Manual fix" - done
105
+
106
+ **If `## CHECKPOINT REACHED`:**
107
+ - Present checkpoint details to user
108
+ - Get user response
109
+ - If checkpoint type is `human-verify`:
110
+ - If user confirms fixed: continue so agent can finalize/resolve/archive
111
+ - If user reports issues: continue so agent returns to investigation/fixing
112
+ - Spawn continuation agent (see step 5)
113
+
114
+ **If `## INVESTIGATION INCONCLUSIVE`:**
115
+ - Show what was checked and eliminated
116
+ - Offer options:
117
+ - "Continue investigating" - spawn new agent with additional context
118
+ - "Manual investigation" - done
119
+ - "Add more context" - gather more symptoms, spawn again
120
+
121
+ ## 5. Spawn Continuation Agent (After Checkpoint)
122
+
123
+ When user responds to checkpoint, spawn fresh agent:
124
+
125
+ ```markdown
126
+ <objective>
127
+ Continue debugging {slug}. Evidence is in the debug file.
128
+ </objective>
129
+
130
+ <prior_state>
131
+ <files_to_read>
132
+ - .planning/debug/{slug}.md (Debug session state)
133
+ </files_to_read>
134
+ </prior_state>
135
+
136
+ <checkpoint_response>
137
+ **Type:** {checkpoint_type}
138
+ **Response:** {user_response}
139
+ </checkpoint_response>
140
+
141
+ <mode>
142
+ goal: find_and_fix
143
+ </mode>
144
+ ```
145
+
146
+ ```
147
+ Task(
148
+ prompt=continuation_prompt,
149
+ subagent_type="mindforge-debugger",
150
+ model="{debugger_model}",
151
+ description="Continue debug {slug}"
152
+ )
153
+ ```
154
+
155
+ </process>
156
+
157
+ <success_criteria>
158
+ - [ ] Active sessions checked
159
+ - [ ] Symptoms gathered (if new)
160
+ - [ ] mindforge-debugger spawned with context
161
+ - [ ] Checkpoints handled correctly
162
+ - [ ] Root cause confirmed before fixing
163
+ </success_criteria>
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: mindforge-discuss-phase
3
+ description: Gather phase context through adaptive questioning before planning. Use --auto to skip interactive questions (the agent picks recommended defaults).
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
9
+
10
+ **How it works:**
11
+ 1. Load prior context (PROJECT.md, REQUIREMENTS.md, STATE.md, prior CONTEXT.md files)
12
+ 2. Scout codebase for reusable assets and patterns
13
+ 3. Analyze phase — skip gray areas already decided in prior phases
14
+ 4. Present remaining gray areas — user selects which to discuss
15
+ 5. Deep-dive each selected area until satisfied
16
+ 6. Create CONTEXT.md with decisions that guide research and planning
17
+
18
+ **Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @.agent/workflows/mindforge-discuss-phase.md
23
+ @.agent/workflows/mindforge-discuss-phase-assumptions.md
24
+ @.agent/templates/context.md
25
+ </execution_context>
26
+
27
+ <context>
28
+ Phase number: $ARGUMENTS (required)
29
+
30
+ Context files are resolved in-workflow using `init phase-op` and roadmap/state tool calls.
31
+ </context>
32
+
33
+ <process>
34
+ **Mode routing:**
35
+ ```bash
36
+ DISCUSS_MODE=$(node ".agent/bin/mindforge-tools.cjs" config-get workflow.discuss_mode 2>/dev/null || echo "discuss")
37
+ ```
38
+
39
+ If `DISCUSS_MODE` is `"assumptions"`: Read and execute @.agent/workflows/mindforge-discuss-phase-assumptions.md end-to-end.
40
+
41
+ If `DISCUSS_MODE` is `"discuss"` (or unset, or any other value): Read and execute @.agent/workflows/mindforge-discuss-phase.md end-to-end.
42
+
43
+ **MANDATORY:** The execution_context files listed above ARE the instructions. Read the workflow file BEFORE taking any action. The objective and success_criteria sections in this command file are summaries — the workflow file contains the complete step-by-step process with all required behaviors, config checks, and interaction patterns. Do not improvise from the summary.
44
+ </process>
45
+
46
+ <success_criteria>
47
+ - Prior context loaded and applied (no re-asking decided questions)
48
+ - Gray areas identified through intelligent analysis
49
+ - User chose which areas to discuss
50
+ - Each selected area explored until satisfied
51
+ - Scope creep redirected to deferred ideas
52
+ - CONTEXT.md captures decisions, not vague vision
53
+ - User knows next steps
54
+ </success_criteria>
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: mindforge-do
3
+ description: Route freeform text to the right MindForge command automatically
4
+ ---
5
+
6
+ <objective>
7
+ Analyze freeform natural language input and dispatch to the most appropriate MindForge command.
8
+
9
+ Acts as a smart dispatcher — never does the work itself. Matches intent to the best MindForge command using routing rules, confirms the match, then hands off.
10
+
11
+ Use when you know what you want but don't know which `/mindforge-*` command to run.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.agent/workflows/mindforge-do.md
16
+ @.agent/references/ui-brand.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ $ARGUMENTS
21
+ </context>
22
+
23
+ <process>
24
+ Execute the do workflow from @.agent/workflows/mindforge-do.md end-to-end.
25
+ Route user intent to the best MindForge command and invoke it.
26
+ </process>
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: mindforge-execute-phase
3
+ description: Execute all plans in a phase with wave-based parallelization
4
+ ---
5
+
6
+ <objective>
7
+ Execute all plans in a phase using wave-based parallel execution.
8
+
9
+ Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent loads the full execute-plan context and handles its own plan.
10
+
11
+ Optional wave filter:
12
+ - `--wave N` executes only Wave `N` for pacing, quota management, or staged rollout
13
+ - phase verification/completion still only happens when no incomplete plans remain after the selected wave finishes
14
+
15
+ Flag handling rule:
16
+ - The optional flags documented below are available behaviors, not implied active behaviors
17
+ - A flag is active only when its literal token appears in `$ARGUMENTS`
18
+ - If a documented flag is absent from `$ARGUMENTS`, treat it as inactive
19
+
20
+ Context budget: ~15% orchestrator, 100% fresh per subagent.
21
+ </objective>
22
+
23
+ <execution_context>
24
+ @.agent/workflows/mindforge-execute-phase.md
25
+ @.agent/references/ui-brand.md
26
+ </execution_context>
27
+
28
+ <context>
29
+ Phase: $ARGUMENTS
30
+
31
+ **Available optional flags (documentation only — not automatically active):**
32
+ - `--wave N` — Execute only Wave `N` in the phase. Use when you want to pace execution or stay inside usage limits.
33
+ - `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
34
+ - `--interactive` — Execute plans sequentially inline (no subagents) with user checkpoints between tasks. Lower token usage, pair-programming style. Best for small phases, bug fixes, and verification gaps.
35
+
36
+ **Active flags must be derived from `$ARGUMENTS`:**
37
+ - `--wave N` is active only if the literal `--wave` token is present in `$ARGUMENTS`
38
+ - `--gaps-only` is active only if the literal `--gaps-only` token is present in `$ARGUMENTS`
39
+ - `--interactive` is active only if the literal `--interactive` token is present in `$ARGUMENTS`
40
+ - If none of these tokens appear, run the standard full-phase execution flow with no flag-specific filtering
41
+ - Do not infer that a flag is active just because it is documented in this prompt
42
+
43
+ Context files are resolved inside the workflow via `mindforge-tools init execute-phase` and per-subagent `<files_to_read>` blocks.
44
+ </context>
45
+
46
+ <process>
47
+ Execute the execute-phase workflow from @.agent/workflows/mindforge-execute-phase.md end-to-end.
48
+ Preserve all workflow gates (wave execution, checkpoint handling, verification, state updates, routing).
49
+ </process>
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: mindforge-fast
3
+ description: Execute a trivial task inline — no subagents, no planning overhead
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Execute a trivial task directly in the current context without spawning subagents
9
+ or generating PLAN.md files. For tasks too small to justify planning overhead:
10
+ typo fixes, config changes, small refactors, forgotten commits, simple additions.
11
+
12
+ This is NOT a replacement for /mindforge-quick — use /mindforge-quick for anything that
13
+ needs research, multi-step planning, or verification. /mindforge-fast is for tasks
14
+ you could describe in one sentence and execute in under 2 minutes.
15
+ </objective>
16
+
17
+ <execution_context>
18
+ @.agent/workflows/mindforge-fast.md
19
+ </execution_context>
20
+
21
+ <process>
22
+ Execute the fast workflow from @.agent/workflows/mindforge-fast.md end-to-end.
23
+ </process>
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: mindforge-forensics
3
+ description: Post-mortem investigation for failed MindForge workflows — analyzes git history, artifacts, and state to diagnose what went wrong
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Investigate what went wrong during a MindForge workflow execution. Analyzes git history, `.planning/` artifacts, and file system state to detect anomalies and generate a structured diagnostic report.
9
+
10
+ Purpose: Diagnose failed or stuck workflows so the user can understand root cause and take corrective action.
11
+ Output: Forensic report saved to `.planning/forensics/`, presented inline, with optional issue creation.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.agent/workflows/mindforge-forensics.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ **Data sources:**
20
+ - `git log` (recent commits, patterns, time gaps)
21
+ - `git status` / `git diff` (uncommitted work, conflicts)
22
+ - `.planning/STATE.md` (current position, session history)
23
+ - `.planning/ROADMAP.md` (phase scope and progress)
24
+ - `.planning/phases/*/` (PLAN.md, SUMMARY.md, VERIFICATION.md, CONTEXT.md)
25
+ - `.planning/reports/SESSION_REPORT.md` (last session outcomes)
26
+
27
+ **User input:**
28
+ - Problem description: $ARGUMENTS (optional — will ask if not provided)
29
+ </context>
30
+
31
+ <process>
32
+ Read and execute the forensics workflow from @.agent/workflows/mindforge-forensics.md end-to-end.
33
+ </process>
34
+
35
+ <success_criteria>
36
+ - Evidence gathered from all available data sources
37
+ - At least 4 anomaly types checked (stuck loop, missing artifacts, abandoned work, crash/interruption)
38
+ - Structured forensic report written to `.planning/forensics/report-{timestamp}.md`
39
+ - Report presented inline with findings, anomalies, and recommendations
40
+ - Interactive investigation offered for deeper analysis
41
+ - GitHub issue creation offered if actionable findings exist
42
+ </success_criteria>
43
+
44
+ <critical_rules>
45
+ - **Read-only investigation:** Do not modify project source files during forensics. Only write the forensic report and update STATE.md session tracking.
46
+ - **Redact sensitive data:** Strip absolute paths, API keys, tokens from reports and issues.
47
+ - **Ground findings in evidence:** Every anomaly must cite specific commits, files, or state data.
48
+ - **No speculation without evidence:** If data is insufficient, say so — do not fabricate root causes.
49
+ </critical_rules>
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: mindforge-health
3
+ description: Diagnose planning directory health and optionally repair issues
4
+ ---
5
+
6
+ <objective>
7
+ Validate `.planning/` directory integrity and report actionable issues. Checks for missing files, invalid configurations, inconsistent state, and orphaned plans.
8
+ </objective>
9
+
10
+ <execution_context>
11
+ @.agent/workflows/mindforge-health.md
12
+ </execution_context>
13
+
14
+ <process>
15
+ Execute the health workflow from @.agent/workflows/mindforge-health.md end-to-end.
16
+ Parse --repair flag from arguments and pass to workflow.
17
+ </process>
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: mindforge-help
3
+ description: Show available MindForge commands and usage guide
4
+ ---
5
+
6
+ <objective>
7
+ Display the complete MindForge command reference.
8
+
9
+ Output ONLY the reference content below. Do NOT add:
10
+ - Project-specific analysis
11
+ - Git status or file context
12
+ - Next-step suggestions
13
+ - Any commentary beyond the reference
14
+ </objective>
15
+
16
+ <execution_context>
17
+ @.agent/workflows/mindforge-help.md
18
+ </execution_context>
19
+
20
+ <process>
21
+ Output the complete MindForge command reference from @.agent/workflows/mindforge-help.md.
22
+ Display the reference content directly — no additions or modifications.
23
+ </process>
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: mindforge-insert-phase
3
+ description: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
9
+
10
+ Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
11
+
12
+ Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ @.agent/workflows/mindforge-insert-phase.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (format: <after-phase-number> <description>)
21
+
22
+ Roadmap and state are resolved in-workflow via `init phase-op` and targeted tool calls.
23
+ </context>
24
+
25
+ <process>
26
+ Execute the insert-phase workflow from @.agent/workflows/mindforge-insert-phase.md end-to-end.
27
+ Preserve all validation gates (argument parsing, phase verification, decimal calculation, roadmap updates).
28
+ </process>
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: mindforge-join-discord
3
+ description: Join the MindForge Discord community
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Display the Discord invite link for the MindForge community server.
9
+ </objective>
10
+
11
+ <output>
12
+ # Join the MindForge Discord
13
+
14
+ Connect with other MindForge users, get help, share what you're building, and stay updated.
15
+
16
+ **Invite link:** https://discord.gg/mindforge
17
+
18
+ Click the link or paste it into your browser to join.
19
+ </output>
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: mindforge-list-phase-assumptions
3
+ description: Surface the agent's assumptions about a phase approach before planning
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Analyze a phase and present the agent's assumptions about technical approach, implementation order, scope boundaries, risk areas, and dependencies.
9
+
10
+ Purpose: Help users see what the agent thinks BEFORE planning begins - enabling course correction early when assumptions are wrong.
11
+ Output: Conversational output only (no file creation) - ends with "What do you think?" prompt
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.agent/workflows/mindforge-list-phase-assumptions.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Phase number: $ARGUMENTS (required)
20
+
21
+ Project state and roadmap are loaded in-workflow using targeted reads.
22
+ </context>
23
+
24
+ <process>
25
+ 1. Validate phase number argument (error if missing or invalid)
26
+ 2. Check if phase exists in roadmap
27
+ 3. Follow list-phase-assumptions.md workflow:
28
+ - Analyze roadmap description
29
+ - Surface assumptions about: technical approach, implementation order, scope, risks, dependencies
30
+ - Present assumptions clearly
31
+ - Prompt "What do you think?"
32
+ 4. Gather feedback and offer next steps
33
+ </process>
34
+
35
+ <success_criteria>
36
+
37
+ - Phase validated against roadmap
38
+ - Assumptions surfaced across five areas
39
+ - User prompted for feedback
40
+ - User knows next steps (discuss context, plan phase, or correct assumptions)
41
+ </success_criteria>
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: mindforge-list-workspaces
3
+ description: List active MindForge workspaces and their status
4
+ ---
5
+
6
+ <objective>
7
+ Scan `~/mindforge-workspaces/` for workspace directories containing `WORKSPACE.md` manifests. Display a summary table with name, path, repo count, strategy, and MindForge project status.
8
+ </objective>
9
+
10
+ <execution_context>
11
+ @.agent/workflows/mindforge-list-workspaces.md
12
+ @.agent/references/ui-brand.md
13
+ </execution_context>
14
+
15
+ <process>
16
+ Execute the list-workspaces workflow from @.agent/workflows/mindforge-list-workspaces.md end-to-end.
17
+ </process>
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: mindforge-manager
3
+ description: Interactive command center for managing multiple phases from one terminal
4
+ ---
5
+
6
+ <objective>
7
+ Single-terminal command center for managing a milestone. Shows a dashboard of all phases with visual status indicators, recommends optimal next actions, and dispatches work — discuss runs inline, plan/execute run as background agents.
8
+
9
+ Designed for power users who want to parallelize work across phases from one terminal: discuss a phase while another plans or executes in the background.
10
+
11
+ **Creates/Updates:**
12
+ - No files created directly — dispatches to existing MindForge commands via Skill() and background Task agents.
13
+ - Reads `.planning/STATE.md`, `.planning/ROADMAP.md`, phase directories for status.
14
+
15
+ **After:** User exits when done managing, or all phases complete and milestone lifecycle is suggested.
16
+ </objective>
17
+
18
+ <execution_context>
19
+ @.agent/workflows/mindforge-manager.md
20
+ @.agent/references/ui-brand.md
21
+ </execution_context>
22
+
23
+ <context>
24
+ No arguments required. Requires an active milestone with ROADMAP.md and STATE.md.
25
+
26
+ Project context, phase list, dependencies, and recommendations are resolved inside the workflow using `mindforge-tools.cjs init manager`. No upfront context loading needed.
27
+ </context>
28
+
29
+ <process>
30
+ Execute the manager workflow from @.agent/workflows/mindforge-manager.md end-to-end.
31
+ Maintain the dashboard refresh loop until the user exits or all phases complete.
32
+ </process>