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,23 +1,29 @@
1
- Show all available MindForge commands.
1
+ ---
2
+ name: mindforge:help
3
+ description: Show all available MindForge commands and current project summary
4
+ argument-hint: none
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
2
9
 
3
- ## Pre-check
4
- If `.planning/STATE.md` exists, read it.
5
- If `.planning/PROJECT.md` is missing, treat the project as "Not initialised".
10
+ <objective>
11
+ Provide a searchable, categorized directory of all accessible MindForge commands, along with a quick snapshot of the project's current state.
12
+ </objective>
6
13
 
7
- 1. Scan every .md file in `.claude/commands/mindforge/`
8
- 2. For each file, extract the first non-empty line as the command description
9
- 3. Display as a clean table:
14
+ <execution_context>
15
+ .claude/commands/mindforge/help.md
16
+ </execution_context>
10
17
 
11
- | Command | Description |
12
- |------------------------------|----------------------------------------------|
13
- | /mindforge:help | Show all available commands |
14
- | /mindforge:init-project | ... |
15
- | ... | ... |
18
+ <context>
19
+ Discovery: Scans `.claude/commands/mindforge/*.md`
20
+ State: PROJECT.md and STATE.md
21
+ </context>
16
22
 
17
- 4. After the table, print:
18
- "Current project: [read PROJECT.md first line, or 'Not initialised']"
19
- "Current phase: [read STATE.md current phase, or 'None']"
20
- "Next step: [read STATE.md next action]"
21
-
22
- 5. If CLAUDE.md has not been read this session, remind the user to ensure
23
- it is loaded as the agent's system context.
23
+ <process>
24
+ 1. **Command Scan**: List all markdown definitions in the command directory and extract their first-line descriptions or YAML metadata.
25
+ 2. **Read Project Info**: Summarize the current project name, active phase, and recommended next step.
26
+ 3. **Format Dashboard**: Render a clean table of commands and descriptions.
27
+ 4. **Verify Context**: If `CLAUDE.md` hasn't been read in the current session, remind the user to load it as the agent's context.
28
+ 5. **Display**: Present the help table and project summary.
29
+ </process>
@@ -1,131 +1,37 @@
1
- # MindForge — Init Org Command
2
- # Usage: /mindforge:init-org [--org-name "Name"] [--update]
3
-
4
- ## Purpose
5
- Set up MindForge at the organisation level — create standardised org-level
6
- context files that are shared across ALL projects in the organisation.
7
-
8
- Intended to be run ONCE by a platform engineer or engineering lead.
9
- Output is committed to a shared `mindforge-org-config` repository
10
- and distributed to projects as a git submodule or npm package.
11
-
12
- ## Step 1 — Gather org information
13
-
14
- Ask (one question at a time):
15
- 1. "What is your organisation name?"
16
- 2. "Describe what your organisation builds in 1-2 sentences."
17
- 3. "What is your primary tech stack? (describe in plain English)"
18
- 4. "What is your default deployment target? (AWS / GCP / Azure / self-hosted / hybrid)"
19
- 5. "What regulatory frameworks apply to your organisation?"
20
- Options: GDPR / HIPAA / SOC 2 / PCI-DSS / ISO 27001 / None / Multiple
21
- 6. "What is your source control platform?" (GitHub / GitLab / Bitbucket / Azure DevOps)
22
- 7. "What is your issue tracker?" (Jira / GitHub Issues / Linear / Azure DevOps / None)
23
- 8. "Who are your Tier 3 compliance approvers? (email addresses, comma-separated)"
24
-
25
- ## Step 2 — Generate org-level context files
26
-
27
- Create (or update with `--update`) these files:
28
-
29
- ### `.mindforge/org/ORG.md`
30
- Populated from answers with:
31
- - Organisation identity and mission
32
- - Default tech stack with version recommendations
33
- - Architecture defaults
34
- - Team conventions
35
- - Compliance requirements
36
-
37
- ### `.mindforge/org/CONVENTIONS.md`
38
- Generate sensible defaults based on the tech stack detected.
39
- For TypeScript/Node.js stacks: strict TypeScript, ESLint, Conventional Commits
40
- For Python stacks: ruff, mypy, black formatting
41
- For Go: standard Go toolchain conventions
42
- Mark each section clearly: [DEFAULT] or [CUSTOMISE THIS]
43
-
44
- ### `.mindforge/org/SECURITY.md`
45
- Generate based on declared compliance frameworks:
46
- - GDPR → include GDPR-specific policies
47
- - HIPAA → include PHI handling requirements
48
- - PCI-DSS → include card data handling policies
49
- - SOC 2 → include access control requirements
50
- Mark critical sections: [REVIEW WITH SECURITY TEAM]
51
-
52
- ### `.mindforge/org/TOOLS.md`
53
- Generate approved library list based on tech stack.
54
- Include common forbidden libraries (moment.js, request, etc.)
55
- Mark: [ADD YOUR APPROVED LIBRARIES]
56
-
57
- ### `.mindforge/org/integrations/INTEGRATIONS-CONFIG.md`
58
- Pre-populate based on declared platforms:
59
- - GitHub → fill GitHub config section
60
- - Jira → fill Jira config section
61
- Mark credential fields clearly: [SET VIA ENVIRONMENT VARIABLE]
62
-
63
- ### `.mindforge/governance/GOVERNANCE-CONFIG.md`
64
- Pre-populate based on declared approvers and compliance frameworks.
65
- Higher compliance burden → lower Tier 2/3 thresholds.
66
- Stricter approval SLAs for HIPAA/PCI-DSS organisations.
67
-
68
- ## Step 3 — Generate skills recommendation
69
-
70
- Based on the tech stack and compliance requirements, recommend skills to install:
71
-
72
- ```
73
- Recommended skills for your tech stack:
74
-
75
- Core skills (already included — v0.6.0):
76
- ✅ security-review, code-quality, api-design, testing-standards, documentation,
77
- performance, accessibility, data-privacy, incident-response, database-patterns
78
-
79
- Additional skills recommended for your stack:
80
- [tech-stack-specific recommendations from registry]
81
-
82
- For your compliance requirements:
83
- [compliance-specific skill recommendations]
84
-
85
- Install all recommendations?
86
- yes → npx mindforge-skills install [list]
87
- no → I'll show you the install commands for each
88
- ```
89
-
90
- ## Step 4 — Create distribution package
91
-
92
- Offer to create an org-skills npm package for distributing org-level config:
93
-
94
- ```
95
- Create `@your-org/mindforge-config` npm package?
96
- This package will distribute your org-level MindForge configuration
97
- to all projects in your organisation via: npx @your-org/mindforge-config
98
-
99
- Files included:
100
- .mindforge/org/ORG.md
101
- .mindforge/org/CONVENTIONS.md
102
- .mindforge/org/SECURITY.md
103
- .mindforge/org/TOOLS.md
104
- .mindforge/org/skills/MANIFEST.md
105
- .mindforge/org/integrations/INTEGRATIONS-CONFIG.md (without credentials)
106
- .mindforge/governance/GOVERNANCE-CONFIG.md (without credentials)
107
- ```
108
-
109
- ## Step 5 — Write AUDIT entry and report
110
-
111
- ```json
112
- { "event": "org_initialised", "org_name": "[name]", "compliance_frameworks": [...], "skills_recommended": [...] }
113
- ```
114
-
115
- Report:
116
- ```
117
- ✅ MindForge organisation configuration complete.
118
-
119
- Files created:
120
- .mindforge/org/ORG.md
121
- .mindforge/org/CONVENTIONS.md
122
- .mindforge/org/SECURITY.md
123
- .mindforge/org/TOOLS.md
124
- .mindforge/governance/GOVERNANCE-CONFIG.md
125
-
126
- Next steps:
127
- 1. Review each file — look for [CUSTOMISE THIS] markers
128
- 2. Fill in SECURITY.md with your security team
129
- 3. Commit to your org's mindforge-config repository
130
- 4. Share with all projects: npx @your-org/mindforge-config (if you created the package)
131
- ```
1
+ ---
2
+ name: mindforge:init-org
3
+ description: Set up MindForge at the organization level with standardized context
4
+ argument-hint: [--org-name "Name"] [--update]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - write_to_file
9
+ - view_file
10
+ ---
11
+
12
+ <objective>
13
+ Establish a consistent engineering culture and governance framework by generating organization-wide context files, security policies, and tech stack defaults for all projects.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/init-org.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Scope: Organization-wide (Tier 1/2).
22
+ Output: Shared `.mindforge/org/` repository or npm package.
23
+ Governance: Defines Tier 2/3 approver lists and compliance burdens.
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Interview**: Conduct a structured interview about org identity, tech stack, deployment defaults, and compliance (GDPR, HIPAA, etc.).
28
+ 2. **Generate Defaults**:
29
+ - `ORG.md`: Mission and global architecture defaults.
30
+ - `CONVENTIONS.md`: Tech-stack-specific coding standards.
31
+ - `SECURITY.md`: Compliance-mapped security policies.
32
+ - `TOOLS.md`: Approved library and dependency list.
33
+ 3. **Configuration**: Pre-populate `INTEGRATIONS-CONFIG.md` and `GOVERNANCE-CONFIG.md`.
34
+ 4. **Skill Recommendation**: Suggest core and compliance skills to install org-wide.
35
+ 5. **Distribution**: Offer to package the configuration into an npm package for project-wide inheritance.
36
+ 6. **Audit**: Log `org_initialised` with frameworks and recommended skills.
37
+ </process>
@@ -1,155 +1,40 @@
1
- Initialise a new project under the MindForge framework.
2
-
3
- ## Pre-check
4
- Read `.planning/PROJECT.md`. If it already exists and contains content,
5
- ask: "A project is already initialised. Do you want to reinitialise? (yes/no)"
6
- Stop if the user says no.
7
-
8
- ## Step 1 — Requirements interview
9
- Ask these questions one at a time. Wait for the full answer before asking the next.
10
- Do not batch them. Do not rush.
11
-
12
- 1. "What is this project? Give me a 1-2 sentence description."
13
- 2. "Who is the primary user? Describe them specifically."
14
- 3. "What problem does this solve for them? What is the pain today?"
15
- 4. "What tech stack do you want to use? (Say 'recommend one' if unsure.)"
16
- — If they say recommend: ask 3 clarifying questions about team size,
17
- deployment environment, and performance requirements. Then recommend
18
- a specific stack with brief rationale for each choice.
19
- 5. "What is explicitly NOT in scope for v1? Name at least 3 things."
20
- 6. "What does a successful v1 look like? How will you know it worked?"
21
- 7. "Are there any compliance requirements? (GDPR, HIPAA, SOC2, PCI-DSS, none)"
22
-
23
- ## Step 2 — Create context files
24
-
25
- Write `.planning/PROJECT.md`:
26
- ```markdown
27
- # [Project Name]
28
- [One-line description]
29
-
30
- ## Problem statement
31
- [From answer 3]
32
-
33
- ## Target user
34
- [From answer 2]
35
-
36
- ## Tech stack
37
- | Layer | Choice | Rationale |
38
- |------------|-----------------|--------------------------------|
39
- | [layer] | [technology] | [why] |
40
-
41
- ## v1 scope — IN
42
- [Bullet list of what is included]
43
-
44
- ## v1 scope — OUT (explicitly excluded)
45
- [Bullet list from answer 5]
46
-
47
- ## Success criteria
48
- [From answer 6]
49
-
50
- ## Compliance
51
- [From answer 7]
52
-
53
- ## Initialised
54
- [ISO 8601 timestamp]
55
- ```
56
-
57
- Write `.planning/REQUIREMENTS.md`:
58
- ```markdown
59
- # Requirements — [Project Name]
60
-
61
- ## Functional requirements
62
- | ID | Requirement | Acceptance criterion | Scope |
63
- |-------|--------------------------|--------------------------------|-------|
64
- | FR-01 | | | v1 |
65
-
66
- ## Non-functional requirements
67
- | ID | Category | Requirement | Measure |
68
- |--------|---------------|--------------------------------|----------------|
69
- | NFR-01 | Performance | | |
70
- | NFR-02 | Security | | |
71
- | NFR-03 | Availability | | |
72
-
73
- ## Out of scope
74
- [Items explicitly excluded from v1]
75
- ```
76
-
77
- Write `.planning/STATE.md`:
78
- ```markdown
79
- # MindForge — Project State
80
-
81
- ## Status
82
- Project initialised. No phases started.
83
-
84
- ## Current phase
85
- None
86
-
87
- ## Last completed task
88
- Project initialisation
89
-
90
- ## Next action
91
- Run /mindforge:plan-phase 1 to begin planning Phase 1.
92
-
93
- ## Decisions made
94
- - Project scope defined (see PROJECT.md)
95
- - Tech stack chosen (see PROJECT.md)
96
-
97
- ## Active blockers
98
- None
99
-
100
- ## Last updated
101
- [ISO 8601 timestamp]
102
- ```
103
-
104
- Write `.planning/HANDOFF.json`:
105
- ```json
106
- {
107
- "schema_version": "1.0.0",
108
- "project": "[project name]",
109
- "phase": null,
110
- "plan": null,
111
- "plan_step": null,
112
- "last_completed_task": {
113
- "description": "Project initialisation",
114
- "commit_sha": null,
115
- "verified": true
116
- },
117
- "next_task": "Run /mindforge:plan-phase 1",
118
- "in_progress": {
119
- "file": null,
120
- "intent": null,
121
- "completed_steps": [],
122
- "remaining_steps": []
123
- },
124
- "blockers": [],
125
- "decisions_needed": [],
126
- "context_refs": [
127
- ".planning/PROJECT.md",
128
- ".planning/STATE.md",
129
- ".planning/REQUIREMENTS.md"
130
- ],
131
- "agent_notes": "Fresh project. Read PROJECT.md and REQUIREMENTS.md before planning.",
132
- "session_summary": "Project initialised.",
133
- "recent_files": [
134
- ".planning/PROJECT.md",
135
- ".planning/REQUIREMENTS.md",
136
- ".planning/STATE.md",
137
- ".planning/HANDOFF.json"
138
- ],
139
- "recent_commits": [],
140
- "updated_at": "[ISO 8601 timestamp]",
141
- "_warning": "Never store secrets, tokens, or passwords in this file. It is tracked in git."
142
- }
143
- ```
144
-
145
- ## Step 3 — Confirm and guide
146
- Tell the user:
147
- "✅ MindForge project initialised.
148
-
149
- Files created:
150
- .planning/PROJECT.md
151
- .planning/REQUIREMENTS.md
152
- .planning/STATE.md
153
- .planning/HANDOFF.json
154
-
155
- Next step: Run /mindforge:plan-phase 1 to plan your first phase."
1
+ ---
2
+ name: mindforge:init-project
3
+ description: Initialise a new project under the MindForge framework
4
+ argument-hint: none
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - list_dir
9
+ ---
10
+
11
+ <objective>
12
+ Initialise a new project by conducting a structured requirements interview, setting up the `.planning/` directory, and creating the foundational context files (PROJECT.md, REQUIREMENTS.md, STATE.md, HANDOFF.json).
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/init-project.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Target Directory: .planning/
21
+ State: Checks if .planning/PROJECT.md already exists before re-initialising.
22
+ </context>
23
+
24
+ <process>
25
+ 1. **Pre-check**: Read `.planning/PROJECT.md`. If it exists, ask the user if they want to re-initialise.
26
+ 2. **Requirements Interview**: Ask the following 7 questions one by one:
27
+ - Description of the project.
28
+ - Primary user description.
29
+ - Problem statement.
30
+ - Tech stack (recommend one if requested).
31
+ - Scope exclusions (v1).
32
+ - Success criteria.
33
+ - Compliance requirements.
34
+ 3. **Generate Context Files**:
35
+ - Write `.planning/PROJECT.md` with the interview results.
36
+ - Write `.planning/REQUIREMENTS.md` with functional and non-functional tables.
37
+ - Write `.planning/STATE.md` set to "Project initialised".
38
+ - Write `.planning/HANDOFF.json` with initial state and context references.
39
+ 4. **Finalize**: Confirm the creation of files and guide the user to the next step (`/mindforge:plan-phase 1`).
40
+ </process>
@@ -1,15 +1,32 @@
1
- # MindForge — Install Skill Command
2
- # Usage: /mindforge:install-skill [skill-name|package-name] [--tier 1|2|3] [--registry URL]
3
-
4
- Follow the full installation protocol from `.mindforge/distribution/registry-client.md`.
5
-
6
- Steps:
7
- 1. Resolve package name from skill name
8
- 2. Check if already installed (skip if same version, offer upgrade if newer)
9
- 3. Fetch from registry (npm or private if --registry specified)
10
- 4. Validate the skill (Level 1 + Level 2 from skill-validator.md)
11
- 5. Run injection guard check
12
- 6. Install to tier directory (default: Tier 2 org skill)
13
- 7. Register in MANIFEST.md
14
- 8. Write AUDIT entry
15
- 9. Confirm: "Run /mindforge:skills validate to verify installation"
1
+ ---
2
+ name: mindforge:install-skill
3
+ description: Install a skill from a remote registry or package
4
+ argument-hint: [skill-name|package-name] [--tier 1|2|3] [--registry URL]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - write_to_file
9
+ ---
10
+
11
+ <objective>
12
+ Enable the rapid extension of agent capabilities by resolving, downloading, validating, and registering pre-built skills from official or private registries.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/install-skill.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Registry Client: registry-client.md
21
+ Validation: Level 1 + Level 2 via skill-validator.md.
22
+ Security: Enforces injection guards before installation.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Resolve**: Map the skill name to its registry package name.
27
+ 2. **Fetch**: Download the package to a secure temporary directory.
28
+ 3. **Validate**: Run strict structural and security checks (Injection guards, frontmatter validation).
29
+ 4. **Deploy**: Move the skill to the target tier directory (Default: Tier 2).
30
+ 5. **Register**: Append the skill to `MANIFEST.md`.
31
+ 6. **Audit**: Log `skill_installed` event.
32
+ </process>
@@ -1,142 +1,36 @@
1
- # MindForge v2 — Learn Command
2
- # Usage: /mindforge:learn [url|path|--session|npm:package] [--name skill-name] [--tier project|org|core]
3
- # Version: v2.0.0-alpha.6
4
-
5
- ## Purpose
6
- Convert any knowledge source into a reusable, validated, committed MindForge SKILL.md.
7
- Feed Claude your documentation and it writes down what it learned — for every future session.
8
-
9
- ## The insight
10
- Every developer on your team already knows how Prisma works, how your internal API
11
- conventions are structured, how your CI pipeline behaves. That knowledge lives in their
12
- heads and in documentation. `/mindforge:learn` captures it permanently as skills that
13
- load automatically whenever relevant work begins.
14
-
15
- ## Usage examples
16
-
17
- ### Learn from external documentation
18
- ```
19
- /mindforge:learn https://docs.prisma.io/concepts/components/prisma-schema
20
- /mindforge:learn https://stripe.com/docs/webhooks
21
- /mindforge:learn https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html
22
- ```
23
- Fetches the page (with SSRF protection)
24
- → Uses Gemini 2.5 Pro (1M context) for large docs, claude-sonnet-4-6 for smaller ones
25
- → Extracts 10 patterns + 15-25 trigger keywords
26
- → Writes SKILL.md + scores it + presents for approval
27
-
28
- ### Learn from local documentation
29
- ```
30
- /mindforge:learn ./docs/api-conventions.md
31
- /mindforge:learn ./docs/internal/
32
- /mindforge:learn ./CONTRIBUTING.md
33
- ```
34
- Reads local files directly (no model call for reading, only for analysis)
35
- Perfect for: internal API docs, team conventions, onboarding guides
36
-
37
- ### Learn from npm package docs
38
- ```
39
- /mindforge:learn npm:zod
40
- /mindforge:learn npm:drizzle-orm
41
- /mindforge:learn npm:@tanstack/react-query
42
- ```
43
- → Fetches README from npm registry
44
- → Extracts patterns from the package documentation
45
-
46
- ### Learn from current session
47
- ```
48
- /mindforge:learn --session
49
- ```
50
- → Analyses SUMMARY files from the most recent phase
51
- → Finds patterns that appeared across 2+ tasks
52
- → Generates up to 3 skills from what was learned (focused: quality over quantity)
53
- → Does NOT repeat patterns already in the knowledge base
54
-
55
- ## Flags
56
-
57
- ### --name [skill-name]
58
- Override the auto-generated skill name (kebab-case).
59
- Default: inferred from the URL domain/path or file name.
60
- Example: `/mindforge:learn ./docs/prisma-patterns.md --name prisma-advanced`
61
-
62
- ### --tier [project|org|core]
63
- Where to install the skill (default: project).
64
- - project: only loads in this project (T3)
65
- - org: loads in all projects using this org config (T2)
66
- - core: loads everywhere (T1 — use sparingly)
67
-
68
- ### --model [model-id]
69
- Override the model used for analysis.
70
- Default: RESEARCH_MODEL for large content (>50K chars), EXECUTOR_MODEL for small.
71
-
72
- ## Output format
73
-
74
- ```
75
- 📚 Learning from: https://docs.prisma.io/...
76
-
77
- 🔍 Fetching content... done (148K chars)
78
- 🧠 Extracting patterns (gemini-2.5-pro)...
79
- Step 1/3 — Extracting patterns... done (10 patterns)
80
- Step 2/3 — Generating triggers... done (22 triggers)
81
- Step 3/3 — Writing SKILL.md... done
82
-
83
- 📊 Skill Quality Score: 84/100 (Good — can register + publish)
84
- trigger_coverage : 26/30 ✅
85
- mandatory_actions : 21/25 ✅
86
- code_examples : 17/20 ✅
87
- self_check : 12/15 ✅
88
- injection_safe : 10/10 ✅
89
- no_placeholders : 9/10 ✅
90
- version_history : 8/10 ⚠️
91
-
92
- Preview (top 3 patterns):
93
- 1. [CRITICAL] Always define explicit cascade behaviour
94
- "Set onDelete on every @relation — never rely on database defaults"
95
- 2. [HIGH] Use compound indexes for cursor pagination
96
- "Always index (createdAt, id) together for reliable cursor pagination"
97
- 3. [HIGH] Never use String for UUID fields in Prisma schema
98
- "Use @id @default(uuid()) with the String type — Prisma handles this"
99
-
100
- Triggers (22): prisma schema, schema.prisma, @relation, prisma migrate,
101
- @id @default, prisma.findMany, prisma generate, model definition...
102
-
103
- Skill file: .mindforge/skills/prisma-schema/SKILL.md
104
-
105
- [ y ] Register in project tier and commit
106
- [ n ] Discard
107
- [ e ] Edit SKILL.md before registering
108
- [ p ] Register AND publish to community marketplace (score ≥ 80 ✅)
109
- ```
110
-
111
- ## After registration
112
-
113
- ```
114
- ✅ Skill registered: prisma-schema (T3 Project)
115
-
116
- Will auto-load when tasks contain:
117
- "prisma schema", "schema.prisma", "@relation", "prisma migrate"...
118
-
119
- Committed: feat(skills): learn prisma-schema from docs.prisma.io
120
-
121
- Next: /mindforge:skills info prisma-schema
122
- ```
123
-
124
- ## Integration with auto-capture
125
- When `AUTO_CAPTURE_SKILLS=true` in MINDFORGE.md:
126
- `/mindforge:learn --session` is called automatically after each phase completion.
127
- The prompt is shown; if no patterns found, it exits silently (no noise).
128
-
129
- ## AUDIT entry
130
- ```json
131
- {
132
- "event": "skill_learned",
133
- "source_type": "url|local|session|npm",
134
- "source": "[url or path]",
135
- "skill_name": "prisma-schema",
136
- "quality_score": 84,
137
- "pattern_count": 10,
138
- "trigger_count": 22,
139
- "tier": "project",
140
- "cost_usd": 0.31
141
- }
142
- ```
1
+ ---
2
+ name: mindforge:learn
3
+ description: Convert any knowledge source into a reusable, validated MindForge skill
4
+ argument-hint: [url|path|--session|npm:package] [--name name] [--tier T]
5
+ allowed-tools:
6
+ - read_url_content
7
+ - run_command
8
+ - view_file
9
+ - write_to_file
10
+ ---
11
+
12
+ <objective>
13
+ Capture institutional or technical knowledge from external documentation, local files, npm packages, or the current session and transform it into a structured, validated, and automatically-loading `SKILL.md` file.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/learn.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Sources: URLs (with SSRF protection), local markdown/directories, npm READMEs, or session summaries.
22
+ Models: Gemini 2.0 Pro (for large docs), Claude 3.5 Sonnet (for analysis).
23
+ Tiers: project (T3), org (T2), core (T1).
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Ingest Content**: Fetch the URL, read the local path, or pull the npm README.
28
+ 2. **Analyze Patterns**:
29
+ - Use high-context models to extract key architectural patterns.
30
+ - Generate 15-25 trigger keywords for automatic activation.
31
+ 3. **Draft Skill**: Write the initial `SKILL.md` following the standard template.
32
+ 4. **Score Quality**: Audit the draft against the quality rubric (triggers, actions, examples, safety).
33
+ 5. **Review**: Present the skill and its score (0-100) to the user for approval, editing, or registration.
34
+ 6. **Register**: Add the skill to the appropriate manifest tier and commit the change.
35
+ 7. **Audit**: Log `skill_learned` with source, name, quality score, and cost.
36
+ </process>