mindforge-cc 2.0.0 → 2.1.1

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 (323) 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/add-backlog.md +32 -0
  26. package/.agent/mindforge/agent.md +31 -0
  27. package/.agent/mindforge/discuss-phase.md +1 -1
  28. package/.agent/mindforge/do.md +31 -0
  29. package/.agent/mindforge/help.md +1 -1
  30. package/.agent/mindforge/learn.md +3 -2
  31. package/.agent/mindforge/note.md +35 -0
  32. package/.agent/mindforge/plant-seed.md +31 -0
  33. package/.agent/mindforge/research.md +3 -2
  34. package/.agent/mindforge/review-backlog.md +34 -0
  35. package/.agent/mindforge/session-report.md +39 -0
  36. package/.agent/mindforge/steer.md +1 -1
  37. package/.agent/mindforge/ui-phase.md +34 -0
  38. package/.agent/mindforge/ui-review.md +36 -0
  39. package/.agent/mindforge/validate-phase.md +31 -0
  40. package/.agent/mindforge/workstreams.md +35 -0
  41. package/.agent/settings.json +38 -0
  42. package/.agent/skills/mindforge-add-backlog/SKILL.md +72 -0
  43. package/.agent/skills/mindforge-add-phase/SKILL.md +39 -0
  44. package/.agent/skills/mindforge-add-tests/SKILL.md +28 -0
  45. package/.agent/skills/mindforge-add-todo/SKILL.md +42 -0
  46. package/.agent/skills/mindforge-audit-milestone/SKILL.md +29 -0
  47. package/.agent/skills/mindforge-audit-uat/SKILL.md +20 -0
  48. package/.agent/skills/mindforge-autonomous/SKILL.md +33 -0
  49. package/.agent/skills/mindforge-check-todos/SKILL.md +40 -0
  50. package/.agent/skills/mindforge-cleanup/SKILL.md +19 -0
  51. package/.agent/skills/mindforge-complete-milestone/SKILL.md +131 -0
  52. package/.agent/skills/mindforge-debug/SKILL.md +163 -0
  53. package/.agent/skills/mindforge-discuss-phase/SKILL.md +54 -0
  54. package/.agent/skills/mindforge-do/SKILL.md +26 -0
  55. package/.agent/skills/mindforge-execute-phase/SKILL.md +49 -0
  56. package/.agent/skills/mindforge-fast/SKILL.md +23 -0
  57. package/.agent/skills/mindforge-forensics/SKILL.md +49 -0
  58. package/.agent/skills/mindforge-health/SKILL.md +17 -0
  59. package/.agent/skills/mindforge-help/SKILL.md +23 -0
  60. package/.agent/skills/mindforge-insert-phase/SKILL.md +28 -0
  61. package/.agent/skills/mindforge-join-discord/SKILL.md +19 -0
  62. package/.agent/skills/mindforge-list-phase-assumptions/SKILL.md +41 -0
  63. package/.agent/skills/mindforge-list-workspaces/SKILL.md +17 -0
  64. package/.agent/skills/mindforge-manager/SKILL.md +32 -0
  65. package/.agent/skills/mindforge-map-codebase/SKILL.md +64 -0
  66. package/.agent/skills/mindforge-milestone-summary/SKILL.md +44 -0
  67. package/.agent/skills/mindforge-new-milestone/SKILL.md +38 -0
  68. package/.agent/skills/mindforge-new-project/SKILL.md +36 -0
  69. package/.agent/skills/mindforge-new-workspace/SKILL.md +39 -0
  70. package/.agent/skills/mindforge-next/SKILL.md +19 -0
  71. package/.agent/skills/mindforge-note/SKILL.md +29 -0
  72. package/.agent/skills/mindforge-pause-work/SKILL.md +35 -0
  73. package/.agent/skills/mindforge-plan-milestone-gaps/SKILL.md +28 -0
  74. package/.agent/skills/mindforge-plan-phase/SKILL.md +37 -0
  75. package/.agent/skills/mindforge-plant-seed/SKILL.md +22 -0
  76. package/.agent/skills/mindforge-pr-branch/SKILL.md +21 -0
  77. package/.agent/skills/mindforge-profile-user/SKILL.md +38 -0
  78. package/.agent/skills/mindforge-progress/SKILL.md +19 -0
  79. package/.agent/skills/mindforge-quick/SKILL.md +38 -0
  80. package/.agent/skills/mindforge-reapply-patches/SKILL.md +124 -0
  81. package/.agent/skills/mindforge-remove-phase/SKILL.md +26 -0
  82. package/.agent/skills/mindforge-remove-workspace/SKILL.md +22 -0
  83. package/.agent/skills/mindforge-research-phase/SKILL.md +186 -0
  84. package/.agent/skills/mindforge-resume-work/SKILL.md +35 -0
  85. package/.agent/skills/mindforge-review/SKILL.md +31 -0
  86. package/.agent/skills/mindforge-review-backlog/SKILL.md +58 -0
  87. package/.agent/skills/mindforge-session-report/SKILL.md +16 -0
  88. package/.agent/skills/mindforge-set-profile/SKILL.md +9 -0
  89. package/.agent/skills/mindforge-settings/SKILL.md +32 -0
  90. package/.agent/skills/mindforge-ship/SKILL.md +16 -0
  91. package/.agent/skills/mindforge-stats/SKILL.md +16 -0
  92. package/.agent/skills/mindforge-thread/SKILL.md +123 -0
  93. package/.agent/skills/mindforge-ui-phase/SKILL.md +24 -0
  94. package/.agent/skills/mindforge-ui-review/SKILL.md +24 -0
  95. package/.agent/skills/mindforge-update/SKILL.md +35 -0
  96. package/.agent/skills/mindforge-validate-phase/SKILL.md +26 -0
  97. package/.agent/skills/mindforge-verify-work/SKILL.md +30 -0
  98. package/.agent/skills/mindforge-workstreams/SKILL.md +65 -0
  99. package/.agent/workflows/mindforge-add-phase.md +112 -0
  100. package/.agent/workflows/mindforge-add-tests.md +351 -0
  101. package/.agent/workflows/mindforge-add-todo.md +158 -0
  102. package/.agent/workflows/mindforge-audit-milestone.md +332 -0
  103. package/.agent/workflows/mindforge-audit-uat.md +109 -0
  104. package/.agent/workflows/mindforge-autonomous.md +815 -0
  105. package/.agent/workflows/mindforge-check-todos.md +177 -0
  106. package/.agent/workflows/mindforge-cleanup.md +152 -0
  107. package/.agent/workflows/mindforge-complete-milestone.md +766 -0
  108. package/.agent/workflows/mindforge-diagnose-issues.md +220 -0
  109. package/.agent/workflows/mindforge-discovery-phase.md +289 -0
  110. package/.agent/workflows/mindforge-discuss-phase-assumptions.md +645 -0
  111. package/.agent/workflows/mindforge-discuss-phase.md +1047 -0
  112. package/.agent/workflows/mindforge-do.md +104 -0
  113. package/.agent/workflows/mindforge-execute-phase.md +838 -0
  114. package/.agent/workflows/mindforge-execute-plan.md +509 -0
  115. package/.agent/workflows/mindforge-fast.md +105 -0
  116. package/.agent/workflows/mindforge-forensics.md +265 -0
  117. package/.agent/workflows/mindforge-health.md +181 -0
  118. package/.agent/workflows/mindforge-help.md +606 -0
  119. package/.agent/workflows/mindforge-insert-phase.md +130 -0
  120. package/.agent/workflows/mindforge-list-phase-assumptions.md +178 -0
  121. package/.agent/workflows/mindforge-list-workspaces.md +56 -0
  122. package/.agent/workflows/mindforge-manager.md +360 -0
  123. package/.agent/workflows/mindforge-map-codebase.md +370 -0
  124. package/.agent/workflows/mindforge-milestone-summary.md +223 -0
  125. package/.agent/workflows/mindforge-new-milestone.md +469 -0
  126. package/.agent/workflows/mindforge-new-project.md +1226 -0
  127. package/.agent/workflows/mindforge-new-workspace.md +237 -0
  128. package/.agent/workflows/mindforge-next.md +97 -0
  129. package/.agent/workflows/mindforge-node-repair.md +92 -0
  130. package/.agent/workflows/mindforge-note.md +156 -0
  131. package/.agent/workflows/mindforge-pause-work.md +176 -0
  132. package/.agent/workflows/mindforge-plan-milestone-gaps.md +273 -0
  133. package/.agent/workflows/mindforge-plan-phase.md +848 -0
  134. package/.agent/workflows/mindforge-plant-seed.md +169 -0
  135. package/.agent/workflows/mindforge-pr-branch.md +129 -0
  136. package/.agent/workflows/mindforge-profile-user.md +450 -0
  137. package/.agent/workflows/mindforge-progress.md +507 -0
  138. package/.agent/workflows/mindforge-quick.md +732 -0
  139. package/.agent/workflows/mindforge-remove-phase.md +155 -0
  140. package/.agent/workflows/mindforge-remove-workspace.md +90 -0
  141. package/.agent/workflows/mindforge-research-phase.md +74 -0
  142. package/.agent/workflows/mindforge-resume-project.md +325 -0
  143. package/.agent/workflows/mindforge-review.md +228 -0
  144. package/.agent/workflows/mindforge-session-report.md +146 -0
  145. package/.agent/workflows/mindforge-settings.md +283 -0
  146. package/.agent/workflows/mindforge-ship.md +228 -0
  147. package/.agent/workflows/mindforge-stats.md +60 -0
  148. package/.agent/workflows/mindforge-transition.md +671 -0
  149. package/.agent/workflows/mindforge-ui-phase.md +290 -0
  150. package/.agent/workflows/mindforge-ui-review.md +157 -0
  151. package/.agent/workflows/mindforge-update.md +323 -0
  152. package/.agent/workflows/mindforge-validate-phase.md +167 -0
  153. package/.agent/workflows/mindforge-verify-phase.md +254 -0
  154. package/.agent/workflows/mindforge-verify-work.md +623 -0
  155. package/.claude/commands/mindforge/add-backlog.md +32 -0
  156. package/.claude/commands/mindforge/agent.md +31 -0
  157. package/.claude/commands/mindforge/approve.md +27 -15
  158. package/.claude/commands/mindforge/audit.md +30 -26
  159. package/.claude/commands/mindforge/auto.md +29 -18
  160. package/.claude/commands/mindforge/benchmark.md +26 -29
  161. package/.claude/commands/mindforge/browse.md +24 -22
  162. package/.claude/commands/mindforge/complete-milestone.md +28 -14
  163. package/.claude/commands/mindforge/costs.md +26 -9
  164. package/.claude/commands/mindforge/cross-review.md +27 -13
  165. package/.claude/commands/mindforge/dashboard.md +35 -98
  166. package/.claude/commands/mindforge/debug.md +34 -126
  167. package/.claude/commands/mindforge/discuss-phase.md +36 -138
  168. package/.claude/commands/mindforge/do.md +31 -0
  169. package/.claude/commands/mindforge/execute-phase.md +37 -190
  170. package/.claude/commands/mindforge/health.md +27 -17
  171. package/.claude/commands/mindforge/help.md +25 -19
  172. package/.claude/commands/mindforge/init-org.md +37 -131
  173. package/.claude/commands/mindforge/init-project.md +40 -155
  174. package/.claude/commands/mindforge/install-skill.md +32 -15
  175. package/.claude/commands/mindforge/learn.md +36 -142
  176. package/.claude/commands/mindforge/map-codebase.md +36 -298
  177. package/.claude/commands/mindforge/marketplace.md +33 -120
  178. package/.claude/commands/mindforge/metrics.md +29 -18
  179. package/.claude/commands/mindforge/migrate.md +33 -40
  180. package/.claude/commands/mindforge/milestone.md +35 -12
  181. package/.claude/commands/mindforge/new-runtime.md +25 -15
  182. package/.claude/commands/mindforge/next.md +34 -105
  183. package/.claude/commands/mindforge/note.md +35 -0
  184. package/.claude/commands/mindforge/plan-phase.md +34 -125
  185. package/.claude/commands/mindforge/plant-seed.md +31 -0
  186. package/.claude/commands/mindforge/plugins.md +30 -36
  187. package/.claude/commands/mindforge/pr-review.md +32 -41
  188. package/.claude/commands/mindforge/profile-team.md +26 -19
  189. package/.claude/commands/mindforge/publish-skill.md +28 -17
  190. package/.claude/commands/mindforge/qa.md +27 -12
  191. package/.claude/commands/mindforge/quick.md +35 -135
  192. package/.claude/commands/mindforge/release.md +27 -8
  193. package/.claude/commands/mindforge/remember.md +25 -10
  194. package/.claude/commands/mindforge/research.md +27 -9
  195. package/.claude/commands/mindforge/retrospective.md +28 -22
  196. package/.claude/commands/mindforge/review-backlog.md +34 -0
  197. package/.claude/commands/mindforge/review.md +37 -157
  198. package/.claude/commands/mindforge/security-scan.md +34 -233
  199. package/.claude/commands/mindforge/session-report.md +39 -0
  200. package/.claude/commands/mindforge/ship.md +34 -100
  201. package/.claude/commands/mindforge/skills.md +36 -141
  202. package/.claude/commands/mindforge/status.md +30 -104
  203. package/.claude/commands/mindforge/steer.md +25 -10
  204. package/.claude/commands/mindforge/sync-confluence.md +28 -9
  205. package/.claude/commands/mindforge/sync-jira.md +32 -12
  206. package/.claude/commands/mindforge/tokens.md +25 -6
  207. package/.claude/commands/mindforge/ui-phase.md +34 -0
  208. package/.claude/commands/mindforge/ui-review.md +36 -0
  209. package/.claude/commands/mindforge/update.md +33 -42
  210. package/.claude/commands/mindforge/validate-phase.md +31 -0
  211. package/.claude/commands/mindforge/verify-phase.md +30 -62
  212. package/.claude/commands/mindforge/workspace.md +28 -25
  213. package/.claude/commands/mindforge/workstreams.md +35 -0
  214. package/.mindforge/memory/decision-library.jsonl +0 -0
  215. package/.mindforge/memory/knowledge-base.jsonl +7 -0
  216. package/.mindforge/memory/pattern-library.jsonl +1 -0
  217. package/.mindforge/memory/team-preferences.jsonl +4 -0
  218. package/.mindforge/personas/advisor-researcher.md +89 -0
  219. package/.mindforge/personas/analyst.md +112 -52
  220. package/.mindforge/personas/architect.md +100 -67
  221. package/.mindforge/personas/assumptions-analyzer-extend.md +87 -0
  222. package/.mindforge/personas/assumptions-analyzer.md +109 -0
  223. package/.mindforge/personas/codebase-mapper-extend.md +93 -0
  224. package/.mindforge/personas/codebase-mapper.md +770 -0
  225. package/.mindforge/personas/coverage-specialist.md +104 -0
  226. package/.mindforge/personas/debug-specialist.md +118 -52
  227. package/.mindforge/personas/debugger.md +97 -0
  228. package/.mindforge/personas/decision-architect.md +102 -0
  229. package/.mindforge/personas/developer.md +97 -85
  230. package/.mindforge/personas/executor.md +88 -0
  231. package/.mindforge/personas/integration-checker.md +92 -0
  232. package/.mindforge/personas/nyquist-auditor.md +84 -0
  233. package/.mindforge/personas/phase-researcher.md +107 -0
  234. package/.mindforge/personas/plan-checker.md +92 -0
  235. package/.mindforge/personas/planner.md +105 -0
  236. package/.mindforge/personas/project-researcher.md +99 -0
  237. package/.mindforge/personas/qa-engineer.md +113 -61
  238. package/.mindforge/personas/release-manager.md +102 -64
  239. package/.mindforge/personas/research-agent.md +109 -24
  240. package/.mindforge/personas/research-synthesizer.md +101 -0
  241. package/.mindforge/personas/roadmapper-extend.md +100 -0
  242. package/.mindforge/personas/roadmapper.md +103 -0
  243. package/.mindforge/personas/security-reviewer.md +114 -91
  244. package/.mindforge/personas/tech-writer.md +118 -51
  245. package/.mindforge/personas/ui-auditor.md +94 -0
  246. package/.mindforge/personas/ui-checker.md +89 -0
  247. package/.mindforge/personas/ui-researcher.md +99 -0
  248. package/.mindforge/personas/user-profiler.md +93 -0
  249. package/.mindforge/personas/verifier.md +101 -0
  250. package/.planning/ROADMAP.md +10 -0
  251. package/.planning/browser-daemon.log +32 -0
  252. package/.planning/phases/01-migrate-gsd-to-mindforge/.gitkeep +0 -0
  253. package/CHANGELOG.md +41 -0
  254. package/MINDFORGE.md +2 -0
  255. package/README.md +40 -3
  256. package/bin/installer-core.js +3 -4
  257. package/docs/PERSONAS.md +611 -0
  258. package/docs/commands-reference.md +1 -0
  259. package/docs/{Context → context}/Master-Context.md +6 -13
  260. package/docs/references/checkpoints.md +778 -0
  261. package/docs/{reference → references}/commands.md +53 -43
  262. package/docs/references/continuation-format.md +249 -0
  263. package/docs/references/decimal-phase-calculation.md +64 -0
  264. package/docs/references/git-integration.md +295 -0
  265. package/docs/references/git-planning-commit.md +38 -0
  266. package/docs/references/model-profile-resolution.md +36 -0
  267. package/docs/references/model-profiles.md +139 -0
  268. package/docs/references/phase-argument-parsing.md +61 -0
  269. package/docs/references/planning-config.md +202 -0
  270. package/docs/references/questioning.md +162 -0
  271. package/docs/references/tdd.md +263 -0
  272. package/docs/references/ui-brand.md +160 -0
  273. package/docs/references/user-profiling.md +681 -0
  274. package/docs/references/verification-patterns.md +612 -0
  275. package/docs/references/workstream-flag.md +58 -0
  276. package/docs/skills-authoring-guide.md +1 -1
  277. package/docs/templates/Agents/CLAUDE-MD.md +122 -0
  278. package/docs/templates/Agents/COPILOT-INSTRUCTIONS.md +7 -0
  279. package/docs/templates/Agents/DEBUGGER-PROMPT.md +91 -0
  280. package/docs/templates/Agents/PLANNER-PROMPT.md +117 -0
  281. package/docs/templates/Execution/CONTINUE-HERE.md +78 -0
  282. package/docs/templates/Execution/DISCUSSION-LOG.md +63 -0
  283. package/docs/templates/Execution/PHASE-PROMPT.md +610 -0
  284. package/docs/templates/Execution/STATE.md +176 -0
  285. package/docs/templates/Execution/SUMMARY-COMPLEX.md +59 -0
  286. package/docs/templates/Execution/SUMMARY-MINIMAL.md +41 -0
  287. package/docs/templates/Execution/SUMMARY-STANDARD.md +48 -0
  288. package/docs/templates/Execution/SUMMARY.md +248 -0
  289. package/docs/templates/Profile/DEV-PREFERENCES.md +21 -0
  290. package/docs/templates/Profile/USER-PROFILE.md +146 -0
  291. package/docs/templates/Profile/USER-SETUP.md +311 -0
  292. package/docs/templates/Project/DISCOVERY.md +146 -0
  293. package/docs/templates/Project/MILESTONE-ARCHIVE.md +123 -0
  294. package/docs/templates/Project/MILESTONE.md +115 -0
  295. package/docs/templates/Project/PROJECT.md +206 -0
  296. package/docs/templates/Project/REQUIREMENTS.md +231 -0
  297. package/docs/templates/Project/RETROSPECTIVE.md +54 -0
  298. package/docs/templates/Project/ROADMAP.md +202 -0
  299. package/docs/templates/Quality/DEBUG.md +164 -0
  300. package/docs/templates/Quality/UAT.md +280 -0
  301. package/docs/templates/Quality/UI-SPEC.md +100 -0
  302. package/docs/templates/Quality/VALIDATION.md +76 -0
  303. package/docs/templates/Quality/VERIFICATION-REPORT.md +322 -0
  304. package/docs/templates/System/CONFIG.json +43 -0
  305. package/docs/templates/System/CONTEXT.md +352 -0
  306. package/docs/templates/codebase/architecture.md +255 -0
  307. package/docs/templates/codebase/concerns.md +310 -0
  308. package/docs/templates/codebase/conventions.md +307 -0
  309. package/docs/templates/codebase/integrations.md +280 -0
  310. package/docs/templates/codebase/stack.md +186 -0
  311. package/docs/templates/codebase/structure.md +285 -0
  312. package/docs/templates/codebase/testing.md +480 -0
  313. package/docs/templates/research/ARCHITECTURE.md +204 -0
  314. package/docs/templates/research/FEATURES.md +147 -0
  315. package/docs/templates/research/PITFALLS.md +200 -0
  316. package/docs/templates/research/STACK.md +120 -0
  317. package/docs/templates/research/SUMMARY.md +170 -0
  318. package/docs/user-guide.md +1 -1
  319. package/package.json +7 -2
  320. /package/docs/{reference → references}/audit-events.md +0 -0
  321. /package/docs/{reference → references}/config-reference.md +0 -0
  322. /package/docs/{reference → references}/sdk-api.md +0 -0
  323. /package/docs/{reference → references}/skills-api.md +0 -0
