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,64 @@
1
+ ---
2
+ name: mindforge-map-codebase
3
+ description: Analyze codebase with parallel mapper agents to produce .planning/codebase/ documents
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Analyze existing codebase using parallel mindforge-codebase-mapper agents to produce structured codebase documents.
9
+
10
+ Each mapper agent explores a focus area and **writes documents directly** to `.planning/codebase/`. The orchestrator only receives confirmations, keeping context usage minimal.
11
+
12
+ Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ @.agent/workflows/mindforge-map-codebase.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Focus area: $ARGUMENTS (optional - if provided, tells agents to focus on specific subsystem)
21
+
22
+ **Load project state if exists:**
23
+ Check for .planning/STATE.md - loads context if project already initialized
24
+
25
+ **This command can run:**
26
+ - Before /mindforge-new-project (brownfield codebases) - creates codebase map first
27
+ - After /mindforge-new-project (greenfield codebases) - updates codebase map as code evolves
28
+ - Anytime to refresh codebase understanding
29
+ </context>
30
+
31
+ <when_to_use>
32
+ **Use map-codebase for:**
33
+ - Brownfield projects before initialization (understand existing code first)
34
+ - Refreshing codebase map after significant changes
35
+ - Onboarding to an unfamiliar codebase
36
+ - Before major refactoring (understand current state)
37
+ - When STATE.md references outdated codebase info
38
+
39
+ **Skip map-codebase for:**
40
+ - Greenfield projects with no code yet (nothing to map)
41
+ - Trivial codebases (<5 files)
42
+ </when_to_use>
43
+
44
+ <process>
45
+ 1. Check if .planning/codebase/ already exists (offer to refresh or skip)
46
+ 2. Create .planning/codebase/ directory structure
47
+ 3. Spawn 4 parallel mindforge-codebase-mapper agents:
48
+ - Agent 1: tech focus → writes STACK.md, INTEGRATIONS.md
49
+ - Agent 2: arch focus → writes ARCHITECTURE.md, STRUCTURE.md
50
+ - Agent 3: quality focus → writes CONVENTIONS.md, TESTING.md
51
+ - Agent 4: concerns focus → writes CONCERNS.md
52
+ 4. Wait for agents to complete, collect confirmations (NOT document contents)
53
+ 5. Verify all 7 documents exist with line counts
54
+ 6. Commit codebase map
55
+ 7. Offer next steps (typically: /mindforge-new-project or /mindforge-plan-phase)
56
+ </process>
57
+
58
+ <success_criteria>
59
+ - [ ] .planning/codebase/ directory created
60
+ - [ ] All 7 codebase documents written by mapper agents
61
+ - [ ] Documents follow template structure
62
+ - [ ] Parallel agents completed without errors
63
+ - [ ] User knows next steps
64
+ </success_criteria>
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: mindforge-milestone-summary
3
+ description: Generate a comprehensive project summary from milestone artifacts for team onboarding and review
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Generate a structured milestone summary for team onboarding and project review. Reads completed milestone artifacts (ROADMAP, REQUIREMENTS, CONTEXT, SUMMARY, VERIFICATION files) and produces a human-friendly overview of what was built, how, and why.
9
+
10
+ Purpose: Enable new team members to understand a completed project by reading one document and asking follow-up questions.
11
+ Output: MILESTONE_SUMMARY written to `.planning/reports/`, presented inline, optional interactive Q&A.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.agent/workflows/mindforge-milestone-summary.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ **Project files:**
20
+ - `.planning/ROADMAP.md`
21
+ - `.planning/PROJECT.md`
22
+ - `.planning/STATE.md`
23
+ - `.planning/RETROSPECTIVE.md`
24
+ - `.planning/milestones/v{version}-ROADMAP.md` (if archived)
25
+ - `.planning/milestones/v{version}-REQUIREMENTS.md` (if archived)
26
+ - `.planning/phases/*-*/` (SUMMARY.md, VERIFICATION.md, CONTEXT.md, RESEARCH.md)
27
+
28
+ **User input:**
29
+ - Version: $ARGUMENTS (optional — defaults to current/latest milestone)
30
+ </context>
31
+
32
+ <process>
33
+ Read and execute the milestone-summary workflow from @.agent/workflows/mindforge-milestone-summary.md end-to-end.
34
+ </process>
35
+
36
+ <success_criteria>
37
+ - Milestone version resolved (from args, STATE.md, or archive scan)
38
+ - All available artifacts read (ROADMAP, REQUIREMENTS, CONTEXT, SUMMARY, VERIFICATION, RESEARCH, RETROSPECTIVE)
39
+ - Summary document written to `.planning/reports/MILESTONE_SUMMARY-v{version}.md`
40
+ - All 7 sections generated (Overview, Architecture, Phases, Decisions, Requirements, Tech Debt, Getting Started)
41
+ - Summary presented inline to user
42
+ - Interactive Q&A offered
43
+ - STATE.md updated
44
+ </success_criteria>
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: mindforge-new-milestone
3
+ description: Start a new milestone cycle — update PROJECT.md and route to requirements
4
+ ---
5
+
6
+ <objective>
7
+ Start a new milestone: questioning → research (optional) → requirements → roadmap.
8
+
9
+ Brownfield equivalent of new-project. Project exists, PROJECT.md has history. Gathers "what's next", updates PROJECT.md, then runs requirements → roadmap cycle.
10
+
11
+ **Creates/Updates:**
12
+ - `.planning/PROJECT.md` — updated with new milestone goals
13
+ - `.planning/research/` — domain research (optional, NEW features only)
14
+ - `.planning/REQUIREMENTS.md` — scoped requirements for this milestone
15
+ - `.planning/ROADMAP.md` — phase structure (continues numbering)
16
+ - `.planning/STATE.md` — reset for new milestone
17
+
18
+ **After:** `/mindforge-plan-phase [N]` to start execution.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @.agent/workflows/mindforge-new-milestone.md
23
+ @.agent/references/questioning.md
24
+ @.agent/references/ui-brand.md
25
+ @.agent/templates/project.md
26
+ @.agent/templates/requirements.md
27
+ </execution_context>
28
+
29
+ <context>
30
+ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
31
+
32
+ Project and milestone context files are resolved inside the workflow (`init new-milestone`) and delegated via `<files_to_read>` blocks where subagents are used.
33
+ </context>
34
+
35
+ <process>
36
+ Execute the new-milestone workflow from @.agent/workflows/mindforge-new-milestone.md end-to-end.
37
+ Preserve all workflow gates (validation, questioning, research, requirements, roadmap approval, commits).
38
+ </process>
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: mindforge-new-project
3
+ description: Initialize a new project with deep context gathering and PROJECT.md
4
+ ---
5
+
6
+ <context>
7
+ **Flags:**
8
+ - `--auto` — Automatic mode. After config questions, runs research → requirements → roadmap without further interaction. Expects idea document via @ reference.
9
+ </context>
10
+
11
+ <objective>
12
+ Initialize a new project through unified flow: questioning → research (optional) → requirements → roadmap.
13
+
14
+ **Creates:**
15
+ - `.planning/PROJECT.md` — project context
16
+ - `.planning/config.json` — workflow preferences
17
+ - `.planning/research/` — domain research (optional)
18
+ - `.planning/REQUIREMENTS.md` — scoped requirements
19
+ - `.planning/ROADMAP.md` — phase structure
20
+ - `.planning/STATE.md` — project memory
21
+
22
+ **After this command:** Run `/mindforge-plan-phase 1` to start execution.
23
+ </objective>
24
+
25
+ <execution_context>
26
+ @.agent/workflows/mindforge-new-project.md
27
+ @.agent/references/questioning.md
28
+ @.agent/references/ui-brand.md
29
+ @.agent/templates/project.md
30
+ @.agent/templates/requirements.md
31
+ </execution_context>
32
+
33
+ <process>
34
+ Execute the new-project workflow from @.agent/workflows/mindforge-new-project.md end-to-end.
35
+ Preserve all workflow gates (validation, approvals, commits, routing).
36
+ </process>
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: mindforge-new-workspace
3
+ description: Create an isolated workspace with repo copies and independent .planning/
4
+ ---
5
+
6
+ <context>
7
+ **Flags:**
8
+ - `--name` (required) — Workspace name
9
+ - `--repos` — Comma-separated repo paths or names. If omitted, interactive selection from child git repos in cwd
10
+ - `--path` — Target directory. Defaults to `~/mindforge-workspaces/<name>`
11
+ - `--strategy` — `worktree` (default, lightweight) or `clone` (fully independent)
12
+ - `--branch` — Branch to checkout. Defaults to `workspace/<name>`
13
+ - `--auto` — Skip interactive questions, use defaults
14
+ </context>
15
+
16
+ <objective>
17
+ Create a physical workspace directory containing copies of specified git repos (as worktrees or clones) with an independent `.planning/` directory for isolated MindForge sessions.
18
+
19
+ **Use cases:**
20
+ - Multi-repo orchestration: work on a subset of repos in parallel with isolated MindForge state
21
+ - Feature branch isolation: create a worktree of the current repo with its own `.planning/`
22
+
23
+ **Creates:**
24
+ - `<path>/WORKSPACE.md` — workspace manifest
25
+ - `<path>/.planning/` — independent planning directory
26
+ - `<path>/<repo>/` — git worktree or clone for each specified repo
27
+
28
+ **After this command:** `cd` into the workspace and run `/mindforge-new-project` to initialize MindForge.
29
+ </objective>
30
+
31
+ <execution_context>
32
+ @.agent/workflows/mindforge-new-workspace.md
33
+ @.agent/references/ui-brand.md
34
+ </execution_context>
35
+
36
+ <process>
37
+ Execute the new-workspace workflow from @.agent/workflows/mindforge-new-workspace.md end-to-end.
38
+ Preserve all workflow gates (validation, approvals, commits, routing).
39
+ </process>
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: mindforge-next
3
+ description: Automatically advance to the next logical step in the MindForge workflow
4
+ ---
5
+
6
+ <objective>
7
+ Detect the current project state and automatically invoke the next logical MindForge workflow step.
8
+ No arguments needed — reads STATE.md, ROADMAP.md, and phase directories to determine what comes next.
9
+
10
+ Designed for rapid multi-project workflows where remembering which phase/step you're on is overhead.
11
+ </objective>
12
+
13
+ <execution_context>
14
+ @.agent/workflows/mindforge-next.md
15
+ </execution_context>
16
+
17
+ <process>
18
+ Execute the next workflow from @.agent/workflows/mindforge-next.md end-to-end.
19
+ </process>
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: mindforge-note
3
+ description: Zero-friction idea capture. Append, list, or promote notes to todos.
4
+ ---
5
+
6
+ <objective>
7
+ Zero-friction idea capture — one Write call, one confirmation line.
8
+
9
+ Three subcommands:
10
+ - **append** (default): Save a timestamped note file. No questions, no formatting.
11
+ - **list**: Show all notes from project and global scopes.
12
+ - **promote**: Convert a note into a structured todo.
13
+
14
+ Runs inline — no Task, no AskUserQuestion, no Bash.
15
+ </objective>
16
+
17
+ <execution_context>
18
+ @.agent/workflows/mindforge-note.md
19
+ @.agent/references/ui-brand.md
20
+ </execution_context>
21
+
22
+ <context>
23
+ $ARGUMENTS
24
+ </context>
25
+
26
+ <process>
27
+ Execute the note workflow from @.agent/workflows/mindforge-note.md end-to-end.
28
+ Capture the note, list notes, or promote to todo — depending on arguments.
29
+ </process>
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: mindforge-pause-work
3
+ description: Create context handoff when pausing work mid-phase
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Create `.continue-here.md` handoff file to preserve complete work state across sessions.
9
+
10
+ Routes to the pause-work workflow which handles:
11
+ - Current phase detection from recent files
12
+ - Complete state gathering (position, completed work, remaining work, decisions, blockers)
13
+ - Handoff file creation with all context sections
14
+ - Git commit as WIP
15
+ - Resume instructions
16
+ </objective>
17
+
18
+ <execution_context>
19
+ @.agent/workflows/mindforge-pause-work.md
20
+ </execution_context>
21
+
22
+ <context>
23
+ State and phase progress are gathered in-workflow with targeted reads.
24
+ </context>
25
+
26
+ <process>
27
+ **Follow the pause-work workflow** from `@.agent/workflows/mindforge-pause-work.md`.
28
+
29
+ The workflow handles all logic including:
30
+ 1. Phase directory detection
31
+ 2. State gathering with user clarifications
32
+ 3. Handoff file writing with timestamp
33
+ 4. Git commit
34
+ 5. Confirmation with resume instructions
35
+ </process>
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: mindforge-plan-milestone-gaps
3
+ description: Create phases to close all gaps identified by milestone audit
4
+ ---
5
+
6
+ <objective>
7
+ Create all phases necessary to close gaps identified by `/mindforge-audit-milestone`.
8
+
9
+ Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
10
+
11
+ One command creates all fix phases — no manual `/mindforge-add-phase` per gap.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.agent/workflows/mindforge-plan-milestone-gaps.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ **Audit results:**
20
+ Glob: .planning/v*-MILESTONE-AUDIT.md (use most recent)
21
+
22
+ Original intent and current planning state are loaded on demand inside the workflow.
23
+ </context>
24
+
25
+ <process>
26
+ Execute the plan-milestone-gaps workflow from @.agent/workflows/mindforge-plan-milestone-gaps.md end-to-end.
27
+ Preserve all workflow gates (audit loading, prioritization, phase grouping, user confirmation, roadmap updates).
28
+ </process>
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: mindforge-plan-phase
3
+ description: Create detailed phase plan (PLAN.md) with verification loop
4
+ ---
5
+
6
+ <objective>
7
+ Create executable phase prompts (PLAN.md files) for a roadmap phase with integrated research and verification.
8
+
9
+ **Default flow:** Research (if needed) → Plan → Verify → Done
10
+
11
+ **Orchestrator role:** Parse arguments, validate phase, research domain (unless skipped), spawn mindforge-planner, verify with mindforge-plan-checker, iterate until pass or max iterations, present results.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.agent/workflows/mindforge-plan-phase.md
16
+ @.agent/references/ui-brand.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
21
+
22
+ **Flags:**
23
+ - `--research` — Force re-research even if RESEARCH.md exists
24
+ - `--skip-research` — Skip research, go straight to planning
25
+ - `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
26
+ - `--skip-verify` — Skip verification loop
27
+ - `--prd <file>` — Use a PRD/acceptance criteria file instead of discuss-phase. Parses requirements into CONTEXT.md automatically. Skips discuss-phase entirely.
28
+ - `--reviews` — Replan incorporating cross-AI review feedback from REVIEWS.md (produced by `/mindforge-review`)
29
+ - `--text` — Use plain-text numbered lists instead of TUI menus (required for `/rc` remote sessions)
30
+
31
+ Normalize phase input in step 2 before any directory lookups.
32
+ </context>
33
+
34
+ <process>
35
+ Execute the plan-phase workflow from @.agent/workflows/mindforge-plan-phase.md end-to-end.
36
+ Preserve all workflow gates (validation, research, planning, verification loop, routing).
37
+ </process>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: mindforge-plant-seed
3
+ description: Capture a forward-looking idea with trigger conditions — surfaces automatically at the right milestone
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Capture an idea that's too big for now but should surface automatically when the right
9
+ milestone arrives. Seeds solve context rot: instead of a one-liner in Deferred that nobody
10
+ reads, a seed preserves the full WHY, WHEN to surface, and breadcrumbs to details.
11
+
12
+ Creates: .planning/seeds/SEED-NNN-slug.md
13
+ Consumed by: /mindforge-new-milestone (scans seeds and presents matches)
14
+ </objective>
15
+
16
+ <execution_context>
17
+ @.agent/workflows/mindforge-plant-seed.md
18
+ </execution_context>
19
+
20
+ <process>
21
+ Execute the plant-seed workflow from @.agent/workflows/mindforge-plant-seed.md end-to-end.
22
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: mindforge-pr-branch
3
+ description: Create a clean PR branch by filtering out .planning/ commits — ready for code review
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Create a clean branch suitable for pull requests by filtering out .planning/ commits
9
+ from the current branch. Reviewers see only code changes, not MindForge planning artifacts.
10
+
11
+ This solves the problem of PR diffs being cluttered with PLAN.md, SUMMARY.md, STATE.md
12
+ changes that are irrelevant to code review.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ @.agent/workflows/mindforge-pr-branch.md
17
+ </execution_context>
18
+
19
+ <process>
20
+ Execute the pr-branch workflow from @.agent/workflows/mindforge-pr-branch.md end-to-end.
21
+ </process>
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: mindforge-profile-user
3
+ description: Generate developer behavioral profile and create Claude-discoverable artifacts
4
+ ---
5
+
6
+
7
+ <objective>
8
+ Generate a developer behavioral profile from session analysis (or questionnaire) and produce artifacts (USER-PROFILE.md, /mindforge-dev-preferences, GEMINI.md section) that personalize the agent's responses.
9
+
10
+ Routes to the profile-user workflow which orchestrates the full flow: consent gate, session analysis or questionnaire fallback, profile generation, result display, and artifact selection.
11
+ </objective>
12
+
13
+ <execution_context>
14
+ @.agent/workflows/mindforge-profile-user.md
15
+ @.agent/references/ui-brand.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Flags from $ARGUMENTS:
20
+ - `--questionnaire` -- Skip session analysis entirely, use questionnaire-only path
21
+ - `--refresh` -- Rebuild profile even when one exists, backup old profile, show dimension diff
22
+ </context>
23
+
24
+ <process>
25
+ Execute the profile-user workflow end-to-end.
26
+
27
+ The workflow handles all logic including:
28
+ 1. Initialization and existing profile detection
29
+ 2. Consent gate before session analysis
30
+ 3. Session scanning and data sufficiency checks
31
+ 4. Session analysis (profiler agent) or questionnaire fallback
32
+ 5. Cross-project split resolution
33
+ 6. Profile writing to USER-PROFILE.md
34
+ 7. Result display with report card and highlights
35
+ 8. Artifact selection (dev-preferences, GEMINI.md sections)
36
+ 9. Sequential artifact generation
37
+ 10. Summary with refresh diff (if applicable)
38
+ </process>
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: mindforge-progress
3
+ description: Check project progress, show context, and route to next action (execute or plan)
4
+ ---
5
+
6
+ <objective>
7
+ Check project progress, summarize recent work and what's ahead, then intelligently route to the next action - either executing an existing plan or creating the next one.
8
+
9
+ Provides situational awareness before continuing work.
10
+ </objective>
11
+
12
+ <execution_context>
13
+ @.agent/workflows/mindforge-progress.md
14
+ </execution_context>
15
+
16
+ <process>
17
+ Execute the progress workflow from @.agent/workflows/mindforge-progress.md end-to-end.
18
+ Preserve all routing logic (Routes A through F) and edge case handling.
19
+ </process>
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: mindforge-quick
3
+ description: Execute a quick task with MindForge guarantees (atomic commits, state tracking) but skip optional agents
4
+ ---
5
+
6
+ <objective>
7
+ Execute small, ad-hoc tasks with MindForge guarantees (atomic commits, STATE.md tracking).
8
+
9
+ Quick mode is the same system with a shorter path:
10
+ - Spawns mindforge-planner (quick mode) + mindforge-executor(s)
11
+ - Quick tasks live in `.planning/quick/` separate from planned phases
12
+ - Updates STATE.md "Quick Tasks Completed" table (NOT ROADMAP.md)
13
+
14
+ **Default:** Skips research, discussion, plan-checker, verifier. Use when you know exactly what to do.
15
+
16
+ **`--discuss` flag:** Lightweight discussion phase before planning. Surfaces assumptions, clarifies gray areas, captures decisions in CONTEXT.md. Use when the task has ambiguity worth resolving upfront.
17
+
18
+ **`--full` flag:** Enables plan-checking (max 2 iterations) and post-execution verification. Use when you want quality guarantees without full milestone ceremony.
19
+
20
+ **`--research` flag:** Spawns a focused research agent before planning. Investigates implementation approaches, library options, and pitfalls for the task. Use when you're unsure of the best approach.
21
+
22
+ Flags are composable: `--discuss --research --full` gives discussion + research + plan-checking + verification.
23
+ </objective>
24
+
25
+ <execution_context>
26
+ @.agent/workflows/mindforge-quick.md
27
+ </execution_context>
28
+
29
+ <context>
30
+ $ARGUMENTS
31
+
32
+ Context files are resolved inside the workflow (`init quick`) and delegated via `<files_to_read>` blocks.
33
+ </context>
34
+
35
+ <process>
36
+ Execute the quick workflow from @.agent/workflows/mindforge-quick.md end-to-end.
37
+ Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
38
+ </process>
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: mindforge-reapply-patches
3
+ description: Reapply local modifications after a MindForge update
4
+ ---
5
+
6
+
7
+ <purpose>
8
+ After a MindForge update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.
9
+ </purpose>
10
+
11
+ <process>
12
+
13
+ ## Step 1: Detect backed-up patches
14
+
15
+ Check for local patches directory:
16
+
17
+ ```bash
18
+ # Global install — detect runtime config directory
19
+ if [ -d "$HOME/.config/opencode/mindforge-local-patches" ]; then
20
+ PATCHES_DIR="$HOME/.config/opencode/mindforge-local-patches"
21
+ elif [ -d "$HOME/.opencode/mindforge-local-patches" ]; then
22
+ PATCHES_DIR="$HOME/.opencode/mindforge-local-patches"
23
+ elif [ -d "$HOME/.gemini/mindforge-local-patches" ]; then
24
+ PATCHES_DIR="$HOME/.gemini/mindforge-local-patches"
25
+ else
26
+ PATCHES_DIR=".agent/mindforge-local-patches"
27
+ fi
28
+ # Local install fallback — check all runtime directories
29
+ if [ ! -d "$PATCHES_DIR" ]; then
30
+ for dir in .config/opencode .opencode .gemini .claude; do
31
+ if [ -d "./$dir/mindforge-local-patches" ]; then
32
+ PATCHES_DIR="./$dir/mindforge-local-patches"
33
+ break
34
+ fi
35
+ done
36
+ fi
37
+ ```
38
+
39
+ Read `backup-meta.json` from the patches directory.
40
+
41
+ **If no patches found:**
42
+ ```
43
+ No local patches found. Nothing to reapply.
44
+
45
+ Local patches are automatically saved when you run /mindforge-update
46
+ after modifying any MindForge workflow, command, or agent files.
47
+ ```
48
+ Exit.
49
+
50
+ ## Step 2: Show patch summary
51
+
52
+ ```
53
+ ## Local Patches to Reapply
54
+
55
+ **Backed up from:** v{from_version}
56
+ **Current version:** {read VERSION file}
57
+ **Files modified:** {count}
58
+
59
+ | # | File | Status |
60
+ |---|------|--------|
61
+ | 1 | {file_path} | Pending |
62
+ | 2 | {file_path} | Pending |
63
+ ```
64
+
65
+ ## Step 3: Merge each file
66
+
67
+ For each file in `backup-meta.json`:
68
+
69
+ 1. **Read the backed-up version** (user's modified copy from `mindforge-local-patches/`)
70
+ 2. **Read the newly installed version** (current file after update)
71
+ 3. **Compare and merge:**
72
+
73
+ - If the new file is identical to the backed-up file: skip (modification was incorporated upstream)
74
+ - If the new file differs: identify the user's modifications and apply them to the new version
75
+
76
+ **Merge strategy:**
77
+ - Read both versions fully
78
+ - Identify sections the user added or modified (look for additions, not just differences from path replacement)
79
+ - Apply user's additions/modifications to the new version
80
+ - If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep
81
+
82
+ 4. **Write merged result** to the installed location
83
+ 5. **Report status:**
84
+ - `Merged` — user modifications applied cleanly
85
+ - `Skipped` — modification already in upstream
86
+ - `Conflict` — user chose resolution
87
+
88
+ ## Step 4: Update manifest
89
+
90
+ After reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:
91
+
92
+ ```bash
93
+ # The manifest will be regenerated on next /mindforge-update
94
+ # For now, just note which files were modified
95
+ ```
96
+
97
+ ## Step 5: Cleanup option
98
+
99
+ Ask user:
100
+ - "Keep patch backups for reference?" → preserve `mindforge-local-patches/`
101
+ - "Clean up patch backups?" → remove `mindforge-local-patches/` directory
102
+
103
+ ## Step 6: Report
104
+
105
+ ```
106
+ ## Patches Reapplied
107
+
108
+ | # | File | Status |
109
+ |---|------|--------|
110
+ | 1 | {file_path} | ✓ Merged |
111
+ | 2 | {file_path} | ○ Skipped (already upstream) |
112
+ | 3 | {file_path} | ⚠ Conflict resolved |
113
+
114
+ {count} file(s) updated. Your local modifications are active again.
115
+ ```
116
+
117
+ </process>
118
+
119
+ <success_criteria>
120
+ - [ ] All backed-up patches processed
121
+ - [ ] User modifications merged into new version
122
+ - [ ] Conflicts resolved with user input
123
+ - [ ] Status reported for each file
124
+ </success_criteria>
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: mindforge-remove-phase
3
+ description: Remove a future phase from roadmap and renumber subsequent phases
4
+ ---
5
+
6
+ <objective>
7
+ Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
8
+
9
+ Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
10
+ Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
11
+ </objective>
12
+
13
+ <execution_context>
14
+ @.agent/workflows/mindforge-remove-phase.md
15
+ </execution_context>
16
+
17
+ <context>
18
+ Phase: $ARGUMENTS
19
+
20
+ Roadmap and state are resolved in-workflow via `init phase-op` and targeted reads.
21
+ </context>
22
+
23
+ <process>
24
+ Execute the remove-phase workflow from @.agent/workflows/mindforge-remove-phase.md end-to-end.
25
+ Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
26
+ </process>