mindforge-cc 11.3.0 → 11.3.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 (576) hide show
  1. package/.agent/forge/help.md +11 -0
  2. package/.agent/forge/init-project.md +36 -0
  3. package/.agent/forge/plan-phase.md +34 -0
  4. package/.agent/mindforge/add-backlog.md +32 -0
  5. package/.agent/mindforge/agent-deploy.md +34 -0
  6. package/.agent/mindforge/agent-design.md +31 -0
  7. package/.agent/mindforge/agent-eval.md +27 -0
  8. package/.agent/mindforge/agent-memory.md +27 -0
  9. package/.agent/mindforge/agent.md +31 -0
  10. package/.agent/mindforge/ai-cost.md +31 -0
  11. package/.agent/mindforge/ai-safety.md +37 -0
  12. package/.agent/mindforge/analytics.md +28 -0
  13. package/.agent/mindforge/approve.md +22 -0
  14. package/.agent/mindforge/audit.md +34 -0
  15. package/.agent/mindforge/auth-flow.md +76 -0
  16. package/.agent/mindforge/auto.md +26 -0
  17. package/.agent/mindforge/benchmark.md +37 -0
  18. package/.agent/mindforge/brd.md +90 -0
  19. package/.agent/mindforge/browse.md +30 -0
  20. package/.agent/mindforge/build-opt.md +31 -0
  21. package/.agent/mindforge/build-vs-buy.md +29 -0
  22. package/.agent/mindforge/cache.md +30 -0
  23. package/.agent/mindforge/causal.md +31 -0
  24. package/.agent/mindforge/cdn.md +34 -0
  25. package/.agent/mindforge/change.md +37 -0
  26. package/.agent/mindforge/cli.md +30 -0
  27. package/.agent/mindforge/cluster-instincts.md +35 -0
  28. package/.agent/mindforge/code-tour.md +85 -0
  29. package/.agent/mindforge/communicate.md +37 -0
  30. package/.agent/mindforge/complete-milestone.md +22 -0
  31. package/.agent/mindforge/compliance.md +31 -0
  32. package/.agent/mindforge/consult.md +37 -0
  33. package/.agent/mindforge/context-budget.md +70 -0
  34. package/.agent/mindforge/contract-test.md +30 -0
  35. package/.agent/mindforge/cost-report.md +44 -0
  36. package/.agent/mindforge/costs.md +15 -0
  37. package/.agent/mindforge/council.md +35 -0
  38. package/.agent/mindforge/create-skill.md +34 -0
  39. package/.agent/mindforge/cross-review.md +21 -0
  40. package/.agent/mindforge/dashboard.md +102 -0
  41. package/.agent/mindforge/data-mesh.md +31 -0
  42. package/.agent/mindforge/data-model.md +75 -0
  43. package/.agent/mindforge/data-pipeline.md +34 -0
  44. package/.agent/mindforge/de-slop.md +33 -0
  45. package/.agent/mindforge/debug.md +133 -0
  46. package/.agent/mindforge/degrade.md +31 -0
  47. package/.agent/mindforge/delegate.md +37 -0
  48. package/.agent/mindforge/deploy.md +32 -0
  49. package/.agent/mindforge/design-tokens.md +80 -0
  50. package/.agent/mindforge/discuss-phase.md +142 -0
  51. package/.agent/mindforge/dmux.md +32 -0
  52. package/.agent/mindforge/do.md +31 -0
  53. package/.agent/mindforge/ecommerce.md +31 -0
  54. package/.agent/mindforge/edge.md +34 -0
  55. package/.agent/mindforge/edtech.md +31 -0
  56. package/.agent/mindforge/embeddings.md +37 -0
  57. package/.agent/mindforge/environments.md +31 -0
  58. package/.agent/mindforge/eval.md +33 -0
  59. package/.agent/mindforge/events.md +30 -0
  60. package/.agent/mindforge/evolve-skills.md +49 -0
  61. package/.agent/mindforge/execute-phase.md +200 -0
  62. package/.agent/mindforge/experiment.md +28 -0
  63. package/.agent/mindforge/feature-flags.md +30 -0
  64. package/.agent/mindforge/feature-store.md +31 -0
  65. package/.agent/mindforge/finops.md +31 -0
  66. package/.agent/mindforge/fintech.md +31 -0
  67. package/.agent/mindforge/flutter.md +37 -0
  68. package/.agent/mindforge/gaming.md +31 -0
  69. package/.agent/mindforge/graphql.md +31 -0
  70. package/.agent/mindforge/health.md +31 -0
  71. package/.agent/mindforge/healthcare.md +31 -0
  72. package/.agent/mindforge/help.md +33 -0
  73. package/.agent/mindforge/hire.md +37 -0
  74. package/.agent/mindforge/hitl.md +27 -0
  75. package/.agent/mindforge/i18n.md +31 -0
  76. package/.agent/mindforge/idempotent.md +31 -0
  77. package/.agent/mindforge/init-org.md +135 -0
  78. package/.agent/mindforge/init-project.md +170 -0
  79. package/.agent/mindforge/install-skill.md +28 -0
  80. package/.agent/mindforge/introspect.md +46 -0
  81. package/.agent/mindforge/iot.md +31 -0
  82. package/.agent/mindforge/knowledge-graph.md +37 -0
  83. package/.agent/mindforge/lakehouse.md +31 -0
  84. package/.agent/mindforge/lead.md +31 -0
  85. package/.agent/mindforge/learn-instinct.md +58 -0
  86. package/.agent/mindforge/learn.md +147 -0
  87. package/.agent/mindforge/learning.md +20 -0
  88. package/.agent/mindforge/llm-route.md +37 -0
  89. package/.agent/mindforge/load-test.md +30 -0
  90. package/.agent/mindforge/logistics.md +31 -0
  91. package/.agent/mindforge/map-codebase.md +302 -0
  92. package/.agent/mindforge/market-research.md +94 -0
  93. package/.agent/mindforge/marketplace.md +124 -0
  94. package/.agent/mindforge/mcp-server.md +88 -0
  95. package/.agent/mindforge/meeting-design.md +37 -0
  96. package/.agent/mindforge/metrics.md +26 -0
  97. package/.agent/mindforge/microservices.md +64 -0
  98. package/.agent/mindforge/migrate.md +44 -0
  99. package/.agent/mindforge/migration-mgmt.md +31 -0
  100. package/.agent/mindforge/milestone.md +16 -0
  101. package/.agent/mindforge/mobile.md +37 -0
  102. package/.agent/mindforge/monorepo.md +30 -0
  103. package/.agent/mindforge/multi-tenant.md +31 -0
  104. package/.agent/mindforge/multimodal.md +37 -0
  105. package/.agent/mindforge/new-runtime.md +23 -0
  106. package/.agent/mindforge/next.md +109 -0
  107. package/.agent/mindforge/note.md +35 -0
  108. package/.agent/mindforge/observability-platform.md +31 -0
  109. package/.agent/mindforge/observability.md +75 -0
  110. package/.agent/mindforge/offline.md +37 -0
  111. package/.agent/mindforge/onboard.md +37 -0
  112. package/.agent/mindforge/orchestrate.md +74 -0
  113. package/.agent/mindforge/payments.md +28 -0
  114. package/.agent/mindforge/pipeline.md +84 -0
  115. package/.agent/mindforge/plan-phase.md +131 -0
  116. package/.agent/mindforge/plan-write.md +95 -0
  117. package/.agent/mindforge/plant-seed.md +31 -0
  118. package/.agent/mindforge/platform.md +31 -0
  119. package/.agent/mindforge/plugins.md +44 -0
  120. package/.agent/mindforge/pr-review.md +45 -0
  121. package/.agent/mindforge/privacy-eng.md +31 -0
  122. package/.agent/mindforge/product-spec.md +90 -0
  123. package/.agent/mindforge/profile-team.md +27 -0
  124. package/.agent/mindforge/prompt.md +78 -0
  125. package/.agent/mindforge/proofread.md +87 -0
  126. package/.agent/mindforge/publish-skill.md +23 -0
  127. package/.agent/mindforge/push-notify.md +37 -0
  128. package/.agent/mindforge/pwa.md +37 -0
  129. package/.agent/mindforge/qa.md +20 -0
  130. package/.agent/mindforge/quality-audit.md +34 -0
  131. package/.agent/mindforge/queue.md +31 -0
  132. package/.agent/mindforge/quick.md +139 -0
  133. package/.agent/mindforge/rag.md +30 -0
  134. package/.agent/mindforge/rate-limit.md +31 -0
  135. package/.agent/mindforge/react-native.md +37 -0
  136. package/.agent/mindforge/realtime-analytics.md +31 -0
  137. package/.agent/mindforge/record-learning.md +22 -0
  138. package/.agent/mindforge/release.md +14 -0
  139. package/.agent/mindforge/remember.md +30 -0
  140. package/.agent/mindforge/research.md +16 -0
  141. package/.agent/mindforge/retro.md +28 -0
  142. package/.agent/mindforge/retrospective.md +31 -0
  143. package/.agent/mindforge/review-backlog.md +34 -0
  144. package/.agent/mindforge/review-guide.md +63 -0
  145. package/.agent/mindforge/review.md +161 -0
  146. package/.agent/mindforge/rfc.md +34 -0
  147. package/.agent/mindforge/santa.md +33 -0
  148. package/.agent/mindforge/secrets-mgmt.md +31 -0
  149. package/.agent/mindforge/secrets.md +31 -0
  150. package/.agent/mindforge/security-scan.md +242 -0
  151. package/.agent/mindforge/serverless.md +34 -0
  152. package/.agent/mindforge/session-report.md +39 -0
  153. package/.agent/mindforge/ship.md +111 -0
  154. package/.agent/mindforge/skills.md +145 -0
  155. package/.agent/mindforge/status.md +113 -0
  156. package/.agent/mindforge/steer.md +17 -0
  157. package/.agent/mindforge/stream.md +31 -0
  158. package/.agent/mindforge/sync-confluence.md +15 -0
  159. package/.agent/mindforge/sync-jira.md +16 -0
  160. package/.agent/mindforge/system-design.md +87 -0
  161. package/.agent/mindforge/team-topology.md +27 -0
  162. package/.agent/mindforge/tech-debt.md +31 -0
  163. package/.agent/mindforge/tech-radar.md +28 -0
  164. package/.agent/mindforge/threat-model.md +48 -0
  165. package/.agent/mindforge/tokens.md +12 -0
  166. package/.agent/mindforge/ui-phase.md +34 -0
  167. package/.agent/mindforge/ui-review.md +36 -0
  168. package/.agent/mindforge/update.md +46 -0
  169. package/.agent/mindforge/validate-phase.md +31 -0
  170. package/.agent/mindforge/verify-loop.md +45 -0
  171. package/.agent/mindforge/verify-phase.md +66 -0
  172. package/.agent/mindforge/vibe-check.md +37 -0
  173. package/.agent/mindforge/workspace.md +33 -0
  174. package/.agent/mindforge/workstreams.md +35 -0
  175. package/.agent/mindforge/worktrees.md +86 -0
  176. package/.agent/mindforge/write-rfc.md +64 -0
  177. package/.agent/mindforge/zero-trust.md +34 -0
  178. package/.agent/skills/mindforge-add-backlog/SKILL.md +72 -0
  179. package/.agent/skills/mindforge-add-phase/SKILL.md +39 -0
  180. package/.agent/skills/mindforge-add-tests/SKILL.md +28 -0
  181. package/.agent/skills/mindforge-add-todo/SKILL.md +42 -0
  182. package/.agent/skills/mindforge-audit-milestone/SKILL.md +29 -0
  183. package/.agent/skills/mindforge-audit-uat/SKILL.md +20 -0
  184. package/.agent/skills/mindforge-autonomous/SKILL.md +33 -0
  185. package/.agent/skills/mindforge-brainstorming/SKILL.md +164 -0
  186. package/.agent/skills/mindforge-brainstorming/scripts/frame-template.html +214 -0
  187. package/.agent/skills/mindforge-brainstorming/scripts/helper.js +90 -0
  188. package/.agent/skills/mindforge-brainstorming/scripts/server.cjs +354 -0
  189. package/.agent/skills/mindforge-brainstorming/scripts/start-server.sh +148 -0
  190. package/.agent/skills/mindforge-brainstorming/scripts/stop-server.sh +56 -0
  191. package/.agent/skills/mindforge-brainstorming/spec-document-reviewer-prompt.md +49 -0
  192. package/.agent/skills/mindforge-brainstorming/visual-companion.md +287 -0
  193. package/.agent/skills/mindforge-check-todos/SKILL.md +40 -0
  194. package/.agent/skills/mindforge-cleanup/SKILL.md +19 -0
  195. package/.agent/skills/mindforge-complete-milestone/SKILL.md +131 -0
  196. package/.agent/skills/mindforge-debug/SKILL.md +163 -0
  197. package/.agent/skills/mindforge-debug_extended/CREATION-LOG.md +119 -0
  198. package/.agent/skills/mindforge-debug_extended/SKILL.md +296 -0
  199. package/.agent/skills/mindforge-debug_extended/condition-based-waiting-example.ts +158 -0
  200. package/.agent/skills/mindforge-debug_extended/condition-based-waiting.md +115 -0
  201. package/.agent/skills/mindforge-debug_extended/defense-in-depth.md +122 -0
  202. package/.agent/skills/mindforge-debug_extended/find-polluter.sh +63 -0
  203. package/.agent/skills/mindforge-debug_extended/root-cause-tracing.md +169 -0
  204. package/.agent/skills/mindforge-debug_extended/test-academic.md +14 -0
  205. package/.agent/skills/mindforge-debug_extended/test-pressure-1.md +58 -0
  206. package/.agent/skills/mindforge-debug_extended/test-pressure-2.md +68 -0
  207. package/.agent/skills/mindforge-debug_extended/test-pressure-3.md +69 -0
  208. package/.agent/skills/mindforge-discuss-phase/SKILL.md +54 -0
  209. package/.agent/skills/mindforge-do/SKILL.md +26 -0
  210. package/.agent/skills/mindforge-execute-phase/SKILL.md +49 -0
  211. package/.agent/skills/mindforge-execute-phase_extended/SKILL.md +70 -0
  212. package/.agent/skills/mindforge-fast/SKILL.md +23 -0
  213. package/.agent/skills/mindforge-forensics/SKILL.md +49 -0
  214. package/.agent/skills/mindforge-health/SKILL.md +17 -0
  215. package/.agent/skills/mindforge-help/SKILL.md +23 -0
  216. package/.agent/skills/mindforge-insert-phase/SKILL.md +28 -0
  217. package/.agent/skills/mindforge-join-discord/SKILL.md +19 -0
  218. package/.agent/skills/mindforge-list-phase-assumptions/SKILL.md +41 -0
  219. package/.agent/skills/mindforge-list-workspaces/SKILL.md +17 -0
  220. package/.agent/skills/mindforge-manager/SKILL.md +32 -0
  221. package/.agent/skills/mindforge-map-codebase/SKILL.md +64 -0
  222. package/.agent/skills/mindforge-milestone-summary/SKILL.md +44 -0
  223. package/.agent/skills/mindforge-neural-orchestrator/SKILL.md +115 -0
  224. package/.agent/skills/mindforge-neural-orchestrator/references/codex-tools.md +100 -0
  225. package/.agent/skills/mindforge-neural-orchestrator/references/gemini-tools.md +33 -0
  226. package/.agent/skills/mindforge-new-milestone/SKILL.md +38 -0
  227. package/.agent/skills/mindforge-new-project/SKILL.md +36 -0
  228. package/.agent/skills/mindforge-new-workspace/SKILL.md +39 -0
  229. package/.agent/skills/mindforge-next/SKILL.md +19 -0
  230. package/.agent/skills/mindforge-note/SKILL.md +29 -0
  231. package/.agent/skills/mindforge-parallel-mesh_extended/SKILL.md +182 -0
  232. package/.agent/skills/mindforge-pause-work/SKILL.md +35 -0
  233. package/.agent/skills/mindforge-plan-milestone-gaps/SKILL.md +28 -0
  234. package/.agent/skills/mindforge-plan-phase/SKILL.md +38 -0
  235. package/.agent/skills/mindforge-plan-phase_extended/SKILL.md +152 -0
  236. package/.agent/skills/mindforge-plan-phase_extended/plan-document-reviewer-prompt.md +49 -0
  237. package/.agent/skills/mindforge-plant-seed/SKILL.md +22 -0
  238. package/.agent/skills/mindforge-pr-branch/SKILL.md +21 -0
  239. package/.agent/skills/mindforge-profile-user/SKILL.md +38 -0
  240. package/.agent/skills/mindforge-progress/SKILL.md +19 -0
  241. package/.agent/skills/mindforge-quick/SKILL.md +38 -0
  242. package/.agent/skills/mindforge-reapply-patches/SKILL.md +124 -0
  243. package/.agent/skills/mindforge-remove-phase/SKILL.md +26 -0
  244. package/.agent/skills/mindforge-remove-workspace/SKILL.md +22 -0
  245. package/.agent/skills/mindforge-research-phase/SKILL.md +186 -0
  246. package/.agent/skills/mindforge-resume-work/SKILL.md +35 -0
  247. package/.agent/skills/mindforge-review/SKILL.md +31 -0
  248. package/.agent/skills/mindforge-review-backlog/SKILL.md +58 -0
  249. package/.agent/skills/mindforge-review-inbound/SKILL.md +213 -0
  250. package/.agent/skills/mindforge-review-request/SKILL.md +105 -0
  251. package/.agent/skills/mindforge-review-request/code-reviewer.md +146 -0
  252. package/.agent/skills/mindforge-session-report/SKILL.md +16 -0
  253. package/.agent/skills/mindforge-set-profile/SKILL.md +9 -0
  254. package/.agent/skills/mindforge-settings/SKILL.md +32 -0
  255. package/.agent/skills/mindforge-ship/SKILL.md +16 -0
  256. package/.agent/skills/mindforge-ship_extended/SKILL.md +200 -0
  257. package/.agent/skills/mindforge-skill-creation/SKILL.md +655 -0
  258. package/.agent/skills/mindforge-skill-creation/anthropic-best-practices.md +1150 -0
  259. package/.agent/skills/mindforge-skill-creation/examples/CLAUDE_MD_TESTING.md +189 -0
  260. package/.agent/skills/mindforge-skill-creation/graphviz-conventions.dot +172 -0
  261. package/.agent/skills/mindforge-skill-creation/persuasion-principles.md +187 -0
  262. package/.agent/skills/mindforge-skill-creation/render-graphs.js +168 -0
  263. package/.agent/skills/mindforge-skill-creation/testing-skills-with-subagents.md +384 -0
  264. package/.agent/skills/mindforge-stats/SKILL.md +16 -0
  265. package/.agent/skills/mindforge-swarm-execution/SKILL.md +277 -0
  266. package/.agent/skills/mindforge-swarm-execution/code-quality-reviewer-prompt.md +26 -0
  267. package/.agent/skills/mindforge-swarm-execution/implementer-prompt.md +113 -0
  268. package/.agent/skills/mindforge-swarm-execution/spec-reviewer-prompt.md +61 -0
  269. package/.agent/skills/mindforge-system-architecture/SKILL.md +136 -0
  270. package/.agent/skills/mindforge-system-architecture/examples.md +120 -0
  271. package/.agent/skills/mindforge-system-architecture/scaling-checklist.md +76 -0
  272. package/.agent/skills/mindforge-tdd/SKILL.md +112 -0
  273. package/.agent/skills/mindforge-tdd/deep-modules.md +21 -0
  274. package/.agent/skills/mindforge-tdd/interface-design.md +22 -0
  275. package/.agent/skills/mindforge-tdd/mocking.md +24 -0
  276. package/.agent/skills/mindforge-tdd/refactoring.md +21 -0
  277. package/.agent/skills/mindforge-tdd/tests.md +28 -0
  278. package/.agent/skills/mindforge-tdd_extended/SKILL.md +371 -0
  279. package/.agent/skills/mindforge-tdd_extended/testing-anti-patterns.md +299 -0
  280. package/.agent/skills/mindforge-thread/SKILL.md +123 -0
  281. package/.agent/skills/mindforge-ui-phase/SKILL.md +24 -0
  282. package/.agent/skills/mindforge-ui-review/SKILL.md +24 -0
  283. package/.agent/skills/mindforge-update/SKILL.md +35 -0
  284. package/.agent/skills/mindforge-validate-phase/SKILL.md +26 -0
  285. package/.agent/skills/mindforge-verify-work/SKILL.md +30 -0
  286. package/.agent/skills/mindforge-verify-work_extended/SKILL.md +139 -0
  287. package/.agent/skills/mindforge-workspace-isolated/SKILL.md +218 -0
  288. package/.agent/skills/mindforge-workstreams/SKILL.md +65 -0
  289. package/.claude/CLAUDE.md +102 -0
  290. package/.claude/commands/forge/help.md +7 -0
  291. package/.claude/commands/forge/init-project.md +32 -0
  292. package/.claude/commands/forge/plan-phase.md +30 -0
  293. package/.claude/commands/mindforge/add-backlog.md +32 -0
  294. package/.claude/commands/mindforge/agent-deploy.md +34 -0
  295. package/.claude/commands/mindforge/agent-design.md +31 -0
  296. package/.claude/commands/mindforge/agent-eval.md +27 -0
  297. package/.claude/commands/mindforge/agent-memory.md +27 -0
  298. package/.claude/commands/mindforge/agent.md +31 -0
  299. package/.claude/commands/mindforge/ai-cost.md +31 -0
  300. package/.claude/commands/mindforge/ai-safety.md +37 -0
  301. package/.claude/commands/mindforge/analytics.md +28 -0
  302. package/.claude/commands/mindforge/approve.md +22 -0
  303. package/.claude/commands/mindforge/audit.md +34 -0
  304. package/.claude/commands/mindforge/auth-flow.md +76 -0
  305. package/.claude/commands/mindforge/auto.md +26 -0
  306. package/.claude/commands/mindforge/benchmark.md +37 -0
  307. package/.claude/commands/mindforge/brd.md +90 -0
  308. package/.claude/commands/mindforge/browse.md +30 -0
  309. package/.claude/commands/mindforge/build-opt.md +31 -0
  310. package/.claude/commands/mindforge/build-vs-buy.md +29 -0
  311. package/.claude/commands/mindforge/cache.md +30 -0
  312. package/.claude/commands/mindforge/causal.md +31 -0
  313. package/.claude/commands/mindforge/cdn.md +34 -0
  314. package/.claude/commands/mindforge/change.md +37 -0
  315. package/.claude/commands/mindforge/cli.md +30 -0
  316. package/.claude/commands/mindforge/cluster-instincts.md +35 -0
  317. package/.claude/commands/mindforge/code-tour.md +85 -0
  318. package/.claude/commands/mindforge/communicate.md +37 -0
  319. package/.claude/commands/mindforge/complete-milestone.md +22 -0
  320. package/.claude/commands/mindforge/compliance.md +31 -0
  321. package/.claude/commands/mindforge/consult.md +37 -0
  322. package/.claude/commands/mindforge/context-budget.md +70 -0
  323. package/.claude/commands/mindforge/contract-test.md +30 -0
  324. package/.claude/commands/mindforge/cost-report.md +44 -0
  325. package/.claude/commands/mindforge/costs.md +15 -0
  326. package/.claude/commands/mindforge/council.md +83 -0
  327. package/.claude/commands/mindforge/create-skill.md +34 -0
  328. package/.claude/commands/mindforge/cross-review.md +21 -0
  329. package/.claude/commands/mindforge/dashboard.md +102 -0
  330. package/.claude/commands/mindforge/data-mesh.md +31 -0
  331. package/.claude/commands/mindforge/data-model.md +75 -0
  332. package/.claude/commands/mindforge/data-pipeline.md +34 -0
  333. package/.claude/commands/mindforge/de-slop.md +33 -0
  334. package/.claude/commands/mindforge/debug.md +133 -0
  335. package/.claude/commands/mindforge/degrade.md +31 -0
  336. package/.claude/commands/mindforge/delegate.md +37 -0
  337. package/.claude/commands/mindforge/deploy.md +32 -0
  338. package/.claude/commands/mindforge/design-tokens.md +80 -0
  339. package/.claude/commands/mindforge/discuss-phase.md +142 -0
  340. package/.claude/commands/mindforge/dmux.md +32 -0
  341. package/.claude/commands/mindforge/do.md +31 -0
  342. package/.claude/commands/mindforge/ecommerce.md +31 -0
  343. package/.claude/commands/mindforge/edge.md +34 -0
  344. package/.claude/commands/mindforge/edtech.md +31 -0
  345. package/.claude/commands/mindforge/embeddings.md +37 -0
  346. package/.claude/commands/mindforge/environments.md +31 -0
  347. package/.claude/commands/mindforge/eval.md +33 -0
  348. package/.claude/commands/mindforge/events.md +30 -0
  349. package/.claude/commands/mindforge/evolve-skills.md +49 -0
  350. package/.claude/commands/mindforge/execute-phase.md +200 -0
  351. package/.claude/commands/mindforge/experiment.md +28 -0
  352. package/.claude/commands/mindforge/feature-flags.md +30 -0
  353. package/.claude/commands/mindforge/feature-store.md +31 -0
  354. package/.claude/commands/mindforge/finops.md +31 -0
  355. package/.claude/commands/mindforge/fintech.md +31 -0
  356. package/.claude/commands/mindforge/flutter.md +37 -0
  357. package/.claude/commands/mindforge/gaming.md +31 -0
  358. package/.claude/commands/mindforge/graphql.md +31 -0
  359. package/.claude/commands/mindforge/health.md +31 -0
  360. package/.claude/commands/mindforge/healthcare.md +31 -0
  361. package/.claude/commands/mindforge/help.md +33 -0
  362. package/.claude/commands/mindforge/hire.md +37 -0
  363. package/.claude/commands/mindforge/hitl.md +27 -0
  364. package/.claude/commands/mindforge/i18n.md +31 -0
  365. package/.claude/commands/mindforge/idempotent.md +31 -0
  366. package/.claude/commands/mindforge/init-org.md +135 -0
  367. package/.claude/commands/mindforge/init-project.md +170 -0
  368. package/.claude/commands/mindforge/install-skill.md +28 -0
  369. package/.claude/commands/mindforge/introspect.md +46 -0
  370. package/.claude/commands/mindforge/iot.md +31 -0
  371. package/.claude/commands/mindforge/knowledge-graph.md +37 -0
  372. package/.claude/commands/mindforge/lakehouse.md +31 -0
  373. package/.claude/commands/mindforge/lead.md +31 -0
  374. package/.claude/commands/mindforge/learn-instinct.md +58 -0
  375. package/.claude/commands/mindforge/learn.md +147 -0
  376. package/.claude/commands/mindforge/learning.md +20 -0
  377. package/.claude/commands/mindforge/llm-route.md +37 -0
  378. package/.claude/commands/mindforge/load-test.md +30 -0
  379. package/.claude/commands/mindforge/logistics.md +31 -0
  380. package/.claude/commands/mindforge/map-codebase.md +302 -0
  381. package/.claude/commands/mindforge/market-research.md +94 -0
  382. package/.claude/commands/mindforge/marketplace.md +124 -0
  383. package/.claude/commands/mindforge/mcp-server.md +88 -0
  384. package/.claude/commands/mindforge/meeting-design.md +37 -0
  385. package/.claude/commands/mindforge/metrics.md +26 -0
  386. package/.claude/commands/mindforge/microservices.md +64 -0
  387. package/.claude/commands/mindforge/migrate.md +44 -0
  388. package/.claude/commands/mindforge/migration-mgmt.md +31 -0
  389. package/.claude/commands/mindforge/milestone.md +16 -0
  390. package/.claude/commands/mindforge/mobile.md +37 -0
  391. package/.claude/commands/mindforge/monorepo.md +30 -0
  392. package/.claude/commands/mindforge/multi-tenant.md +31 -0
  393. package/.claude/commands/mindforge/multimodal.md +37 -0
  394. package/.claude/commands/mindforge/new-runtime.md +23 -0
  395. package/.claude/commands/mindforge/next.md +109 -0
  396. package/.claude/commands/mindforge/note.md +35 -0
  397. package/.claude/commands/mindforge/observability-platform.md +31 -0
  398. package/.claude/commands/mindforge/observability.md +75 -0
  399. package/.claude/commands/mindforge/offline.md +37 -0
  400. package/.claude/commands/mindforge/onboard.md +37 -0
  401. package/.claude/commands/mindforge/orchestrate.md +74 -0
  402. package/.claude/commands/mindforge/payments.md +28 -0
  403. package/.claude/commands/mindforge/pipeline.md +84 -0
  404. package/.claude/commands/mindforge/plan-phase.md +131 -0
  405. package/.claude/commands/mindforge/plan-write.md +95 -0
  406. package/.claude/commands/mindforge/plant-seed.md +31 -0
  407. package/.claude/commands/mindforge/platform.md +31 -0
  408. package/.claude/commands/mindforge/plugins.md +44 -0
  409. package/.claude/commands/mindforge/pr-review.md +45 -0
  410. package/.claude/commands/mindforge/privacy-eng.md +31 -0
  411. package/.claude/commands/mindforge/product-spec.md +90 -0
  412. package/.claude/commands/mindforge/profile-team.md +27 -0
  413. package/.claude/commands/mindforge/prompt.md +78 -0
  414. package/.claude/commands/mindforge/proofread.md +87 -0
  415. package/.claude/commands/mindforge/publish-skill.md +23 -0
  416. package/.claude/commands/mindforge/push-notify.md +37 -0
  417. package/.claude/commands/mindforge/pwa.md +37 -0
  418. package/.claude/commands/mindforge/qa.md +20 -0
  419. package/.claude/commands/mindforge/quality-audit.md +34 -0
  420. package/.claude/commands/mindforge/queue.md +31 -0
  421. package/.claude/commands/mindforge/quick.md +139 -0
  422. package/.claude/commands/mindforge/rag.md +30 -0
  423. package/.claude/commands/mindforge/rate-limit.md +31 -0
  424. package/.claude/commands/mindforge/react-native.md +37 -0
  425. package/.claude/commands/mindforge/realtime-analytics.md +31 -0
  426. package/.claude/commands/mindforge/record-learning.md +22 -0
  427. package/.claude/commands/mindforge/release.md +14 -0
  428. package/.claude/commands/mindforge/remember.md +30 -0
  429. package/.claude/commands/mindforge/research.md +16 -0
  430. package/.claude/commands/mindforge/retro.md +28 -0
  431. package/.claude/commands/mindforge/retrospective.md +31 -0
  432. package/.claude/commands/mindforge/review-backlog.md +34 -0
  433. package/.claude/commands/mindforge/review-guide.md +63 -0
  434. package/.claude/commands/mindforge/review.md +161 -0
  435. package/.claude/commands/mindforge/rfc.md +34 -0
  436. package/.claude/commands/mindforge/santa.md +33 -0
  437. package/.claude/commands/mindforge/secrets-mgmt.md +31 -0
  438. package/.claude/commands/mindforge/secrets.md +31 -0
  439. package/.claude/commands/mindforge/security-scan.md +242 -0
  440. package/.claude/commands/mindforge/serverless.md +34 -0
  441. package/.claude/commands/mindforge/session-report.md +39 -0
  442. package/.claude/commands/mindforge/ship.md +111 -0
  443. package/.claude/commands/mindforge/skills.md +145 -0
  444. package/.claude/commands/mindforge/status.md +113 -0
  445. package/.claude/commands/mindforge/steer.md +17 -0
  446. package/.claude/commands/mindforge/stream.md +31 -0
  447. package/.claude/commands/mindforge/sync-confluence.md +15 -0
  448. package/.claude/commands/mindforge/sync-jira.md +16 -0
  449. package/.claude/commands/mindforge/system-design.md +87 -0
  450. package/.claude/commands/mindforge/team-topology.md +27 -0
  451. package/.claude/commands/mindforge/tech-debt.md +31 -0
  452. package/.claude/commands/mindforge/tech-radar.md +28 -0
  453. package/.claude/commands/mindforge/threat-model.md +48 -0
  454. package/.claude/commands/mindforge/tokens.md +12 -0
  455. package/.claude/commands/mindforge/ui-phase.md +34 -0
  456. package/.claude/commands/mindforge/ui-review.md +36 -0
  457. package/.claude/commands/mindforge/update.md +46 -0
  458. package/.claude/commands/mindforge/validate-phase.md +31 -0
  459. package/.claude/commands/mindforge/verify-loop.md +45 -0
  460. package/.claude/commands/mindforge/verify-phase.md +66 -0
  461. package/.claude/commands/mindforge/vibe-check.md +37 -0
  462. package/.claude/commands/mindforge/workspace.md +33 -0
  463. package/.claude/commands/mindforge/workstreams.md +35 -0
  464. package/.claude/commands/mindforge/worktrees.md +86 -0
  465. package/.claude/commands/mindforge/write-rfc.md +64 -0
  466. package/.claude/commands/mindforge/zero-trust.md +34 -0
  467. package/.mindforge/config.json +2 -2
  468. package/.mindforge/governance/GOVERNANCE-CONFIG.md +17 -0
  469. package/.mindforge/governance/approval-workflow.md +37 -0
  470. package/.mindforge/governance/change-classifier.md +63 -0
  471. package/.mindforge/governance/compliance-gates.md +31 -0
  472. package/.mindforge/governance/policies/sovereign-default.json +16 -0
  473. package/.mindforge/integrations/confluence.md +27 -0
  474. package/.mindforge/integrations/connection-manager.md +163 -0
  475. package/.mindforge/integrations/github.md +25 -0
  476. package/.mindforge/integrations/gitlab.md +13 -0
  477. package/.mindforge/integrations/jira.md +102 -0
  478. package/.mindforge/integrations/slack.md +41 -0
  479. package/.mindforge/intelligence/antipattern-detector.md +75 -0
  480. package/.mindforge/intelligence/difficulty-scorer.md +55 -0
  481. package/.mindforge/intelligence/health-engine.md +208 -0
  482. package/.mindforge/intelligence/skill-gap-analyser.md +40 -0
  483. package/.mindforge/intelligence/smart-compaction.md +71 -0
  484. package/.mindforge/memory/MEMORY-SCHEMA.md +155 -0
  485. package/.mindforge/memory/engine/capture-protocol.md +36 -0
  486. package/.mindforge/memory/engine/global-sync-spec.md +42 -0
  487. package/.mindforge/memory/engine/retrieval-spec.md +44 -0
  488. package/.mindforge/memory/sync-manifest.json +6 -0
  489. package/.mindforge/metrics/METRICS-SCHEMA.md +42 -0
  490. package/.mindforge/metrics/quality-tracker.md +32 -0
  491. package/.mindforge/models/model-registry.md +48 -0
  492. package/.mindforge/models/model-router.md +30 -0
  493. package/.mindforge/org/CONVENTIONS.md +62 -0
  494. package/.mindforge/org/ORG.md +51 -0
  495. package/.mindforge/org/SECURITY.md +50 -0
  496. package/.mindforge/org/TOOLS.md +53 -0
  497. package/.mindforge/org/integrations/INTEGRATIONS-CONFIG.md +58 -0
  498. package/.mindforge/org/skills/MANIFEST.md +255 -0
  499. package/.mindforge/plugins/PLUGINS-MANIFEST.md +23 -0
  500. package/.mindforge/plugins/plugin-loader.md +93 -0
  501. package/.mindforge/plugins/plugin-registry.md +44 -0
  502. package/.mindforge/plugins/plugin-schema.md +68 -0
  503. package/.mindforge/team/TEAM-PROFILE.md +42 -0
  504. package/.mindforge/team/multi-handoff.md +23 -0
  505. package/.mindforge/team/profiles/README.md +13 -0
  506. package/.mindforge/team/session-merger.md +18 -0
  507. package/CHANGELOG.md +37 -0
  508. package/MINDFORGE.md +3 -3
  509. package/bin/installer-core.js +17 -11
  510. package/docs/References/audit-events.md +59 -0
  511. package/docs/References/checkpoints.md +778 -0
  512. package/docs/References/commands.md +107 -0
  513. package/docs/References/config-reference.md +122 -0
  514. package/docs/References/continuation-format.md +249 -0
  515. package/docs/References/decimal-phase-calculation.md +64 -0
  516. package/docs/References/git-integration.md +295 -0
  517. package/docs/References/git-planning-commit.md +38 -0
  518. package/docs/References/model-profile-resolution.md +36 -0
  519. package/docs/References/model-profiles.md +139 -0
  520. package/docs/References/phase-argument-parsing.md +61 -0
  521. package/docs/References/planning-config.md +202 -0
  522. package/docs/References/questioning.md +162 -0
  523. package/docs/References/sdk-api.md +53 -0
  524. package/docs/References/skills-api.md +57 -0
  525. package/docs/References/tdd.md +263 -0
  526. package/docs/References/ui-brand.md +160 -0
  527. package/docs/References/user-profiling.md +681 -0
  528. package/docs/References/verification-patterns.md +612 -0
  529. package/docs/References/workstream-flag.md +58 -0
  530. package/docs/Templates/Agents/CLAUDE-MD.md +122 -0
  531. package/docs/Templates/Agents/COPILOT-INSTRUCTIONS.md +7 -0
  532. package/docs/Templates/Agents/DEBUGGER-PROMPT.md +91 -0
  533. package/docs/Templates/Agents/PLANNER-PROMPT.md +117 -0
  534. package/docs/Templates/Codebase/architecture.md +255 -0
  535. package/docs/Templates/Codebase/concerns.md +310 -0
  536. package/docs/Templates/Codebase/conventions.md +307 -0
  537. package/docs/Templates/Codebase/integrations.md +280 -0
  538. package/docs/Templates/Codebase/stack.md +186 -0
  539. package/docs/Templates/Codebase/structure.md +285 -0
  540. package/docs/Templates/Codebase/testing.md +480 -0
  541. package/docs/Templates/Execution/CONTINUE-HERE.md +78 -0
  542. package/docs/Templates/Execution/DISCUSSION-LOG.md +63 -0
  543. package/docs/Templates/Execution/PHASE-PROMPT.md +610 -0
  544. package/docs/Templates/Execution/STATE.md +176 -0
  545. package/docs/Templates/Execution/SUMMARY-COMPLEX.md +59 -0
  546. package/docs/Templates/Execution/SUMMARY-MINIMAL.md +41 -0
  547. package/docs/Templates/Execution/SUMMARY-STANDARD.md +48 -0
  548. package/docs/Templates/Execution/SUMMARY.md +248 -0
  549. package/docs/Templates/Profile/DEV-PREFERENCES.md +21 -0
  550. package/docs/Templates/Profile/USER-PROFILE.md +146 -0
  551. package/docs/Templates/Profile/USER-SETUP.md +311 -0
  552. package/docs/Templates/Project/AGENTS_LEARNING.md +88 -0
  553. package/docs/Templates/Project/DISCOVERY.md +146 -0
  554. package/docs/Templates/Project/MILESTONE-ARCHIVE.md +123 -0
  555. package/docs/Templates/Project/MILESTONE.md +115 -0
  556. package/docs/Templates/Project/PROJECT.md +206 -0
  557. package/docs/Templates/Project/REQUIREMENTS.md +231 -0
  558. package/docs/Templates/Project/RETROSPECTIVE.md +54 -0
  559. package/docs/Templates/Project/ROADMAP.md +202 -0
  560. package/docs/Templates/Quality/DEBUG.md +164 -0
  561. package/docs/Templates/Quality/UAT.md +280 -0
  562. package/docs/Templates/Quality/UI-SPEC.md +100 -0
  563. package/docs/Templates/Quality/VALIDATION.md +76 -0
  564. package/docs/Templates/Quality/VERIFICATION-REPORT.md +322 -0
  565. package/docs/Templates/Research/ARCHITECTURE.md +204 -0
  566. package/docs/Templates/Research/FEATURES.md +147 -0
  567. package/docs/Templates/Research/PITFALLS.md +200 -0
  568. package/docs/Templates/Research/STACK.md +120 -0
  569. package/docs/Templates/Research/SUMMARY.md +170 -0
  570. package/docs/Templates/System/CONFIG.json +43 -0
  571. package/docs/Templates/System/CONTEXT.md +352 -0
  572. package/examples/starter-project/.planning/ARCHITECTURE.md +23 -0
  573. package/examples/starter-project/.planning/RELEASE-CHECKLIST.md +22 -0
  574. package/examples/starter-project/.planning/REQUIREMENTS.md +31 -0
  575. package/examples/starter-project/.planning/ROADMAP.md +28 -0
  576. package/package.json +22 -3
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: Design GraphQL schema and resolver architecture. Usage - /mindforge:graphql [domain] [--style code-first|schema-first] [--federation]
3
+ ---
4
+
5
+ <objective>
6
+ Design a GraphQL schema and resolver architecture that models the domain
7
+ accurately, prevents N+1 queries via DataLoader, implements cursor-based
8
+ pagination for all lists, and provides production-ready configuration with
9
+ persisted queries, depth limiting, and cost analysis.
10
+ </objective>
11
+
12
+ <execution_context>
13
+ @.mindforge/skills/graphql-patterns/SKILL.md
14
+ </execution_context>
15
+
16
+ <context>
17
+ $ARGUMENTS
18
+ </context>
19
+
20
+ <process>
21
+ 1. Identify domain entities and their relationships: map core types (User, Order, Product), their fields, and connections between them (User has many Orders, Order has many LineItems). Determine which relationships are required vs optional, and identify aggregate roots.
22
+ 2. Design the type schema based on --style flag: code-first (TypeGraphQL/Nexus — types generated from code, better for rapid iteration) or schema-first (SDL files — explicit contract, better for API-first design). Follow naming conventions: PascalCase for types, camelCase for fields.
23
+ 3. Implement connections for all list fields using cursor-based pagination: define Connection/Edge/PageInfo types per Relay spec, use opaque cursors (base64-encoded id or timestamp), support first/after and last/before arguments, and include totalCount as optional expensive field.
24
+ 4. Add DataLoader for ALL nested resolvers to prevent N+1 queries: create one DataLoader per entity type per request (request-scoped), batch all IDs collected in a single event loop tick, implement caching within request lifecycle, and verify with query logging that batch queries fire.
25
+ 5. Design mutations with input types and meaningful returns: use Input suffix for mutation arguments (CreateUserInput), return the modified entity (not just ID), include userErrors field for domain validation errors (separate from GraphQL errors), and make mutations as specific as possible (updateUserEmail vs generic updateUser).
26
+ 6. Configure subscriptions if real-time is needed: use WebSocket transport (graphql-ws protocol), implement subscription resolvers with pub/sub backend (Redis), filter events per subscriber (only receive own tenant's events), and handle connection lifecycle (keepalive, reconnection).
27
+ 7. Set up persisted queries for production: extract all queries at build time into a query map (hash -> query text), reject arbitrary queries in production (allowlist mode), reduce bandwidth (client sends hash instead of full query), and prevent malicious query injection.
28
+ 8. Implement security and performance guards: query depth limiting (max 7 levels), query cost analysis (assign cost to each field/connection), rate limiting per operation complexity, disable introspection in production, and field-level authorization directives.
29
+ 9. Configure federation if --federation flag set: identify subgraph boundaries (one per domain team), define entity types with @key directives, implement reference resolvers for cross-subgraph lookups, and configure the gateway (Apollo Router or similar).
30
+ 10. Log GraphQL design in AUDIT with: domain entities, schema style, pagination approach, DataLoader coverage, subscription needs, persisted query strategy, and federation topology.
31
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: Run all seven health-engine categories from .mindforge/intelligence/health-engine.md.
3
+ ---
4
+
5
+ # MindForge — Health Command
6
+ # Usage: /mindforge:health [--repair] [--category C] [--verbose]
7
+
8
+ Run all seven health-engine categories from `.mindforge/intelligence/health-engine.md`.
9
+
10
+ ## Output
11
+ - category status summary
12
+ - errors (must fix)
13
+ - warnings (should fix)
14
+ - informational signals
15
+
16
+ ## Sovereign Intelligence Checks (v6.2.0-alpha)
17
+ - **PQAS Verification**: Check `bin/governance/quantum-crypto.js` presence
18
+ - **Homing Verification**: Check `bin/autonomous/intent-harvester.js` presence
19
+ - **Self-Healer Verification**: Check `bin/autonomous/mesh-self-healer.js` presence
20
+ - **Policy Check**: Verify `bin/governance/policy-engine.js` is Sovereign-configured
21
+
22
+ ## Flags
23
+ - `--repair`: apply safe auto-repair only
24
+ - `--category`: one of `installation|context|skills|personas|state|integrations|security`
25
+ - `--verbose`: include passing checks and exact inspected values
26
+
27
+ ## AUDIT
28
+ Append:
29
+ ```json
30
+ { "event": "health_check_completed", "errors": 0, "warnings": 0, "repaired": 0 }
31
+ ```
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:healthcare
3
+ description: "Design HIPAA-compliant healthcare system architecture. Usage: /mindforge:healthcare [service] [--standard hipaa|hl7|fhir] [--scope full|audit]"
4
+ argument-hint: "[service] [--standard hipaa|hl7|fhir] [--scope full|audit]"
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Designs HIPAA-compliant healthcare system architectures with proper PHI handling, audit trails, and regulatory compliance. Produces architecture diagrams, data flow models, and compliance checklists for healthcare applications including EHR, telemedicine, patient portals, and health data exchanges.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.mindforge/skills/healthcare-systems/SKILL.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Skills Directory: `.mindforge/skills/healthcare-systems/`
20
+ State: Evaluates healthcare service requirements, compliance standards (HIPAA, HL7, FHIR), and produces compliant architecture with security controls, encryption strategies, and audit mechanisms.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Service Analysis**: Parse the healthcare service type (EHR, telemedicine, patient portal, HIE) and identify PHI touchpoints, user roles, and data sensitivity classification.
25
+ 2. **Compliance Mapping**: Map required compliance standards (HIPAA Security/Privacy Rules, HL7 messaging, FHIR resources) to architectural components and identify technical safeguards (encryption at rest/in transit, access controls, audit logs).
26
+ 3. **Architecture Design**: Design system architecture with secure zones (DMZ, application tier, data tier), authentication/authorization flows (RBAC, ABAC), and PHI access patterns with minimum necessary principle.
27
+ 4. **Data Flow Modeling**: Model PHI data flows across system boundaries, external integrations (labs, pharmacies, insurance), and patient data exchange patterns with encryption and consent management.
28
+ 5. **Audit Trail Design**: Design comprehensive audit logging for all PHI access (who, what, when, where, why), tamper-proof log storage, and automated compliance reporting mechanisms.
29
+ 6. **Security Controls**: Define encryption standards (AES-256, TLS 1.3), key management (HSM, KMS), session management, and incident response procedures for breach notification.
30
+ 7. **Documentation Generation**: Generate compliance documentation including Security Risk Assessment, BAA requirements, technical safeguards matrix, and architecture decision records for regulatory audits.
31
+ </process>
@@ -0,0 +1,33 @@
1
+ ---
2
+ description: Show all available MindForge commands.
3
+ ---
4
+
5
+ Show all available MindForge commands.
6
+
7
+ ## Pre-check
8
+ If `.planning/STATE.md` exists, read it.
9
+ If `.planning/PROJECT.md` is missing, treat the project as "Not initialised".
10
+
11
+ 1. Scan every .md file in `.claude/commands/mindforge/`
12
+ 2. For each file, extract the first non-empty line as the command description
13
+ 3. Display as a clean table:
14
+
15
+ | Command | Description |
16
+ |------------------------------|----------------------------------------------|
17
+ | /mindforge:help | Show all available commands |
18
+ | /mindforge:init-project | ... |
19
+ | ... | ... |
20
+
21
+ ## Sovereign Intelligence (v6.2.0-alpha)
22
+ MindForge now operates with **Sovereign Intelligence** enabled by default:
23
+ - **PQAS**: Post-Quantum Agentic Security is active. High-risk operations require biometric/executive bypass.
24
+ - **Proactive Homing**: The swarm now proactively harvests intent and self-heals reasoning drifts.
25
+ - **Integrity**: Every `security-scan` now verifies framework signatures using lattice-based cryptography.
26
+
27
+ 4. After the table, print:
28
+ "Current project: [read PROJECT.md first line, or 'Not initialised']"
29
+ "Current phase: [read STATE.md current phase, or 'None']"
30
+ "Next step: [read STATE.md next action]"
31
+
32
+ 5. If CLAUDE.md has not been read this session, remind the user to ensure
33
+ it is loaded as MindForge's system context.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: mindforge:hire
3
+ description: "Design technical interview process. Usage: /mindforge:hire [role] [--level junior|mid|senior|staff] [--type system-design|coding|behavioral]"
4
+ argument-hint: "[role] [--level junior|mid|senior|staff] [--type system-design|coding|behavioral]"
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Design comprehensive technical interview processes tailored to role, seniority level, and organization culture. Generates interview rubrics, question banks, and calibration frameworks to ensure consistent, fair, and predictive hiring.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @.mindforge/skills/hiring-engineering/SKILL.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Skills Directory: `.mindforge/skills/hiring-engineering/`
20
+ State: Analyzes role requirements, maps to competencies, designs multi-stage interview funnel with scorecards, questions, and calibration mechanisms.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Role Decomposition**: Extract core competencies from job description. For Backend → API design, data modeling, concurrency, observability. For Frontend → component architecture, state management, accessibility, performance. For Infra → distributed systems, networking, cost optimization, incident response. Map to 4-6 key evaluation areas.
25
+
26
+ 2. **Seniority Calibration**: Junior → executes tasks, learns patterns, needs guidance. Mid → owns features, solves ambiguous problems, mentors juniors. Senior → designs systems, defines standards, unblocks team. Staff → sets technical direction, influences org-wide decisions, scales team effectiveness. Adjust complexity and autonomy expectations per level.
27
+
28
+ 3. **Interview Stage Design**: Stage 1 (Screening) → 30min technical phone screen with 2 focused questions. Stage 2 (Coding) → 60-90min live coding (algorithm + system implementation). Stage 3 (System Design) → 60min architecture session (scale/reliability/trade-offs). Stage 4 (Behavioral) → 45min STAR method competency questions. Stage 5 (Team Fit) → 30min cultural values alignment.
29
+
30
+ 4. **Question Bank Generation**: For system-design → design URL shortener (junior), design rate limiter (mid), design distributed cache (senior), design multi-region data platform (staff). For coding → two-sum (junior), LRU cache (mid), concurrent task scheduler (senior), distributed transaction coordinator (staff). Include rubric with 1-4 scoring for each question dimension.
31
+
32
+ 5. **Rubric Framework**: Define 4 levels per competency. Level 1 (Below bar) → cannot complete basic task with hints. Level 2 (Mixed signals) → completes with significant guidance. Level 3 (Hire bar) → completes independently with good trade-off reasoning. Level 4 (Strong hire) → exceptional depth, proactive edge case handling, teaches interviewer something new.
33
+
34
+ 6. **Calibration Protocol**: Run shadow interviews for first 3 sessions. Compare scores across interviewers weekly. Flag score variance > 1 point for debrief. Maintain question difficulty metrics (pass rate, average score). Rotate questions quarterly to prevent memorization. Document common failure modes and how to probe deeper.
35
+
36
+ 7. **Bias Mitigation**: Use structured rubrics (not gut feel). Ask same core questions to all candidates. Train interviewers on inclusive language. Anonymize resumes during screening. Track demographic offer rates and adjust process if disparities emerge. Provide clear feedback to rejected candidates.
37
+ </process>
@@ -0,0 +1,27 @@
1
+ ---
2
+ description: "Design human-in-the-loop escalation gates and thresholds. Usage: /mindforge:hitl [system] [--autonomy progressive] [--explain always]"
3
+ ---
4
+
5
+ <objective>
6
+ Design a human-in-the-loop system with calibrated escalation gates that balances agent autonomy with human oversight, using reversibility and impact as the primary classification axes, and progressively expanding autonomy as trust is established.
7
+ </objective>
8
+
9
+ <execution_context>
10
+ @.mindforge/skills/human-in-the-loop-design/SKILL.md
11
+ </execution_context>
12
+
13
+ <context>
14
+ Arguments: $ARGUMENTS (system or agent name, optional --autonomy mode, optional --explain frequency)
15
+ Knowledge: Agent action catalog, business criticality classification, regulatory requirements, historical escalation data.
16
+ </context>
17
+
18
+ <process>
19
+ 1. **Classify All Agent Actions By Reversibility x Impact**: Create a 2x2 matrix: (reversible + low impact = autonomous), (reversible + high impact = confirm), (irreversible + low impact = approve), (irreversible + high impact = block until human review). Catalog every action the agent can take.
20
+ 2. **Set Autonomy Level Per Action Type**: Assign each action one of four levels: autonomous (agent acts freely, logs for audit), confirm (agent proposes, human clicks approve/reject), approve (agent drafts, human reviews thoroughly before execution), block (agent cannot perform, must hand off to human).
21
+ 3. **Design Escalation UX**: Create low-friction, informative escalation interfaces. Show: what the agent wants to do, why (evidence/reasoning), what the alternatives are, and what happens if rejected. Minimize context-switching cost for the human reviewer.
22
+ 4. **Set Confidence Thresholds For Escalation**: Define confidence scores that trigger escalation: agent confidence < 0.7 = escalate even for normally-autonomous actions. Confidence < 0.4 = block. Calibrate thresholds using historical accuracy data.
23
+ 5. **Implement Explanation Generation**: For every escalation, generate a structured explanation: action proposed, reasoning chain, evidence consulted, confidence score, risk assessment, and recommended human action. Explanations must be concise (< 200 words).
24
+ 6. **Track Escalation Rate**: Monitor: total escalations per day, escalation rate by action type, human approval rate (high approval = threshold too tight), human rejection rate (high rejection = agent quality issue), and time-to-resolution.
25
+ 7. **Calibrate Boundaries**: Too many escalations = threshold too tight (human fatigue, defeats purpose). Too few = threshold too loose (risk of unreviewed harmful actions). Target: 5-15% escalation rate for mature systems. Review weekly and adjust.
26
+ 8. **Plan Progressive Autonomy Expansion**: As the agent demonstrates reliability (>95% approval rate for a category over 30 days), propose promoting that action category to a less restrictive level. Require explicit human approval to expand autonomy. Never auto-promote.
27
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: Set up internationalization architecture. Usage - /mindforge:i18n [app] [--format icu] [--locales en,fr,ja] [--lazy-load]
3
+ ---
4
+
5
+ <objective>
6
+ Set up a comprehensive internationalization architecture that externalizes
7
+ all user-facing strings, implements ICU message format for complex plurals
8
+ and selections, configures locale detection with fallback chains, and
9
+ establishes a scalable translation workflow with lazy-loading per route.
10
+ </objective>
11
+
12
+ <execution_context>
13
+ @.mindforge/skills/i18n-architecture/SKILL.md
14
+ </execution_context>
15
+
16
+ <context>
17
+ $ARGUMENTS
18
+ </context>
19
+
20
+ <process>
21
+ 1. Audit all user-facing strings in the application: UI labels, error messages, email templates, push notifications, PDF reports, and dynamic content. Flag hardcoded strings, string concatenation (breaks in inflected languages), and embedded formatting (dates, numbers, currencies).
22
+ 2. Set up message catalog structure organized by feature namespace: one file per locale per namespace (e.g., messages/en/auth.json, messages/fr/auth.json). Keep namespaces small (<200 keys) for efficient lazy-loading. Define key naming convention (dot-separated, descriptive).
23
+ 3. Implement ICU message format based on --format flag (default ICU): configure plural rules ({count, plural, one {# item} other {# items}}), select for gender/context ({gender, select, male {He} female {She} other {They}}), and nested formatting. Validate messages at build time.
24
+ 4. Configure locale detection with fallback chain: (1) URL parameter/path prefix, (2) user preference from profile/cookie, (3) Accept-Language header, (4) geo-IP lookup, (5) default locale. Implement locale negotiation (fr-CA falls back to fr, then to en).
25
+ 5. Add lazy-loading per route based on --lazy-load flag: split message bundles by route/feature, load locale data on navigation (prefetch next likely locale), cache loaded bundles in memory, and handle loading states (show skeleton or previous locale until loaded).
26
+ 6. Handle RTL layout for Arabic/Hebrew based on --locales: use CSS logical properties (margin-inline-start instead of margin-left), configure dir="rtl" attribute, mirror icons and layouts, and test bidirectional text mixing within a single paragraph.
27
+ 7. Set up number, date, and currency formatting using Intl API: configure Intl.NumberFormat per locale (decimal separators, grouping), Intl.DateTimeFormat (12h/24h, month names), and Intl.RelativeTimeFormat. Never hardcode format patterns.
28
+ 8. Configure translation workflow: source strings extracted to translation management system (Crowdin/Phrase/Lokalise), context and screenshots attached per key, translator review and QA process, automated PR with new translations, and CI validation of completeness.
29
+ 9. Implement locale-aware sorting and searching: configure Intl.Collator for proper alphabetical ordering per locale, handle diacritics in search (normalize to NFD), and support locale-specific search tokenization for CJK languages.
30
+ 10. Log i18n architecture in AUDIT with: app, locales supported, format standard, lazy-loading strategy, RTL support, translation workflow, and completeness percentage per locale.
31
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: Design idempotency patterns for a service or API. Usage - /mindforge:idempotent [endpoint] [--key-strategy client|server] [--store redis|db]
3
+ ---
4
+
5
+ <objective>
6
+ Design idempotency patterns that ensure repeated requests produce the same
7
+ result without side effects, selecting the appropriate key strategy and storage
8
+ backend, handling concurrent duplicate submissions safely, and providing
9
+ clear retry semantics to API consumers.
10
+ </objective>
11
+
12
+ <execution_context>
13
+ @.mindforge/skills/idempotency-patterns/SKILL.md
14
+ </execution_context>
15
+
16
+ <context>
17
+ $ARGUMENTS
18
+ </context>
19
+
20
+ <process>
21
+ 1. Identify non-idempotent operations in the service: POST endpoints that create resources, payment processing, email/notification sending, external API calls with side effects, and state machine transitions. Classify by impact of duplicate execution (financial, data integrity, user experience).
22
+ 2. Choose key strategy based on --key-strategy flag: client-generated UUID (client sends Idempotency-Key header, best for payment APIs), or server-derived key (hash of request body + user + endpoint, best for implicit deduplication). Document key format and uniqueness guarantees.
23
+ 3. Select storage backend based on --store flag: Redis for ephemeral keys with auto-expiration (ideal for APIs with short retry windows), database for permanent records (required for financial operations with audit trail). Consider hybrid: Redis for fast lookup + DB for permanent record.
24
+ 4. Implement the check-execute-store pattern: (1) receive request with idempotency key, (2) check if key exists in store, (3) if exists return stored response, (4) if not acquire lock, (5) execute operation, (6) store response with key, (7) release lock, (8) return response.
25
+ 5. Set TTL for idempotency keys based on retry window: 24 hours for payment APIs, 1 hour for general mutations, 5 minutes for high-volume low-risk operations. Document TTL in API documentation so clients know the safe retry window.
26
+ 6. Handle concurrent requests with the same key: implement distributed locking (Redis SETNX or database advisory lock), return 409 Conflict if lock is held, or implement optimistic locking with compare-and-swap. Ensure lock has a timeout to prevent deadlocks.
27
+ 7. Design response storage: store full HTTP response (status code, headers, body) for exact replay, include metadata (created_at, expires_at, request_hash), and handle response size limits (compress if > 1MB, reject if > 10MB).
28
+ 8. Test with duplicate submissions: verify same response returned for duplicate key, verify no duplicate side effects (double charge, double email), verify concurrent duplicates resolve safely, and verify expired keys allow re-execution.
29
+ 9. Document retry safety in API contract: specify which endpoints are idempotent, required headers (Idempotency-Key format), safe retry window (TTL), and error responses for key conflicts (409) and expired keys (410 Gone).
30
+ 10. Log idempotency design in AUDIT with: endpoint, key strategy, storage backend, TTL, concurrent handling approach, and retry semantics.
31
+ </process>
@@ -0,0 +1,135 @@
1
+ ---
2
+ description: Set up MindForge at the organisation level — create standardised org-level
3
+ ---
4
+
5
+ # MindForge — Init Org Command
6
+ # Usage: /mindforge:init-org [--org-name "Name"] [--update]
7
+
8
+ ## Purpose
9
+ Set up MindForge at the organisation level — create standardised org-level
10
+ context files that are shared across ALL projects in the organisation.
11
+
12
+ Intended to be run ONCE by a platform engineer or engineering lead.
13
+ Output is committed to a shared `mindforge-org-config` repository
14
+ and distributed to projects as a git submodule or npm package.
15
+
16
+ ## Step 1 — Gather org information
17
+
18
+ Ask (one question at a time):
19
+ 1. "What is your organisation name?"
20
+ 2. "Describe what your organisation builds in 1-2 sentences."
21
+ 3. "What is your primary tech stack? (describe in plain English)"
22
+ 4. "What is your default deployment target? (AWS / GCP / Azure / self-hosted / hybrid)"
23
+ 5. "What regulatory frameworks apply to your organisation?"
24
+ Options: GDPR / HIPAA / SOC 2 / PCI-DSS / ISO 27001 / None / Multiple
25
+ 6. "What is your source control platform?" (GitHub / GitLab / Bitbucket / Azure DevOps)
26
+ 7. "What is your issue tracker?" (Jira / GitHub Issues / Linear / Azure DevOps / None)
27
+ 8. "Who are your Tier 3 compliance approvers? (email addresses, comma-separated)"
28
+
29
+ ## Step 2 — Generate org-level context files
30
+
31
+ Create (or update with `--update`) these files:
32
+
33
+ ### `.mindforge/org/ORG.md`
34
+ Populated from answers with:
35
+ - Organisation identity and mission
36
+ - Default tech stack with version recommendations
37
+ - Architecture defaults
38
+ - Team conventions
39
+ - Compliance requirements
40
+
41
+ ### `.mindforge/org/CONVENTIONS.md`
42
+ Generate sensible defaults based on the tech stack detected.
43
+ For TypeScript/Node.js stacks: strict TypeScript, ESLint, Conventional Commits
44
+ For Python stacks: ruff, mypy, black formatting
45
+ For Go: standard Go toolchain conventions
46
+ Mark each section clearly: [DEFAULT] or [CUSTOMISE THIS]
47
+
48
+ ### `.mindforge/org/SECURITY.md`
49
+ Generate based on declared compliance frameworks:
50
+ - GDPR → include GDPR-specific policies
51
+ - HIPAA → include PHI handling requirements
52
+ - PCI-DSS → include card data handling policies
53
+ - SOC 2 → include access control requirements
54
+ Mark critical sections: [REVIEW WITH SECURITY TEAM]
55
+
56
+ ### `.mindforge/org/TOOLS.md`
57
+ Generate approved library list based on tech stack.
58
+ Include common forbidden libraries (moment.js, request, etc.)
59
+ Mark: [ADD YOUR APPROVED LIBRARIES]
60
+
61
+ ### `.mindforge/org/integrations/INTEGRATIONS-CONFIG.md`
62
+ Pre-populate based on declared platforms:
63
+ - GitHub → fill GitHub config section
64
+ - Jira → fill Jira config section
65
+ Mark credential fields clearly: [SET VIA ENVIRONMENT VARIABLE]
66
+
67
+ ### `.mindforge/governance/GOVERNANCE-CONFIG.md`
68
+ Pre-populate based on declared approvers and compliance frameworks.
69
+ Higher compliance burden → lower Tier 2/3 thresholds.
70
+ Stricter approval SLAs for HIPAA/PCI-DSS organisations.
71
+
72
+ ## Step 3 — Generate skills recommendation
73
+
74
+ Based on the tech stack and compliance requirements, recommend skills to install:
75
+
76
+ ```
77
+ Recommended skills for your tech stack:
78
+
79
+ Core skills (already included — v0.6.0):
80
+ ✅ security-review, code-quality, api-design, testing-standards, documentation,
81
+ performance, accessibility, data-privacy, incident-response, database-patterns
82
+
83
+ Additional skills recommended for your stack:
84
+ [tech-stack-specific recommendations from registry]
85
+
86
+ For your compliance requirements:
87
+ [compliance-specific skill recommendations]
88
+
89
+ Install all recommendations?
90
+ yes → npx mindforge-skills install [list]
91
+ no → I'll show you the install commands for each
92
+ ```
93
+
94
+ ## Step 4 — Create distribution package
95
+
96
+ Offer to create an org-skills npm package for distributing org-level config:
97
+
98
+ ```
99
+ Create `@your-org/mindforge-config` npm package?
100
+ This package will distribute your org-level MindForge configuration
101
+ to all projects in your organisation via: npx @your-org/mindforge-config
102
+
103
+ Files included:
104
+ .mindforge/org/ORG.md
105
+ .mindforge/org/CONVENTIONS.md
106
+ .mindforge/org/SECURITY.md
107
+ .mindforge/org/TOOLS.md
108
+ .mindforge/org/skills/MANIFEST.md
109
+ .mindforge/org/integrations/INTEGRATIONS-CONFIG.md (without credentials)
110
+ .mindforge/governance/GOVERNANCE-CONFIG.md (without credentials)
111
+ ```
112
+
113
+ ## Step 5 — Write AUDIT entry and report
114
+
115
+ ```json
116
+ { "event": "org_initialised", "org_name": "[name]", "compliance_frameworks": [...], "skills_recommended": [...] }
117
+ ```
118
+
119
+ Report:
120
+ ```
121
+ ✅ MindForge organisation configuration complete.
122
+
123
+ Files created:
124
+ .mindforge/org/ORG.md
125
+ .mindforge/org/CONVENTIONS.md
126
+ .mindforge/org/SECURITY.md
127
+ .mindforge/org/TOOLS.md
128
+ .mindforge/governance/GOVERNANCE-CONFIG.md
129
+
130
+ Next steps:
131
+ 1. Review each file — look for [CUSTOMISE THIS] markers
132
+ 2. Fill in SECURITY.md with your security team
133
+ 3. Commit to your org's mindforge-config repository
134
+ 4. Share with all projects: npx @your-org/mindforge-config (if you created the package)
135
+ ```
@@ -0,0 +1,170 @@
1
+ ---
2
+ description: Initialise a new project under the MindForge framework.
3
+ ---
4
+
5
+ Initialise a new project under the MindForge framework.
6
+
7
+ ## Pre-check
8
+ Read `.planning/PROJECT.md`. If it already exists and contains content,
9
+ ask: "A project is already initialised. Do you want to reinitialise? (yes/no)"
10
+ Stop if the user says no.
11
+
12
+ ## Pre-flight Environment Check
13
+ Verify that `CLAUDE.md` exists at the root of the project and `.claude/commands/mindforge/` is populated. If not, silently run the following to enable zero-config IDE autocomplete (Cursor, Windsurf, Claude Code):
14
+ ```bash
15
+ mkdir -p .claude/commands/mindforge
16
+ cp -r .agent/mindforge/* .claude/commands/mindforge/ 2>/dev/null || true
17
+ cp -r .agents/workflows/* .claude/commands/mindforge/ 2>/dev/null || true
18
+ cp .agent/CLAUDE.md ./CLAUDE.md 2>/dev/null || true
19
+ cp .agent/CLAUDE.md ./.cursorrules 2>/dev/null || true
20
+ cp .agent/CLAUDE.md ./.windsurfrules 2>/dev/null || true
21
+ ```
22
+
23
+ ## Step 1 — Requirements interview
24
+ Ask these questions one at a time. Wait for the full answer before asking the next.
25
+ Do not batch them. Do not rush.
26
+
27
+ 1. "What is this project? Give me a 1-2 sentence description."
28
+ 2. "Who is the primary user? Describe them specifically."
29
+ 3. "What problem does this solve for them? What is the pain today?"
30
+ 4. "What tech stack do you want to use? (Say 'recommend one' if unsure.)"
31
+ — If they say recommend: ask 3 clarifying questions about team size,
32
+ deployment environment, and performance requirements. Then recommend
33
+ a specific stack with brief rationale for each choice.
34
+ 5. "What is explicitly NOT in scope for v1? Name at least 3 things."
35
+ 6. "What does a successful v1 look like? How will you know it worked?"
36
+ 7. "Are there any compliance requirements? (GDPR, HIPAA, SOC2, PCI-DSS, none)"
37
+
38
+ ## Step 2 — Create context files
39
+
40
+ Write `.planning/PROJECT.md`:
41
+ ```markdown
42
+ # [Project Name]
43
+ [One-line description]
44
+
45
+ ## Problem statement
46
+ [From answer 3]
47
+
48
+ ## Target user
49
+ [From answer 2]
50
+
51
+ ## Tech stack
52
+ | Layer | Choice | Rationale |
53
+ |------------|-----------------|--------------------------------|
54
+ | [layer] | [technology] | [why] |
55
+
56
+ ## v1 scope — IN
57
+ [Bullet list of what is included]
58
+
59
+ ## v1 scope — OUT (explicitly excluded)
60
+ [Bullet list from answer 5]
61
+
62
+ ## Success criteria
63
+ [From answer 6]
64
+
65
+ ## Compliance
66
+ [From answer 7]
67
+
68
+ ## Initialised
69
+ [ISO 8601 timestamp]
70
+ ```
71
+
72
+ Write `.planning/REQUIREMENTS.md`:
73
+ ```markdown
74
+ # Requirements — [Project Name]
75
+
76
+ ## Functional requirements
77
+ | ID | Requirement | Acceptance criterion | Scope |
78
+ |-------|--------------------------|--------------------------------|-------|
79
+ | FR-01 | | | v1 |
80
+
81
+ ## Non-functional requirements
82
+ | ID | Category | Requirement | Measure |
83
+ |--------|---------------|--------------------------------|----------------|
84
+ | NFR-01 | Performance | | |
85
+ | NFR-02 | Security | | |
86
+ | NFR-03 | Availability | | |
87
+
88
+ ## Out of scope
89
+ [Items explicitly excluded from v1]
90
+ ```
91
+
92
+ Write `.planning/STATE.md`:
93
+ ```markdown
94
+ # MindForge — Project State
95
+
96
+ ## Status
97
+ Project initialised. No phases started.
98
+
99
+ ## Current phase
100
+ None
101
+
102
+ ## Last completed task
103
+ Project initialisation
104
+
105
+ ## Next action
106
+ Run /mindforge:plan-phase 1 to begin planning Phase 1.
107
+
108
+ ## Decisions made
109
+ - Project scope defined (see PROJECT.md)
110
+ - Tech stack chosen (see PROJECT.md)
111
+
112
+ ## Active blockers
113
+ None
114
+
115
+ ## Last updated
116
+ [ISO 8601 timestamp]
117
+ ```
118
+
119
+ Write `.planning/HANDOFF.json`:
120
+ ```json
121
+ {
122
+ "schema_version": "1.0.0",
123
+ "project": "[project name]",
124
+ "phase": null,
125
+ "plan": null,
126
+ "plan_step": null,
127
+ "last_completed_task": {
128
+ "description": "Project initialisation",
129
+ "commit_sha": null,
130
+ "verified": true
131
+ },
132
+ "next_task": "Run /mindforge:plan-phase 1",
133
+ "in_progress": {
134
+ "file": null,
135
+ "intent": null,
136
+ "completed_steps": [],
137
+ "remaining_steps": []
138
+ },
139
+ "blockers": [],
140
+ "decisions_needed": [],
141
+ "context_refs": [
142
+ ".planning/PROJECT.md",
143
+ ".planning/STATE.md",
144
+ ".planning/REQUIREMENTS.md"
145
+ ],
146
+ "agent_notes": "Fresh project. Read PROJECT.md and REQUIREMENTS.md before planning.",
147
+ "session_summary": "Project initialised.",
148
+ "recent_files": [
149
+ ".planning/PROJECT.md",
150
+ ".planning/REQUIREMENTS.md",
151
+ ".planning/STATE.md",
152
+ ".planning/HANDOFF.json"
153
+ ],
154
+ "recent_commits": [],
155
+ "updated_at": "[ISO 8601 timestamp]",
156
+ "_warning": "Never store secrets, tokens, or passwords in this file. It is tracked in git."
157
+ }
158
+ ```
159
+
160
+ ## Step 3 — Confirm and guide
161
+ Tell the user:
162
+ "✅ MindForge project initialised.
163
+
164
+ Files created:
165
+ .planning/PROJECT.md
166
+ .planning/REQUIREMENTS.md
167
+ .planning/STATE.md
168
+ .planning/HANDOFF.json
169
+
170
+ Next step: Run /mindforge:plan-phase 1 to plan your first phase."
@@ -0,0 +1,28 @@
1
+ ---
2
+ description: Follow the full installation protocol from .mindforge/distribution/registry-client.md.
3
+ ---
4
+
5
+ Follow the full installation protocol from `.mindforge/distribution/registry-client.md`.
6
+
7
+ Steps:
8
+ 1. Resolve package name from skill name.
9
+ 2. Check if already installed (skip if same version, offer upgrade if newer).
10
+ 3. Fetch from registry (npm or private if --registry specified).
11
+ 4. Validate the skill:
12
+ ```bash
13
+ node bin/mindforge-cli.js validate-skill ./SKILL.md
14
+ ```
15
+ 5. Run injection guard check (handled by validator).
16
+ 6. Install to tier directory:
17
+ ```bash
18
+ node bin/mindforge-cli.js install-skill [skill-name] --tier [1|2|3]
19
+ ```
20
+ 7. Register in MANIFEST.md:
21
+ ```bash
22
+ node bin/mindforge-cli.js register-skill [skill-name] [version] [tier]
23
+ ```
24
+ 8. Write AUDIT entry:
25
+ ```bash
26
+ node bin/mindforge-cli.js audit-skill [skill-name] [version] [tier]
27
+ ```
28
+ 9. Confirm: "Run /mindforge:skills validate to verify installation"
@@ -0,0 +1,46 @@
1
+ ---
2
+ description: Debug agent behavior or failures using 4-phase self-diagnosis. Usage - /mindforge:introspect [--last-failure] [--session] [--stuck]
3
+ ---
4
+
5
+ <objective>
6
+ When the agent is stuck, producing incorrect outputs, or wasting tokens,
7
+ run structured self-diagnosis to identify and recover from the failure.
8
+ </objective>
9
+
10
+ <execution_context>
11
+ @.mindforge/skills/agent-introspection-debugging/SKILL.md
12
+ @.mindforge/engine/autonomous/stuck-detector.md
13
+ </execution_context>
14
+
15
+ <context>
16
+ $ARGUMENTS
17
+ </context>
18
+
19
+ <process>
20
+ 1. Parse flags: --last-failure (analyze most recent failure), --session (review current session), --stuck (analyze stuck signals).
21
+ 2. **Phase 1 — Failure Capture:**
22
+ - If --last-failure: read recent AUDIT entries for the failed task
23
+ - If --session: scan current session for quality degradation signals
24
+ - If --stuck: read stuck-detector.md signals and iteration count
25
+ - Document: what was attempted, what happened, what was expected
26
+ 3. **Phase 2 — Diagnosis:**
27
+ - Match symptoms to failure mode table:
28
+ - Context overflow? (repeating mistakes, forgetting constraints)
29
+ - Hallucination? (confident claims about non-existent things)
30
+ - Loop spinning? (same action 3+ times without progress)
31
+ - Scope creep? (task expanding beyond spec)
32
+ - Stale context? (acting on outdated info)
33
+ - Identify the root cause (not just symptoms)
34
+ 4. **Phase 3 — Contained Recovery:**
35
+ - Identify MINIMUM change needed to recover
36
+ - Do NOT restart from scratch unless necessary
37
+ - Do NOT make speculative changes
38
+ - Attempt recovery (max 2 attempts)
39
+ - If recovery fails: escalate to user
40
+ 5. **Phase 4 — Introspection Report:**
41
+ - Write to `.planning/INTROSPECTION-[timestamp].md`
42
+ - Include: failure type, root cause, recovery action, prevention recommendation
43
+ - Consider: should this become an instinct? (via learn-instinct)
44
+ 6. Log introspection event in AUDIT.
45
+ 7. If recovery succeeded: resume work. If not: present report and await user direction.
46
+ </process>