@@ -1,18 +1,30 @@
1
- Process pending approvals and emergency overrides. Usage:
2
- `/mindforge:approve [approval-id] [--approve|--reject] [--reason "..."] [--emergency]`
1
+ ---
2
+ name: mindforge:approve
3
+ description: Process pending approvals and emergency overrides
4
+ argument-hint: [approval-id] [--approve|--reject] [--reason "..."] [--emergency]
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ - write_to_file
9
+ ---
3
10
 
4
- ## Listing approvals
5
- Scan `.planning/approvals/` and show only files with `status: pending` unless
6
- the user explicitly asks for historical records.
11
+ <objective>
12
+ Manage the governance layer by reviewing and confirming high-tier architectural or security changes, ensuring all sensitive operations have explicit human authorization.
13
+ </objective>
7
14
 
8
- ## Standard approval flow
9
- 1. Read the approval file
10
- 2. Confirm current identity from `git config user.email` or `$USER`
11
- 3. Validate approver eligibility from `INTEGRATIONS-CONFIG.md`
12
- 4. Record approval or rejection with timestamp and reason
15
+ <execution_context>
16
+ .claude/commands/mindforge/approve.md
17
+ </execution_context>
13
18
 
14
- ## Emergency overrides
15
- Emergency override requires the `--emergency` flag.
16
- Read `EMERGENCY_APPROVERS` from `INTEGRATIONS-CONFIG.md` and deny the request if
17
- the current identity is not listed. Document that git-config-based identity is
18
- a convenience layer, not a high-assurance identity proof.
19
+ <context>
20
+ Storage: .planning/approvals/
21
+ Governance Config: INTEGRATIONS-CONFIG.md
22
+ </context>
23
+
24
+ <process>
25
+ 1. **List**: Scan for pending approval requests and present them to the user.
26
+ 2. **Identity Verification**: Confirm the user's identity via git config or environment.
27
+ 3. **Audit Eligibility**: Verify the user has sufficient permissions for the requested tier.
28
+ 4. **Record Verdict**: Update the approval file with status, timestamp, and the provided reason.
29
+ 5. **Emergency Override**: If `--emergency` is used, bypass standard checks if the identity matches the pre-defined emergency approver list.
30
+ </process>
@@ -1,30 +1,34 @@
1
- Query `.planning/AUDIT.jsonl` by phase, event, date, severity, integration, or
2
- agent. Usage: `/mindforge:audit [filters]`
1
+ ---
2
+ name: mindforge:audit
3
+ description: Query the .planning/AUDIT.jsonl log by phase, event, date, or severity
4
+ argument-hint: [filters]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - list_dir
9
+ ---
3
10
 
