mindforge-cc 10.0.3 → 11.0.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 (333) hide show
  1. package/.mindforge/MINDFORGE-V2-SCHEMA.json +43 -10
  2. package/.mindforge/config.json +30 -2
  3. package/.mindforge/engine/cross-model-eval.md +74 -0
  4. package/.mindforge/engine/proactive/signal-detector.md +60 -0
  5. package/.mindforge/engine/proactive/suggestion-engine.md +100 -0
  6. package/.mindforge/personas/agent-architect.md +57 -0
  7. package/.mindforge/personas/agent-evaluator.md +162 -0
  8. package/.mindforge/personas/agent-memory-designer.md +157 -0
  9. package/.mindforge/personas/agent-ops-engineer.md +120 -0
  10. package/.mindforge/personas/agent-orchestrator.md +112 -0
  11. package/.mindforge/personas/ai-economist.md +57 -0
  12. package/.mindforge/personas/ai-safety-engineer.md +57 -0
  13. package/.mindforge/personas/analytics-engineer.md +57 -0
  14. package/.mindforge/personas/anti-pattern-hunter.md +61 -0
  15. package/.mindforge/personas/api-gateway-designer.md +132 -0
  16. package/.mindforge/personas/auth-engineer.md +112 -0
  17. package/.mindforge/personas/build-engineer.md +57 -0
  18. package/.mindforge/personas/business-analyst.md +56 -0
  19. package/.mindforge/personas/cache-architect.md +100 -0
  20. package/.mindforge/personas/causal-scientist.md +57 -0
  21. package/.mindforge/personas/cdn-architect.md +118 -0
  22. package/.mindforge/personas/change-agent.md +104 -0
  23. package/.mindforge/personas/code-narrator.md +52 -0
  24. package/.mindforge/personas/codegen-specialist.md +68 -0
  25. package/.mindforge/personas/communication-architect.md +102 -0
  26. package/.mindforge/personas/compliance-engineer.md +96 -0
  27. package/.mindforge/personas/consensus-engineer.md +116 -0
  28. package/.mindforge/personas/contract-tester.md +60 -192
  29. package/.mindforge/personas/data-architect.md +108 -0
  30. package/.mindforge/personas/data-mesh-architect.md +57 -0
  31. package/.mindforge/personas/data-pipeline-architect.md +120 -0
  32. package/.mindforge/personas/de-sloppifier.md +60 -0
  33. package/.mindforge/personas/debt-manager.md +66 -0
  34. package/.mindforge/personas/decision-architect.md +82 -51
  35. package/.mindforge/personas/deployment-captain.md +74 -0
  36. package/.mindforge/personas/design-system-lead.md +112 -0
  37. package/.mindforge/personas/dmux-orchestrator.md +75 -0
  38. package/.mindforge/personas/dx-engineer.md +96 -0
  39. package/.mindforge/personas/ecommerce-engineer.md +57 -0
  40. package/.mindforge/personas/edge-engineer.md +94 -0
  41. package/.mindforge/personas/edtech-architect.md +106 -0
  42. package/.mindforge/personas/embedding-architect.md +57 -0
  43. package/.mindforge/personas/environment-engineer.md +57 -0
  44. package/.mindforge/personas/eval-judge.md +55 -0
  45. package/.mindforge/personas/event-architect.md +102 -0
  46. package/.mindforge/personas/experiment-designer.md +138 -0
  47. package/.mindforge/personas/feature-store-engineer.md +57 -0
  48. package/.mindforge/personas/finops-analyst.md +66 -0
  49. package/.mindforge/personas/fintech-architect.md +57 -0
  50. package/.mindforge/personas/flutter-engineer.md +104 -0
  51. package/.mindforge/personas/gaming-engineer.md +57 -0
  52. package/.mindforge/personas/graphql-designer.md +73 -0
  53. package/.mindforge/personas/healthcare-engineer.md +57 -0
  54. package/.mindforge/personas/hiring-strategist.md +105 -0
  55. package/.mindforge/personas/hitl-architect.md +165 -0
  56. package/.mindforge/personas/i18n-architect.md +69 -0
  57. package/.mindforge/personas/iot-architect.md +105 -0
  58. package/.mindforge/personas/knowledge-curator.md +139 -0
  59. package/.mindforge/personas/knowledge-engineer.md +57 -0
  60. package/.mindforge/personas/lakehouse-architect.md +57 -0
  61. package/.mindforge/personas/llm-orchestrator.md +57 -0
  62. package/.mindforge/personas/logistics-architect.md +106 -0
  63. package/.mindforge/personas/market-analyst.md +53 -0
  64. package/.mindforge/personas/marketplace-engineer.md +105 -0
  65. package/.mindforge/personas/mcp-designer.md +54 -0
  66. package/.mindforge/personas/meeting-designer.md +104 -0
  67. package/.mindforge/personas/mentorship-lead.md +106 -0
  68. package/.mindforge/personas/migration-architect.md +57 -0
  69. package/.mindforge/personas/ml-ops-engineer.md +101 -0
  70. package/.mindforge/personas/mobile-architect.md +105 -0
  71. package/.mindforge/personas/mobile-security-engineer.md +106 -0
  72. package/.mindforge/personas/multi-tenancy-architect.md +71 -0
  73. package/.mindforge/personas/multimodal-engineer.md +57 -0
  74. package/.mindforge/personas/offline-specialist.md +105 -0
  75. package/.mindforge/personas/onboarding-navigator.md +63 -0
  76. package/.mindforge/personas/payments-engineer.md +135 -0
  77. package/.mindforge/personas/pipeline-engineer.md +115 -0
  78. package/.mindforge/personas/platform-engineer.md +97 -0
  79. package/.mindforge/personas/platform-lead.md +57 -0
  80. package/.mindforge/personas/privacy-engineer.md +57 -0
  81. package/.mindforge/personas/product-owner.md +56 -0
  82. package/.mindforge/personas/productivity-analyst.md +57 -0
  83. package/.mindforge/personas/prompt-architect.md +101 -0
  84. package/.mindforge/personas/proofreader.md +53 -0
  85. package/.mindforge/personas/pwa-architect.md +105 -0
  86. package/.mindforge/personas/quality-scorer.md +63 -0
  87. package/.mindforge/personas/react-native-engineer.md +106 -0
  88. package/.mindforge/personas/resilience-engineer.md +69 -0
  89. package/.mindforge/personas/rfc-architect.md +64 -0
  90. package/.mindforge/personas/saga-orchestrator.md +80 -0
  91. package/.mindforge/personas/secrets-engineer.md +57 -0
  92. package/.mindforge/personas/skill-smith.md +79 -0
  93. package/.mindforge/personas/sre-lead.md +107 -0
  94. package/.mindforge/personas/stream-engineer.md +57 -0
  95. package/.mindforge/personas/streaming-engineer.md +64 -0
  96. package/.mindforge/personas/swarm-templates.json +674 -44
  97. package/.mindforge/personas/system-designer.md +57 -0
  98. package/.mindforge/personas/team-coach.md +120 -0
  99. package/.mindforge/personas/tech-lead-coach.md +103 -0
  100. package/.mindforge/personas/technical-writer-lead.md +111 -0
  101. package/.mindforge/personas/vibe-checker.md +75 -0
  102. package/.mindforge/personas/worktree-manager.md +56 -0
  103. package/.mindforge/personas/zero-trust-engineer.md +113 -0
  104. package/.mindforge/skills/a11y-testing/SKILL.md +143 -0
  105. package/.mindforge/skills/agent-evaluation-framework/SKILL.md +227 -0
  106. package/.mindforge/skills/agent-memory-design/SKILL.md +199 -0
  107. package/.mindforge/skills/agent-orchestration-patterns/SKILL.md +129 -0
  108. package/.mindforge/skills/agent-tool-selection/SKILL.md +204 -0
  109. package/.mindforge/skills/ai-agent-deployment/SKILL.md +176 -0
  110. package/.mindforge/skills/ai-cost-management/SKILL.md +57 -0
  111. package/.mindforge/skills/ai-safety-alignment/SKILL.md +53 -0
  112. package/.mindforge/skills/analytics-instrumentation/SKILL.md +172 -0
  113. package/.mindforge/skills/api-gateway-patterns/SKILL.md +177 -0
  114. package/.mindforge/skills/api-marketplace/SKILL.md +56 -0
  115. package/.mindforge/skills/api-versioning/SKILL.md +100 -0
  116. package/.mindforge/skills/app-store-deployment/SKILL.md +44 -0
  117. package/.mindforge/skills/architecture-tradeoff-analysis/SKILL.md +97 -0
  118. package/.mindforge/skills/audit-logging/SKILL.md +140 -0
  119. package/.mindforge/skills/auth-patterns/SKILL.md +148 -0
  120. package/.mindforge/skills/autonomous-agent-harness/SKILL.md +218 -0
  121. package/.mindforge/skills/autonomous-agents/SKILL.md +59 -0
  122. package/.mindforge/skills/build-system-optimization/SKILL.md +54 -0
  123. package/.mindforge/skills/build-vs-buy/SKILL.md +80 -0
  124. package/.mindforge/skills/bundle-optimization/SKILL.md +174 -0
  125. package/.mindforge/skills/business-analyst/SKILL.md +82 -0
  126. package/.mindforge/skills/caching-strategies/SKILL.md +132 -0
  127. package/.mindforge/skills/capacity-planning/SKILL.md +96 -0
  128. package/.mindforge/skills/causal-inference/SKILL.md +42 -0
  129. package/.mindforge/skills/cdn-optimization/SKILL.md +212 -0
  130. package/.mindforge/skills/change-management/SKILL.md +106 -0
  131. package/.mindforge/skills/chaos-engineering/SKILL.md +99 -0
  132. package/.mindforge/skills/ci-cd-pipeline/SKILL.md +118 -0
  133. package/.mindforge/skills/cli-design/SKILL.md +118 -0
  134. package/.mindforge/skills/code-generation-patterns/SKILL.md +92 -0
  135. package/.mindforge/skills/code-review-methodology/SKILL.md +180 -0
  136. package/.mindforge/skills/code-tour/SKILL.md +145 -0
  137. package/.mindforge/skills/codebase-onboarding/SKILL.md +95 -0
  138. package/.mindforge/skills/compliance-as-code/SKILL.md +195 -0
  139. package/.mindforge/skills/conflict-resolution/SKILL.md +87 -0
  140. package/.mindforge/skills/connection-pooling/SKILL.md +151 -0
  141. package/.mindforge/skills/container-security/SKILL.md +151 -0
  142. package/.mindforge/skills/context-engineering/SKILL.md +114 -0
  143. package/.mindforge/skills/contract-testing/SKILL.md +85 -0
  144. package/.mindforge/skills/cost-estimation/SKILL.md +82 -0
  145. package/.mindforge/skills/cqrs-event-sourcing/SKILL.md +95 -0
  146. package/.mindforge/skills/cross-platform-testing/SKILL.md +43 -0
  147. package/.mindforge/skills/data-governance/SKILL.md +42 -0
  148. package/.mindforge/skills/data-lakehouse/SKILL.md +42 -0
  149. package/.mindforge/skills/data-mesh/SKILL.md +42 -0
  150. package/.mindforge/skills/data-modeling/SKILL.md +107 -0
  151. package/.mindforge/skills/data-pipeline-design/SKILL.md +171 -0
  152. package/.mindforge/skills/data-privacy-engineering/SKILL.md +42 -0
  153. package/.mindforge/skills/database-performance/SKILL.md +174 -0
  154. package/.mindforge/skills/database-sharding-advanced/SKILL.md +206 -0
  155. package/.mindforge/skills/de-sloppify/SKILL.md +120 -0
  156. package/.mindforge/skills/defense-in-depth/SKILL.md +84 -0
  157. package/.mindforge/skills/delegation-patterns/SKILL.md +123 -0
  158. package/.mindforge/skills/dependency-management/SKILL.md +94 -0
  159. package/.mindforge/skills/deployment-workflow/SKILL.md +135 -0
  160. package/.mindforge/skills/design-system/SKILL.md +113 -0
  161. package/.mindforge/skills/developer-onboarding/SKILL.md +99 -0
  162. package/.mindforge/skills/developer-productivity-metrics/SKILL.md +59 -0
  163. package/.mindforge/skills/distributed-consensus/SKILL.md +141 -0
  164. package/.mindforge/skills/dmux-workflows/SKILL.md +141 -0
  165. package/.mindforge/skills/dns-architecture/SKILL.md +167 -0
  166. package/.mindforge/skills/ecommerce-architecture/SKILL.md +41 -0
  167. package/.mindforge/skills/edge-computing/SKILL.md +91 -0
  168. package/.mindforge/skills/edtech-platform/SKILL.md +41 -0
  169. package/.mindforge/skills/email-deliverability/SKILL.md +177 -0
  170. package/.mindforge/skills/embedding-systems/SKILL.md +55 -0
  171. package/.mindforge/skills/environment-management/SKILL.md +54 -0
  172. package/.mindforge/skills/error-handling-architecture/SKILL.md +118 -0
  173. package/.mindforge/skills/estimation-techniques/SKILL.md +113 -0
  174. package/.mindforge/skills/eval-harness/SKILL.md +180 -0
  175. package/.mindforge/skills/event-driven-architecture/SKILL.md +162 -0
  176. package/.mindforge/skills/experiment-design/SKILL.md +139 -0
  177. package/.mindforge/skills/experiment-platform/SKILL.md +43 -0
  178. package/.mindforge/skills/feature-engineering/SKILL.md +42 -0
  179. package/.mindforge/skills/feature-flag-management/SKILL.md +183 -0
  180. package/.mindforge/skills/fine-tuning-workflow/SKILL.md +189 -0
  181. package/.mindforge/skills/fintech-patterns/SKILL.md +41 -0
  182. package/.mindforge/skills/flutter-architecture/SKILL.md +42 -0
  183. package/.mindforge/skills/gaming-backend/SKILL.md +41 -0
  184. package/.mindforge/skills/git-workflow-design/SKILL.md +129 -0
  185. package/.mindforge/skills/graceful-degradation/SKILL.md +95 -0
  186. package/.mindforge/skills/graphql-patterns/SKILL.md +243 -0
  187. package/.mindforge/skills/guardrails-and-safety/SKILL.md +137 -0
  188. package/.mindforge/skills/healthcare-systems/SKILL.md +40 -0
  189. package/.mindforge/skills/hiring-engineering/SKILL.md +119 -0
  190. package/.mindforge/skills/human-in-the-loop-design/SKILL.md +234 -0
  191. package/.mindforge/skills/i18n-architecture/SKILL.md +147 -0
  192. package/.mindforge/skills/idempotency-patterns/SKILL.md +84 -0
  193. package/.mindforge/skills/incident-communication/SKILL.md +96 -0
  194. package/.mindforge/skills/incident-management/SKILL.md +97 -0
  195. package/.mindforge/skills/infrastructure-as-code/SKILL.md +98 -0
  196. package/.mindforge/skills/instinct-clustering/SKILL.md +190 -0
  197. package/.mindforge/skills/internal-developer-platform/SKILL.md +51 -0
  198. package/.mindforge/skills/iot-platform/SKILL.md +41 -0
  199. package/.mindforge/skills/k8s-deployment/SKILL.md +358 -0
  200. package/.mindforge/skills/knowledge-graphs/SKILL.md +56 -0
  201. package/.mindforge/skills/knowledge-sharing-systems/SKILL.md +112 -0
  202. package/.mindforge/skills/llm-cost-optimization/SKILL.md +198 -0
  203. package/.mindforge/skills/llm-orchestration/SKILL.md +56 -0
  204. package/.mindforge/skills/load-testing/SKILL.md +84 -0
  205. package/.mindforge/skills/logistics-optimization/SKILL.md +40 -0
  206. package/.mindforge/skills/market-researcher/SKILL.md +99 -0
  207. package/.mindforge/skills/marketplace-trust/SKILL.md +40 -0
  208. package/.mindforge/skills/mcp-server-patterns/SKILL.md +264 -0
  209. package/.mindforge/skills/media-streaming/SKILL.md +41 -0
  210. package/.mindforge/skills/meeting-architecture/SKILL.md +146 -0
  211. package/.mindforge/skills/mentoring-patterns/SKILL.md +77 -0
  212. package/.mindforge/skills/microservices-patterns/SKILL.md +83 -0
  213. package/.mindforge/skills/migration-platform/SKILL.md +61 -0
  214. package/.mindforge/skills/migration-strategies/SKILL.md +129 -0
  215. package/.mindforge/skills/ml-feature-store/SKILL.md +56 -0
  216. package/.mindforge/skills/ml-monitoring/SKILL.md +42 -0
  217. package/.mindforge/skills/mobile-performance/SKILL.md +44 -0
  218. package/.mindforge/skills/mobile-security/SKILL.md +45 -0
  219. package/.mindforge/skills/model-evaluation/SKILL.md +53 -0
  220. package/.mindforge/skills/monorepo-management/SKILL.md +100 -0
  221. package/.mindforge/skills/multi-tenancy-patterns/SKILL.md +145 -0
  222. package/.mindforge/skills/multi-turn-conversation-design/SKILL.md +206 -0
  223. package/.mindforge/skills/multimodal-ai/SKILL.md +51 -0
  224. package/.mindforge/skills/mutation-testing/SKILL.md +97 -0
  225. package/.mindforge/skills/notification-system-design/SKILL.md +168 -0
  226. package/.mindforge/skills/observability-stack/SKILL.md +136 -0
  227. package/.mindforge/skills/offline-first-design/SKILL.md +43 -0
  228. package/.mindforge/skills/on-call-design/SKILL.md +111 -0
  229. package/.mindforge/skills/pagination-patterns/SKILL.md +230 -0
  230. package/.mindforge/skills/payment-integration/SKILL.md +176 -0
  231. package/.mindforge/skills/performance-reviews/SKILL.md +140 -0
  232. package/.mindforge/skills/platform-observability/SKILL.md +58 -0
  233. package/.mindforge/skills/platform-reliability/SKILL.md +52 -0
  234. package/.mindforge/skills/post-incident-learning/SKILL.md +96 -0
  235. package/.mindforge/skills/product-manager/SKILL.md +104 -0
  236. package/.mindforge/skills/progressive-web-app/SKILL.md +44 -0
  237. package/.mindforge/skills/prompt-engineering/SKILL.md +94 -0
  238. package/.mindforge/skills/proofreader/SKILL.md +158 -0
  239. package/.mindforge/skills/push-notification-architecture/SKILL.md +45 -0
  240. package/.mindforge/skills/python-performance/SKILL.md +183 -0
  241. package/.mindforge/skills/quality-audit/SKILL.md +171 -0
  242. package/.mindforge/skills/queue-design/SKILL.md +85 -0
  243. package/.mindforge/skills/rag-architecture/SKILL.md +176 -0
  244. package/.mindforge/skills/rate-limiting-design/SKILL.md +94 -0
  245. package/.mindforge/skills/react-native-patterns/SKILL.md +42 -0
  246. package/.mindforge/skills/react-performance/SKILL.md +229 -0
  247. package/.mindforge/skills/real-time-analytics/SKILL.md +42 -0
  248. package/.mindforge/skills/real-time-sync/SKILL.md +83 -0
  249. package/.mindforge/skills/responsive-native/SKILL.md +44 -0
  250. package/.mindforge/skills/responsive-patterns/SKILL.md +141 -0
  251. package/.mindforge/skills/rfc-pipeline/SKILL.md +114 -0
  252. package/.mindforge/skills/saas-multi-tenant/SKILL.md +41 -0
  253. package/.mindforge/skills/santa-method/SKILL.md +134 -0
  254. package/.mindforge/skills/search-implementation/SKILL.md +98 -0
  255. package/.mindforge/skills/secrets-platform/SKILL.md +56 -0
  256. package/.mindforge/skills/secrets-rotation/SKILL.md +173 -0
  257. package/.mindforge/skills/self-serve-infrastructure/SKILL.md +51 -0
  258. package/.mindforge/skills/serverless-patterns/SKILL.md +119 -0
  259. package/.mindforge/skills/skill-creator-meta/SKILL.md +146 -0
  260. package/.mindforge/skills/sprint-retrospective-facilitation/SKILL.md +112 -0
  261. package/.mindforge/skills/stakeholder-communication/SKILL.md +85 -0
  262. package/.mindforge/skills/state-management/SKILL.md +104 -0
  263. package/.mindforge/skills/stream-processing/SKILL.md +43 -0
  264. package/.mindforge/skills/streaming-architecture/SKILL.md +81 -0
  265. package/.mindforge/skills/supply-chain-security/SKILL.md +145 -0
  266. package/.mindforge/skills/synthetic-data-generation/SKILL.md +52 -0
  267. package/.mindforge/skills/system-design/SKILL.md +88 -0
  268. package/.mindforge/skills/team-topology-design/SKILL.md +107 -0
  269. package/.mindforge/skills/technical-debt-management/SKILL.md +86 -0
  270. package/.mindforge/skills/technical-interview-design/SKILL.md +98 -0
  271. package/.mindforge/skills/technical-leadership/SKILL.md +75 -0
  272. package/.mindforge/skills/technical-writing/SKILL.md +237 -0
  273. package/.mindforge/skills/technology-radar/SKILL.md +88 -0
  274. package/.mindforge/skills/testing-anti-patterns/SKILL.md +288 -0
  275. package/.mindforge/skills/tool-design/SKILL.md +138 -0
  276. package/.mindforge/skills/typescript-advanced/SKILL.md +198 -0
  277. package/.mindforge/skills/using-git-worktrees/SKILL.md +139 -0
  278. package/.mindforge/skills/verification-loop/SKILL.md +13 -1
  279. package/.mindforge/skills/vibe-security/SKILL.md +165 -0
  280. package/.mindforge/skills/visual-regression-testing/SKILL.md +97 -0
  281. package/.mindforge/skills/websocket-patterns/SKILL.md +203 -0
  282. package/.mindforge/skills/writing-plans/SKILL.md +170 -0
  283. package/.mindforge/skills/writing-skills/SKILL.md +216 -0
  284. package/.mindforge/skills/zero-trust-architecture/SKILL.md +166 -0
  285. package/CHANGELOG.md +240 -0
  286. package/MINDFORGE.md +4 -4
  287. package/README.md +49 -4
  288. package/RELEASENOTES.md +80 -0
  289. package/SECURITY.md +20 -8
  290. package/bin/autonomous/audit-writer.js +13 -0
  291. package/bin/autonomous/auto-runner.js +74 -16
  292. package/bin/autonomous/context-refactorer.js +26 -11
  293. package/bin/autonomous/state-manager.js +62 -6
  294. package/bin/autonomous/stuck-monitor.js +46 -7
  295. package/bin/autonomous/wave-executor.js +66 -25
  296. package/bin/dashboard/api-router.js +43 -0
  297. package/bin/dashboard/metrics-aggregator.js +28 -1
  298. package/bin/dashboard/server.js +67 -4
  299. package/bin/dashboard/sse-bridge.js +4 -4
  300. package/bin/engine/feedback-loop.js +8 -0
  301. package/bin/engine/intelligence-interlock.js +32 -15
  302. package/bin/engine/logic-drift-detector.js +2 -1
  303. package/bin/engine/nexus-tracer.js +3 -2
  304. package/bin/engine/remediation-engine.js +155 -32
  305. package/bin/engine/self-corrective-synthesizer.js +84 -10
  306. package/bin/engine/sre-manager.js +12 -4
  307. package/bin/engine/temporal-hub.js +131 -34
  308. package/bin/governance/approve.js +41 -5
  309. package/bin/governance/impact-analyzer.js +28 -0
  310. package/bin/governance/policy-engine.js +10 -3
  311. package/bin/governance/quantum-crypto.js +32 -19
  312. package/bin/governance/rbac-manager.js +74 -2
  313. package/bin/governance/ztai-manager.js +49 -7
  314. package/bin/hindsight-injector.js +3 -3
  315. package/bin/memory/eis-client.js +71 -34
  316. package/bin/memory/embedding-engine.js +61 -0
  317. package/bin/memory/knowledge-graph.js +58 -5
  318. package/bin/memory/knowledge-indexer.js +53 -6
  319. package/bin/memory/knowledge-store.js +22 -0
  320. package/bin/migrations/10.7.0-to-11.0.0.js +110 -0
  321. package/bin/migrations/schema-versions.js +13 -0
  322. package/bin/models/anthropic-provider.js +45 -0
  323. package/bin/models/cloud-broker.js +68 -20
  324. package/bin/models/gemini-provider.js +51 -0
  325. package/bin/models/model-client.js +20 -0
  326. package/bin/models/model-router.js +28 -8
  327. package/bin/models/openai-provider.js +44 -0
  328. package/bin/utils/file-io.js +63 -1
  329. package/bin/utils/index.js +58 -0
  330. package/docs/getting-started.md +1 -1
  331. package/docs/user-guide.md +2 -2
  332. package/package.json +2 -2
  333. package/.mindforge/personas/data-privacy-engineer.md +0 -187
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: code-generation-patterns
3
+ version: 1.0.0
4
+ min_mindforge_version: 0.3.0
5
+ status: stable
6
+ triggers: code generation, template engine, AST manipulation, scaffolding pattern, code mod, source transform, code generator, boilerplate generation, schema-to-code, type generation, code synthesis, metaprogramming
7
+ ---
8
+
9
+ # Skill — Code Generation Patterns
10
+
11
+ ## When this skill activates
12
+ Any task involving automated code generation, scaffolding, code mods, template
13
+ engines, AST transformations, or schema-to-code pipelines.
14
+
15
+ ## Mandatory actions when this skill is active
16
+
17
+ ### Before generating code
18
+ 1. Determine the generation approach based on the use case.
19
+ 2. Validate that generation is worthwhile (see "When NOT to generate" below).
20
+ 3. Ensure generated output is clearly marked with a header comment.
21
+
22
+ ### Approaches
23
+
24
+ **Template-based (Handlebars/EJS):**
25
+ - Best for: simple, repetitive file generation with known structure.
26
+ - Use when: the output varies only in names/values, not in structure.
27
+ - Tools: Handlebars, EJS, Mustache, Liquid.
28
+ - Pattern: define template → inject variables → write output file.
29
+
30
+ **AST-based (babel/ts-morph):**
31
+ - Best for: code transforms, refactors, and modifications to existing code.
32
+ - Use when: you need to understand code structure, not just text patterns.
33
+ - Tools: babel (JavaScript), ts-morph (TypeScript), jscodeshift (codemods).
34
+ - Pattern: parse source → traverse AST → apply transforms → print modified source.
35
+
36
+ **Schema-based (OpenAPI/GraphQL/JSON Schema):**
37
+ - Best for: generating clients, types, validators from a single source of truth.
38
+ - Use when: a schema already defines the contract and code must conform.
39
+ - Tools: openapi-generator, graphql-codegen, json-schema-to-typescript.
40
+ - Pattern: schema file → generator config → output typed client/types.
41
+
42
+ ### Scaffolding
43
+
44
+ **Project generators:**
45
+ - Yeoman, create-* CLIs, degit for template repos.
46
+ - Include: directory structure, config files, CI setup, README template.
47
+ - Version your generator — breaking changes need migration paths.
48
+
49
+ **File generators:**
50
+ - Plop, Hygen for generating individual files within a project.
51
+ - Pattern: define prompts → apply template → write to correct directory.
52
+ - Keep templates co-located with the generator config.
53
+
54
+ ### Code mods
55
+
56
+ **jscodeshift (JavaScript/TypeScript bulk refactors):**
57
+ - Write transform as a function: `(file, api) => api.jscodeshift(file.source)...`
58
+ - Test on a single file first, then run across codebase.
59
+ - Always commit before running a codemod (easy revert).
60
+
61
+ **ts-morph (TypeScript-aware transforms):**
62
+ - Full TypeScript compiler API access.
63
+ - Can add/remove/rename imports, functions, classes, types.
64
+ - Pattern: create Project → get SourceFiles → manipulate → save.
65
+
66
+ **Systematic process:**
67
+ 1. Find all instances of the pattern to transform.
68
+ 2. Write the transform function.
69
+ 3. Dry-run with diff output.
70
+ 4. Apply and verify tests still pass.
71
+
72
+ ### When NOT to generate
73
+
74
+ - If it is simpler to write by hand (fewer than 3 instances).
75
+ - If generated code needs frequent manual edits (generator is wrong).
76
+ - If the template is harder to understand than the output.
77
+ - If the schema changes so frequently that regeneration becomes a bottleneck.
78
+ - If the team cannot maintain the generator long-term.
79
+
80
+ ### Quality standards for generated code
81
+
82
+ - Generated files MUST have a header: `// THIS FILE IS AUTO-GENERATED. DO NOT EDIT.`
83
+ - Generated code must pass the same lint/format rules as hand-written code.
84
+ - Generator must be idempotent (running twice produces same output).
85
+ - Include a `regenerate` script in package.json for easy re-generation.
86
+ - Test the generator itself, not just the generated output.
87
+
88
+ ## Self-check before task completion
89
+ - [ ] Did I follow the mandatory actions for this skill?
90
+ - [ ] Did I apply the patterns appropriate to the context?
91
+ - [ ] Did I verify the implementation meets the criteria above?
92
+ - [ ] Did I document decisions and trade-offs made?
@@ -0,0 +1,180 @@
1
+ ---
2
+ name: code-review-methodology
3
+ version: 1.0.0
4
+ min_mindforge_version: 0.1.0
5
+ status: stable
6
+ triggers: code review methodology, review framework design, review checklist creation, PR review strategy, what to review guide, review comment style, LGTM criteria definition, PR sizing guideline, review feedback technique, constructive review approach, review priority matrix, review depth strategy
7
+ ---
8
+
9
+ # Skill — Code Review Methodology
10
+
11
+ ## When this skill activates
12
+ Any task involving establishing code review practices, creating review checklists,
13
+ defining PR standards, improving review feedback quality, or performing a structured review.
14
+
15
+ ## Mandatory actions when this skill is active
16
+
17
+ ### Before starting a review
18
+ 1. Check PR size — if >800 lines, request the author split it.
19
+ 2. Read the PR description to understand intent before reading code.
20
+ 3. Identify the review depth needed (critical path = deep, config = surface).
21
+
22
+ ### During review
23
+ - Review in priority order: correctness → security → performance → readability → style.
24
+ - Categorize every comment (blocking, suggestion, question, praise).
25
+ - Ask "What about X?" not "You should X."
26
+ - Limit blocking comments to actual blockers — save nitpicks for suggestions.
27
+
28
+ ### After review
29
+ - Summarize overall assessment in the review summary.
30
+ - State clearly: Approve, Request Changes, or Comment.
31
+ - If Request Changes, list the specific blocking items.
32
+
33
+ ## Review priority matrix
34
+
35
+ | Priority | Category | Examples |
36
+ |----------|----------|----------|
37
+ | 1 (Critical) | Correctness | Logic bugs, data loss, race conditions |
38
+ | 2 (High) | Security | Auth bypass, injection, secret exposure |
39
+ | 3 (Medium) | Performance | N+1 queries, missing indexes, memory leaks |
40
+ | 4 (Low) | Readability | Unclear names, missing comments, complex nesting |
41
+ | 5 (Minimal) | Style | Formatting, import order, bracket placement |
42
+
43
+ Focus 80% of review effort on priorities 1-3. Style issues should be handled by linters, not humans.
44
+
45
+ ## PR sizing guidelines
46
+
47
+ | Size | Lines Changed | Review Time | Quality |
48
+ |------|--------------|-------------|---------|
49
+ | XS | <50 | 5 min | Excellent |
50
+ | S | 50-200 | 15 min | Good |
51
+ | M | 200-400 | 30 min | Acceptable |
52
+ | L | 400-800 | 60 min | Risky |
53
+ | XL | >800 | ??? | Split it |
54
+
55
+ Rules:
56
+ - Ideal PR: <400 lines of meaningful changes (exclude generated code, lockfiles).
57
+ - If a PR is large, split into: refactoring prep → core change → cleanup.
58
+ - One logical change per PR. "While I was here" changes go in separate PRs.
59
+
60
+ ## Comment types
61
+
62
+ ### Blocking (must fix before merge)
63
+ ```
64
+ [blocking] This SQL query is vulnerable to injection.
65
+ Use parameterized queries: `db.query('SELECT * FROM users WHERE id = $1', [id])`
66
+ ```
67
+
68
+ ### Suggestion (consider, but not required)
69
+ ```
70
+ [suggestion] Consider extracting this into a helper function —
71
+ it appears three times across this file and `utils.ts`.
72
+ ```
73
+
74
+ ### Question (help me understand)
75
+ ```
76
+ [question] What happens if `user` is null here?
77
+ I don't see a null check upstream.
78
+ ```
79
+
80
+ ### Praise (reinforce good patterns)
81
+ ```
82
+ [praise] Great use of the builder pattern here —
83
+ much cleaner than the previous imperative approach.
84
+ ```
85
+
86
+ ## LGTM criteria
87
+
88
+ A PR is ready to merge when ALL of these are true:
89
+ - [ ] No blocking comments remain unresolved.
90
+ - [ ] Tests exist for the change (unit + integration where appropriate).
91
+ - [ ] CI pipeline passes (lint, type check, tests, build).
92
+ - [ ] Documentation updated if public API or behavior changed.
93
+ - [ ] No TODOs added without a linked issue/ticket.
94
+ - [ ] PR title and description accurately describe the change.
95
+
96
+ ## Review depth by change type
97
+
98
+ ### Deep Review (read every line, trace data flow)
99
+ - Auth/security code
100
+ - Payment/billing logic
101
+ - Data migrations
102
+ - Public API changes
103
+ - Core business logic
104
+
105
+ ### Standard Review (understand intent, spot issues)
106
+ - New features
107
+ - Bug fixes
108
+ - Internal refactoring
109
+ - Test additions
110
+
111
+ ### Surface Review (sanity check, trust CI)
112
+ - Dependency updates (check changelog, breaking changes)
113
+ - Config changes (verify values are correct)
114
+ - Documentation updates (check accuracy)
115
+ - Generated code (verify generator config, spot-check output)
116
+
117
+ ## Feedback style guide
118
+
119
+ ### Do
120
+ - "What about handling the case where X is empty?"
121
+ - "Nice pattern — this is cleaner than the previous approach."
122
+ - "Could you add a comment explaining why this timeout is 30s?"
123
+ - "I think there's an edge case: [describe scenario]"
124
+
125
+ ### Don't
126
+ - "You should use X instead." (prescriptive without context)
127
+ - "This is wrong." (unconstructive)
128
+ - "Why didn't you just do X?" (implies incompetence)
129
+ - "Nit: [style preference]" on every other line (use a linter)
130
+
131
+ ### Principles
132
+ - Assume the author had a reason. Ask before suggesting alternatives.
133
+ - Be specific: "line 42 could throw if `data` is null" not "error handling is missing."
134
+ - Offer solutions with your criticism — show a better approach.
135
+ - Praise patterns you want to see more of (positive reinforcement works).
136
+
137
+ ## Common things to check
138
+
139
+ ### Correctness
140
+ - Off-by-one errors in loops and ranges.
141
+ - Null/undefined handling on external data.
142
+ - Race conditions in async code.
143
+ - Error paths — what happens when things fail?
144
+
145
+ ### Security
146
+ - User input flows to SQL/HTML/shell without sanitization?
147
+ - Auth checks on every protected endpoint?
148
+ - Secrets hardcoded or logged?
149
+ - CORS/CSRF properly configured?
150
+
151
+ ### Performance
152
+ - N+1 queries in loops?
153
+ - Missing database indexes for query patterns?
154
+ - Unbounded data fetches (no LIMIT)?
155
+ - Expensive operations in hot paths?
156
+
157
+ ### Maintainability
158
+ - Will the next developer understand this in 3 months?
159
+ - Are there tests to catch regressions?
160
+ - Is the abstraction level consistent?
161
+ - Are error messages actionable?
162
+
163
+ ## Anti-patterns to avoid
164
+ - Rubber-stamping (approving without reading — defeats the purpose).
165
+ - Nitpick storms (10 style comments on a 20-line PR — use a linter).
166
+ - Gatekeeping (blocking for subjective preferences, not objective issues).
167
+ - Drive-by reviews (leaving one comment, never returning for follow-up).
168
+ - "I would have done it differently" without identifying an actual problem.
169
+ - Reviewing only the diff, not the context (the bug might be in surrounding code).
170
+
171
+ ## Self-check before task completion
172
+
173
+ Before marking a task done when this skill was active:
174
+
175
+ - [ ] Reviewed in priority order (correctness → security → performance → readability)?
176
+ - [ ] Every comment categorized (blocking/suggestion/question/praise)?
177
+ - [ ] No nitpicks marked as blocking?
178
+ - [ ] Summary provided with clear approve/request-changes verdict?
179
+ - [ ] Feedback is specific, constructive, and offers solutions?
180
+ - [ ] PR size is within guidelines (or split requested)?
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: code-tour
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.0.6
5
+ status: stable
6
+ triggers: code tour, codebase walkthrough, interactive tour, reading path, annotated guide, code exploration guide, progressive tour, guided exploration, architecture tour, code narrative, file tour, source walkthrough
7
+ ---
8
+
9
+ # Skill — Code Tour
10
+
11
+ ## When this skill activates
12
+
13
+ When generating guided explorations of a codebase to help someone understand its
14
+ architecture, data flow, or implementation patterns. Use when onboarding new team
15
+ members, documenting complex subsystems, or creating learning paths through
16
+ unfamiliar code.
17
+
18
+ A code tour is NOT a README or API reference — it is a narrative journey through
19
+ source files in a deliberate order, with annotations explaining the "why" at each
20
+ stop, building understanding progressively.
21
+
22
+ ## Mandatory actions when this skill is active
23
+
24
+ ### Before generating the tour
25
+
26
+ 1. **Determine tour scope and audience:**
27
+ - Who is this tour for? (new hire, external contributor, senior dev in new area)
28
+ - What should they understand after completing the tour?
29
+ - What prior knowledge can be assumed?
30
+ - Scope: full system overview vs focused subsystem deep-dive
31
+
32
+ 2. **Map the dependency graph:**
33
+ - Identify the entry point(s) — `main`, `index`, `app`, CLI handler
34
+ - Trace first-level imports from the entry point
35
+ - Identify core modules vs utility/helper modules
36
+ - Note circular dependencies or surprising coupling
37
+
38
+ 3. **Select a tour strategy:**
39
+
40
+ | Strategy | Best for | Approach |
41
+ |----------|----------|----------|
42
+ | Entry-point-first | Full system overview | Start at main, trace outward |
43
+ | Data-flow | APIs, pipelines | Follow a request from ingress to response |
44
+ | Layer-by-layer | Layered architecture | Config → Entry → Core → Utils → Edge |
45
+ | Feature-slice | Specific feature | All files involved in one user story |
46
+ | Dependency-graph | Library/framework | Follow import tree breadth-first |
47
+
48
+ 4. **Plan the stop sequence:**
49
+ - 8-15 stops is ideal (fewer feels shallow, more causes fatigue)
50
+ - Each stop should build on the previous one
51
+ - Alternate between "big picture" and "zoom in" stops
52
+ - End with a synthesis stop that ties everything together
53
+
54
+ ### During tour generation
55
+
56
+ **Stop format (mandatory for each stop):**
57
+
58
+ ```markdown
59
+ ## Stop N: [Descriptive Title]
60
+
61
+ **File:** `src/path/to/file.ts` (lines 42-87)
62
+
63
+ **Why this file matters:**
64
+ [1-2 sentences on this file's role in the system]
65
+
66
+ **What to notice:**
67
+ - [Key pattern, design decision, or technique used here]
68
+ - [Relationship to previous stop]
69
+ - [Any non-obvious behavior or convention]
70
+
71
+ **Key code:**
72
+ ```[language]
73
+ // The critical section, with inline annotations
74
+ function handleRequest(ctx: Context) {
75
+ // Notice: middleware chain is resolved here, not at registration time
76
+ const pipeline = ctx.middleware.resolve();
77
+ // ...
78
+ }
79
+ ```
80
+
81
+ **Checkpoint:** After this stop, you should understand:
82
+ - [Concrete understanding goal 1]
83
+ - [Concrete understanding goal 2]
84
+ ```
85
+
86
+ **Progressive complexity rules:**
87
+ - Stop 1-3: Configuration, entry points, "what runs when the app starts"
88
+ - Stop 4-7: Core business logic, primary data flow, key abstractions
89
+ - Stop 8-10: Edge cases, error handling, performance-critical paths
90
+ - Stop 11+: Advanced patterns, extension points, testing infrastructure
91
+
92
+ **Annotation principles:**
93
+ - Explain WHY this code exists, not WHAT it does (the code shows what)
94
+ - Highlight design decisions: "This uses X pattern because..."
95
+ - Call out conventions: "All handlers in this project follow this shape..."
96
+ - Note historical context if relevant: "This was refactored from X because..."
97
+ - Flag potential confusion points: "This looks like X but is actually Y because..."
98
+
99
+ **Connecting stops:**
100
+ - Each stop after the first must reference how it relates to previous stops
101
+ - Use phrases like: "Remember the middleware we saw in Stop 3? This is where..."
102
+ - Draw the thread of data/control flow between stops explicitly
103
+ - If stops are non-linear, explain why you're jumping to this location
104
+
105
+ ### After tour generation
106
+
107
+ 1. **Add a tour summary:**
108
+ ```markdown
109
+ ## Tour Summary
110
+
111
+ **Total stops:** N
112
+ **Estimated reading time:** ~X minutes
113
+ **Key takeaways:**
114
+ 1. [Most important architectural insight]
115
+ 2. [Critical pattern used throughout]
116
+ 3. [Key design decision and its rationale]
117
+
118
+ **Suggested next tours:**
119
+ - [Related subsystem that builds on this understanding]
120
+ - [Deeper dive into one area touched here]
121
+ ```
122
+
123
+ 2. **Verify tour coherence:**
124
+ - Read through all stops sequentially — does the narrative flow?
125
+ - Does each checkpoint build on the previous one?
126
+ - Would the target audience actually understand this?
127
+ - Are file paths and line numbers accurate and current?
128
+
129
+ 3. **Output format:**
130
+ - Single markdown file: `TOUR-[name].md` in the project root or `docs/tours/`
131
+ - Include a table of contents with links to each stop
132
+ - If the tour references specific commits or versions, note the git ref
133
+
134
+ ## Self-check before task completion
135
+
136
+ Before marking a code tour task done:
137
+
138
+ - [ ] Did I identify the target audience and their prior knowledge level?
139
+ - [ ] Did I select an appropriate tour strategy for the scope?
140
+ - [ ] Does the tour have 8-15 stops with progressive complexity?
141
+ - [ ] Does every stop include: file path, why it matters, what to notice, checkpoint?
142
+ - [ ] Does the narrative flow logically from one stop to the next?
143
+ - [ ] Are file paths and line references accurate to the current codebase?
144
+ - [ ] Did I include a summary with key takeaways and suggested next tours?
145
+ - [ ] Would the target audience actually learn what they need from this tour?
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: codebase-onboarding
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.0.4
5
+ status: stable
6
+ triggers: onboarding, new repo, unfamiliar codebase, codebase summary, knowledge graph, entry points, learning path, repo overview, architecture discovery, codebase map, project familiarization, code exploration
7
+ ---
8
+
9
+ # Skill — Codebase Onboarding
10
+
11
+ ## When this skill activates
12
+
13
+ When entering a new or unfamiliar repository for the first time, when asked to
14
+ summarize or map a codebase, or when needing to build a mental model before
15
+ making changes. Also activates when explicitly asked to generate an onboarding
16
+ report or learning path.
17
+
18
+ ## Mandatory actions when this skill is active
19
+
20
+ Execute the following auto-summarization pipeline in order:
21
+
22
+ ### Step 1 — Detect Stack
23
+
24
+ Identify the technology stack by examining:
25
+
26
+ - **Language(s)**: file extensions, shebang lines, language-specific config files
27
+ - **Framework(s)**: package.json dependencies, requirements.txt, go.mod, Cargo.toml
28
+ - **Build system**: Makefile, webpack, vite, turbopack, gradle, cargo, mix
29
+ - **Test framework**: jest, pytest, vitest, go test, RSpec, xUnit
30
+ - **Package manager**: npm, yarn, pnpm, pip, poetry, cargo, go modules
31
+ - **Infrastructure**: Docker, Kubernetes, Terraform, CDK, serverless configs
32
+
33
+ ### Step 2 — Find Entry Points
34
+
35
+ Locate all entry points into the application:
36
+
37
+ - Main files (main.ts, index.ts, app.py, main.go, Program.cs)
38
+ - CLI entry points (bin/ directory, package.json bin field)
39
+ - Route definitions (router files, controller registrations)
40
+ - Event handlers (message consumers, cron jobs, webhook handlers)
41
+ - Worker/queue processors
42
+ - Migration entry points (seed files, migration runners)
43
+
44
+ ### Step 3 — Build Module Dependency Graph
45
+
46
+ Create a graph where:
47
+
48
+ - **Nodes** = modules, packages, or major source directories
49
+ - **Edges** = imports, function calls, event emissions between modules
50
+ - Identify circular dependencies (flag as architectural debt)
51
+ - Note external service dependencies (databases, APIs, queues)
52
+
53
+ ### Step 4 — Identify Hot Paths
54
+
55
+ Find the most critical files by measuring:
56
+
57
+ - **Most imported**: files that appear in the most import statements
58
+ - **Most modified**: files with the highest git commit frequency (last 90 days)
59
+ - **Largest fan-out**: files that import the most other modules
60
+ - **Gateway files**: files that bridge between major subsystems
61
+
62
+ ### Step 5 — Generate Learning Path
63
+
64
+ Create an ordered reading list that builds understanding progressively:
65
+
66
+ 1. Configuration files (understand the shape of the project)
67
+ 2. Entry points (understand how the system starts)
68
+ 3. Core domain logic (understand what the system does)
69
+ 4. Infrastructure/adapters (understand how it connects to the world)
70
+ 5. Edge cases and error handling (understand failure modes)
71
+ 6. Tests (understand expected behavior and invariants)
72
+
73
+ ### Step 6 — Output Report
74
+
75
+ Write `ONBOARDING-REPORT.md` to `.planning/` containing:
76
+
77
+ - Stack summary (one-line per technology)
78
+ - Entry points list (file path + purpose)
79
+ - Dependency graph (ASCII or Mermaid format)
80
+ - Hot paths table (file, import count, commit frequency)
81
+ - Learning path (ordered reading list with file paths)
82
+ - Key architectural decisions or patterns observed
83
+ - Known debt or areas of concern
84
+
85
+ ## Self-check before task completion
86
+
87
+ Before marking a task done when this skill was active:
88
+
89
+ - [ ] Did I identify the stack correctly (language, framework, build, test)?
90
+ - [ ] Did I find ALL entry points (not just the obvious main file)?
91
+ - [ ] Did I build a dependency graph showing module relationships?
92
+ - [ ] Did I identify hot paths (most-imported and most-modified)?
93
+ - [ ] Did I create a usable learning path (ordered, progressive)?
94
+ - [ ] Did I output ONBOARDING-REPORT.md to .planning/?
95
+ - [ ] Is the report useful to someone with zero prior context?