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,114 @@
1
+ ---
2
+ name: context-engineering
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.0.7
5
+ status: stable
6
+ triggers: context engineering, context window management, context token budget, context priority ordering, compaction strategy, context freshness, context allocation, what to include in context, context optimization strategy, retrieval augmentation design, context pruning, context budget allocation
7
+ ---
8
+
9
+ # Context Engineering
10
+
11
+ ## When this skill activates
12
+
13
+ This skill activates when designing what information to feed into an LLM context window, how to prioritize it, and how to manage context across long-running sessions or multi-turn conversations. It applies to system prompt design, RAG pipeline tuning, agent memory management, and any scenario where token budget allocation determines output quality.
14
+
15
+ ## Mandatory actions when this skill is active
16
+
17
+ ### Before
18
+
19
+ 1. **Measure the budget** — Determine the total context window size for the target model. Subtract the expected output length. The remainder is your input budget.
20
+ 2. **Identify the task** — Classify the task type (code generation, analysis, Q&A, creative). Different tasks require different context compositions.
21
+ 3. **Inventory available context** — List all potential context sources: files, conversation history, retrieved documents, instructions, examples, metadata.
22
+ 4. **Assess current context health** — If modifying an existing system, measure current context utilization. Identify waste (irrelevant content consuming tokens).
23
+
24
+ ### During
25
+
26
+ #### What to Include vs Exclude
27
+
28
+ **Include (high signal):**
29
+ - Task-relevant source code (the files being modified or referenced)
30
+ - Explicit constraints and requirements
31
+ - Relevant examples demonstrating desired behavior
32
+ - Error messages and stack traces when debugging
33
+ - Schema definitions and type signatures
34
+ - User preferences and project conventions
35
+
36
+ **Exclude (low signal, high cost):**
37
+ - Irrelevant conversation history from earlier turns
38
+ - Verbose log output (summarize instead)
39
+ - Unrelated files that happen to be nearby
40
+ - Redundant information already stated elsewhere
41
+ - Boilerplate code that follows obvious patterns
42
+ - Full file contents when only a function is relevant
43
+
44
+ #### Priority Ordering (Attention Distribution)
45
+
46
+ - **Position 1 (highest attention): Instructions and constraints** — System prompts, role definitions, mandatory rules. Models attend most strongly to the beginning and end of context.
47
+ - **Position 2: Task-specific content** — The code, document, or data being directly worked on.
48
+ - **Position 3: Examples and references** — Few-shot examples, related patterns, documentation excerpts.
49
+ - **Position 4: Background context** — Project structure, historical decisions, tangential information.
50
+ - **Recency bias** — Models attend more to recent content. Place the most critical dynamic content last (just before the query).
51
+ - **Primacy effect** — System instructions at the very start receive elevated attention. Never bury critical rules in the middle.
52
+
53
+ #### Token Budget Allocation Framework
54
+
55
+ | Category | Allocation | Purpose |
56
+ |----------|-----------|---------|
57
+ | Task-relevant content | 60% | Code, data, documents being worked on |
58
+ | Constraints and instructions | 20% | Rules, format requirements, boundaries |
59
+ | Examples | 10% | Few-shot demonstrations, reference patterns |
60
+ | Meta and buffer | 10% | Conversation scaffolding, safety margin |
61
+
62
+ - **Adapt per task** — Code generation: increase task-relevant to 70%, reduce examples to 5%. Creative tasks: increase examples to 20%.
63
+ - **Never fill 100%** — Leave 10-15% buffer for the model's response and unexpected context needs.
64
+ - **Track token counts** — Use tokenizer libraries (tiktoken, Anthropic tokenizer) to measure precisely. Estimates drift.
65
+
66
+ #### Compaction Strategy
67
+
68
+ - **Summarize old context** — Replace verbose conversation history with structured summaries. Keep decisions and outcomes; discard deliberation.
69
+ - **Keep recent verbatim** — The last 2-3 turns should remain uncompacted. Recent context drives current behavior.
70
+ - **Progressive summarization** — As context ages: verbatim (0-2 turns) → detailed summary (3-10 turns) → bullet points (10+ turns) → drop entirely.
71
+ - **Checkpoint key decisions** — Extract and preserve: architectural decisions, user preferences, constraints discovered mid-conversation. These never compact.
72
+ - **Lossy is acceptable** — Perfect recall is not the goal. Relevant recall is. Aggressively prune low-value history.
73
+
74
+ #### Context Freshness
75
+
76
+ - **Re-read files before acting** — Never rely on file content from earlier in the conversation if the file may have changed. Always re-read.
77
+ - **Invalidate on mutation** — After any write operation, treat previously-read versions of affected files as stale.
78
+ - **Timestamp awareness** — When including retrieved documents, note their freshness. Flag content older than the relevance threshold.
79
+ - **Session drift** — Long sessions accumulate stale assumptions. Periodically re-ground by re-reading source-of-truth files.
80
+
81
+ #### RAG Integration (Retrieval Augmented Generation)
82
+
83
+ - **Chunk size** — 500-1000 tokens per chunk for code; 200-500 for prose. Smaller chunks = more precise retrieval but less surrounding context.
84
+ - **Retrieve selectively** — Max 3-5 chunks (3-5K tokens total). More retrieved content dilutes attention on each piece.
85
+ - **Relevance threshold** — Set a similarity score cutoff. Irrelevant retrieved content is worse than no retrieval.
86
+ - **Cite sources** — Always attribute retrieved content to its source. This helps the model (and user) assess reliability.
87
+ - **Hybrid search** — Combine semantic (embedding) search with keyword (BM25) search. Neither alone is sufficient.
88
+ - **Re-ranking** — Apply a cross-encoder re-ranker after initial retrieval to improve precision before injection.
89
+
90
+ #### Context Pruning Techniques
91
+
92
+ - **Sliding window** — Drop oldest turns when approaching limits. Simple but lossy.
93
+ - **Relevance scoring** — Score each context block against the current query. Drop lowest-scoring blocks first.
94
+ - **Deduplication** — Detect and merge repeated information. Common in multi-turn conversations.
95
+ - **Structural pruning** — Remove comments, whitespace, and formatting from code context. Preserve semantics, reduce tokens.
96
+ - **Selective inclusion** — For large files, include only the relevant functions/classes, not the entire file.
97
+
98
+ ### After
99
+
100
+ 1. **Measure utilization** — Calculate what percentage of context was actually relevant to the output. Target >70% relevance.
101
+ 2. **Evaluate output quality** — Compare outputs with full context vs pruned context. If quality is maintained, the pruning strategy is sound.
102
+ 3. **Document the strategy** — Record the context composition pattern for this use case so it can be replicated and improved.
103
+ 4. **Monitor drift** — Track context composition over time. If quality degrades, context may have drifted from optimal allocation.
104
+
105
+ ## Self-check before task completion
106
+
107
+ - [ ] Token budget is explicitly allocated across categories
108
+ - [ ] Instructions and constraints occupy the highest-attention positions (start and end)
109
+ - [ ] No irrelevant content consuming tokens (verbose logs, unrelated files, redundant info)
110
+ - [ ] Compaction strategy handles long conversations without losing key decisions
111
+ - [ ] File content is fresh (re-read if potentially stale)
112
+ - [ ] RAG retrieval is limited to 3-5 relevant chunks with similarity threshold
113
+ - [ ] At least 10% token buffer remains for response generation
114
+ - [ ] Context composition is documented and reproducible
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: contract-testing
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.0.8
5
+ status: stable
6
+ triggers: contract testing, consumer driven contract, pact testing, provider verification, contract broker, schema compatibility, contract first, api contract test, consumer contract, provider contract, contract breaking, bilateral contract
7
+ compose: testing-standards
8
+ ---
9
+
10
+ # Contract Testing
11
+
12
+ ## When this skill activates
13
+
14
+ This skill activates when working with API contract verification between services, consumer-driven contract workflows, schema compatibility checks, or any task involving service boundary agreements. It applies to both synchronous (HTTP/gRPC) and asynchronous (message queue) contracts.
15
+
16
+ ## Mandatory actions when this skill is active
17
+
18
+ ### Before
19
+
20
+ 1. Identify all parties in the contract relationship (consumers and providers).
21
+ 2. Determine the contract format in use (Pact, OpenAPI, AsyncAPI, Protobuf).
22
+ 3. Check if a contract broker is already configured (Pactflow, Pact Broker, custom).
23
+ 4. Review existing contracts for the affected endpoints or messages.
24
+ 5. Confirm the environment supports contract verification (CI pipeline, broker access).
25
+
26
+ ### During
27
+
28
+ **Consumer-Driven Contract Workflow:**
29
+ - Consumers define the interactions they require (request/response pairs).
30
+ - Consumer tests generate contract files (pact files, schemas).
31
+ - Contracts are published to a broker with version metadata.
32
+ - Providers pull contracts and verify they satisfy all consumer expectations.
33
+ - Verification results are published back to the broker.
34
+
35
+ **Schema Compatibility Levels:**
36
+ - **Backward compatible**: New schema can read data written by old schema.
37
+ - **Forward compatible**: Old schema can read data written by new schema.
38
+ - **Full compatible**: Both backward and forward (safest for production).
39
+ - Always validate compatibility BEFORE deploying schema changes.
40
+
41
+ **Breaking Change Detection:**
42
+ - Removing a field consumers depend on = BREAKING.
43
+ - Changing a field type or format = BREAKING.
44
+ - Adding a required field to a request = BREAKING for providers.
45
+ - Adding an optional field = SAFE (backward compatible).
46
+ - Run `can-i-deploy` checks in CI to gate deployments.
47
+
48
+ **Contract Broker Practices:**
49
+ - Tag contracts with environment names (dev, staging, prod).
50
+ - Use semantic versioning for contract participants.
51
+ - Enable webhook notifications on verification failures.
52
+ - Maintain contract history for rollback capability.
53
+
54
+ **Pact-Specific Workflow:**
55
+ 1. Write consumer test using Pact DSL (define interaction).
56
+ 2. Run consumer test to generate `.pact` JSON file.
57
+ 3. Publish pact to broker with consumer version.
58
+ 4. Provider runs verification against all registered consumer pacts.
59
+ 5. Provider publishes verification result to broker.
60
+ 6. CI runs `can-i-deploy` before any deployment proceeds.
61
+
62
+ **CI Integration:**
63
+ - Consumer pipeline: test → generate pact → publish → trigger provider verification.
64
+ - Provider pipeline: pull pacts → verify → publish result → deploy if green.
65
+ - Use pending pacts for new consumers (failures don't block provider).
66
+ - Use WIP pacts for contracts not yet verified on provider's main branch.
67
+
68
+ ### After
69
+
70
+ 1. All contracts are published to the broker with correct version tags.
71
+ 2. Verification results are recorded for both consumer and provider.
72
+ 3. `can-i-deploy` passes for the target environment.
73
+ 4. Breaking changes are flagged and communicated to affected teams.
74
+ 5. Contract coverage includes all critical interactions (not just happy paths).
75
+
76
+ ## Self-check before task completion
77
+
78
+ - [ ] Consumer tests define the minimal required interaction (no over-specification).
79
+ - [ ] Provider verification runs against ALL registered consumer contracts.
80
+ - [ ] Schema changes are validated for the correct compatibility level.
81
+ - [ ] Breaking changes have been identified and a migration plan exists.
82
+ - [ ] Contract broker has up-to-date versions for all participants.
83
+ - [ ] CI pipeline gates deployment on `can-i-deploy` result.
84
+ - [ ] Error scenarios and edge cases are covered in contracts (not just 200 responses).
85
+ - [ ] Contract tests run in isolation (no network calls, no shared state).
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: cost-estimation
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.0.9
5
+ status: stable
6
+ triggers: cost estimation, cloud cost modeling, finops, reserved instance, spot instance, cost forecast, infrastructure cost, cost per request, pricing model, cost optimization plan, resource right-sizing, cost allocation
7
+ ---
8
+
9
+ # Skill — Cost Estimation
10
+
11
+ ## When this skill activates
12
+ Any task involving cloud cost modeling, FinOps, instance strategy selection,
13
+ cost forecasting, per-request cost analysis, right-sizing, or cost allocation.
14
+
15
+ ## Mandatory actions when this skill is active
16
+
17
+ ### Before writing any code
18
+ 1. Estimate costs BEFORE building: compute + storage + network + managed services.
19
+ 2. Identify cost-dominant components (usually storage or network egress).
20
+ 3. Define budget constraints and alerting thresholds.
21
+
22
+ ### During implementation
23
+ - Choose instances based on workload profile (compute/memory/IO bound).
24
+ - Implement resource tagging for cost allocation from day one.
25
+ - Use auto-scaling with min/max bounds.
26
+ - Prefer managed services when ops cost exceeds infrastructure savings.
27
+
28
+ ### After implementation
29
+ - Set cost alerts at 50%, 80%, 100% of budget.
30
+ - Create per-service cost dashboard.
31
+ - Schedule monthly cost review for drift and optimization.
32
+
33
+ ## FinOps Phases
34
+
35
+ - **Inform**: tag all resources, build dashboards, implement showback/chargeback.
36
+ - **Optimize**: right-size, reserve steady workloads, spot for batch, eliminate waste.
37
+ - **Operate**: automate (scheduled scaling, auto-stop dev), embed cost in PR review.
38
+
39
+ ## Cost Modeling
40
+
41
+ ```
42
+ Monthly = Compute + Storage + Network + Managed + Support
43
+ Compute: instances * hours * $/hour
44
+ Storage: GB * $/GB + IOPS * $/IOP
45
+ Network: GB egress * $/GB (ingress usually free)
46
+ Cost/Request: total_monthly / total_requests
47
+ ```
48
+
49
+ ## Instance Strategy
50
+
51
+ | Type | Discount | Use For | Never For |
52
+ |------|----------|---------|-----------|
53
+ | On-Demand | 0% | Variable, dev, testing | Steady production (wasteful) |
54
+ | Reserved (1-3yr) | 30-72% | Steady production (>70% util for 6+ months) | Uncertain workloads |
55
+ | Spot/Preemptible | 60-90% | Batch, CI/CD, fault-tolerant workers | Databases, user-facing |
56
+
57
+ ## Right-Sizing Indicators
58
+ - CPU < 40% consistently = oversized.
59
+ - Memory < 50% consistently = oversized.
60
+ - Process: collect 2-4 weeks metrics → find binding constraint → resize to peak + 20%.
61
+
62
+ ## Cost Allocation Tags (Minimum)
63
+ - `team`, `service`, `environment`, `cost-center`.
64
+ - Optional: `feature` for per-feature attribution.
65
+ - Shared infra: divide proportionally by request count or CPU time.
66
+
67
+ ## Forecasting
68
+ ```
69
+ Next Month = Current * (1 + organic_growth) + planned_launch_impact
70
+ ```
71
+ - Inputs: historical trend (3-6 months), planned launches, seasonal patterns.
72
+ - Weekly: check for anomalies. Monthly: forecast vs actual. Quarterly: re-evaluate commitments.
73
+
74
+ ## Self-check before task completion
75
+
76
+ - [ ] Did I estimate costs before proposing infrastructure?
77
+ - [ ] Are resources tagged for cost allocation?
78
+ - [ ] Is instance strategy appropriate (on-demand vs reserved vs spot)?
79
+ - [ ] Are cost alerts configured at budget thresholds?
80
+ - [ ] Is right-sizing based on actual utilization data?
81
+ - [ ] Is there a cost visibility mechanism (dashboard)?
82
+ - [ ] Are managed-vs-self-hosted trade-offs documented?
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: cqrs-event-sourcing
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.0.6
5
+ status: stable
6
+ triggers: cqrs, event sourcing, command query separation, event store, projection, eventual consistency, event replay, aggregate root, domain event, event versioning, read model, write model
7
+ ---
8
+
9
+ # Skill — CQRS & Event Sourcing
10
+
11
+ ## When this skill activates
12
+ Any task involving command/query responsibility segregation, event sourcing, event store
13
+ design, projection building, or systems requiring full audit trails and temporal queries.
14
+
15
+ ## Mandatory actions when this skill is active
16
+
17
+ ### Before
18
+
19
+ 1. **Validate the need** — Confirm at least one: full audit trail required, temporal queries needed, complex domain with many read views, or high read/write asymmetry.
20
+ 2. **Identify aggregates** — Define aggregate roots as consistency boundaries. Each aggregate emits domain events and enforces invariants.
21
+ 3. **Map read vs write models** — Document which queries need optimized read models separate from the event stream.
22
+
23
+ ### During
24
+
25
+ #### Command side (write model)
26
+ - Commands are imperative ("PlaceOrder", "CancelShipment")
27
+ - Command handler validates invariants then emits domain events
28
+ - State is NEVER set directly — it is derived by applying events
29
+ - Aggregate enforces business rules before accepting the command
30
+
31
+ #### Event store design
32
+ ```sql
33
+ CREATE TABLE events (
34
+ event_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
35
+ aggregate_id UUID NOT NULL,
36
+ aggregate_type VARCHAR(100) NOT NULL,
37
+ event_type VARCHAR(100) NOT NULL,
38
+ event_version INTEGER NOT NULL,
39
+ sequence_number BIGINT NOT NULL,
40
+ payload JSONB NOT NULL,
41
+ metadata JSONB NOT NULL, -- correlation_id, causation_id, actor
42
+ created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
43
+ UNIQUE (aggregate_id, sequence_number)
44
+ );
45
+ ```
46
+ - Events are immutable — never update or delete
47
+ - Optimistic concurrency via expected sequence number on write
48
+ - Event names are past tense: `OrderPlaced`, `PaymentCharged`
49
+ - Store both payload and metadata (correlation ID, causation ID, actor)
50
+
51
+ #### Projections (read models)
52
+ - Each projection materializes a read-optimized view from the event stream
53
+ - Projections are independently rebuildable (replay from event 0)
54
+ - Use checkpointing: store last processed event position
55
+ - Different projections can use different databases (SQL, Elasticsearch, Redis)
56
+ - Mark as "rebuilding" during replay to avoid serving stale data
57
+
58
+ #### Eventual consistency patterns
59
+ - Causal consistency: return event sequence number from command, poll until projection catches up
60
+ - Read-your-writes: optimistically update client state after command succeeds
61
+ - Subscription-based: clients subscribe to projection update notifications
62
+
63
+ #### Snapshot strategy
64
+ - Avoid replaying entire history for long-lived aggregates
65
+ - Load latest snapshot + events after snapshot sequence number
66
+ - Snapshot frequency: every 50-100 events per aggregate
67
+ - Snapshots are optimization only — system must work without them
68
+
69
+ #### Event versioning and upcasting
70
+ - Never modify existing event schemas in-place
71
+ - Add optional fields (backward-compatible) or create new event type
72
+ - Upcasters transform old events to current schema during replay
73
+ - Store schema version with every event for routing to correct upcaster
74
+
75
+ #### Idempotent handlers
76
+ - Every projection/handler must be safe to process the same event twice
77
+ - Deduplicate by event_id before processing
78
+ - Record checkpoint after successful processing
79
+
80
+ ### After
81
+
82
+ 1. **Verify event completeness** — Every state change captured as a domain event. No silent mutations.
83
+ 2. **Test replay** — Rebuild one projection from scratch; confirm data integrity.
84
+ 3. **Validate idempotency** — Process same event twice, confirm no side effects.
85
+ 4. **Check consistency boundaries** — Each aggregate enforces invariants independently.
86
+
87
+ ## Self-check before task completion
88
+ - [ ] All state changes expressed as immutable domain events
89
+ - [ ] Event store uses optimistic concurrency (sequence number)
90
+ - [ ] Projections independently rebuildable from event stream
91
+ - [ ] Event handlers are idempotent (safe to replay)
92
+ - [ ] Snapshot strategy defined for long-lived aggregates
93
+ - [ ] Event versioning/upcasting handles schema evolution
94
+ - [ ] Eventual consistency communicated to client layer
95
+ - [ ] Correlation and causation IDs propagated through event chain
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: cross-platform-testing
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.4.0
5
+ status: stable
6
+ triggers: cross-platform testing, device farm testing, screenshot comparison test, platform-specific testing, mobile CI pipeline, Appium testing, Detox testing, XCTest UITest, mobile test automation, device matrix coverage, mobile E2E testing, visual regression mobile
7
+ ---
8
+
9
+ # Skill — Cross-Platform Mobile Testing
10
+
11
+ ## When this skill activates
12
+ This skill activates when implementing comprehensive mobile testing strategies, including device farm integration, screenshot testing, platform-specific behavior validation, or CI/CD pipelines for mobile apps.
13
+
14
+ ## Mandatory actions when this skill is active
15
+
16
+ ### Before writing any code
17
+ 1. Define device matrix covering target OS versions, screen sizes, and hardware capabilities (prioritize based on user analytics)
18
+ 2. Choose testing framework appropriate for platform (XCTest/XCUITest for iOS, Espresso/UIAutomator for Android, Detox/Appium for cross-platform)
19
+ 3. Establish screenshot testing baseline images and tolerance thresholds for visual regression detection
20
+ 4. Design test data strategy — use factories/fixtures, implement proper setup/teardown, ensure test isolation
21
+
22
+ ### During implementation
23
+ - Write tests at appropriate levels: unit tests for business logic, integration tests for data flows, E2E tests for critical user journeys
24
+ - Implement proper test identifiers (testID, accessibilityIdentifier) in UI components for reliable element selection
25
+ - Use page object pattern or similar abstraction to decouple tests from UI implementation details
26
+ - Configure screenshot testing with proper device/OS-specific baselines to handle platform rendering differences
27
+ - Implement retry logic for flaky tests caused by animation timing, network delays, or platform quirks
28
+ - Set up parallel test execution on device farms (Firebase Test Lab, AWS Device Farm, BrowserStack) for faster feedback
29
+ - Handle platform-specific behaviors explicitly in tests (Android back button, iOS swipe gestures, permission dialogs)
30
+
31
+ ### After implementation
32
+ - Run full test suite on representative device matrix, not just emulators/simulators
33
+ - Review test flakiness rates and fix or quarantine unstable tests
34
+ - Integrate tests into CI pipeline with proper failure reporting and artifact collection (screenshots, logs, videos)
35
+ - Validate test coverage for critical paths and high-risk areas (payments, authentication, data sync)
36
+
37
+ ## Self-check before task completion
38
+ - [ ] Test suite runs reliably across multiple devices and OS versions with <5% flakiness
39
+ - [ ] Screenshot tests catch visual regressions without excessive false positives
40
+ - [ ] Platform-specific behaviors are tested correctly (back button, deep links, system gestures)
41
+ - [ ] CI pipeline provides clear failure reporting with screenshots/videos for debugging
42
+ - [ ] E2E tests cover critical user journeys end-to-end, including error scenarios
43
+ - [ ] Test execution time is reasonable (use parallelization, split test suites if needed)
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: data-governance
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.6.0
5
+ status: stable
6
+ triggers: data governance framework, data catalog implementation, data lineage tracking, data access control, data quality framework, data stewardship, metadata management, data classification, data retention policy, data discovery platform, data ownership, data compliance framework
7
+ ---
8
+
9
+ # Skill — Data Governance
10
+
11
+ ## When this skill activates
12
+ This skill activates when implementing data catalog systems, establishing data ownership models, building lineage tracking, or designing access control frameworks. Use when organizations need to scale data democratization while maintaining compliance and quality.
13
+
14
+ ## Mandatory actions when this skill is active
15
+
16
+ ### Before writing any code
17
+ 1. Define data classification taxonomy with clear criteria: public, internal, confidential, restricted with handling requirements for each tier
18
+ 2. Establish data ownership model: domain owners, data stewards, technical custodians with RACI matrix for responsibilities
19
+ 3. Document compliance requirements: GDPR, CCPA, HIPAA, SOC2 with specific technical controls needed for each regulation
20
+ 4. Design metadata schema capturing: business definitions, technical specifications, quality metrics, lineage, and access policies
21
+
22
+ ### During implementation
23
+ - Build automated data catalog discovery scanning databases, data lakes, APIs, and file systems to populate metadata repository
24
+ - Implement column-level lineage tracking from source systems through transformations to final consumption with impact analysis capabilities
25
+ - Create role-based access control (RBAC) with attribute-based policies (ABAC) for dynamic access based on data classification and user context
26
+ - Establish data quality framework with profiling rules, validation checks, and quality scores at dataset and column level
27
+ - Implement data retention policies with automated archival and deletion workflows based on regulatory requirements and business rules
28
+ - Build data stewardship workflows for metadata enrichment: business glossary terms, data ownership assignment, quality issue resolution
29
+ - Create audit logging for all data access, modifications, and policy changes with immutable trail for compliance reporting
30
+
31
+ ### After implementation
32
+ - Deploy self-serve data discovery portal with search, business glossary, quality indicators, and access request workflows
33
+ - Generate automated data quality reports with trend analysis, anomaly detection, and stakeholder-specific dashboards
34
+ - Create compliance audit packages with evidence of controls: access logs, retention proof, encryption verification, lineage documentation
35
+ - Build data governance metrics dashboard: catalog coverage, metadata completeness, quality score trends, access request SLA
36
+
37
+ ## Self-check before task completion
38
+ - [ ] Data catalog covers 90%+ of production data assets with accurate business metadata
39
+ - [ ] Lineage tracking provides end-to-end visibility from source to consumption with transformation logic
40
+ - [ ] Access control policies enforced at query time with separation of duties for sensitive data
41
+ - [ ] Data quality framework monitors critical datasets with automated alerting on quality degradation
42
+ - [ ] Compliance documentation generated automatically with evidence trails for audit requirements
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: data-lakehouse
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.6.0
5
+ status: stable
6
+ triggers: data lakehouse architecture, medallion architecture, schema evolution lakehouse, time travel data, partition optimization, Delta Lake implementation, Iceberg table design, lakehouse query performance, data lakehouse governance, lakehouse ingestion, lakehouse serving layer, lakehouse cost optimization
7
+ ---
8
+
9
+ # Skill — Data Lakehouse
10
+
11
+ ## When this skill activates
12
+ This skill activates when implementing lakehouse architectures combining data lake flexibility with data warehouse performance. Use when building Delta Lake, Iceberg, or Hudi tables with ACID guarantees, schema evolution, and time travel capabilities.
13
+
14
+ ## Mandatory actions when this skill is active
15
+
16
+ ### Before writing any code
17
+ 1. Design medallion architecture layers: bronze (raw ingestion), silver (cleansed/conformed), gold (business-level aggregates) with clear promotion criteria
18
+ 2. Select table format (Delta, Iceberg, Hudi) based on requirements: write patterns, query patterns, ecosystem compatibility, and feature needs
19
+ 3. Plan partitioning strategy based on query patterns: typically date/time for time-series, geography for location-based, or composite keys avoiding over-partitioning (<1000 partitions)
20
+ 4. Define schema evolution policy: additive changes (safe), nullable to required (breaking), type changes (migration required) with versioning strategy
21
+
22
+ ### During implementation
23
+ - Implement ACID transactions for atomic writes: use table format's transaction log (Delta Log, Iceberg metadata) to ensure consistency
24
+ - Configure file sizing for optimal query performance: target 128MB-1GB per file, run regular OPTIMIZE/COMPACT operations to prevent small files
25
+ - Enable time travel with retention policy: maintain snapshots for point-in-time queries and audit, configure vacuum/expire based on compliance needs
26
+ - Design incremental processing patterns: merge/upsert operations for CDC, append for event streams, overwrite partitions for batch updates
27
+ - Implement Z-ordering or clustering on frequently filtered columns (non-partition keys) to improve query performance via data skipping
28
+ - Build schema evolution handlers: automatic schema merging for new columns, validation for breaking changes, schema registry integration
29
+ - Create data quality checkpoints between medallion layers: row counts, null checks, referential integrity, business rule validation with quarantine tables
30
+
31
+ ### After implementation
32
+ - Monitor table health metrics: file count, average file size, partition count, metadata size, and compaction needs
33
+ - Build cost optimization reports: storage by layer, compute for jobs, query costs, and opportunities for partition pruning or materialization
34
+ - Create governance controls: table-level access policies, column masking, row filtering, and audit logging for sensitive data access
35
+ - Generate performance analysis: query patterns, partition pruning effectiveness, file skipping statistics, and optimization recommendations
36
+
37
+ ## Self-check before task completion
38
+ - [ ] Medallion layers clearly defined with data quality gates between bronze → silver → gold promotions
39
+ - [ ] Partitioning strategy optimized for query patterns with validation that queries prune partitions effectively
40
+ - [ ] ACID transactions tested with concurrent writes and failure scenarios to ensure consistency
41
+ - [ ] Schema evolution tested with backward and forward compatibility for common evolution scenarios
42
+ - [ ] File management strategy (OPTIMIZE/VACUUM) scheduled with monitoring for small file accumulation
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: data-mesh
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.6.0
5
+ status: stable
6
+ triggers: data mesh architecture, domain data ownership, data product design, federated data governance, self-serve data platform, data mesh implementation, data contract mesh, data domain boundary, mesh interoperability, decentralized data ownership, data product specification, domain-driven data
7
+ ---
8
+
9
+ # Skill — Data Mesh
10
+
11
+ ## When this skill activates
12
+ This skill activates when implementing data mesh architectures with domain-oriented ownership, federated governance, and data-as-a-product principles. Use when centralizing data management becomes a bottleneck and domains need autonomy with interoperability.
13
+
14
+ ## Mandatory actions when this skill is active
15
+
16
+ ### Before writing any code
17
+ 1. Define domain boundaries using domain-driven design: bounded contexts, ubiquitous language, core domains vs supporting domains with ownership mapping
18
+ 2. Establish data product specification template: SLAs, schemas, semantics, access controls, versioning, and quality guarantees each domain must provide
19
+ 3. Design federated computational governance: global standards (discovery, security, interoperability) enforced through platform, local decisions (tech stack, modeling) owned by domains
20
+ 4. Create self-serve data platform capabilities: provisioning automation, observability tools, discovery services, and development environments domains can use independently
21
+
22
+ ### During implementation
23
+ - Build data product registry with standardized metadata: domain owner, SLAs, schemas, sample data, access request process, and consumer feedback
24
+ - Implement data contracts between domains: schema definitions, backward compatibility guarantees, deprecation policies, and breaking change notifications
25
+ - Create domain-agnostic platform services: infrastructure provisioning (IaC templates), CI/CD pipelines, monitoring dashboards, and cost allocation
26
+ - Design data product APIs with consistency: REST for batch, streaming for real-time, query engines for analytical, with versioning and deprecation paths
27
+ - Establish quality frameworks domains must implement: data validation, profiling, lineage tracking, incident response with federated monitoring
28
+ - Build interoperability layer: common data types, standard formats (Parquet, Avro), semantic layer, and cross-domain joins through data products not direct access
29
+ - Implement federated identity and access: domain-owned authorization, centralized authentication, audit logging, and privacy controls enforced at platform level
30
+
31
+ ### After implementation
32
+ - Create data product marketplace: searchable catalog, quality scores, usage analytics, consumer reviews, and onboarding documentation
33
+ - Build platform health metrics: provisioning time, incident resolution SLA, platform uptime, and developer satisfaction scores
34
+ - Generate federated governance reports: compliance by domain, quality trends, cross-domain dependencies, and policy violations
35
+ - Document domain interaction patterns: producer-consumer relationships, data sharing agreements, and conflict resolution processes
36
+
37
+ ## Self-check before task completion
38
+ - [ ] Domain boundaries clearly defined with ownership assignments and RACI matrix for responsibilities
39
+ - [ ] Data products meet platform standards for discoverability, access control, quality, and SLAs
40
+ - [ ] Self-serve platform enables domains to provision, deploy, and monitor data products independently
41
+ - [ ] Federated governance enforces global standards while allowing domain autonomy in implementation
42
+ - [ ] Interoperability tested across domains through data product contracts and APIs, not direct database access