4
- ## Supported options
5
- - `--phase N`
6
- - `--event NAME`
7
- - `--agent NAME`
8
- - `--severity LEVEL`
9
- - `--date YYYY-MM-DD`
10
- - `--summary`
11
- - `--verify`
12
- - `--export PATH`
11
+ <objective>
12
+ Provide a structured interface to query and validate the project's audit logs, ensuring accountability and traceability of all agent actions and system events.
13
+ </objective>
13
14
 
14
- ## Summary mode
15
- Summarise counts by event, severity, integration, and phase.
16
- Entries with `"phase": null` are reported as `project-level`, not dropped.
15
+ <execution_context>
16
+ .claude/commands/mindforge/audit.md
17
+ </execution_context>
17
18
 
18
- ## Verify mode
19
- Validate JSONL shape and chronological ordering.
20
- Timestamp comparison may use string comparison because ISO-8601 UTC timestamps
21
- with a `Z` suffix sort lexicographically.
19
+ <context>
20
+ Storage: .planning/AUDIT.jsonl
21
+ Archive: .planning/audit-archive/
22
+ Filters: --phase, --event, --agent, --severity, --date, --summary, --verify, --export
23
+ </context>
22
24
 
23
- ## Archive rotation
24
- If the active audit log exceeds 10,000 lines, rotate it into
25
- `.planning/audit-archive/` before continuing heavy writes. Rotation must never
26
- delete history; it archives then resets the active file.
27
-
28
- ## Export safety
29
- Validate export paths stay inside the project directory. If a path traversal or
30
- unsafe destination is requested, export into `.planning/` instead.
25
+ <process>
26
+ 1. **Parse Filters**: Identify the search criteria (phase, event, severity, etc.).
27
+ 2. **Execute Query**:
28
+ - Use `grep` or `jq` (if available via bash) to filter the JSONL file.
29
+ - If `--summary`: Aggregate counts by event and severity.
30
+ - If `--verify`: Check for JSON validity and chronological integrity.
31
+ 3. **Handle Large Logs**: If the log exceeds 10,000 lines, rotate it to the archive directory.
32
+ 4. **Export (Optional)**: If `--export` is used, write filtered results to the target path (ensuring project boundary safety).
33
+ 5. **Display**: Present the filtered log or summary to the user.
34
+ </process>
@@ -1,22 +1,33 @@
1
- # /mindforge:auto [Phase N]
1
+ ---
2
+ name: mindforge:auto
3
+ description: Start the MindForge Autonomous Execution Engine
4
+ argument-hint: [Phase N] [--resume] [--headless] [--dry-run]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ - write_to_file
10
+ ---
2
11
 
