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,126 +1,34 @@
1
- # MindForge — Debug Command
2
- # Usage: /mindforge:debug [description]
3
-
4
- Systematic debugging using the Debug Specialist persona with full RCA protocol.
5
-
6
- ## Activation
7
-
8
- Load `.mindforge/personas/debug-specialist.md` immediately.
9
- This command runs entirely in that persona for its full duration.
10
-
11
- ## Step 1 — Intake
12
-
13
- Ask the user:
14
- 1. "Describe the problem. What is happening vs. what should happen?"
15
- 2. "Can you reproduce it reliably? If yes: what are the exact steps?"
16
- 3. "When did this start? Was it working before? What changed?"
17
- 4. "Do you have an error message or stack trace? Paste it here."
18
-
19
- Capture all answers before proceeding.
20
-
21
- ## Step 2 — Triage
22
-
23
- Classify the issue immediately:
24
- - **Regression** (was working, now broken) → check recent commits
25
- - **Never worked** (new feature failing) → check the plan and verify step
26
- - **Environment issue** (works locally, fails in CI) → check environment diffs
27
- - **Data issue** (specific data causes failure) check data shape assumptions
28
- - **Integration issue** (fails when calling external service) check contracts
29
-
30
- Report classification to user: "This looks like a [type] issue. Here's my approach..."
31
-
32
- ## Step 3 Follow Debug Specialist protocol
33
-
34
- Execute the full protocol from `debug-specialist.md`:
35
- 1. Reproduce
36
- 2. Isolate
37
- 3. Read the error
38
- 4. Check recent changes
39
- 5. Instrument
40
- 6. Form hypothesis
41
- 7. Test hypothesis (write a failing test)
42
- 8. Fix
43
- 9. Verify (test from step 7 now passes, no regressions)
44
- 10. Document
45
-
46
- At each step, report what was found before moving to the next step.
47
- Do not skip steps or combine them.
48
-
49
- ## Step 3b — Full test suite verification (mandatory)
50
- After the fix and targeted verify pass, run the project's full test suite.
51
- Do not mark the debug task complete if any tests fail.
52
-
53
- ## Step 4 — Check recent git history
54
-
55
- ```bash
56
- git log --oneline -20
57
- git diff HEAD~[N] HEAD -- [suspected file]
58
- ```
59
-
60
- If a recent commit is the likely cause, show the user the specific diff.
61
-
62
- ## Step 5 — Write the RCA report
63
-
64
- Create `.planning/phases/[current-phase]/DEBUG-[timestamp].md`:
65
-
66
- ```markdown
67
- # Debug Report — [short description]
68
-
69
- ## Date
70
- [ISO-8601]
71
-
72
- ## Problem
73
- [User's description + what was verified during debugging]
74
-
75
- ## Root cause category
76
- [Logic error / Data error / Integration error / Concurrency error /
77
- Configuration error / Dependency error]
78
-
79
- ## Root cause
80
- [Precise description of what the actual cause was]
81
-
82
- ## Evidence
83
- - [How the root cause was confirmed]
84
- - [Failing test that proved the bug: file:line]
85
-
86
- ## Fix applied
87
- - File: [path]
88
- - Change: [description]
89
- - Commit: [SHA]
90
-
91
- ## Regression test
92
- [Test written to prevent this from recurring: file:line]
93
-
94
- ## Prevention
95
- [What should change in process/code to prevent this class of bug]
96
- ```
97
-
98
- ## Step 6 — Write AUDIT entry
99
-
100
- ```json
101
- {
102
- "id": "uuid",
103
- "timestamp": "ISO-8601",
104
- "event": "debug_completed",
105
- "agent": "mindforge-debug-specialist",
106
- "phase": [current phase or null],
107
- "session_id": "sess_abc",
108
- "issue_type": "regression",
109
- "root_cause_category": "Logic error",
110
- "root_cause_summary": "[one sentence]",
111
- "commit_sha": "[fix commit sha]",
112
- "regression_test_added": true,
113
- "report_path": ".planning/phases/[N]/DEBUG-[timestamp].md"
114
- }
115
- ```
116
-
117
- ## When the bug cannot be reproduced
118
-
119
- Ask:
120
- 1. "Does it happen every time or intermittently?"
121
- 2. "Does it happen in specific environments only? (dev/staging/prod)"
122
- 3. "Does it happen for specific users or all users?"
123
-
124
- If intermittent: focus on concurrency, caching, and race conditions.
125
- Write a monitoring/logging plan to catch the next occurrence.
126
- Document the inconclusive investigation in the DEBUG report with evidence gathered.
1
+ ---
2
+ name: mindforge:debug
3
+ description: Perform systematic debugging using the RCA protocol
4
+ argument-hint: [description]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - write_to_file
9
+ - list_dir
10
+ ---
11
+
12
+ <objective>
13
+ Resolve complex software defects by following a rigorous Root Cause Analysis (RCA) protocol, including reproduction, isolation, instrumentation, and regression testing.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/debug.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Persona: debug-specialist.md
22
+ Lifecycle: Triage -> Reproduce -> Hypothesis -> Fix -> Verify.
23
+ Artifact: .planning/phases/[N]/DEBUG-[timestamp].md
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Intake**: Gather symptoms, reproduction steps, working history, and error logs.
28
+ 2. **Triage**: Classify as Regression, Never Worked, Environment, or Integration issue.
29
+ 3. **Isolate**: Use git history and breadcrumb logging to identify the failure point.
30
+ 4. **Reproduce**: Write a failing test case that proves the bug.
31
+ 5. **Fix**: Implement the minimum necessary change to resolve the issue.
32
+ 6. **Verify**: Ensure the new test passes and run the full project test suite to detect regressions.
33
+ 7. **Document**: Write the `DEBUG-[timestamp].md` RCA report and log the event in `AUDIT.jsonl`.
34
+ </process>
@@ -1,138 +1,36 @@
1
- # MindForge — Discuss Phase Command
2
- # Usage: /mindforge:discuss-phase [N] [--batch] [--auto]
3
- # Captures implementation decisions before planning begins.
4
- # Run this BEFORE /mindforge:plan-phase for complex phases.
5
-
6
- ## Purpose
7
- Planning without discussion produces generic plans.
8
- Discussion captures YOUR decisions — layout preferences, library choices,
9
- UX specifics, edge cases you've already thought through — so the planner
10
- builds what you actually want, not what seems reasonable.
11
-
12
- ## When to use
13
- - Any phase with UI/UX components (visual decisions need capturing)
14
- - Any phase with multiple valid implementation approaches
15
- - Any phase where you already have opinions on the approach
16
- - Any phase touching external services (your preferences on APIs matter)
17
- - Skip for trivial phases (e.g., "add one field to an existing form")
18
-
19
- ## Step 1 — Analyse the phase scope
20
-
21
- Read:
22
- - ROADMAP.md for the phase description
23
- - REQUIREMENTS.md for the requirements in this phase
24
- - ARCHITECTURE.md for relevant architectural context
25
-
26
- Identify the phase's primary domain and any secondary domains.
27
- If multiple domains are involved, cover each relevant set of questions.
28
- - **Visual/UI** ask about layout, interactions, states, empty states, animations
29
- - **API/Backend** ask about response format, error handling, auth approach, versioning
30
- - **Data/Database** ask about schema design, migration strategy, data volume expectations
31
- - **Integration** → ask about third-party API choices, error recovery, retry strategy
32
- - **Infrastructure** ask about deployment strategy, scaling approach, observability
33
-
34
- ## Step 2 Structured discussion
35
-
36
- Ask questions ONE AT A TIME. Wait for the full answer before asking the next.
37
- Do not batch questions (unless `--batch` flag is provided).
38
-
39
- ### Visual/UI phases — ask about:
40
- 1. "Walk me through what a user sees on this screen from top to bottom."
41
- 2. "What does the empty state look like? (nothing loaded yet / no results / error)"
42
- 3. "Any animations or transitions you're picturing? Or keep it static?"
43
- 4. "On mobile — stacks vertically or anything different?"
44
- 5. "Any edge cases? (very long text, images that fail to load, loading states)"
45
-
46
- ### API/Backend phases — ask about:
47
- 1. "What's the intended consumer? Internal frontend / external developers / both?"
48
- 2. "For errors — do you want detailed error objects with field-level info or simple messages?"
49
- 3. "Rate limiting needed on any of these endpoints?"
50
- 4. "Any background processing involved, or all synchronous?"
51
- 5. "Versioning approach? /v1/ prefix or header-based?"
52
-
53
- ### Data/Database phases — ask about:
54
- 1. "What's the expected data volume? Thousands / millions / billions of rows?"
55
- 2. "Any fields that need full-text search vs. exact match?"
56
- 3. "Soft delete or hard delete for user-facing records?"
57
- 4. "Any fields that change frequently vs. infrequently? (affects indexing strategy)"
58
- 5. "Data retention requirements? When can records be deleted?"
59
-
60
- ### Integration phases — ask about:
61
- 1. "Have you already chosen the third-party service / API? If so, which?"
62
- 2. "What should happen if the third-party service is down? Queue / fail / fallback?"
63
- 3. "Webhooks or polling for receiving updates?"
64
- 4. "Any rate limits you know about on their end?"
65
- 5. "Testing approach? Do they have a sandbox environment?"
66
-
67
- ## --batch mode
68
- If `--batch` flag is provided: group related questions and present them together.
69
- Appropriate when the user wants faster intake and is familiar with MindForge.
70
-
71
- Example batch:
72
- ```
73
- Visual decisions for Phase 2:
74
- 1. Layout: card grid / table / list?
75
- 2. Empty state: illustration / simple message / hide section?
76
- 3. Loading: skeleton / spinner / none?
77
- 4. Mobile: same layout / stacked / hidden?
78
- Answer 1-4:
79
- ```
80
-
81
- ## --auto mode
82
- If `--auto` flag is provided: skip the discussion entirely.
83
- The planner will make reasonable defaults for all decisions.
84
- Use when: the phase is straightforward and you trust the planner's judgment.
85
- Warn clearly: "Skipping discussion. Planner will make implementation decisions.
86
- Results may not match your vision exactly. Proceeding without
87
- explicit decisions can create rework later."
88
-
89
- ## Step 3 — Write CONTEXT.md
90
-
91
- After discussion, write `.planning/phases/[N]/CONTEXT.md`:
92
-
93
- ```markdown
94
- # Phase [N] Implementation Context
95
- # Captured: [ISO-8601]
96
- # Discussion mode: [interactive / batch / auto]
97
-
98
- ## Phase description
99
- [From ROADMAP.md]
100
-
101
- ## Implementation decisions (captured from discussion)
102
-
103
- ### [Domain: Visual / API / Data / Integration / etc.]
104
-
105
- **Decision:** [What was decided]
106
- **Rationale:** [Why — from user's words]
107
- **Implications for planning:**
108
- - [What the planner should do because of this decision]
109
- - [Specific library or pattern to use]
110
- - [What to avoid]
111
-
112
- [Repeat for each significant decision]
113
-
114
- ## Open questions (unresolved during discussion)
115
- - [Question 1]: [Status — decide during planning / decide during execution]
116
-
117
- ## User's explicit preferences
118
- [Verbatim or near-verbatim quotes from the discussion that capture specific intent]
119
-
120
- ## Defaults accepted (decisions the user deferred to the planner)
121
- - [Area]: planner's choice
122
- ```
123
-
124
- ## Step 4 — Confirm and guide
125
-
126
- Show the user a summary of what was captured:
127
-
128
- "✅ Phase [N] discussion complete. [N] decisions captured.
129
-
130
- Key decisions:
131
- - [Decision 1 summary]
132
- - [Decision 2 summary]
133
- - [Decision 3 summary]
134
-
135
- See full context: .planning/phases/[N]/CONTEXT.md
136
-
137
- Next step: Run /mindforge:plan-phase [N] to create implementation plans
138
- using these decisions."
1
+ ---
2
+ name: mindforge:discuss-phase
3
+ description: Capture implementation decisions before planning begins
4
+ argument-hint: [N] [--batch] [--auto]
5
+ allowed-tools:
6
+ - view_file
7
+ - list_dir
8
+ - write_to_file
9
+ ---
10
+
11
+ <objective>
12
+ Capture critical implementation decisions (UI/UX, architecture, choice of libraries) through a structured discussion before generating plans. This prevents generic planning and ensures the output matches the user's vision.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/discuss-phase.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (Phase N, optional flags for batch or auto mode)
21
+ Sources: ROADMAP.md, REQUIREMENTS.md, ARCHITECTURE.md.
22
+ Output: .planning/phases/phase-[N]/CONTEXT.md
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Analyze Scope**: Read roadmap, requirements, and architecture to identify the primary domain (UI, API, Data, etc.).
27
+ 2. **Structured Discussion**:
28
+ - If `--auto`: Skip discussion and warn the user.
29
+ - If `--batch`: Group questions by domain.
30
+ - Default: Ask domain-specific questions one at a time (e.g., visual layout, error handling, data volume).
31
+ 3. **Generate CONTEXT.md**:
32
+ - Document all captured decisions and their rationale.
33
+ - Note implications for the upcoming planning phase.
34
+ - List any unresolved "open questions".
35
+ 4. **Guide**: Confirm completion and point the user to `/mindforge:plan-phase [N]`.
36
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:do
3
+ description: Smart natural language dispatcher to route intent to the right MindForge command
4
+ argument-hint: <text>
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Provide a high-level, natural language interface for users to interact with MindForge without needing to remember specific command names. Routes user intent to the most appropriate internal command.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ .claude/commands/mindforge/do.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Arguments: $ARGUMENTS (The user's intent in plain English)
20
+ Knowledge: Must be aware of all available `.claude/commands/mindforge/*.md` definitions.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Analyze input**: Parse the user's natural language request.
25
+ 2. **Match command**: Compare the intent against the descriptions and objectives of all known MindForge commands.
26
+ 3. **Execute match**:
27
+ - If a clear match is found, immediately pivot to that command's logic.
28
+ - If multiple matches are possible, ask the user for clarification.
29
+ - If no match is found, suggest the most relevant command or offer `/mindforge:help`.
30
+ 4. **Learn (Optional)**: If the user confirms a routing was correct, record the mapping for future intent resolution.
31
+ </process>
@@ -1,190 +1,37 @@
1
- # MindForge — Execute Phase Command
2
- # Usage: /mindforge:execute-phase [N]
3
-
4
- ## Pre-checks (all must pass before execution starts)
5
-
6
- 1. Read STATE.md — confirm phase [N] is in "planned" status.
7
- If STATE.md shows phase [N] as already "complete": ask user to confirm re-execution.
8
-
9
- 2. Verify plan files exist:
10
- ```
11
- .planning/phases/[N]/PLAN-[N]-01.md (minimum one plan required)
12
- ```
13
- If missing: stop. Tell user: "No plans found for Phase [N]. Run /mindforge:plan-phase [N] first."
14
-
15
- 3. Verify REQUIREMENTS.md exists and has content.
16
- If empty: warn user but allow continuation.
17
-
18
- 4. Run the dependency parser (`.mindforge/engine/dependency-parser.md`).
19
- If validation fails (circular deps, missing deps): stop and report. Do not execute.
20
-
21
- ## Step 1 — Build and display the execution plan
22
-
23
- After dependency parsing succeeds, display the wave plan to the user:
24
-
25
- ```
26
- Phase [N] Execution Plan
27
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
28
-
29
- Wave 1 (parallel) Wave 2 (parallel) Wave 3
30
- ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
31
- Plan 01 │ │ Plan 03 │ │ Plan 05 │
32
- User model │──┐ │ User API │──┐ │ Checkout UI
33
- └─────────────┘ │ └─────────────┘ │ └─────────────┘
34
- ┌─────────────┐ │ ┌─────────────┐ │
35
- Plan 02 │──┘ │ Plan 04 │──┘
36
- Product │ │ Product API
37
- └─────────────┘ └─────────────┘
38
-
39
- Total tasks: 5 Waves: 3 Est. time: depends on model speed
40
-
41
- Proceed? (yes/no)
42
- ```
43
-
44
- If the user says no: stop. Do not execute anything.
45
-
46
- ## Step 2 — Write pre-execution audit entry
47
-
48
- Append to `.planning/AUDIT.jsonl`:
49
- ```json
50
- {
51
- "id": "[uuid-v4]",
52
- "timestamp": "[ISO-8601]",
53
- "event": "phase_execution_started",
54
- "phase": [N],
55
- "wave_count": [total waves],
56
- "task_count": [total tasks],
57
- "agent": "mindforge-orchestrator",
58
- "session_id": "[session identifier]"
59
- }
60
- ```
61
-
62
- ## Step 3 — Execute waves using the wave executor
63
-
64
- Follow the complete protocol in `.mindforge/engine/wave-executor.md`.
65
-
66
- For each wave:
67
-
68
- ### Wave start
69
- Write to console:
70
- ```
71
- ━━━ Wave [W] of [total] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
72
- Starting [X] tasks in parallel...
73
- ```
74
-
75
- ### Per-task execution (inject context per `context-injector.md`)
76
- For each plan in the wave:
77
- 1. Load context package (per `context-injector.md`)
78
- 2. Execute the plan instructions
79
- - Run `<verify>` — capture exact output
80
- - If verify PASSES:
81
- - Run `<verify-visual>` via `visual-verify-executor.js`
82
- - If visual verify FAILS: stop and report (treat as verify failure)
83
- - Write SUMMARY-[N]-[M].md
84
- - Execute commit: `git add [files] && git commit -m "[type]([scope]): [task name]"`
85
- - Capture git SHA
86
- - Write AUDIT entry for task completion
87
- 5. If verify FAILS:
88
- - Write SUMMARY-[N]-[M].md with failure details
89
- - Write AUDIT entry for task failure
90
- - STOP this wave immediately
91
- - Report: "Task [plan ID] failed: [verify output]. Stopping Phase [N]."
92
- - Do not start next wave
93
- - Ask user: "Spawn debug agent to diagnose? (yes/no)"
94
-
95
- ### Wave completion (before starting next wave)
96
- After all tasks in wave complete:
97
- 1. Run: `[project test command]`
98
- 2. If tests fail:
99
- - Identify failing tests
100
- - Run `git log --oneline -[wave-task-count]` to see wave commits
101
- - Report which commit likely introduced the failure
102
- - Stop. Ask user how to proceed.
103
- 3. If tests pass:
104
- - Report: "Wave [W] complete. All [X] tasks passed. Tests passing. ✅"
105
- - Write WAVE-REPORT update
106
-
107
- ## Step 4 — Phase-level verification
108
-
109
- After all waves complete, run the verification pipeline:
110
-
111
- 1. Read every v1 requirement from REQUIREMENTS.md for this phase
112
- 2. For each requirement, verify it is implemented:
113
- - Search the codebase for the implementation
114
- - Check if a test covers it
115
- - Mark: ✅ implemented + tested | ⚠️ implemented, no test | ❌ not found
116
- 3. Write `.planning/phases/[N]/VERIFICATION.md`
117
- 4. Run the full test suite one final time
118
- 5. If any requirement is ❌: create a fix plan and report to user
119
-
120
- ## Step 5 — Update state and write wave report
121
-
122
- Write `.planning/phases/[N]/WAVE-REPORT-[N].md` (per template in wave-executor.md)
123
-
124
- Update STATE.md:
125
- ```markdown
126
- ## Current phase
127
- [N] — Execution complete ✅
128
-
129
- ## Last completed task
130
- Phase [N]: All [X] tasks completed across [W] waves.
131
-
132
- ## Next action
133
- Run /mindforge:verify-phase [N] for human acceptance testing.
134
- ```
135
-
136
- Update HANDOFF.json with completed phase info.
137
-
138
- Write final AUDIT entry:
139
- ```json
140
- {
141
- "id": "[uuid-v4]",
142
- "timestamp": "[ISO-8601]",
143
- "event": "phase_execution_completed",
144
- "phase": [N],
145
- "tasks_completed": [X],
146
- "waves_executed": [W],
147
- "commits": ["sha1", "sha2", "..."],
148
- "test_result": "passing",
149
- "agent": "mindforge-orchestrator"
150
- }
151
- ```
152
-
153
- ## Step 6 — Report to user
154
-
155
- ```
156
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
157
- ✅ Phase [N] execution complete
158
-
159
- Tasks completed : [X] / [X]
160
- Waves executed : [W]
161
- Commits made : [X]
162
- Tests : All passing
163
- Requirements : [X] / [X] implemented
164
-
165
- Next step: Run /mindforge:verify-phase [N] for UAT sign-off.
166
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
167
-
168
- ## Step 7 — Auto-capture check (when AUTO_CAPTURE_SKILLS=true)
169
-
170
- After all gates pass and the phase is verified:
171
-
172
- ```bash
173
- # Check if auto-capture is enabled
174
- CAPTURE=$(grep -m1 "^AUTO_CAPTURE_SKILLS=" MINDFORGE.md 2>/dev/null | cut -d= -f2 | tr -d ' ')
175
- if [ "$CAPTURE" = "true" ]; then
176
- node -e "
177
- const { detectPatterns, formatForPresentation } = require('./bin/skills-builder/pattern-detector');
178
- detectPatterns(${PHASE_NUM}).then(result => {
179
- const display = formatForPresentation(result);
180
- console.log(display);
181
- }).catch(err => console.error('[auto-capture] Error:', err.message));
182
- "
183
- fi
184
- ```
185
-
186
- If patterns are found: display the prompt and await user input.
187
- If user selects yes: run `/mindforge:learn --session` targeting this phase's SUMMARY files.
188
- If user selects no: write AUDIT entry `auto_capture_skipped` and continue.
189
- If no patterns found: exit silently (no noise in the output).
190
- ```
1
+ ---
2
+ name: mindforge:execute-phase
3
+ description: Execute the wave-based execution plan for a specific phase
4
+ argument-hint: [N]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - run_command
9
+ - list_dir
10
+ ---
11
+
12
+ <objective>
13
+ Coordinate the parallel execution of task plans for a phase using a wave-based approach, ensuring dependency integrity, automated verification, and audit logging.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/execute-phase.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS (Phase N)
22
+ Sources: .planning/phases/[N]/PLAN-*.md, STATE.md, REQUIREMENTS.md
23
+ Engine: wave-executor.md, dependency-parser.md, context-injector.md
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Pre-checks**: Verify phase status, plan existence, and requirement content. Run dependency parser.
28
+ 2. **Display Wave Plan**: Present the wave-based execution graph and wait for user approval.
29
+ 3. **Audit Initiation**: Log `phase_execution_started` in `AUDIT.jsonl`.
30
+ 4. **Wave Execution**:
31
+ - For each wave: Execute tasks in parallel.
32
+ - For each task: Inject context, run implementation, run `<verify>`, and commit with SHA.
33
+ - If any task fails: Stop the wave and offer debugging.
34
+ 5. **Phase Verification**: Check requirement coverage in the implementation and write `VERIFICATION.md`.
35
+ 6. **Update State**: Update `STATE.md`, `HANDOFF.json`, and write `WAVE-REPORT-[N].md`.
36
+ 7. **Auto-capture**: If enabled, detect new patterns/skills from the implemented phase.
37
+ </process>
@@ -1,21 +1,31 @@
1
- # MindForge — Health Command
2
- # Usage: /mindforge:health [--repair] [--category C] [--verbose]
1
+ ---
2
+ name: mindforge:health
3
+ description: Run the MindForge health engine to diagnose and repair issues
4
+ argument-hint: [--repair] [--category C] [--verbose]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ ---
3
10
 
4
- Run all seven health-engine categories from `.mindforge/intelligence/health-engine.md`.
11
+ <objective>
12
+ Ensure the MindForge environment and project state are valid, secure, and optimally configured by running a suite of diagnostic checks across multiple categories.
13
+ </objective>
5
14
 
6
- ## Output
7
- - category status summary
8
- - errors (must fix)
9
- - warnings (should fix)
10
- - informational signals
15
+ <execution_context>
16
+ .claude/commands/mindforge/health.md
17
+ </execution_context>
11
18
 
12
- ## Flags
13
- - `--repair`: apply safe auto-repair only
14
- - `--category`: one of `installation|context|skills|personas|state|integrations|security`
15
- - `--verbose`: include passing checks and exact inspected values
19
+ <context>
20
+ Engine: .mindforge/intelligence/health-engine.md
21
+ Categories: installation, context, skills, personas, state, integrations, security.
22
+ Flags: --repair (auto-fix), --verbose (full details).
23
+ </context>
16
24
 
17
- ## AUDIT
18
- Append:
19
- ```json
20
- { "event": "health_check_completed", "errors": 0, "warnings": 0, "repaired": 0 }
21
- ```
25
+ <process>
26
+ 1. **Initialize Diagnostics**: Load the health engine and target specifically requested categories (or all by default).
27
+ 2. **Execute Checks**: Scan for configuration errors, missing files, security misconfigurations, and state inconsistencies.
28
+ 3. **Repair (Optional)**: If `--repair` is set, apply safe automated fixes for detected issues.
29
+ 4. **Report Findings**: Categorize results into Errors (must fix), Warnings (should fix), and Info.
30
+ 5. **Audit**: Log `health_check_completed` with counts of errors, warnings, and repairs.
31
+ </process>