mindforge-cc 11.8.2 → 11.9.0

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 (361) hide show
  1. package/.agent/mindforge/wf-orchestrate-review.md +35 -0
  2. package/.agent/mindforge/wf-verification-loop.md +45 -0
  3. package/.agent/mindforge/wf-workflow-optimizer.md +51 -0
  4. package/.agent/skills/article-illustrator/SKILL.md +7 -7
  5. package/.agent/skills/arxiv/SKILL.md +6 -6
  6. package/.agent/skills/code-wiki/SKILL.md +11 -11
  7. package/.agent/skills/concept-diagrams/SKILL.md +6 -6
  8. package/.agent/skills/concept-diagrams/examples/apartment-floor-plan-conversion.md +244 -0
  9. package/.agent/skills/concept-diagrams/examples/automated-password-reset-flow.md +276 -0
  10. package/.agent/skills/concept-diagrams/examples/autonomous-llm-research-agent-flow.md +240 -0
  11. package/.agent/skills/concept-diagrams/examples/banana-journey-tree-to-smoothie.md +161 -0
  12. package/.agent/skills/concept-diagrams/examples/commercial-aircraft-structure.md +209 -0
  13. package/.agent/skills/concept-diagrams/examples/cpu-ooo-microarchitecture.md +236 -0
  14. package/.agent/skills/concept-diagrams/examples/electricity-grid-flow.md +182 -0
  15. package/.agent/skills/concept-diagrams/examples/feature-film-production-pipeline.md +172 -0
  16. package/.agent/skills/concept-diagrams/examples/hospital-emergency-department-flow.md +165 -0
  17. package/.agent/skills/concept-diagrams/examples/ml-benchmark-grouped-bar-chart.md +114 -0
  18. package/.agent/skills/concept-diagrams/examples/place-order-uml-sequence.md +325 -0
  19. package/.agent/skills/concept-diagrams/examples/smart-city-infrastructure.md +173 -0
  20. package/.agent/skills/concept-diagrams/examples/smartphone-layer-anatomy.md +154 -0
  21. package/.agent/skills/concept-diagrams/examples/sn2-reaction-mechanism.md +247 -0
  22. package/.agent/skills/concept-diagrams/examples/wind-turbine-structure.md +338 -0
  23. package/.agent/skills/concept-diagrams/templates/template.html +174 -0
  24. package/.agent/skills/domain-intel/SKILL.md +7 -7
  25. package/.agent/skills/duckduckgo-search/SKILL.md +17 -17
  26. package/.agent/skills/github-auth/scripts/gh-env.sh +66 -0
  27. package/.agent/skills/github-code-review/SKILL.md +9 -9
  28. package/.agent/skills/github-pr-workflow/SKILL.md +3 -3
  29. package/.agent/skills/godmode/SKILL.md +8 -8
  30. package/.agent/skills/jupyter-live-kernel/SKILL.md +3 -3
  31. package/.agent/skills/kanban-orchestrator/SKILL.md +10 -10
  32. package/.agent/skills/kanban-worker/SKILL.md +6 -6
  33. package/.agent/skills/llm-wiki/SKILL.md +7 -7
  34. package/.agent/skills/mindforge-autonomous/SKILL.md +1 -1
  35. package/.agent/skills/mindforge-complete-milestone/SKILL.md +1 -1
  36. package/.agent/skills/mindforge-discuss-phase/SKILL.md +1 -1
  37. package/.agent/skills/mindforge-do/SKILL.md +1 -1
  38. package/.agent/skills/mindforge-execute-phase/SKILL.md +1 -1
  39. package/.agent/skills/mindforge-list-workspaces/SKILL.md +1 -1
  40. package/.agent/skills/mindforge-manager/SKILL.md +1 -1
  41. package/.agent/skills/mindforge-neural-orchestrator/SKILL.md +1 -1
  42. package/.agent/skills/mindforge-new-milestone/SKILL.md +4 -4
  43. package/.agent/skills/mindforge-new-project/SKILL.md +4 -4
  44. package/.agent/skills/mindforge-new-workspace/SKILL.md +1 -1
  45. package/.agent/skills/mindforge-note/SKILL.md +1 -1
  46. package/.agent/skills/mindforge-plan-phase/SKILL.md +1 -1
  47. package/.agent/skills/mindforge-profile-user/SKILL.md +1 -1
  48. package/.agent/skills/mindforge-remove-workspace/SKILL.md +1 -1
  49. package/.agent/skills/mindforge-research-phase/SKILL.md +1 -1
  50. package/.agent/skills/mindforge-ui-phase/SKILL.md +1 -1
  51. package/.agent/skills/mindforge-ui-review/SKILL.md +1 -1
  52. package/.agent/skills/mindforge-verify-work/SKILL.md +1 -1
  53. package/.agent/skills/mindforge-workspace-isolated/SKILL.md +1 -1
  54. package/.agent/skills/node-inspect-debugger/SKILL.md +1 -1
  55. package/.agent/skills/obsidian/SKILL.md +15 -15
  56. package/.agent/skills/osint-investigation/SKILL.md +3 -2
  57. package/.agent/skills/osint-investigation/references/sources/courtlistener.md +98 -0
  58. package/.agent/skills/osint-investigation/references/sources/gdelt.md +104 -0
  59. package/.agent/skills/osint-investigation/references/sources/icij-offshore.md +104 -0
  60. package/.agent/skills/osint-investigation/references/sources/nyc-acris.md +90 -0
  61. package/.agent/skills/osint-investigation/references/sources/ofac-sdn.md +92 -0
  62. package/.agent/skills/osint-investigation/references/sources/opencorporates.md +103 -0
  63. package/.agent/skills/osint-investigation/references/sources/sec-edgar.md +83 -0
  64. package/.agent/skills/osint-investigation/references/sources/senate-ld.md +89 -0
  65. package/.agent/skills/osint-investigation/references/sources/usaspending.md +97 -0
  66. package/.agent/skills/osint-investigation/references/sources/wayback.md +93 -0
  67. package/.agent/skills/osint-investigation/references/sources/wikipedia.md +107 -0
  68. package/.agent/skills/osint-investigation/scripts/_http.py +82 -0
  69. package/.agent/skills/osint-investigation/scripts/_normalize.py +67 -0
  70. package/.agent/skills/osint-investigation/scripts/build_findings.py +221 -0
  71. package/.agent/skills/osint-investigation/scripts/entity_resolution.py +228 -0
  72. package/.agent/skills/osint-investigation/scripts/fetch_courtlistener.py +149 -0
  73. package/.agent/skills/osint-investigation/scripts/fetch_gdelt.py +161 -0
  74. package/.agent/skills/osint-investigation/scripts/fetch_icij_offshore.py +234 -0
  75. package/.agent/skills/osint-investigation/scripts/fetch_nyc_acris.py +203 -0
  76. package/.agent/skills/osint-investigation/scripts/fetch_ofac_sdn.py +175 -0
  77. package/.agent/skills/osint-investigation/scripts/fetch_opencorporates.py +191 -0
  78. package/.agent/skills/osint-investigation/scripts/fetch_sec_edgar.py +184 -0
  79. package/.agent/skills/osint-investigation/scripts/fetch_senate_ld.py +146 -0
  80. package/.agent/skills/osint-investigation/scripts/fetch_usaspending.py +170 -0
  81. package/.agent/skills/osint-investigation/scripts/fetch_wayback.py +142 -0
  82. package/.agent/skills/osint-investigation/scripts/fetch_wikipedia.py +266 -0
  83. package/.agent/skills/osint-investigation/scripts/timing_analysis.py +252 -0
  84. package/.agent/skills/oss-forensics/SKILL.md +10 -9
  85. package/.agent/skills/oss-forensics/scripts/evidence-store.py +313 -0
  86. package/.agent/skills/parallel-cli/SKILL.md +2 -2
  87. package/.agent/skills/pinggy-tunnel/SKILL.md +3 -3
  88. package/.agent/skills/pixel-art/SKILL.md +2 -2
  89. package/.agent/skills/plan/SKILL.md +10 -10
  90. package/.agent/skills/requesting-code-review/SKILL.md +4 -6
  91. package/.agent/skills/research-paper-writing/SKILL.md +32 -32
  92. package/.agent/skills/rest-graphql-debug/SKILL.md +31 -32
  93. package/.agent/skills/s6-container-supervision/SKILL.md +1 -1
  94. package/.agent/skills/scrapling/SKILL.md +1 -1
  95. package/.agent/skills/sherlock/SKILL.md +1 -1
  96. package/.agent/skills/simplify-code/SKILL.md +5 -7
  97. package/.agent/skills/skill-authoring/SKILL.md +4 -4
  98. package/.agent/skills/spike/SKILL.md +11 -13
  99. package/.agent/skills/subagent-driven-development/SKILL.md +7 -11
  100. package/.agent/skills/systematic-debugging/SKILL.md +13 -14
  101. package/.agent/skills/test-driven-development/SKILL.md +6 -7
  102. package/.agent/skills/video-orchestrator/SKILL.md +1 -1
  103. package/.agent/skills/web-pentest/SKILL.md +7 -7
  104. package/.mindforge/config.json +3 -2
  105. package/.mindforge/dynamic-workflows/REGISTRY.md +4 -1
  106. package/.mindforge/dynamic-workflows/index.json +910 -840
  107. package/.mindforge/dynamic-workflows/scripts/accessibility-audit.js +88 -90
  108. package/.mindforge/dynamic-workflows/scripts/ai-model-eval.js +59 -61
  109. package/.mindforge/dynamic-workflows/scripts/api-contract-test.js +87 -85
  110. package/.mindforge/dynamic-workflows/scripts/api-migration.js +120 -122
  111. package/.mindforge/dynamic-workflows/scripts/architecture-modernization.js +84 -86
  112. package/.mindforge/dynamic-workflows/scripts/code-audit.js +75 -77
  113. package/.mindforge/dynamic-workflows/scripts/code-explainer.js +99 -101
  114. package/.mindforge/dynamic-workflows/scripts/competitive-analysis.js +62 -64
  115. package/.mindforge/dynamic-workflows/scripts/competitive-teardown.js +106 -108
  116. package/.mindforge/dynamic-workflows/scripts/cost-analysis.js +78 -80
  117. package/.mindforge/dynamic-workflows/scripts/data-pipeline-validate.js +47 -49
  118. package/.mindforge/dynamic-workflows/scripts/database-migration.js +85 -87
  119. package/.mindforge/dynamic-workflows/scripts/debug-detective.js +97 -99
  120. package/.mindforge/dynamic-workflows/scripts/dependency-health.js +81 -83
  121. package/.mindforge/dynamic-workflows/scripts/design-system-audit.js +84 -86
  122. package/.mindforge/dynamic-workflows/scripts/documentation-gen.js +65 -67
  123. package/.mindforge/dynamic-workflows/scripts/feature-planner.js +78 -80
  124. package/.mindforge/dynamic-workflows/scripts/incident-response.js +81 -83
  125. package/.mindforge/dynamic-workflows/scripts/multi-repo-sync.js +49 -51
  126. package/.mindforge/dynamic-workflows/scripts/mutation-testing.js +113 -115
  127. package/.mindforge/dynamic-workflows/scripts/onboard-codebase.js +79 -81
  128. package/.mindforge/dynamic-workflows/scripts/orchestrate-review.js +115 -0
  129. package/.mindforge/dynamic-workflows/scripts/perf-optimize.js +97 -99
  130. package/.mindforge/dynamic-workflows/scripts/pr-review.js +61 -63
  131. package/.mindforge/dynamic-workflows/scripts/refactor-plan.js +88 -90
  132. package/.mindforge/dynamic-workflows/scripts/release-prep.js +79 -81
  133. package/.mindforge/dynamic-workflows/scripts/security-hardening.js +117 -119
  134. package/.mindforge/dynamic-workflows/scripts/security-threat-model.js +119 -121
  135. package/.mindforge/dynamic-workflows/scripts/tdd-sprint.js +80 -82
  136. package/.mindforge/dynamic-workflows/scripts/tech-evaluation.js +50 -52
  137. package/.mindforge/dynamic-workflows/scripts/test-coverage-gap.js +68 -70
  138. package/.mindforge/dynamic-workflows/scripts/ux-heuristic-audit.js +89 -91
  139. package/.mindforge/dynamic-workflows/scripts/verification-loop.js +138 -0
  140. package/.mindforge/dynamic-workflows/scripts/workflow-optimizer.js +136 -0
  141. package/.mindforge/dynamic-workflows/scripts/writer-reviewer.js +63 -65
  142. package/.mindforge/memory/sync-manifest.json +1 -1
  143. package/.mindforge/personas/advisor-researcher.md +2 -2
  144. package/.mindforge/personas/api-load-tester.md +1 -1
  145. package/.mindforge/personas/authentication-architect.md +1 -1
  146. package/.mindforge/personas/backup-recovery-specialist.md +1 -1
  147. package/.mindforge/personas/build-optimizer.md +1 -1
  148. package/.mindforge/personas/caching-strategist.md +1 -1
  149. package/.mindforge/personas/chaos-engineer.md +1 -1
  150. package/.mindforge/personas/compliance-auditor.md +1 -1
  151. package/.mindforge/personas/config-management-expert.md +1 -1
  152. package/.mindforge/personas/coverage-specialist.md +1 -1
  153. package/.mindforge/personas/debug-specialist.md +2 -2
  154. package/.mindforge/personas/debugger.md +2 -2
  155. package/.mindforge/personas/dependency-auditor.md +1 -1
  156. package/.mindforge/personas/developer.md +1 -1
  157. package/.mindforge/personas/devops-engineer.md +1 -1
  158. package/.mindforge/personas/executor.md +1 -1
  159. package/.mindforge/personas/go-specialist.md +1 -1
  160. package/.mindforge/personas/incident-commander.md +1 -1
  161. package/.mindforge/personas/java-specialist.md +1 -1
  162. package/.mindforge/personas/kubernetes-debugger.md +1 -1
  163. package/.mindforge/personas/logging-architect.md +1 -1
  164. package/.mindforge/personas/mf-planner.md +1 -1
  165. package/.mindforge/personas/mf-researcher.md +1 -1
  166. package/.mindforge/personas/mf-reviewer.md +1 -1
  167. package/.mindforge/personas/nyquist-auditor.md +1 -1
  168. package/.mindforge/personas/observability-engineer.md +1 -1
  169. package/.mindforge/personas/performance-optimizer.md +1 -1
  170. package/.mindforge/personas/phase-researcher.md +5 -5
  171. package/.mindforge/personas/planner.md +1 -1
  172. package/.mindforge/personas/project-researcher.md +2 -2
  173. package/.mindforge/personas/python-specialist.md +1 -1
  174. package/.mindforge/personas/qa-engineer.md +1 -1
  175. package/.mindforge/personas/release-manager.md +1 -1
  176. package/.mindforge/personas/research-agent.md +4 -4
  177. package/.mindforge/personas/roadmapper-extend.md +1 -1
  178. package/.mindforge/personas/rust-specialist.md +1 -1
  179. package/.mindforge/personas/security-reviewer.md +1 -1
  180. package/.mindforge/personas/tech-writer.md +1 -1
  181. package/.mindforge/personas/typescript-wizard.md +1 -1
  182. package/.mindforge/personas/ui-researcher.md +1 -1
  183. package/.mindforge/skills/accessibility/SKILL.md +3 -3
  184. package/.mindforge/skills/agent-architecture-audit/SKILL.md +11 -0
  185. package/.mindforge/skills/agent-loops/SKILL.md +1 -1
  186. package/.mindforge/skills/arxiv/SKILL.md +6 -6
  187. package/.mindforge/skills/arxiv/scripts/search_arxiv.py +114 -0
  188. package/.mindforge/skills/code-tour/SKILL.md +2 -2
  189. package/.mindforge/skills/code-wiki/SKILL.md +11 -11
  190. package/.mindforge/skills/code-wiki/templates/README.md +31 -0
  191. package/.mindforge/skills/code-wiki/templates/architecture.md +30 -0
  192. package/.mindforge/skills/code-wiki/templates/getting-started.md +47 -0
  193. package/.mindforge/skills/code-wiki/templates/module.md +38 -0
  194. package/.mindforge/skills/concept-diagrams/SKILL.md +6 -6
  195. package/.mindforge/skills/concept-diagrams/examples/apartment-floor-plan-conversion.md +244 -0
  196. package/.mindforge/skills/concept-diagrams/examples/automated-password-reset-flow.md +276 -0
  197. package/.mindforge/skills/concept-diagrams/examples/autonomous-llm-research-agent-flow.md +240 -0
  198. package/.mindforge/skills/concept-diagrams/examples/banana-journey-tree-to-smoothie.md +161 -0
  199. package/.mindforge/skills/concept-diagrams/examples/commercial-aircraft-structure.md +209 -0
  200. package/.mindforge/skills/concept-diagrams/examples/cpu-ooo-microarchitecture.md +236 -0
  201. package/.mindforge/skills/concept-diagrams/examples/electricity-grid-flow.md +182 -0
  202. package/.mindforge/skills/concept-diagrams/examples/feature-film-production-pipeline.md +172 -0
  203. package/.mindforge/skills/concept-diagrams/examples/hospital-emergency-department-flow.md +165 -0
  204. package/.mindforge/skills/concept-diagrams/examples/ml-benchmark-grouped-bar-chart.md +114 -0
  205. package/.mindforge/skills/concept-diagrams/examples/place-order-uml-sequence.md +325 -0
  206. package/.mindforge/skills/concept-diagrams/examples/smart-city-infrastructure.md +173 -0
  207. package/.mindforge/skills/concept-diagrams/examples/smartphone-layer-anatomy.md +154 -0
  208. package/.mindforge/skills/concept-diagrams/examples/sn2-reaction-mechanism.md +247 -0
  209. package/.mindforge/skills/concept-diagrams/examples/wind-turbine-structure.md +338 -0
  210. package/.mindforge/skills/concept-diagrams/references/dashboard-patterns.md +43 -0
  211. package/.mindforge/skills/concept-diagrams/references/infrastructure-patterns.md +144 -0
  212. package/.mindforge/skills/concept-diagrams/references/physical-shape-cookbook.md +42 -0
  213. package/.mindforge/skills/concept-diagrams/templates/template.html +174 -0
  214. package/.mindforge/skills/creative-ideation/references/full-prompt-library.md +110 -0
  215. package/.mindforge/skills/documentation/SKILL.md +1 -1
  216. package/.mindforge/skills/domain-intel/SKILL.md +7 -7
  217. package/.mindforge/skills/domain-intel/scripts/domain_intel.py +397 -0
  218. package/.mindforge/skills/duckduckgo-search/SKILL.md +17 -17
  219. package/.mindforge/skills/duckduckgo-search/scripts/duckduckgo.sh +28 -0
  220. package/.mindforge/skills/environment-management/SKILL.md +1 -1
  221. package/.mindforge/skills/github-code-review/SKILL.md +9 -9
  222. package/.mindforge/skills/github-code-review/references/review-output-template.md +74 -0
  223. package/.mindforge/skills/github-issues/templates/bug-report.md +35 -0
  224. package/.mindforge/skills/github-issues/templates/feature-request.md +31 -0
  225. package/.mindforge/skills/github-pr-workflow/SKILL.md +3 -3
  226. package/.mindforge/skills/github-pr-workflow/references/ci-troubleshooting.md +183 -0
  227. package/.mindforge/skills/github-pr-workflow/references/conventional-commits.md +71 -0
  228. package/.mindforge/skills/github-pr-workflow/templates/pr-body-bugfix.md +35 -0
  229. package/.mindforge/skills/github-pr-workflow/templates/pr-body-feature.md +33 -0
  230. package/.mindforge/skills/incident-response/SKILL.md +1 -1
  231. package/.mindforge/skills/jupyter-live-kernel/SKILL.md +3 -3
  232. package/.mindforge/skills/kanban-orchestrator/SKILL.md +10 -10
  233. package/.mindforge/skills/kanban-worker/SKILL.md +6 -6
  234. package/.mindforge/skills/meme-generation/SKILL.md +1 -1
  235. package/.mindforge/skills/meme-generation/scripts/generate_meme.py +470 -0
  236. package/.mindforge/skills/meme-generation/scripts/templates.json +97 -0
  237. package/.mindforge/skills/obsidian/SKILL.md +15 -15
  238. package/.mindforge/skills/orch-pipeline/SKILL.md +2 -2
  239. package/.mindforge/skills/osint-investigation/SKILL.md +3 -2
  240. package/.mindforge/skills/osint-investigation/references/sources/courtlistener.md +98 -0
  241. package/.mindforge/skills/osint-investigation/references/sources/gdelt.md +104 -0
  242. package/.mindforge/skills/osint-investigation/references/sources/icij-offshore.md +104 -0
  243. package/.mindforge/skills/osint-investigation/references/sources/nyc-acris.md +90 -0
  244. package/.mindforge/skills/osint-investigation/references/sources/ofac-sdn.md +92 -0
  245. package/.mindforge/skills/osint-investigation/references/sources/opencorporates.md +103 -0
  246. package/.mindforge/skills/osint-investigation/references/sources/sec-edgar.md +83 -0
  247. package/.mindforge/skills/osint-investigation/references/sources/senate-ld.md +89 -0
  248. package/.mindforge/skills/osint-investigation/references/sources/usaspending.md +97 -0
  249. package/.mindforge/skills/osint-investigation/references/sources/wayback.md +93 -0
  250. package/.mindforge/skills/osint-investigation/references/sources/wikipedia.md +107 -0
  251. package/.mindforge/skills/osint-investigation/scripts/_http.py +82 -0
  252. package/.mindforge/skills/osint-investigation/scripts/_normalize.py +67 -0
  253. package/.mindforge/skills/osint-investigation/scripts/build_findings.py +221 -0
  254. package/.mindforge/skills/osint-investigation/scripts/entity_resolution.py +228 -0
  255. package/.mindforge/skills/osint-investigation/scripts/fetch_courtlistener.py +149 -0
  256. package/.mindforge/skills/osint-investigation/scripts/fetch_gdelt.py +161 -0
  257. package/.mindforge/skills/osint-investigation/scripts/fetch_icij_offshore.py +234 -0
  258. package/.mindforge/skills/osint-investigation/scripts/fetch_nyc_acris.py +203 -0
  259. package/.mindforge/skills/osint-investigation/scripts/fetch_ofac_sdn.py +175 -0
  260. package/.mindforge/skills/osint-investigation/scripts/fetch_opencorporates.py +191 -0
  261. package/.mindforge/skills/osint-investigation/scripts/fetch_sec_edgar.py +184 -0
  262. package/.mindforge/skills/osint-investigation/scripts/fetch_senate_ld.py +146 -0
  263. package/.mindforge/skills/osint-investigation/scripts/fetch_usaspending.py +170 -0
  264. package/.mindforge/skills/osint-investigation/scripts/fetch_wayback.py +142 -0
  265. package/.mindforge/skills/osint-investigation/scripts/fetch_wikipedia.py +266 -0
  266. package/.mindforge/skills/osint-investigation/scripts/timing_analysis.py +252 -0
  267. package/.mindforge/skills/osint-investigation/templates/source-template.md +59 -0
  268. package/.mindforge/skills/oss-forensics/SKILL.md +6 -6
  269. package/.mindforge/skills/oss-forensics/references/evidence-types.md +89 -0
  270. package/.mindforge/skills/oss-forensics/references/github-archive-guide.md +184 -0
  271. package/.mindforge/skills/oss-forensics/references/investigation-templates.md +131 -0
  272. package/.mindforge/skills/oss-forensics/references/recovery-techniques.md +164 -0
  273. package/.mindforge/skills/oss-forensics/scripts/evidence-store.py +313 -0
  274. package/.mindforge/skills/oss-forensics/templates/forensic-report.md +151 -0
  275. package/.mindforge/skills/oss-forensics/templates/malicious-package-report.md +43 -0
  276. package/.mindforge/skills/pixel-art/SKILL.md +2 -2
  277. package/.mindforge/skills/pixel-art/references/palettes.md +49 -0
  278. package/.mindforge/skills/plan/SKILL.md +10 -10
  279. package/.mindforge/skills/requesting-code-review/SKILL.md +4 -6
  280. package/.mindforge/skills/research-paper-writing/SKILL.md +32 -32
  281. package/.mindforge/skills/research-paper-writing/references/autoreason-methodology.md +394 -0
  282. package/.mindforge/skills/research-paper-writing/references/checklists.md +434 -0
  283. package/.mindforge/skills/research-paper-writing/references/citation-workflow.md +563 -0
  284. package/.mindforge/skills/research-paper-writing/references/experiment-patterns.md +728 -0
  285. package/.mindforge/skills/research-paper-writing/references/human-evaluation.md +476 -0
  286. package/.mindforge/skills/research-paper-writing/references/paper-types.md +481 -0
  287. package/.mindforge/skills/research-paper-writing/references/reviewer-guidelines.md +433 -0
  288. package/.mindforge/skills/research-paper-writing/references/sources.md +191 -0
  289. package/.mindforge/skills/research-paper-writing/references/writing-guide.md +474 -0
  290. package/.mindforge/skills/research-paper-writing/templates/README.md +251 -0
  291. package/.mindforge/skills/scrapling/SKILL.md +1 -1
  292. package/.mindforge/skills/security-review/SKILL.md +1 -1
  293. package/.mindforge/skills/sherlock/SKILL.md +1 -1
  294. package/.mindforge/skills/simplify-code/SKILL.md +5 -7
  295. package/.mindforge/skills/spike/SKILL.md +11 -13
  296. package/.mindforge/skills/subagent-driven-development/SKILL.md +7 -11
  297. package/.mindforge/skills/subagent-driven-development/references/context-budget-discipline.md +53 -0
  298. package/.mindforge/skills/subagent-driven-development/references/gates-taxonomy.md +93 -0
  299. package/.mindforge/skills/systematic-debugging/SKILL.md +13 -14
  300. package/.mindforge/skills/test-driven-development/SKILL.md +7 -8
  301. package/.mindforge/skills/testing-standards/SKILL.md +1 -1
  302. package/.mindforge/skills/web-pentest/SKILL.md +2 -2
  303. package/.mindforge/skills/web-pentest/references/bypass-techniques.md +133 -0
  304. package/.mindforge/skills/web-pentest/references/exploitation-techniques.md +204 -0
  305. package/.mindforge/skills/web-pentest/references/scope-enforcement.md +110 -0
  306. package/.mindforge/skills/web-pentest/references/vuln-taxonomy.md +81 -0
  307. package/.mindforge/skills/web-pentest/templates/authorization.md +69 -0
  308. package/.mindforge/skills/web-pentest/templates/pentest-report.md +178 -0
  309. package/.mindforge/skills/writing-skills/SKILL.md +4 -3
  310. package/CHANGELOG.md +35 -0
  311. package/MINDFORGE.md +3 -3
  312. package/README.md +9 -7
  313. package/RELEASENOTES.md +65 -2
  314. package/SECURITY.md +5 -3
  315. package/bin/autonomous/auto-runner.js +5 -2
  316. package/bin/engine/skill-loader.js +4 -0
  317. package/bin/governance/rbac.js +4 -0
  318. package/bin/memory/eis-client.js +1 -0
  319. package/bin/mindforge-cli.js +5 -0
  320. package/bin/models/bedrock-provider.js +192 -0
  321. package/bin/models/model-client.js +19 -0
  322. package/bin/spawn-agent.js +9 -2
  323. package/docs/commands-reference.md +68 -6
  324. package/docs/faq.md +38 -1
  325. package/docs/getting-started.md +27 -12
  326. package/docs/sdk-reference.md +36 -3
  327. package/docs/troubleshooting.md +59 -1
  328. package/docs/user-guide.md +7 -4
  329. package/package.json +3 -3
  330. package/.claude/commands/mindforge/skill-tdd.md +0 -53
  331. package/.claude/commands/mindforge/skills-index.md +0 -118
  332. package/.claude/commands/mindforge/systematic-debug.md +0 -60
  333. package/.claude/commands/mindforge/wf-accessibility-audit.md +0 -31
  334. package/.claude/commands/mindforge/wf-ai-model-eval.md +0 -31
  335. package/.claude/commands/mindforge/wf-api-migration.md +0 -31
  336. package/.claude/commands/mindforge/wf-architecture-modernization.md +0 -32
  337. package/.claude/commands/mindforge/wf-catalog.md +0 -59
  338. package/.claude/commands/mindforge/wf-code-audit.md +0 -31
  339. package/.claude/commands/mindforge/wf-code-explainer.md +0 -31
  340. package/.claude/commands/mindforge/wf-competitive-analysis.md +0 -31
  341. package/.claude/commands/mindforge/wf-competitive-teardown.md +0 -31
  342. package/.claude/commands/mindforge/wf-cost-analysis.md +0 -31
  343. package/.claude/commands/mindforge/wf-data-pipeline-validate.md +0 -31
  344. package/.claude/commands/mindforge/wf-database-migration.md +0 -31
  345. package/.claude/commands/mindforge/wf-debug-detective.md +0 -32
  346. package/.claude/commands/mindforge/wf-design-system-audit.md +0 -31
  347. package/.claude/commands/mindforge/wf-documentation-gen.md +0 -31
  348. package/.claude/commands/mindforge/wf-feature-planner.md +0 -31
  349. package/.claude/commands/mindforge/wf-incident-response.md +0 -31
  350. package/.claude/commands/mindforge/wf-multi-repo-sync.md +0 -31
  351. package/.claude/commands/mindforge/wf-mutation-testing.md +0 -31
  352. package/.claude/commands/mindforge/wf-onboard-codebase.md +0 -31
  353. package/.claude/commands/mindforge/wf-perf-optimize.md +0 -31
  354. package/.claude/commands/mindforge/wf-pr-review.md +0 -31
  355. package/.claude/commands/mindforge/wf-refactor-plan.md +0 -31
  356. package/.claude/commands/mindforge/wf-release-prep.md +0 -31
  357. package/.claude/commands/mindforge/wf-security-threat-model.md +0 -31
  358. package/.claude/commands/mindforge/wf-tdd-sprint.md +0 -31
  359. package/.claude/commands/mindforge/wf-tech-evaluation.md +0 -31
  360. package/.claude/commands/mindforge/wf-ux-heuristic-audit.md +0 -31
  361. package/.claude/commands/mindforge/wf-writer-reviewer.md +0 -30