3
- **Purpose**: Starts the MindForge Autonomous Execution Engine for the
4
- specified phase. The agent will execute all waves, handle repairs, and
5
- perform compliance gates without requiring human confirmation.
12
+ <objective>
13
+ Execute a planned phase entirely unattended, coordinating wave fulfillment, self-repair of minor failures, and compliance gating while maintaining a persistent state checkpoint.
14
+ </objective>
6
15
 
7
- ## Usage
8
- - `/mindforge:auto --phase 3` (Standard unattended mode)
9
- - `/mindforge:auto --resume` (Resumes from last checkpoint)
10
- - `/mindforge:auto --headless` (CI/CD optimized output)
11
- - `/mindforge:auto --dry-run` (Show the wave DAG and plan without executing)
16
+ <execution_context>
17
+ .claude/commands/mindforge/auto.md
18
+ </execution_context>
12
19
 
13
- ## Behavior
14
- - **Zero-Interaction**: Auto-approves Tier 1/2 changes if gates pass.
15
- - **Self-Repair**: Tries RETRY/DECOMPOSE before asking for help.
16
- - **Checkpointing**: Constant state persistence in `HANDOFF.json`.
17
- - **Governance**: ESCALATES on Tier 3 changes (Auth/Payment/PII).
20
+ <context>
21
+ Storage: HANDOFF.json checkpoints.
22
+ Governance: Auto-approves Tier 1/2; Escalates Tier 3.
23
+ Notifications: Requires Slack/Discord webhooks for mission-critical alerts.
24
+ </context>
18
25
 
19
- ## Environment Variables
20
- - `AUTO_MODE_TIMEOUT_MINUTES`: Default 120.
21
- - `AUTO_PUSH_ON_WAVE_COMPLETE`: Default false.
22
- - `SLACK_WEBHOOK_URL`: Required for notifications.
26
+ <process>
27
+ 1. **Boot**: Load the specifies phase or resume from the last known checkpoint in `HANDOFF.json`.
28
+ 2. **Wave Engine**: Execute the DAG of tasks sequentially or in parallel based on dependencies.
29
+ 3. **Self-Repair**: Automatically attempt to retry or decompose tasks that encounter recoverable errors.
30
+ 4. **Gating**: Evaluate compliance gates between waves. Escalates to human for Tier 3 changes.
31
+ 5. **Persistence**: Save state after every successful tool call or task completion.
32
+ 6. **Finalize**: Shift status to "Verify Pending" once all waves are complete.
33
+ </process>
@@ -1,33 +1,30 @@
1
- # MindForge — Benchmark Command
2
- # Usage: /mindforge:benchmark [--skill skill-name] [--compare skill-a skill-b]
1
+ ---
2
+ name: mindforge:benchmark
3
+ description: Measure skill effectiveness and project metrics over time
4
+ argument-hint: [--skill skill-name] [--compare skill-a skill-b]
5
+ allowed-tools:
6
+ - view_file
7
+ - list_dir
8
+ ---
3
9
 