@@ -0,0 +1,251 @@
1
+ # LaTeX Templates for ML/AI Conferences
2
+
3
+ This directory contains official LaTeX templates for major machine learning and AI conferences.
4
+
5
+ ---
6
+
7
+ ## Compiling LaTeX to PDF
8
+
9
+ ### Option 1: VS Code with LaTeX Workshop (Recommended)
10
+
11
+ **Setup:**
12
+ 1. Install [TeX Live](https://www.tug.org/texlive/) (full distribution recommended)
13
+ - macOS: `brew install --cask mactex`
14
+ - Ubuntu: `sudo apt install texlive-full`
15
+ - Windows: Download from [tug.org/texlive](https://www.tug.org/texlive/)
16
+
17
+ 2. Install VS Code extension: **LaTeX Workshop** by James Yu
18
+ - Open VS Code → Extensions (Cmd/Ctrl+Shift+X) → Search "LaTeX Workshop" → Install
19
+
20
+ **Usage:**
21
+ - Open any `.tex` file in VS Code
22
+ - Save the file (Cmd/Ctrl+S) → Auto-compiles to PDF
23
+ - Click the green play button or use `Cmd/Ctrl+Alt+B` to build
24
+ - View PDF: Click "View LaTeX PDF" icon or `Cmd/Ctrl+Alt+V`
25
+ - Side-by-side view: `Cmd/Ctrl+Alt+V` then drag tab
26
+
27
+ **Settings** (add to VS Code `settings.json`):
28
+ ```json
29
+ {
30
+ "latex-workshop.latex.autoBuild.run": "onSave",
31
+ "latex-workshop.view.pdf.viewer": "tab",
32
+ "latex-workshop.latex.recipes": [
33
+ {
34
+ "name": "pdflatex → bibtex → pdflatex × 2",
35
+ "tools": ["pdflatex", "bibtex", "pdflatex", "pdflatex"]
36
+ }
37
+ ]
38
+ }
39
+ ```
40
+
41
+ ### Option 2: Command Line
42
+
43
+ ```bash
44
+ # Basic compilation
45
+ pdflatex main.tex
46
+
47
+ # With bibliography (full workflow)
48
+ pdflatex main.tex
49
+ bibtex main
50
+ pdflatex main.tex
51
+ pdflatex main.tex
52
+
53
+ # Using latexmk (handles dependencies automatically)
54
+ latexmk -pdf main.tex
55
+
56
+ # Continuous compilation (watches for changes)
57
+ latexmk -pdf -pvc main.tex
58
+ ```
59
+
60
+ ### Option 3: Overleaf (Online)
61
+
62
+ 1. Go to [overleaf.com](https://www.overleaf.com)
63
+ 2. New Project → Upload Project → Upload the template folder as ZIP
64
+ 3. Edit online with real-time PDF preview
65
+ 4. No local installation needed
66
+
67
+ ### Option 4: Other IDEs
68
+
69
+ | IDE | Extension/Plugin | Notes |
70
+ |-----|------------------|-------|
71
+ | **Cursor** | LaTeX Workshop | Same as VS Code |
72
+ | **Sublime Text** | LaTeXTools | Popular, well-maintained |
73
+ | **Vim/Neovim** | VimTeX | Powerful, keyboard-driven |
74
+ | **Emacs** | AUCTeX | Comprehensive LaTeX environment |
75
+ | **TeXstudio** | Built-in | Dedicated LaTeX IDE |
76
+ | **Texmaker** | Built-in | Cross-platform LaTeX editor |
77
+
78
+ ### Troubleshooting Compilation
79
+
80
+ **"File not found" errors:**
81
+ ```bash
82
+ # Ensure you're in the template directory
83
+ cd templates/icml2026
84
+ pdflatex example_paper.tex
85
+ ```
86
+
87
+ **Bibliography not appearing:**
88
+ ```bash
89
+ # Run bibtex after first pdflatex
90
+ pdflatex main.tex
91
+ bibtex main # Uses main.aux to find citations
92
+ pdflatex main.tex # Incorporates bibliography
93
+ pdflatex main.tex # Resolves references
94
+ ```
95
+
96
+ **Missing packages:**
97
+ ```bash
98
+ # TeX Live package manager
99
+ tlmgr install <package-name>
100
+
101
+ # Or install full distribution to avoid this
102
+ ```
103
+
104
+ ---
105
+
106
+ ## Available Templates
107
+
108
+ | Conference | Directory | Year | Source |
109
+ |------------|-----------|------|--------|
110
+ | ICML | `icml2026/` | 2026 | [Official ICML](https://icml.cc/Conferences/2026/AuthorInstructions) |
111
+ | ICLR | `iclr2026/` | 2026 | [Official GitHub](https://github.com/ICLR/Master-Template) |
112
+ | NeurIPS | `neurips2025/` | 2025 | Community template |
113
+ | ACL | `acl/` | 2025+ | [Official ACL](https://github.com/acl-org/acl-style-files) |
114
+ | AAAI | `aaai2026/` | 2026 | [AAAI Author Kit](https://aaai.org/authorkit26/) |
115
+ | COLM | `colm2025/` | 2025 | [Official COLM](https://github.com/COLM-org/Template) |
116
+
117
+ ## Usage
118
+
119
+ ### ICML 2026
120
+
121
+ ```latex
122
+ \documentclass{article}
123
+ \usepackage{icml2026} % For submission
124
+ % \usepackage[accepted]{icml2026} % For camera-ready
125
+
126
+ \begin{document}
127
+ % Your paper content
128
+ \end{document}
129
+ ```
130
+
131
+ Key files:
132
+ - `icml2026.sty` - Style file
133
+ - `icml2026.bst` - Bibliography style
134
+ - `example_paper.tex` - Example document
135
+
136
+ ### ICLR 2026
137
+
138
+ ```latex
139
+ \documentclass{article}
140
+ \usepackage[submission]{iclr2026_conference} % For submission
141
+ % \usepackage[final]{iclr2026_conference} % For camera-ready
142
+
143
+ \begin{document}
144
+ % Your paper content
145
+ \end{document}
146
+ ```
147
+
148
+ Key files:
149
+ - `iclr2026_conference.sty` - Style file
150
+ - `iclr2026_conference.bst` - Bibliography style
151
+ - `iclr2026_conference.tex` - Example document
152
+
153
+ ### ACL Venues (ACL, EMNLP, NAACL)
154
+
155
+ ```latex
156
+ \documentclass[11pt]{article}
157
+ \usepackage[review]{acl} % For review
158
+ % \usepackage{acl} % For camera-ready
159
+
160
+ \begin{document}
161
+ % Your paper content
162
+ \end{document}
163
+ ```
164
+
165
+ Key files:
166
+ - `acl.sty` - Style file
167
+ - `acl_natbib.bst` - Bibliography style
168
+ - `acl_latex.tex` - Example document
169
+
170
+ ### AAAI 2026
171
+
172
+ ```latex
173
+ \documentclass[letterpaper]{article}
174
+ \usepackage[submission]{aaai2026} % For submission
175
+ % \usepackage{aaai2026} % For camera-ready
176
+
177
+ \begin{document}
178
+ % Your paper content
179
+ \end{document}
180
+ ```
181
+
182
+ Key files:
183
+ - `aaai2026.sty` - Style file
184
+ - `aaai2026.bst` - Bibliography style
185
+
186
+ ### COLM 2025
187
+
188
+ ```latex
189
+ \documentclass{article}
190
+ \usepackage[submission]{colm2025_conference} % For submission
191
+ % \usepackage[final]{colm2025_conference} % For camera-ready
192
+
193
+ \begin{document}
194
+ % Your paper content
195
+ \end{document}
196
+ ```
197
+
198
+ Key files:
199
+ - `colm2025_conference.sty` - Style file
200
+ - `colm2025_conference.bst` - Bibliography style
201
+
202
+ ## Page Limits Summary
203
+
204
+ | Conference | Submission | Camera-Ready | Notes |
205
+ |------------|-----------|--------------|-------|
206
+ | ICML 2026 | 8 pages | 9 pages | +unlimited refs/appendix |
207
+ | ICLR 2026 | 9 pages | 10 pages | +unlimited refs/appendix |
208
+ | NeurIPS 2025 | 9 pages | 9 pages | +checklist outside limit |
209
+ | ACL 2025 | 8 pages (long) | varies | +unlimited refs/appendix |
210
+ | AAAI 2026 | 7 pages | 8 pages | +unlimited refs/appendix |
211
+ | COLM 2025 | 9 pages | 10 pages | +unlimited refs/appendix |
212
+
213
+ ## Common Issues
214
+
215
+ ### Compilation Errors
216
+
217
+ 1. **Missing packages**: Install full TeX distribution (TeX Live Full or MikTeX)
218
+ 2. **Bibliography errors**: Use the provided `.bst` file with `\bibliographystyle{}`
219
+ 3. **Font warnings**: Install `cm-super` or use `\usepackage{lmodern}`
220
+
221
+ ### Anonymization
222
+
223
+ For submission, ensure:
224
+ - No author names in `\author{}`
225
+ - No acknowledgments section
226
+ - No grant numbers
227
+ - Use anonymous repositories
228
+ - Cite own work in third person
229
+
230
+ ### Common LaTeX Packages
231
+
232
+ ```latex
233
+ % Recommended packages (check compatibility with venue style)
234
+ \usepackage{amsmath,amsthm,amssymb} % Math
235
+ \usepackage{graphicx} % Figures
236
+ \usepackage{booktabs} % Tables
237
+ \usepackage{hyperref} % Links
238
+ \usepackage{algorithm,algorithmic} % Algorithms
239
+ \usepackage{natbib} % Citations
240
+ ```
241
+
242
+ ## Updating Templates
243
+
244
+ Templates are updated annually. Check official sources before each submission:
245
+
246
+ - ICML: https://icml.cc/
247
+ - ICLR: https://iclr.cc/
248
+ - NeurIPS: https://neurips.cc/
249
+ - ACL: https://github.com/acl-org/acl-style-files
250
+ - AAAI: https://aaai.org/
251
+ - COLM: https://colmweb.org/
@@ -19,7 +19,7 @@ triggers: scrape website, web scraping, extract web content, scrape page, web pa
19
19
  - Scraping JS-rendered pages that need a real browser
20
20
  - Bypassing Cloudflare Turnstile or bot detection
21
21
  - Crawling multiple pages with a spider
22
- - When the built-in `web_extract` tool does not return the data you need
22
+ - When the built-in `WebFetch` tool does not return the data you need
23
23
 
24
24
  ## Installation
25
25
 
@@ -3,7 +3,7 @@ name: security-review
3
3
  version: 1.0.0
4
4
  min_mindforge_version: 0.1.0
5
5
  status: stable
6
- triggers: auth, authentication, authorisation, authorization, login, logout, password, token, JWT, session, cookie, OAuth, payment, billing, stripe, PII, GDPR, personal data, upload, file upload, credentials, API key, secret, env, environment variable, encryption, hashing, bcrypt, argon2
6
+ triggers: auth, authentication, authorisation, authorization, login, logout, password, token, JWT, session, secure cookie, OAuth, payment, billing, stripe, data protection audit, privacy compliance, sensitive data, upload, file upload, credentials, API key, secret, env, environment variable, encryption, hashing, bcrypt, argon2
7
7
  ---
8
8
 
9
9
  # Skill — Security Review
@@ -71,7 +71,7 @@ sherlock --print-found --no-color "<username>" --timeout 90
71
71
 
72
72
  ### 4. Execute Search
73
73
 
74
- Run via the `terminal` tool. The command typically takes 30-120 seconds depending on network conditions and site count.
74
+ Run via the `Bash` tool. The command typically takes 30-120 seconds depending on network conditions and site count.
75
75
 
76
76
  **Example terminal call:**
77
77
  ```json
@@ -71,15 +71,13 @@ before proceeding.
71
71
 
72
72
  ### Phase 2 — Launch three reviewers in parallel
73
73
 
74
- Use `delegate_task` **batch mode** pass all three tasks in one `tasks`
75
- array so they run concurrently. Three is the right fan-out for this pattern;
76
- it's well within the `delegation.max_concurrent_children` budget on any
77
- default install.
74
+ Make three separate `Agent` tool calls **in the same response** so they run
75
+ concurrently. Three is the right fan-out for this pattern.
78
76
 
79
77
  Give **every** reviewer the **complete diff** (not fragments — cross-file
80
78
  issues hide in the gaps) plus the absolute repo path so they can search the
81
- wider codebase. Each reviewer gets `terminal`, `file`, and `search`
82
- toolsets (so they can `git`, `read_file`, and `search_files`/grep).
79
+ wider codebase. Each reviewer gets `Bash` (for `git`), `Read`, and `Grep`
80
+ so they can inspect the full diff and the wider codebase.
83
81
 
84
82
  Tell each reviewer to:
85
83
  - Search the existing codebase for evidence (don't reason from the diff alone).
@@ -134,7 +132,7 @@ Wait for all three to return (batch mode returns them together).
134
132
  Don't apply a perf "fix" that hurts clarity unless the path is genuinely
135
133
  hot. When two suggestions are mutually exclusive and both defensible, pick
136
134
  the one that touches less code and note the alternative.
137
- 4. **Apply** the surviving fixes directly with `patch` / `write_file` — unless
135
+ 4. **Apply** the surviving fixes directly with `Edit` / `Write` — unless
138
136
  the user asked for a dry run, in which case present the list and ask first.
139
137
  5. **Verify** you didn't break anything: run the project's targeted tests for
140
138
  the touched files (not the full suite), and re-run any linter/type check the
@@ -74,11 +74,11 @@ Spikes are not research-free — you research enough to pick the right approach,
74
74
 
75
75
  Use available tools for the research step:
76
76
 
77
- - `web_search("python websocket streaming libraries 2025")` — find candidates
78
- - `web_extract(urls=["https://websockets.readthedocs.io/..."])` — read the actual docs (returns markdown)
79
- - `terminal("pip show websockets | grep Version")` — check what's installed in the project's venv
77
+ - `WebSearch("python websocket streaming libraries 2025")` — find candidates
78
+ - `WebFetch(urls=["https://websockets.readthedocs.io/..."])` — read the actual docs (returns markdown)
79
+ - `Bash("pip show websockets | grep Version")` — check what's installed in the project's venv
80
80
 
81
- For libraries without docs pages, clone and read their `README.md` / `examples/` via `read_file`. Context7 MCP (if the user has it configured) is also a good source — `mcp_*_resolve-library-id` then `mcp_*_query-docs`.
81
+ For libraries without docs pages, clone and read their `README.md` / `examples/` via `Read`. WebFetch MCP (if the user has it configured) is also a good source — `mcp_*_resolve-library-id` then `mcp_*_query-docs`.
82
82
 
83
83
  ### 4. Build
84
84
 
@@ -111,20 +111,18 @@ spikes/
111
111
  **Building one spike** — a typical tool sequence:
112
112
 
113
113
  ```
114
- terminal("mkdir -p spikes/001-websocket-streaming")
115
- write_file("spikes/001-websocket-streaming/README.md", "# 001: websocket-streaming\n\n...")
116
- write_file("spikes/001-websocket-streaming/main.py", "...")
117
- terminal("cd spikes/001-websocket-streaming && python3 main.py")
114
+ Bash("mkdir -p spikes/001-websocket-streaming")
115
+ Write("spikes/001-websocket-streaming/README.md", "# 001: websocket-streaming\n\n...")
116
+ Write("spikes/001-websocket-streaming/main.py", "...")
117
+ Bash("cd spikes/001-websocket-streaming && python3 main.py")
118
118
  # Observe output, iterate.
119
119
  ```
120
120
 
121
- **Parallel comparison spikes (002a / 002b) — delegate.** When two approaches can run in parallel and both need real engineering (not 10-line prototypes), fan out with `delegate_task`:
121
+ **Parallel comparison spikes (002a / 002b) — delegate.** When two approaches can run in parallel and both need real engineering (not 10-line prototypes), fan out with two `Agent` tool calls in the same response:
122
122
 
123
123
  ```
124
- delegate_task(tasks=[
125
- {"goal": "Build 002a-pdf-parse-pdfjs: ...", "toolsets": ["terminal", "file", "web"]},
126
- {"goal": "Build 002b-pdf-parse-camelot: ...", "toolsets": ["terminal", "file", "web"]},
127
- ])
124
+ Agent(prompt="Build 002a-pdf-parse-pdfjs: ...")
125
+ Agent(prompt="Build 002b-pdf-parse-camelot: ...")
128
126
  ```
129
127
 
130
128
  Each subagent returns its own verdict; you write the head-to-head.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: subagent-driven-development
3
- description: "Execute plans via delegate_task subagents (2-stage review)."
3
+ description: "Execute plans via Agent subagents (2-stage review)."
4
4
  version: 1.1.0
5
5
  status: stable
6
6
  min_mindforge_version: 11.5.1
@@ -37,7 +37,7 @@ Read the plan file. Extract ALL tasks with their full text and context upfront.
37
37
 
38
38
  ```python
39
39
  # Read the plan
40
- read_file("docs/plans/feature-plan.md")
40
+ Read("docs/plans/feature-plan.md")
41
41
 
42
42
  # Create todo list with all tasks
43
43
  todo([
@@ -55,10 +55,10 @@ For EACH task in the plan:
55
55
 
56
56
  #### Step 1: Dispatch Implementer Subagent
57
57
 
58
- Use `delegate_task` with complete context:
58
+ Use `Agent` with complete context:
59
59
 
60
60
  ```python
61
- delegate_task(
61
+ Agent(
62
62
  goal="Implement Task 1: Create User model with email and password_hash fields",
63
63
  context="""
64
64
  TASK FROM PLAN:
@@ -81,7 +81,6 @@ delegate_task(
81
81
  - Tests use pytest, run from project root
82
82
  - bcrypt already in requirements.txt
83
83
  """,
84
- toolsets=['terminal', 'file']
85
84
  )
86
85
  ```
87
86
 
@@ -90,7 +89,7 @@ delegate_task(
90
89
  After the implementer completes, verify against the original spec:
91
90
 
92
91
  ```python
93
- delegate_task(
92
+ Agent(
94
93
  goal="Review if implementation matches the spec from the plan",
95
94
  context="""
96
95
  ORIGINAL TASK SPEC:
@@ -108,7 +107,6 @@ delegate_task(
108
107
 
109
108
  OUTPUT: PASS or list of specific spec gaps to fix.
110
109
  """,
111
- toolsets=['file']
112
110
  )
113
111
  ```
114
112
 
@@ -119,7 +117,7 @@ delegate_task(
119
117
  After spec compliance passes:
120
118
 
121
119
  ```python
122
- delegate_task(
120
+ Agent(
123
121
  goal="Review code quality for Task 1 implementation",
124
122
  context="""
125
123
  FILES TO REVIEW:
@@ -140,7 +138,6 @@ delegate_task(
140
138
  - Minor Issues: [optional]
141
139
  - Verdict: APPROVED or REQUEST_CHANGES
142
140
  """,
143
- toolsets=['file']
144
141
  )
145
142
  ```
146
143
 
@@ -157,7 +154,7 @@ todo([{"id": "task-1", "content": "Create User model with email field", "status"
157
154
  After ALL tasks are complete, dispatch a final integration reviewer:
158
155
 
159
156
  ```python
160
- delegate_task(
157
+ Agent(
161
158
  goal="Review the entire implementation for consistency and integration issues",
162
159
  context="""
163
160
  All tasks from the plan are complete. Review the full implementation:
@@ -166,7 +163,6 @@ delegate_task(
166
163
  - All tests passing?
167
164
  - Ready for merge?
168
165
  """,
169
- toolsets=['terminal', 'file']
170
166
  )
171
167
  ```
172
168
 
@@ -0,0 +1,53 @@
1
+ # Context Budget Discipline
2
+
3
+ Practical rules for keeping orchestrator context lean when spawning subagents or reading large artifacts. Use these whenever you're running a multi-step agent loop that will consume significant context — plan execution, subagent orchestration, review pipelines, multi-file refactors.
4
+
5
+ Adapted from the GSD (Get Shit Done) project's context-budget reference — MIT © 2025 Lex Christopherson ([gsd-build/get-shit-done](https://github.com/gsd-build/get-shit-done)).
6
+
7
+ ## Universal rules
8
+
9
+ Every workflow that spawns agents or reads significant content must follow these:
10
+
11
+ 1. **Never read agent definition files.** `delegate_task` auto-loads them — you reading them too just doubles the cost.
12
+ 2. **Never inline large files into subagent prompts.** Tell the agent to read the file from disk with `read_file` instead. The subagent gets full content; your context stays lean.
13
+ 3. **Read depth scales with context window.** See the table below.
14
+ 4. **Delegate heavy work to subagents.** The orchestrator routes; it doesn't execute.
15
+ 5. **Proactively warn** the user when you've consumed significant context ("Context is getting heavy — consider checkpointing progress before we continue").
16
+
17
+ ## Read depth by context window
18
+
19
+ Check the model's actual context window (not "it's Claude so 200K"). Some Sonnet deployments are 1M, some are 200K. If you don't know, assume the smaller one — err toward leanness.
20
+
21
+ | Context window | Subagent output reading | Summary files | Verification files | Plans for other phases |
22
+ |----------------|-------------------------|---------------|--------------------|-----------------------|
23
+ | < 500k (e.g. 200k) | Frontmatter only | Frontmatter only | Frontmatter only | Current phase only |
24
+ | >= 500k (1M models) | Full body permitted | Full body permitted | Full body permitted | Current phase only |
25
+
26
+ "Frontmatter only" means: read enough to see the final status/verdict/conclusion. If the subagent wrote a 3000-line debug log, read the summary section it produced, not the log.
27
+
28
+ ## Four-tier degradation model
29
+
30
+ Monitor your context usage and shift behavior as you climb the tiers. The point is to notice *before* you hit the wall, not when responses start truncating.
31
+
32
+ | Tier | Usage | Behavior |
33
+ |------|-------|----------|
34
+ | **PEAK** | 0 – 30% | Full operations. Read bodies, spawn multiple agents in parallel, inline results freely. |
35
+ | **GOOD** | 30 – 50% | Normal operations. Prefer frontmatter reads. Delegate aggressively. |
36
+ | **DEGRADING** | 50 – 70% | Economize. Frontmatter-only reads, minimal inlining, **warn the user** about budget. |
37
+ | **POOR** | 70%+ | Emergency mode. **Checkpoint progress immediately.** No new reads unless critical. Finish the current task and stop cleanly. |
38
+
39
+ ## Early warning signs (before panic thresholds fire)
40
+
41
+ Quality degrades *gradually* before hard limits hit. Watch for these:
42
+
43
+ - **Silent partial completion.** Subagent claims done but implementation is incomplete. Self-checks catch file existence, not semantic completeness. Always verify subagent output against the plan's must-haves, not just "did a file appear?"
44
+ - **Increasing vagueness.** Agent starts using phrases like "appropriate handling" or "standard patterns" instead of specific code. This is context pressure showing up before budget warnings fire.
45
+ - **Skipped protocol steps.** Agent omits steps it would normally follow. If success criteria has 8 items and the report covers 5, suspect context pressure, not "the agent decided 5 was enough."
46
+
47
+ When these signs appear, checkpoint the work and either reset context or hand off to a fresh subagent.
48
+
49
+ ## Fundamental limitation
50
+
51
+ When you orchestrate, you cannot verify semantic correctness of subagent output — only structural completeness ("did the file appear?", "does the test pass?"). Semantic verification requires either running the code yourself or delegating a review pass to another fresh subagent.
52
+
53
+ **Mitigation:** in every task you delegate, include explicit "must-have" truths the subagent must confirm in its response (e.g., "confirm your test actually tests X, not just that X was imported"). The subagent re-asserting concrete facts is evidence; vague summaries are not.
@@ -0,0 +1,93 @@
1
+ # Gates Taxonomy
2
+
3
+ Canonical gate types for validation checkpoints across any workflow that spawns subagents, runs review loops, or has human-approval pauses. Every validation checkpoint maps to one of these four types — naming them explicitly makes the workflow legible and prevents "what happens when this check fails?" confusion.
4
+
5
+ Adapted from the GSD (Get Shit Done) project's gates reference — MIT © 2025 Lex Christopherson ([gsd-build/get-shit-done](https://github.com/gsd-build/get-shit-done)).
6
+
7
+ ## The four gate types
8
+
9
+ ### 1. Pre-flight gate
10
+
11
+ **Purpose:** Validates preconditions before starting an operation.
12
+
13
+ **Behavior:** Blocks entry if conditions unmet. No partial work created — bail before anything changes.
14
+
15
+ **Recovery:** Fix the missing precondition, then retry.
16
+
17
+ **Examples:**
18
+ - Implementation phase checks that the plan file exists before it starts writing code.
19
+ - Delegated subagent checks that required env vars are set before making API calls.
20
+ - Commit checks that tests passed before pushing.
21
+
22
+ ### 2. Revision gate
23
+
24
+ **Purpose:** Evaluates output quality and routes to revision if insufficient.
25
+
26
+ **Behavior:** Loops back to the producer with specific feedback. Bounded by an iteration cap (typically 3).
27
+
28
+ **Recovery:** Producer addresses feedback; checker re-evaluates. The loop escalates early if issue count does not decrease between consecutive iterations (stall detection). After max iterations, escalates to the user unconditionally — never loop forever.
29
+
30
+ **Examples:**
31
+ - Plan reviewer reads a draft plan, returns specific issues, planner revises, reviewer re-reads (max 3 cycles).
32
+ - Code reviewer checks subagent-produced code against must-haves; dispatches fixes back to the implementer if any must-have failed.
33
+ - Test coverage checker validates new tests exercise the new paths; if not, sends back to author.
34
+
35
+ ### 3. Escalation gate
36
+
37
+ **Purpose:** Surfaces unresolvable issues to the human for a decision.
38
+
39
+ **Behavior:** Pauses workflow, presents options, waits for human input. Never guesses, never picks a default.
40
+
41
+ **Recovery:** Human chooses action; workflow resumes on the selected path.
42
+
43
+ **Examples:**
44
+ - Revision loop exhausted after 3 iterations.
45
+ - Merge conflict during automated worktree cleanup.
46
+ - Ambiguous requirement — two reasonable interpretations and the choice changes the approach.
47
+ - Subagent reports "the plan says X but the codebase actually does Y" — human decides which is right.
48
+
49
+ ### 4. Abort gate
50
+
51
+ **Purpose:** Terminates the operation to prevent damage or waste.
52
+
53
+ **Behavior:** Stops immediately, preserves state (checkpoint current progress), reports the specific reason.
54
+
55
+ **Recovery:** Human investigates root cause, fixes, restarts from checkpoint.
56
+
57
+ **Examples:**
58
+ - Context window critically low during execution (POOR tier, >70%) — abort cleanly rather than produce truncated output.
59
+ - Critical dependency unavailable mid-run (network down, API key revoked).
60
+ - Unrecoverable filesystem state (disk full, permissions lost).
61
+ - Safety invariant violated (agent attempted an irreversible destructive action outside approved scope).
62
+
63
+ ## How to use this in a skill
64
+
65
+ When you write an orchestration skill that has validation checkpoints, **name each checkpoint by its gate type explicitly** and answer three questions:
66
+
67
+ 1. **What condition triggers this gate?** (e.g., "plan file missing", "issue count didn't decrease", "context >70%")
68
+ 2. **What happens when it fails?** (block / loop back / ask human / abort)
69
+ 3. **Who resumes, and from where?** (fix precondition + retry, revise + re-check, human decision, restart from checkpoint)
70
+
71
+ Answering these three up front means your skill never hits "what do we do now?" at runtime.
72
+
73
+ ## Example — a review loop with all four gate types
74
+
75
+ ```
76
+ [Pre-flight] plan.md exists and is non-empty? → no: bail, ask user to write a plan first
77
+ ↓ yes
78
+ [Execute] subagent implements task
79
+
80
+ [Revision] reviewer checks against must-haves → fail: loop back to subagent (max 3)
81
+ ↓ pass
82
+ [Pre-flight] tests pass? → no: bail, report failing tests
83
+ ↓ yes
84
+ [Commit]
85
+
86
+ (on revision loop exhaustion)
87
+ [Escalation] "3 review cycles failed to converge on issue X — pick: force-merge, rewrite task, abandon"
88
+ ↓ user picks
89
+ (on any tier-POOR context pressure during loop)
90
+ [Abort] "context at 73%, checkpointing and stopping"
91
+ ```
92
+
93
+ The vocabulary is small on purpose. Every gate in every workflow should fit one of these four. If you find yourself inventing a fifth, it's probably a revision gate with extra branching, or an escalation gate in disguise.
@@ -64,7 +64,7 @@ You MUST complete each phase before proceeding to the next.
64
64
  - Read stack traces completely
65
65
  - Note line numbers, file paths, error codes
66
66
 
67
- **Action:** Use `read_file` on the relevant source files. Use `search_files` to find the error string in the codebase.
67
+ **Action:** Use `Read` on the relevant source files. Use `Grep` to find the error string in the codebase.
68
68
 
69
69
  ### 2. Reproduce Consistently
70
70
 
@@ -73,7 +73,7 @@ You MUST complete each phase before proceeding to the next.
73
73
  - Does it happen every time?
74
74
  - If not reproducible → gather more data, don't guess
75
75
 
76
- **Action:** Use the `terminal` tool to run the failing test or trigger the bug:
76
+ **Action:** Use the `Bash` tool to run the failing test or trigger the bug:
77
77
 
78
78
  ```bash
79
79
  # Run specific failing test
@@ -127,14 +127,14 @@ THEN investigate that specific component.
127
127
  - Keep tracing upstream until you find the source
128
128
  - Fix at the source, not at the symptom
129
129
 
130
- **Action:** Use `search_files` to trace references:
130
+ **Action:** Use `Grep` to trace references:
131
131
 
132
132
  ```python
133
133
  # Find where the function is called
134
- search_files("function_name(", path="src/", file_glob="*.py")
134
+ Grep("function_name(", path="src/", file_glob="*.py")
135
135
 
136
136
  # Find where the variable is set
137
- search_files("variable_name\\s*=", path="src/", file_glob="*.py")
137
+ Grep("variable_name\\s*=", path="src/", file_glob="*.py")
138
138
  ```
139
139
 
140
140
  ### Phase 1 Completion Checklist
@@ -159,10 +159,10 @@ search_files("variable_name\\s*=", path="src/", file_glob="*.py")
159
159
  - Locate similar working code in the same codebase
160
160
  - What works that's similar to what's broken?
161
161
 
162
- **Action:** Use `search_files` to find comparable patterns:
162
+ **Action:** Use `Grep` to find comparable patterns:
163
163
 
164
164
  ```python
165
- search_files("similar_pattern", path="src/", file_glob="*.py")
165
+ Grep("similar_pattern", path="src/", file_glob="*.py")
166
166
  ```
167
167
 
168
168
  ### 2. Compare Against References
@@ -317,17 +317,17 @@ If you catch yourself thinking:
317
317
 
318
318
  Use these available tools during Phase 1:
319
319
 
320
- - **`search_files`** — Find error strings, trace function calls, locate patterns
321
- - **`read_file`** — Read source code with line numbers for precise analysis
322
- - **`terminal`** — Run tests, check git history, reproduce bugs
323
- - **`web_search`/`web_extract`** — Research error messages, library docs
320
+ - **`Grep`** — Find error strings, trace function calls, locate patterns
321
+ - **`Read`** — Read source code with line numbers for precise analysis
322
+ - **`Bash`** — Run tests, check git history, reproduce bugs
323
+ - **`WebSearch`/`WebFetch`** — Research error messages, library docs
324
324
 
325
- ### With delegate_task
325
+ ### With Agent
326
326
 
327
327
  For complex multi-component debugging, dispatch investigation subagents:
328
328
 
329
329
  ```python
330
- delegate_task(
330
+ Agent(
331
331
  goal="Investigate why [specific test/behavior] fails",
332
332
  context="""
333
333
  Follow systematic-debugging skill:
@@ -340,7 +340,6 @@ delegate_task(
340
340
  File: [path to failing code]
341
341
  Test command: [exact command]
342
342
  """,
343
- toolsets=['terminal', 'file']
344
343
  )
345
344
  ```
346
345