4
- Measure skill effectiveness over time.
10
+ <objective>
11
+ Analyze command and skill performance by correlating usage data with verify pass rates and project quality scores, facilitating data-driven decisions on tool improvements.
12
+ </objective>
5
13
 
6
- ## Single skill benchmark
7
- For a named skill, analyse AUDIT.jsonl and skill-usage.jsonl:
8
- - How many times was the skill loaded this month?
9
- - What is the verify pass rate for tasks where this skill was loaded?
10
- - Are there anti-patterns less common after this skill is loaded?
11
- - What is the average session quality score when this skill is active?
14
+ <execution_context>
15
+ .claude/commands/mindforge/benchmark.md
16
+ </execution_context>
12
17
 
13
- Report:
14
- ```
15
- Skill Benchmark: security-review v1.0.0
16
- ────────────────────────────────────────
17
- Usage (last 30 days): 47 task loads
18
- Trigger distribution: text match 68%, file-path 22%, file-name 10%
19
- Verify pass rate: 91% (vs. 84% baseline without this skill)
20
- Security findings: 8 HIGH caught (0 CRITICAL missed in tasks using this skill)
21
- Session quality lift: +6.2 points average when loaded
18
+ <context>
19
+ Sources: AUDIT.jsonl, skill-usage.jsonl
20
+ Metrics: Pass rate, load frequency, anti-pattern reduction, quality lift.
21
+ </context>
22
22
 
23
- Assessment: HIGH VALUE — clear quality improvement signal
24
- ```
25
-
26
- ## Skill comparison
27
- Compare two skills head-to-head:
28
- - Load frequency
29
- - Verify pass rate improvement
30
- - Anti-pattern detection rate
31
- - Context budget cost (token estimate)
32
-
33
- Helps decide: should you keep both skills, or deprecate the lower-performer?
23
+ <process>
24
+ 1. **Gather Data**: Extract usage and outcome logs for the target skill(s).
25
+ 2. **Calculate Trends**: Determine pass rate vs baseline and session quality improvement.
26
+ 3. **Generate Assessment**:
27
+ - For single skill: Provide a usage distribution and quality lift report.
28
+ - For comparison: Provide a head-to-head comparison on cost and effectiveness.
29
+ 4. **Recommendation**: Advise on whether to keep, improve, or deprecate the targeted skills.
30
+ </process>
@@ -1,26 +1,28 @@
1
- # /mindforge:browse
1
+ ---
2
+ name: mindforge:browse
3
+ description: Control the persistent MindForge browser daemon for visual verification
4
+ argument-hint: <url | action>
5
+ allowed-tools:
6
+ - open_browser_url
7
+ - run_command
8
+ ---
2
9
 
3
- ## Usage
4
- `@mindforge browse <url | action>`
10
+ <objective>
11
+ Enable the agent to interact with web interfaces, maintain persistent sessions, and perform visual audits of UI changes using an automated browser daemon.
12
+ </objective>
5
13
 
6
- ## Description
7
- Controls the persistent MindForge browser daemon.
8
- Maintains session state (cookies/localStorage) for the AI.
14
+ <execution_context>
15
+ .claude/commands/mindforge/browse.md
16
+ </execution_context>
9
17
 
10
- ## Actions
11
- | Action | Description |
12
- |---|---|
13
- | `--start` | Initialize browser daemon |
14
- | `--stop` | Kill browser daemon |
15
- | `--status` | Show daemon health and active sessions |
16
- | `--session <name>` | Switch browser context |
17
- | `--import-session <name> --from <browser>` | Import cookies from host browser (chrome, arc, etc) |
18
- | `<url>` | Navigate the current page to URL |
19
- | `click <selector>` | Trigger click event |
20
- | `type <sel> <text>` | Fill input field |
21
- | `screenshot` | Capture current viewport |
18
+ <context>
19
+ Security: Daemon binds to 127.0.0.1. Sessions are gitignored.
20
+ State: Supports cookie/localStorage persistence via named sessions.
21
+ </context>
22
22
 
23
- ## Security
24
- - Daemon binds to `127.0.0.1` only.
25
- - Session files are gitignored.
26
- - Use only for debugging and visual verification.
23
+ <process>
24
+ 1. **Control Daemon**: Start, stop, or query the health/active sessions of the browser daemon.
25
+ 2. **Session Management**: Switch between browser contexts or import sessions from the host (Chrome/Arc).
26
+ 3. **Navigate & Interact**: Load URLs, click selectors, and type text into input fields.
27
+ 4. **Verify**: Capture screenshots of the current viewport for visual confirmation.
28
+ </process>
@@ -1,18 +1,32 @@
1
- Archive a completed milestone, generate a release report, and prepare the next
2
- milestone. Usage: `/mindforge:complete-milestone <name> <version>`
1
+ ---
2
+ name: mindforge:complete-milestone
3
+ description: Archive a completed milestone and prepare the next version
4
+ argument-hint: <name> <version>
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ - write_to_file
9
+ - run_command
10
+ ---
3
11
 
4
- ## Step 1 — Validate milestone completion
5
- Ensure every included phase is verified and has no pending blocking approvals.
12
+ <objective>
13
+ Finalize a project milestone by summarizing shipped value, archiving phase artifacts, and preparing the environment for the next development cycle.
14
+ </objective>
6
15
 
7
- ## Step 2 — Generate milestone report
8
- Summarise shipped phases, notable changes, risks, approvals, and unresolved
9
- follow-ups.
16
+ <execution_context>
17
+ .claude/commands/mindforge/complete-milestone.md
18
+ </execution_context>
10
19
 
11
- ## Step 3 — Archive milestone artifacts
12
- Archive only the phases included in the milestone, not the entire
13
- `.planning/phases/` directory. Preserve history in the archive while keeping
14
- active planning files available in place.
20
+ <context>
21
+ Validation: Ensures all included phases are verified and have no pending approvals.
22
+ Storage: Moves phase files to a milestone-specific archive.
23
+ </context>
15
24
 
16
- ## Step 4 — Release metadata
17
- Create the release tag, update `STATE.md` with milestone summary, and mark the
18
- project ready for the next version.
25
+ <process>
26
+ 1. **Validate**: Confirm every phase in the milestone is signed off and verified.
27
+ 2. **Summarize**: Generate a MILESTONE-REPORT with shipped functionality, risks, and follow-ups.
28
+ 3. **Archive**: Move the included `.planning/phases/` directories to a persistent milestone archive.
29
+ 4. **Tag**: Create a git release tag for the milestone.
30
+ 5. **State Reset**: Update `STATE.md` to reflect the milestone completion and target the next version.
31
+ 6. **Audit**: Log `milestone_completed` event.
32
+ </process>
@@ -1,11 +1,28 @@
1
- # MindForge v2 — Costs Command
2
- # Usage: /mindforge:costs [--phase N] [--session ID] [--window 7d]
1
+ ---
2
+ name: mindforge:costs
3
+ description: Real-time cost tracking for AI model usage
4
+ argument-hint: [--phase N] [--session ID] [--window 7d]
5
+ allowed-tools:
6
+ - view_file
7
+ - run_command
8
+ ---
3
9
 
4
- ## Purpose
5
- Real-time cost tracking for all AI model usage.
6
- Enforce daily budgets and see per-model spend.
10
+ <objective>
11
+ Monitor and control project expenses related to AI model usage, enforcing budget guardrails and providing granular spend analysis.
12
+ </objective>
7
13
 
8
- ## Metrics
9
- - Total spend: $X.XX
10
- - Daily limit usage: XX%
11
- - Per-model breakdown (Tokens/Cost)
14
+ <execution_context>
15
+ .claude/commands/mindforge/costs.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Metrics: Total spend, daily limit usage, per-model breakdown.
20
+ Sources: AUDIT.jsonl and local token logs.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Gather Usage Data**: Parse logs for the specified phase, session, or time window.
25
+ 2. **Calculate Spend**: Apply pricing models to the detected token counts per model.
26
+ 3. **Enforce Budgets**: Compare current spend against configured daily and project limits.
27
+ 4. **Display Report**: Present the total spend and limit usage as a percentage.
28
+ </process>
@@ -1,17 +1,31 @@
1
- # MindForge v2 — Cross-Review Command
2
- # Usage: /mindforge:cross-review [--phase N] [--models list] [--focus area]
1
+ ---
2
+ name: mindforge:cross-review
3
+ description: Get code reviewed by multiple AI models simultaneously for consensus validation
4
+ argument-hint: [--phase N] [--models list] [--focus area]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - write_to_file
9
+ ---
3
10
 
4
- ## Purpose
5
- Get the same code diff reviewed by multiple AI models simultaneously.
6
- Claude finds what Claude finds. GPT-4o finds what GPT-4o finds.
7
- Consensus findings = high confidence issues.
11
+ <objective>
12
+ Increase review confidence by aggregating findings from multiple diverse AI models, identifying consensus issues and providing a multi-perspective quality assessment.
13
+ </objective>
8
14
 
9
- ## Round 1: Primary (Claude)
10
- Senior architect review.
15
+ <execution_context>
16
+ .claude/commands/mindforge/cross-review.md
17
+ </execution_context>
11
18
 
12
- ## Round 2: Adversarial (GPT-4o)
13
- Critical security and edge case review.
19
+ <context>
20
+ Models: Claude (Primary/Architectural), GPT-4o (Adversarial/Security).
21
+ Focus: Specific area like "security", "performance", or "consistency".
22
+ Pre-check: Models must be available via existing API integrations.
23
+ </context>
14
24
 
15
- ## Synthesis
16
- Consensus detector filters findings.
17
- Verdict is gating for `/mindforge:ship`.
25
+ <process>
26
+ 1. **Round 1 (Primary)**: Execute architectural review using the primary model.
27
+ 2. **Round 2 (Adversarial)**: Execute security-focused review using the secondary model.
28
+ 3. **Synthesis**: Compare findings from both rounds. Identify consensus "high confidence" issues.
29
+ 4. **Final Verdict**: Issue a gating verdict that must be resolved for `/mindforge:ship`.
30
+ 5. **Log**: Record the multi-model review results in the audit trail.
31
+ </process>
@@ -1,98 +1,35 @@
1
- # MindForge v2 — Dashboard Command
2
- # Usage: /mindforge:dashboard [--port 7339] [--open] [--stop] [--status]
3
- # Version: v2.0.0-alpha.5
4
-
5
- ## Purpose
6
- Start the MindForge real-time web dashboard — a live observability UI for the
7
- entire team. Shows execution progress, quality metrics, pending approvals,
8
- knowledge graph, and team activity without requiring CLI access.
9
-
10
- ## Design
11
- The dashboard is a localhost-only web server:
12
- - No build step — single HTML file, no bundler, no npm packages on client
13
- - No authentication binding to 127.0.0.1 is the security model
14
- - Live updates via Server-Sent Events — no WebSocket library needed
15
- - Designed for screensharing at standups, not external access
16
-
17
- ## Usage
18
-
19
- ### Start the dashboard
20
- ```
21
- /mindforge:dashboard
22
- Dashboard running at: http://localhost:7339
23
- Press CTRL+C to stop (or /mindforge:dashboard --stop)
24
- ```
25
-
26
- ### Start and open in browser
27
- ```
28
- /mindforge:dashboard --open
29
- Opens http://localhost:7339 in your default browser
30
- ```
31
-
32
- ### Custom port
33
- ```
34
- /mindforge:dashboard --port 7340
35
- → Useful if 7339 is already in use
36
- ```
37
-
38
- ### Stop the dashboard
39
- ```
40
- /mindforge:dashboard --stop
41
- → Finds the running dashboard process (from PID file) and sends SIGTERM
42
- ```
43
-
44
- ### Check dashboard status
45
- ```
46
- /mindforge:dashboard --status
47
- → Checks if dashboard is running, shows port and PID
48
- → Also shows: http://localhost:7339/api/status
49
- ```
50
-
51
- ## Dashboard pages
52
-
53
- ### Activity (default)
54
- - Phase name, auto mode status (RUNNING/PAUSED/ESCALATED/IDLE)
55
- - Wave progress bar (tasks completed / total)
56
- - Live AUDIT event feed with color-coded event types
57
- - Steering input: send guidance to auto mode without touching the CLI
58
-
59
- ### Quality Metrics
60
- - Session quality score trend (last 20 sessions)
61
- - Verify pass rate over time
62
- - Security findings by severity (CRITICAL/HIGH/MEDIUM/LOW)
63
- - Cost per session trend
64
-
65
- ### Approvals
66
- - All pending Tier 2/3 governance requests
67
- - [Approve] and [Reject] buttons — no CLI needed for approval
68
- - Tier, phase/plan, description, time since requested, expiry warning
69
- - Recent approval history
70
-
71
- ### Knowledge
72
- - Search the knowledge graph from the browser
73
- - Entries filtered by confidence, type, tags
74
- - Color-coded by knowledge type
75
-
76
- ### Team
77
- - Active developers (by git email, from AUDIT.jsonl)
78
- - What each person is working on (last task)
79
- - File conflict warnings (two developers recently touching the same file)
80
-
81
- ## Security rules
82
- 1. Never expose the dashboard on 0.0.0.0 — localhost only
83
- 2. Never forward the port externally (no ngrok, no port forwarding)
84
- 3. For remote team visibility: screenshare your browser instead
85
- 4. The dashboard shows project details including code patterns and decisions
86
-
87
- ## Integration with auto mode
88
- When `/mindforge:auto` is running and the dashboard is open:
89
- - Activity feed updates live as tasks complete
90
- - Wave progress bar advances in real-time
91
- - Any escalations appear immediately with red indicator
92
- - The Steering input is active — inject guidance without a second terminal
93
-
94
- ## AUDIT entry
95
- ```json
96
- { "event": "dashboard_started", "port": 7339, "pid": 12345 }
97
- { "event": "dashboard_stopped", "pid": 12345 }
98
- ```
1
+ ---
2
+ name: mindforge:dashboard
3
+ description: Start the MindForge real-time web dashboard
4
+ argument-hint: [--port N] [--open] [--stop] [--status]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ - open_browser_url
10
+ ---
11
+
12
+ <objective>
13
+ Provide a real-time web-based observability interface for the project, allowing the team to monitor execution progress, quality metrics, pending approvals, and team activity.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/dashboard.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Port: Default 7339 (configurable via --port).
22
+ Security: Binding to 127.0.0.1 (local only).
23
+ Features: Server-Sent Events for live updates, no-auth by design.
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Handle Flags**:
28
+ - If `--stop`: Find the PID from the PID file and terminate the process.
29
+ - If `--status`: Check if the dashboard is running and report the URL/PID.
30
+ - Default: Start the server.
31
+ 2. **Start Server**: Execute the dashboard binary/script on the specified port.
32
+ 3. **Open Browser**: If `--open` is provided, trigger the default system browser to the dashboard URL.
33
+ 4. **Monitor**: Listen for steering inputs from the dashboard and route them to the active MindForge session.
34
+ 5. **Log**: Record `dashboard_started` or `dashboard_stopped` in the audit log.
35
+ </process>