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.
- package/.mindforge/MINDFORGE-V2-SCHEMA.json +43 -10
- package/.mindforge/config.json +30 -2
- package/.mindforge/engine/cross-model-eval.md +74 -0
- package/.mindforge/engine/proactive/signal-detector.md +60 -0
- package/.mindforge/engine/proactive/suggestion-engine.md +100 -0
- package/.mindforge/personas/agent-architect.md +57 -0
- package/.mindforge/personas/agent-evaluator.md +162 -0
- package/.mindforge/personas/agent-memory-designer.md +157 -0
- package/.mindforge/personas/agent-ops-engineer.md +120 -0
- package/.mindforge/personas/agent-orchestrator.md +112 -0
- package/.mindforge/personas/ai-economist.md +57 -0
- package/.mindforge/personas/ai-safety-engineer.md +57 -0
- package/.mindforge/personas/analytics-engineer.md +57 -0
- package/.mindforge/personas/anti-pattern-hunter.md +61 -0
- package/.mindforge/personas/api-gateway-designer.md +132 -0
- package/.mindforge/personas/auth-engineer.md +112 -0
- package/.mindforge/personas/build-engineer.md +57 -0
- package/.mindforge/personas/business-analyst.md +56 -0
- package/.mindforge/personas/cache-architect.md +100 -0
- package/.mindforge/personas/causal-scientist.md +57 -0
- package/.mindforge/personas/cdn-architect.md +118 -0
- package/.mindforge/personas/change-agent.md +104 -0
- package/.mindforge/personas/code-narrator.md +52 -0
- package/.mindforge/personas/codegen-specialist.md +68 -0
- package/.mindforge/personas/communication-architect.md +102 -0
- package/.mindforge/personas/compliance-engineer.md +96 -0
- package/.mindforge/personas/consensus-engineer.md +116 -0
- package/.mindforge/personas/contract-tester.md +60 -192
- package/.mindforge/personas/data-architect.md +108 -0
- package/.mindforge/personas/data-mesh-architect.md +57 -0
- package/.mindforge/personas/data-pipeline-architect.md +120 -0
- package/.mindforge/personas/de-sloppifier.md +60 -0
- package/.mindforge/personas/debt-manager.md +66 -0
- package/.mindforge/personas/decision-architect.md +82 -51
- package/.mindforge/personas/deployment-captain.md +74 -0
- package/.mindforge/personas/design-system-lead.md +112 -0
- package/.mindforge/personas/dmux-orchestrator.md +75 -0
- package/.mindforge/personas/dx-engineer.md +96 -0
- package/.mindforge/personas/ecommerce-engineer.md +57 -0
- package/.mindforge/personas/edge-engineer.md +94 -0
- package/.mindforge/personas/edtech-architect.md +106 -0
- package/.mindforge/personas/embedding-architect.md +57 -0
- package/.mindforge/personas/environment-engineer.md +57 -0
- package/.mindforge/personas/eval-judge.md +55 -0
- package/.mindforge/personas/event-architect.md +102 -0
- package/.mindforge/personas/experiment-designer.md +138 -0
- package/.mindforge/personas/feature-store-engineer.md +57 -0
- package/.mindforge/personas/finops-analyst.md +66 -0
- package/.mindforge/personas/fintech-architect.md +57 -0
- package/.mindforge/personas/flutter-engineer.md +104 -0
- package/.mindforge/personas/gaming-engineer.md +57 -0
- package/.mindforge/personas/graphql-designer.md +73 -0
- package/.mindforge/personas/healthcare-engineer.md +57 -0
- package/.mindforge/personas/hiring-strategist.md +105 -0
- package/.mindforge/personas/hitl-architect.md +165 -0
- package/.mindforge/personas/i18n-architect.md +69 -0
- package/.mindforge/personas/iot-architect.md +105 -0
- package/.mindforge/personas/knowledge-curator.md +139 -0
- package/.mindforge/personas/knowledge-engineer.md +57 -0
- package/.mindforge/personas/lakehouse-architect.md +57 -0
- package/.mindforge/personas/llm-orchestrator.md +57 -0
- package/.mindforge/personas/logistics-architect.md +106 -0
- package/.mindforge/personas/market-analyst.md +53 -0
- package/.mindforge/personas/marketplace-engineer.md +105 -0
- package/.mindforge/personas/mcp-designer.md +54 -0
- package/.mindforge/personas/meeting-designer.md +104 -0
- package/.mindforge/personas/mentorship-lead.md +106 -0
- package/.mindforge/personas/migration-architect.md +57 -0
- package/.mindforge/personas/ml-ops-engineer.md +101 -0
- package/.mindforge/personas/mobile-architect.md +105 -0
- package/.mindforge/personas/mobile-security-engineer.md +106 -0
- package/.mindforge/personas/multi-tenancy-architect.md +71 -0
- package/.mindforge/personas/multimodal-engineer.md +57 -0
- package/.mindforge/personas/offline-specialist.md +105 -0
- package/.mindforge/personas/onboarding-navigator.md +63 -0
- package/.mindforge/personas/payments-engineer.md +135 -0
- package/.mindforge/personas/pipeline-engineer.md +115 -0
- package/.mindforge/personas/platform-engineer.md +97 -0
- package/.mindforge/personas/platform-lead.md +57 -0
- package/.mindforge/personas/privacy-engineer.md +57 -0
- package/.mindforge/personas/product-owner.md +56 -0
- package/.mindforge/personas/productivity-analyst.md +57 -0
- package/.mindforge/personas/prompt-architect.md +101 -0
- package/.mindforge/personas/proofreader.md +53 -0
- package/.mindforge/personas/pwa-architect.md +105 -0
- package/.mindforge/personas/quality-scorer.md +63 -0
- package/.mindforge/personas/react-native-engineer.md +106 -0
- package/.mindforge/personas/resilience-engineer.md +69 -0
- package/.mindforge/personas/rfc-architect.md +64 -0
- package/.mindforge/personas/saga-orchestrator.md +80 -0
- package/.mindforge/personas/secrets-engineer.md +57 -0
- package/.mindforge/personas/skill-smith.md +79 -0
- package/.mindforge/personas/sre-lead.md +107 -0
- package/.mindforge/personas/stream-engineer.md +57 -0
- package/.mindforge/personas/streaming-engineer.md +64 -0
- package/.mindforge/personas/swarm-templates.json +674 -44
- package/.mindforge/personas/system-designer.md +57 -0
- package/.mindforge/personas/team-coach.md +120 -0
- package/.mindforge/personas/tech-lead-coach.md +103 -0
- package/.mindforge/personas/technical-writer-lead.md +111 -0
- package/.mindforge/personas/vibe-checker.md +75 -0
- package/.mindforge/personas/worktree-manager.md +56 -0
- package/.mindforge/personas/zero-trust-engineer.md +113 -0
- package/.mindforge/skills/a11y-testing/SKILL.md +143 -0
- package/.mindforge/skills/agent-evaluation-framework/SKILL.md +227 -0
- package/.mindforge/skills/agent-memory-design/SKILL.md +199 -0
- package/.mindforge/skills/agent-orchestration-patterns/SKILL.md +129 -0
- package/.mindforge/skills/agent-tool-selection/SKILL.md +204 -0
- package/.mindforge/skills/ai-agent-deployment/SKILL.md +176 -0
- package/.mindforge/skills/ai-cost-management/SKILL.md +57 -0
- package/.mindforge/skills/ai-safety-alignment/SKILL.md +53 -0
- package/.mindforge/skills/analytics-instrumentation/SKILL.md +172 -0
- package/.mindforge/skills/api-gateway-patterns/SKILL.md +177 -0
- package/.mindforge/skills/api-marketplace/SKILL.md +56 -0
- package/.mindforge/skills/api-versioning/SKILL.md +100 -0
- package/.mindforge/skills/app-store-deployment/SKILL.md +44 -0
- package/.mindforge/skills/architecture-tradeoff-analysis/SKILL.md +97 -0
- package/.mindforge/skills/audit-logging/SKILL.md +140 -0
- package/.mindforge/skills/auth-patterns/SKILL.md +148 -0
- package/.mindforge/skills/autonomous-agent-harness/SKILL.md +218 -0
- package/.mindforge/skills/autonomous-agents/SKILL.md +59 -0
- package/.mindforge/skills/build-system-optimization/SKILL.md +54 -0
- package/.mindforge/skills/build-vs-buy/SKILL.md +80 -0
- package/.mindforge/skills/bundle-optimization/SKILL.md +174 -0
- package/.mindforge/skills/business-analyst/SKILL.md +82 -0
- package/.mindforge/skills/caching-strategies/SKILL.md +132 -0
- package/.mindforge/skills/capacity-planning/SKILL.md +96 -0
- package/.mindforge/skills/causal-inference/SKILL.md +42 -0
- package/.mindforge/skills/cdn-optimization/SKILL.md +212 -0
- package/.mindforge/skills/change-management/SKILL.md +106 -0
- package/.mindforge/skills/chaos-engineering/SKILL.md +99 -0
- package/.mindforge/skills/ci-cd-pipeline/SKILL.md +118 -0
- package/.mindforge/skills/cli-design/SKILL.md +118 -0
- package/.mindforge/skills/code-generation-patterns/SKILL.md +92 -0
- package/.mindforge/skills/code-review-methodology/SKILL.md +180 -0
- package/.mindforge/skills/code-tour/SKILL.md +145 -0
- package/.mindforge/skills/codebase-onboarding/SKILL.md +95 -0
- package/.mindforge/skills/compliance-as-code/SKILL.md +195 -0
- package/.mindforge/skills/conflict-resolution/SKILL.md +87 -0
- package/.mindforge/skills/connection-pooling/SKILL.md +151 -0
- package/.mindforge/skills/container-security/SKILL.md +151 -0
- package/.mindforge/skills/context-engineering/SKILL.md +114 -0
- package/.mindforge/skills/contract-testing/SKILL.md +85 -0
- package/.mindforge/skills/cost-estimation/SKILL.md +82 -0
- package/.mindforge/skills/cqrs-event-sourcing/SKILL.md +95 -0
- package/.mindforge/skills/cross-platform-testing/SKILL.md +43 -0
- package/.mindforge/skills/data-governance/SKILL.md +42 -0
- package/.mindforge/skills/data-lakehouse/SKILL.md +42 -0
- package/.mindforge/skills/data-mesh/SKILL.md +42 -0
- package/.mindforge/skills/data-modeling/SKILL.md +107 -0
- package/.mindforge/skills/data-pipeline-design/SKILL.md +171 -0
- package/.mindforge/skills/data-privacy-engineering/SKILL.md +42 -0
- package/.mindforge/skills/database-performance/SKILL.md +174 -0
- package/.mindforge/skills/database-sharding-advanced/SKILL.md +206 -0
- package/.mindforge/skills/de-sloppify/SKILL.md +120 -0
- package/.mindforge/skills/defense-in-depth/SKILL.md +84 -0
- package/.mindforge/skills/delegation-patterns/SKILL.md +123 -0
- package/.mindforge/skills/dependency-management/SKILL.md +94 -0
- package/.mindforge/skills/deployment-workflow/SKILL.md +135 -0
- package/.mindforge/skills/design-system/SKILL.md +113 -0
- package/.mindforge/skills/developer-onboarding/SKILL.md +99 -0
- package/.mindforge/skills/developer-productivity-metrics/SKILL.md +59 -0
- package/.mindforge/skills/distributed-consensus/SKILL.md +141 -0
- package/.mindforge/skills/dmux-workflows/SKILL.md +141 -0
- package/.mindforge/skills/dns-architecture/SKILL.md +167 -0
- package/.mindforge/skills/ecommerce-architecture/SKILL.md +41 -0
- package/.mindforge/skills/edge-computing/SKILL.md +91 -0
- package/.mindforge/skills/edtech-platform/SKILL.md +41 -0
- package/.mindforge/skills/email-deliverability/SKILL.md +177 -0
- package/.mindforge/skills/embedding-systems/SKILL.md +55 -0
- package/.mindforge/skills/environment-management/SKILL.md +54 -0
- package/.mindforge/skills/error-handling-architecture/SKILL.md +118 -0
- package/.mindforge/skills/estimation-techniques/SKILL.md +113 -0
- package/.mindforge/skills/eval-harness/SKILL.md +180 -0
- package/.mindforge/skills/event-driven-architecture/SKILL.md +162 -0
- package/.mindforge/skills/experiment-design/SKILL.md +139 -0
- package/.mindforge/skills/experiment-platform/SKILL.md +43 -0
- package/.mindforge/skills/feature-engineering/SKILL.md +42 -0
- package/.mindforge/skills/feature-flag-management/SKILL.md +183 -0
- package/.mindforge/skills/fine-tuning-workflow/SKILL.md +189 -0
- package/.mindforge/skills/fintech-patterns/SKILL.md +41 -0
- package/.mindforge/skills/flutter-architecture/SKILL.md +42 -0
- package/.mindforge/skills/gaming-backend/SKILL.md +41 -0
- package/.mindforge/skills/git-workflow-design/SKILL.md +129 -0
- package/.mindforge/skills/graceful-degradation/SKILL.md +95 -0
- package/.mindforge/skills/graphql-patterns/SKILL.md +243 -0
- package/.mindforge/skills/guardrails-and-safety/SKILL.md +137 -0
- package/.mindforge/skills/healthcare-systems/SKILL.md +40 -0
- package/.mindforge/skills/hiring-engineering/SKILL.md +119 -0
- package/.mindforge/skills/human-in-the-loop-design/SKILL.md +234 -0
- package/.mindforge/skills/i18n-architecture/SKILL.md +147 -0
- package/.mindforge/skills/idempotency-patterns/SKILL.md +84 -0
- package/.mindforge/skills/incident-communication/SKILL.md +96 -0
- package/.mindforge/skills/incident-management/SKILL.md +97 -0
- package/.mindforge/skills/infrastructure-as-code/SKILL.md +98 -0
- package/.mindforge/skills/instinct-clustering/SKILL.md +190 -0
- package/.mindforge/skills/internal-developer-platform/SKILL.md +51 -0
- package/.mindforge/skills/iot-platform/SKILL.md +41 -0
- package/.mindforge/skills/k8s-deployment/SKILL.md +358 -0
- package/.mindforge/skills/knowledge-graphs/SKILL.md +56 -0
- package/.mindforge/skills/knowledge-sharing-systems/SKILL.md +112 -0
- package/.mindforge/skills/llm-cost-optimization/SKILL.md +198 -0
- package/.mindforge/skills/llm-orchestration/SKILL.md +56 -0
- package/.mindforge/skills/load-testing/SKILL.md +84 -0
- package/.mindforge/skills/logistics-optimization/SKILL.md +40 -0
- package/.mindforge/skills/market-researcher/SKILL.md +99 -0
- package/.mindforge/skills/marketplace-trust/SKILL.md +40 -0
- package/.mindforge/skills/mcp-server-patterns/SKILL.md +264 -0
- package/.mindforge/skills/media-streaming/SKILL.md +41 -0
- package/.mindforge/skills/meeting-architecture/SKILL.md +146 -0
- package/.mindforge/skills/mentoring-patterns/SKILL.md +77 -0
- package/.mindforge/skills/microservices-patterns/SKILL.md +83 -0
- package/.mindforge/skills/migration-platform/SKILL.md +61 -0
- package/.mindforge/skills/migration-strategies/SKILL.md +129 -0
- package/.mindforge/skills/ml-feature-store/SKILL.md +56 -0
- package/.mindforge/skills/ml-monitoring/SKILL.md +42 -0
- package/.mindforge/skills/mobile-performance/SKILL.md +44 -0
- package/.mindforge/skills/mobile-security/SKILL.md +45 -0
- package/.mindforge/skills/model-evaluation/SKILL.md +53 -0
- package/.mindforge/skills/monorepo-management/SKILL.md +100 -0
- package/.mindforge/skills/multi-tenancy-patterns/SKILL.md +145 -0
- package/.mindforge/skills/multi-turn-conversation-design/SKILL.md +206 -0
- package/.mindforge/skills/multimodal-ai/SKILL.md +51 -0
- package/.mindforge/skills/mutation-testing/SKILL.md +97 -0
- package/.mindforge/skills/notification-system-design/SKILL.md +168 -0
- package/.mindforge/skills/observability-stack/SKILL.md +136 -0
- package/.mindforge/skills/offline-first-design/SKILL.md +43 -0
- package/.mindforge/skills/on-call-design/SKILL.md +111 -0
- package/.mindforge/skills/pagination-patterns/SKILL.md +230 -0
- package/.mindforge/skills/payment-integration/SKILL.md +176 -0
- package/.mindforge/skills/performance-reviews/SKILL.md +140 -0
- package/.mindforge/skills/platform-observability/SKILL.md +58 -0
- package/.mindforge/skills/platform-reliability/SKILL.md +52 -0
- package/.mindforge/skills/post-incident-learning/SKILL.md +96 -0
- package/.mindforge/skills/product-manager/SKILL.md +104 -0
- package/.mindforge/skills/progressive-web-app/SKILL.md +44 -0
- package/.mindforge/skills/prompt-engineering/SKILL.md +94 -0
- package/.mindforge/skills/proofreader/SKILL.md +158 -0
- package/.mindforge/skills/push-notification-architecture/SKILL.md +45 -0
- package/.mindforge/skills/python-performance/SKILL.md +183 -0
- package/.mindforge/skills/quality-audit/SKILL.md +171 -0
- package/.mindforge/skills/queue-design/SKILL.md +85 -0
- package/.mindforge/skills/rag-architecture/SKILL.md +176 -0
- package/.mindforge/skills/rate-limiting-design/SKILL.md +94 -0
- package/.mindforge/skills/react-native-patterns/SKILL.md +42 -0
- package/.mindforge/skills/react-performance/SKILL.md +229 -0
- package/.mindforge/skills/real-time-analytics/SKILL.md +42 -0
- package/.mindforge/skills/real-time-sync/SKILL.md +83 -0
- package/.mindforge/skills/responsive-native/SKILL.md +44 -0
- package/.mindforge/skills/responsive-patterns/SKILL.md +141 -0
- package/.mindforge/skills/rfc-pipeline/SKILL.md +114 -0
- package/.mindforge/skills/saas-multi-tenant/SKILL.md +41 -0
- package/.mindforge/skills/santa-method/SKILL.md +134 -0
- package/.mindforge/skills/search-implementation/SKILL.md +98 -0
- package/.mindforge/skills/secrets-platform/SKILL.md +56 -0
- package/.mindforge/skills/secrets-rotation/SKILL.md +173 -0
- package/.mindforge/skills/self-serve-infrastructure/SKILL.md +51 -0
- package/.mindforge/skills/serverless-patterns/SKILL.md +119 -0
- package/.mindforge/skills/skill-creator-meta/SKILL.md +146 -0
- package/.mindforge/skills/sprint-retrospective-facilitation/SKILL.md +112 -0
- package/.mindforge/skills/stakeholder-communication/SKILL.md +85 -0
- package/.mindforge/skills/state-management/SKILL.md +104 -0
- package/.mindforge/skills/stream-processing/SKILL.md +43 -0
- package/.mindforge/skills/streaming-architecture/SKILL.md +81 -0
- package/.mindforge/skills/supply-chain-security/SKILL.md +145 -0
- package/.mindforge/skills/synthetic-data-generation/SKILL.md +52 -0
- package/.mindforge/skills/system-design/SKILL.md +88 -0
- package/.mindforge/skills/team-topology-design/SKILL.md +107 -0
- package/.mindforge/skills/technical-debt-management/SKILL.md +86 -0
- package/.mindforge/skills/technical-interview-design/SKILL.md +98 -0
- package/.mindforge/skills/technical-leadership/SKILL.md +75 -0
- package/.mindforge/skills/technical-writing/SKILL.md +237 -0
- package/.mindforge/skills/technology-radar/SKILL.md +88 -0
- package/.mindforge/skills/testing-anti-patterns/SKILL.md +288 -0
- package/.mindforge/skills/tool-design/SKILL.md +138 -0
- package/.mindforge/skills/typescript-advanced/SKILL.md +198 -0
- package/.mindforge/skills/using-git-worktrees/SKILL.md +139 -0
- package/.mindforge/skills/verification-loop/SKILL.md +13 -1
- package/.mindforge/skills/vibe-security/SKILL.md +165 -0
- package/.mindforge/skills/visual-regression-testing/SKILL.md +97 -0
- package/.mindforge/skills/websocket-patterns/SKILL.md +203 -0
- package/.mindforge/skills/writing-plans/SKILL.md +170 -0
- package/.mindforge/skills/writing-skills/SKILL.md +216 -0
- package/.mindforge/skills/zero-trust-architecture/SKILL.md +166 -0
- package/CHANGELOG.md +240 -0
- package/MINDFORGE.md +4 -4
- package/README.md +49 -4
- package/RELEASENOTES.md +80 -0
- package/SECURITY.md +20 -8
- package/bin/autonomous/audit-writer.js +13 -0
- package/bin/autonomous/auto-runner.js +74 -16
- package/bin/autonomous/context-refactorer.js +26 -11
- package/bin/autonomous/state-manager.js +62 -6
- package/bin/autonomous/stuck-monitor.js +46 -7
- package/bin/autonomous/wave-executor.js +66 -25
- package/bin/dashboard/api-router.js +43 -0
- package/bin/dashboard/metrics-aggregator.js +28 -1
- package/bin/dashboard/server.js +67 -4
- package/bin/dashboard/sse-bridge.js +4 -4
- package/bin/engine/feedback-loop.js +8 -0
- package/bin/engine/intelligence-interlock.js +32 -15
- package/bin/engine/logic-drift-detector.js +2 -1
- package/bin/engine/nexus-tracer.js +3 -2
- package/bin/engine/remediation-engine.js +155 -32
- package/bin/engine/self-corrective-synthesizer.js +84 -10
- package/bin/engine/sre-manager.js +12 -4
- package/bin/engine/temporal-hub.js +131 -34
- package/bin/governance/approve.js +41 -5
- package/bin/governance/impact-analyzer.js +28 -0
- package/bin/governance/policy-engine.js +10 -3
- package/bin/governance/quantum-crypto.js +32 -19
- package/bin/governance/rbac-manager.js +74 -2
- package/bin/governance/ztai-manager.js +49 -7
- package/bin/hindsight-injector.js +3 -3
- package/bin/memory/eis-client.js +71 -34
- package/bin/memory/embedding-engine.js +61 -0
- package/bin/memory/knowledge-graph.js +58 -5
- package/bin/memory/knowledge-indexer.js +53 -6
- package/bin/memory/knowledge-store.js +22 -0
- package/bin/migrations/10.7.0-to-11.0.0.js +110 -0
- package/bin/migrations/schema-versions.js +13 -0
- package/bin/models/anthropic-provider.js +45 -0
- package/bin/models/cloud-broker.js +68 -20
- package/bin/models/gemini-provider.js +51 -0
- package/bin/models/model-client.js +20 -0
- package/bin/models/model-router.js +28 -8
- package/bin/models/openai-provider.js +44 -0
- package/bin/utils/file-io.js +63 -1
- package/bin/utils/index.js +58 -0
- package/docs/getting-started.md +1 -1
- package/docs/user-guide.md +2 -2
- package/package.json +2 -2
- package/.mindforge/personas/data-privacy-engineer.md +0 -187
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: streaming-architecture
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.0.9
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: streaming architecture, server sent events, chunked transfer, real-time pipeline, stream processing, backpressure stream, event stream, streaming response, stream consumer, data stream design, stream partitioning, stream windowing
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — Streaming Architecture
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
Any task involving real-time data streaming, SSE, chunked transfer encoding,
|
|
13
|
+
stream processing pipelines, backpressure, partitioning, or windowing strategies.
|
|
14
|
+
|
|
15
|
+
## Mandatory actions when this skill is active
|
|
16
|
+
|
|
17
|
+
### Before writing any code
|
|
18
|
+
1. Choose transport (SSE vs WebSocket vs long-polling) using the decision matrix.
|
|
19
|
+
2. Define stream data format (NDJSON, chunked binary, protobuf frames).
|
|
20
|
+
3. Identify backpressure requirements and partition strategy.
|
|
21
|
+
|
|
22
|
+
### During implementation
|
|
23
|
+
- Implement backpressure handling at every pipeline stage.
|
|
24
|
+
- Use chunked transfer encoding for HTTP streaming responses.
|
|
25
|
+
- Apply appropriate windowing strategy for aggregation needs.
|
|
26
|
+
- Partition by key for ordering, round-robin for throughput.
|
|
27
|
+
|
|
28
|
+
### After implementation
|
|
29
|
+
- Load test under sustained high-throughput conditions.
|
|
30
|
+
- Verify consumer groups scale horizontally without message loss.
|
|
31
|
+
- Document partition strategy and windowing semantics.
|
|
32
|
+
|
|
33
|
+
## Transport Decision Matrix
|
|
34
|
+
|
|
35
|
+
| Transport | Direction | Use For | Limitation |
|
|
36
|
+
|-----------|-----------|---------|------------|
|
|
37
|
+
| SSE | Server→Client | Notifications, feeds, progress, logs | Text-only, unidirectional |
|
|
38
|
+
| WebSocket | Bidirectional | Chat, collaboration, gaming | Proxy complexity, reconnection logic |
|
|
39
|
+
| Long-Polling | Client→Server→Client | Legacy envs, infrequent updates | High latency, resource overhead |
|
|
40
|
+
|
|
41
|
+
- SSE: auto-reconnect via Last-Event-ID, works through load balancers.
|
|
42
|
+
- WebSocket: lower per-message overhead after handshake, requires connection management.
|
|
43
|
+
- Long-Polling: universally compatible, highest resource cost at scale.
|
|
44
|
+
|
|
45
|
+
## Streaming Response Patterns
|
|
46
|
+
|
|
47
|
+
- **Chunked Transfer**: `Transfer-Encoding: chunked` — each chunk is a parseable unit.
|
|
48
|
+
- **NDJSON**: one JSON object per `\n`-separated line, parse incrementally.
|
|
49
|
+
- Use NDJSON for LLM token streaming, batch results, log streams.
|
|
50
|
+
|
|
51
|
+
## Stream Processing Windows
|
|
52
|
+
|
|
53
|
+
- **Tumbling**: fixed-size, non-overlapping. Use for per-minute aggregations.
|
|
54
|
+
- **Sliding**: fixed-size, overlapping by step. Use for moving averages.
|
|
55
|
+
- **Session**: dynamic size, closes after inactivity gap. Use for user sessions.
|
|
56
|
+
|
|
57
|
+
## Backpressure Strategies
|
|
58
|
+
|
|
59
|
+
- **Buffer and Batch**: bounded buffer, process in batches at threshold or timer.
|
|
60
|
+
- **Drop Oldest** (lossy): discard stale messages when buffer full. Never for transactions.
|
|
61
|
+
- **Signal Producer** (reactive): consumer signals demand, producer throttles emission.
|
|
62
|
+
|
|
63
|
+
## Partition Strategies
|
|
64
|
+
|
|
65
|
+
- **Key-Based**: same key → same partition. Guarantees per-key ordering. Risk: hot partitions.
|
|
66
|
+
- **Round-Robin**: even distribution, max throughput, no ordering guarantees.
|
|
67
|
+
|
|
68
|
+
## Consumer Groups
|
|
69
|
+
- Multiple consumers share partitions (one partition per consumer max).
|
|
70
|
+
- Scale up to partition count (more consumers = idle).
|
|
71
|
+
- Rebalancing on consumer join/leave. Track offsets for resume-from-failure.
|
|
72
|
+
|
|
73
|
+
## Self-check before task completion
|
|
74
|
+
|
|
75
|
+
- [ ] Is the transport correct for the use case (SSE/WebSocket/long-polling)?
|
|
76
|
+
- [ ] Is backpressure handled at every pipeline stage?
|
|
77
|
+
- [ ] Are streaming responses chunked with parseable units?
|
|
78
|
+
- [ ] Is windowing strategy appropriate for aggregation needs?
|
|
79
|
+
- [ ] Are partitions designed for the right ordering vs throughput trade-off?
|
|
80
|
+
- [ ] Can consumers scale horizontally without message loss?
|
|
81
|
+
- [ ] Is reconnection logic implemented for client-side streams?
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: supply-chain-security
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 0.1.0
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: supply chain security, dependency audit strategy, lockfile integrity verification, provenance verification, SBOM generation, sigstore signing, reproducible build, dependency scanning pipeline, package integrity check, npm audit strategy, supply chain attack prevention, software composition analysis
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — Supply Chain Security
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
Any task involving dependency management, package auditing, build integrity,
|
|
13
|
+
software bill of materials, or defending against supply chain attacks.
|
|
14
|
+
|
|
15
|
+
## Mandatory actions when this skill is active
|
|
16
|
+
|
|
17
|
+
### Before making changes
|
|
18
|
+
1. Verify lockfile is committed and checksums match.
|
|
19
|
+
2. Run dependency audit (`npm audit`, `pip audit`, or equivalent).
|
|
20
|
+
3. Check for known malicious packages in the dependency tree.
|
|
21
|
+
|
|
22
|
+
### During implementation
|
|
23
|
+
- Pin all dependencies to exact versions in lockfiles.
|
|
24
|
+
- Pin CI actions to full SHA (not tags): `actions/checkout@abc123def`.
|
|
25
|
+
- Generate SBOM on every release build.
|
|
26
|
+
- Verify package provenance when available.
|
|
27
|
+
- Use minimal base images for containers (distroless/alpine).
|
|
28
|
+
|
|
29
|
+
### After implementation
|
|
30
|
+
- Confirm no new critical/high vulnerabilities introduced.
|
|
31
|
+
- Verify the build is reproducible (same source → same artifact).
|
|
32
|
+
- Ensure SBOM is attached to release artifacts.
|
|
33
|
+
|
|
34
|
+
## Core practices
|
|
35
|
+
|
|
36
|
+
### Lockfile Integrity
|
|
37
|
+
```bash
|
|
38
|
+
# Verify lockfile hasn't been tampered with
|
|
39
|
+
npm ci # Uses lockfile exactly (fails if lockfile/package.json mismatch)
|
|
40
|
+
|
|
41
|
+
# Alert on unexpected lockfile changes in CI
|
|
42
|
+
git diff --name-only | grep -q "package-lock.json" && echo "LOCKFILE CHANGED"
|
|
43
|
+
```
|
|
44
|
+
- Always commit lockfiles (`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`).
|
|
45
|
+
- Use `npm ci` (not `npm install`) in CI — it respects the lockfile exactly.
|
|
46
|
+
- Review lockfile diffs in PRs (look for unexpected new packages or registry changes).
|
|
47
|
+
|
|
48
|
+
### Dependency Auditing
|
|
49
|
+
```bash
|
|
50
|
+
# Node.js
|
|
51
|
+
npm audit --audit-level=high
|
|
52
|
+
npx socket-security/cli scan
|
|
53
|
+
|
|
54
|
+
# Python
|
|
55
|
+
pip-audit
|
|
56
|
+
safety check
|
|
57
|
+
|
|
58
|
+
# Go
|
|
59
|
+
govulncheck ./...
|
|
60
|
+
```
|
|
61
|
+
- Run in CI on every PR (block on critical/high).
|
|
62
|
+
- Schedule weekly full audits for transitive dependency updates.
|
|
63
|
+
- Use Socket.dev or Snyk for behavioral analysis (detect install scripts, network access).
|
|
64
|
+
|
|
65
|
+
### SBOM Generation
|
|
66
|
+
```bash
|
|
67
|
+
# CycloneDX format (preferred for security)
|
|
68
|
+
npx @cyclonedx/cyclonedx-npm --output-file sbom.json
|
|
69
|
+
|
|
70
|
+
# SPDX format (preferred for compliance)
|
|
71
|
+
syft . -o spdx-json > sbom.spdx.json
|
|
72
|
+
```
|
|
73
|
+
- Generate on every release (attach to GitHub release, container image).
|
|
74
|
+
- Include direct AND transitive dependencies.
|
|
75
|
+
- Choose format: CycloneDX for security analysis, SPDX for license compliance.
|
|
76
|
+
|
|
77
|
+
### Provenance Verification
|
|
78
|
+
```bash
|
|
79
|
+
# npm provenance (verify publisher identity)
|
|
80
|
+
npm publish --provenance
|
|
81
|
+
npm audit signatures # Verify all installed packages
|
|
82
|
+
|
|
83
|
+
# Container image provenance
|
|
84
|
+
cosign verify --certificate-identity=... --certificate-oidc-issuer=... image:tag
|
|
85
|
+
```
|
|
86
|
+
- Enable npm provenance on all published packages.
|
|
87
|
+
- Verify signatures of consumed packages in CI.
|
|
88
|
+
- Use Sigstore for keyless signing of artifacts.
|
|
89
|
+
|
|
90
|
+
### Reproducible Builds
|
|
91
|
+
- Pin ALL dependencies (including transitive) via lockfile.
|
|
92
|
+
- Pin build tool versions (Node.js via `.nvmrc`, Go via `go.mod`).
|
|
93
|
+
- Use deterministic build flags (no timestamps in artifacts).
|
|
94
|
+
- Verify: build twice from same source → compare artifact hashes.
|
|
95
|
+
|
|
96
|
+
### CI/CD Hardening
|
|
97
|
+
```yaml
|
|
98
|
+
# Pin actions to SHA, not tag
|
|
99
|
+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
100
|
+
|
|
101
|
+
# Minimal permissions
|
|
102
|
+
permissions:
|
|
103
|
+
contents: read
|
|
104
|
+
packages: write
|
|
105
|
+
|
|
106
|
+
# Restrict network in build steps
|
|
107
|
+
# Use dependency caching to reduce fetch surface
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Threat vectors to defend against
|
|
111
|
+
|
|
112
|
+
| Attack | Defense |
|
|
113
|
+
|--------|---------|
|
|
114
|
+
| Typosquatting | Verify package name carefully, use scoped packages |
|
|
115
|
+
| Dependency confusion | Configure `.npmrc` with registry scoping |
|
|
116
|
+
| Compromised maintainer | Pin versions, verify provenance, review changelogs |
|
|
117
|
+
| Malicious install scripts | Use `--ignore-scripts` where possible, audit scripts |
|
|
118
|
+
| Hijacked CI action | Pin to SHA, fork critical actions |
|
|
119
|
+
| Registry compromise | Verify signatures, use multiple registries |
|
|
120
|
+
|
|
121
|
+
## Dependency confusion prevention
|
|
122
|
+
```ini
|
|
123
|
+
# .npmrc — scope internal packages to private registry
|
|
124
|
+
@mycompany:registry=https://npm.internal.company.com/
|
|
125
|
+
# Everything else falls through to public npm
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Anti-patterns to avoid
|
|
129
|
+
- Using `latest` or `^` in production lockfiles without CI audit gates.
|
|
130
|
+
- Pinning CI actions to tags (`v4`) instead of SHAs (tags can be force-pushed).
|
|
131
|
+
- Running `npm install` instead of `npm ci` in CI.
|
|
132
|
+
- Ignoring audit warnings because "it's a dev dependency" (devDeps run in CI).
|
|
133
|
+
- No SBOM generation (you can't defend what you can't inventory).
|
|
134
|
+
- Allowing arbitrary install scripts without review.
|
|
135
|
+
|
|
136
|
+
## Self-check before task completion
|
|
137
|
+
|
|
138
|
+
Before marking a task done when this skill was active:
|
|
139
|
+
|
|
140
|
+
- [ ] Lockfile committed and CI uses `npm ci` (or equivalent)?
|
|
141
|
+
- [ ] Dependency audit passes with no critical/high findings?
|
|
142
|
+
- [ ] CI actions pinned to full SHA?
|
|
143
|
+
- [ ] SBOM generated and attached to release?
|
|
144
|
+
- [ ] No new dependencies added without justification?
|
|
145
|
+
- [ ] Provenance verification enabled for published packages?
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: synthetic-data-generation
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.5.0
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: synthetic data generation, training data creation, privacy-preserving synthetic, data augmentation strategy, synthetic dataset pipeline, differential privacy data, fake data generation, synthetic data validation, data anonymization, tabular synthetic data, text synthetic generation, synthetic data quality
|
|
7
|
+
compose:
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Synthetic Data Generation
|
|
11
|
+
|
|
12
|
+
## When this skill activates
|
|
13
|
+
|
|
14
|
+
This skill activates when creating training datasets from scratch, augmenting real data with synthetic examples, anonymizing sensitive data while preserving utility, or generating privacy-preserving datasets for model training. It applies when real data is scarce, expensive, biased, or subject to privacy regulations.
|
|
15
|
+
|
|
16
|
+
## Mandatory actions when this skill is active
|
|
17
|
+
|
|
18
|
+
### Before writing any code
|
|
19
|
+
|
|
20
|
+
1. **Assess data requirements** — Define target schema (columns, data types, constraints), target size (number of rows), and statistical properties that must match real data (distributions, correlations, cardinality). Synthetic data is only useful if it mimics real-world structure.
|
|
21
|
+
2. **Choose generation strategy** — Select based on data type: rule-based (deterministic logic for structured data), generative models (GANs, VAEs for complex distributions), LLM-based (text generation, code synthesis), or hybrid. Rule-based is fastest but least realistic. GANs are slow but highest fidelity.
|
|
22
|
+
3. **Establish privacy guarantees** — If replacing real data due to privacy concerns, define the privacy level: k-anonymity (each record matches k others), differential privacy (mathematical guarantee on information leakage), or synthetic twin (structurally similar but no direct correspondence). Validate that synthetic data passes privacy audits.
|
|
23
|
+
4. **Define quality metrics** — Synthetic data must be useful for downstream tasks. Define metrics: statistical similarity (KL divergence, Wasserstein distance), downstream model accuracy (train on synthetic, test on real), and privacy preservation (can you reverse-engineer real data from synthetic?).
|
|
24
|
+
|
|
25
|
+
### During implementation
|
|
26
|
+
|
|
27
|
+
- **Preserve statistical properties** — Maintain distributions (mean, variance, skewness), correlations (covariance matrix), and cardinality (unique counts) from real data. Use statistical tests (Kolmogorov-Smirnov for distributions, chi-square for categorical) to validate similarity.
|
|
28
|
+
- **Respect constraints** — Enforce domain constraints: referential integrity (foreign keys), range limits (age 0-120), uniqueness (no duplicate IDs), format rules (email regex, phone numbers). Synthetic data that violates constraints is unusable.
|
|
29
|
+
- **Augment minority classes** — Use synthetic data to balance class distributions. If real data has 95% negative, 5% positive examples, oversample the minority class synthetically. Validate that synthetic minority examples are diverse and realistic, not copies.
|
|
30
|
+
- **Generate edge cases explicitly** — Real data often lacks edge cases (extreme values, rare combinations). Generate these explicitly: maximum field lengths, boundary values, rare categorical combinations. Models trained on synthetic data should handle edge cases better, not worse.
|
|
31
|
+
- **Validate generation reproducibility** — Use fixed random seeds for deterministic generation. Synthetic datasets should be versioned and reproducible. Document the generation process (model, hyperparameters, seed) so datasets can be regenerated exactly.
|
|
32
|
+
- **Avoid mode collapse** — Generative models (GANs, VAEs) often generate repetitive outputs. Measure diversity: count unique rows, check for duplicates, visualize latent space. If diversity is low (<80% unique rows), retrain with higher capacity or different architecture.
|
|
33
|
+
|
|
34
|
+
### After implementation
|
|
35
|
+
|
|
36
|
+
- **Measure statistical fidelity** — Compare synthetic vs. real data distributions using statistical tests. Target: p-value >0.05 for K-S test (distributions are statistically indistinguishable). Visualize distributions with histograms and Q-Q plots.
|
|
37
|
+
- **Validate downstream utility** — Train a model on synthetic data, test on real data. Compare accuracy to a model trained on real data. Target: <5% accuracy drop. If drop is larger, synthetic data lacks critical patterns.
|
|
38
|
+
- **Audit for privacy leaks** — Attempt to re-identify real individuals from synthetic data using membership inference attacks. Measure attack success rate. Target: <1% success (no better than random guessing). If higher, strengthen privacy guarantees.
|
|
39
|
+
- **Test for bias amplification** — Synthetic data can amplify biases from real data. Measure demographic parity and calibration across protected attributes. If bias metrics worsen (compared to real data), adjust generation to debias.
|
|
40
|
+
|
|
41
|
+
## Self-check before task completion
|
|
42
|
+
|
|
43
|
+
- [ ] Target schema, size, and statistical properties are explicitly defined
|
|
44
|
+
- [ ] Generation strategy (rule-based/GAN/LLM/hybrid) is chosen and justified
|
|
45
|
+
- [ ] Domain constraints (referential integrity, ranges, formats) are enforced
|
|
46
|
+
- [ ] Statistical similarity is validated with formal tests (K-S, chi-square) and p-values documented
|
|
47
|
+
- [ ] Minority classes are balanced and synthetic examples are diverse (no duplicates)
|
|
48
|
+
- [ ] Edge cases are explicitly generated (boundary values, rare combinations)
|
|
49
|
+
- [ ] Downstream model accuracy on synthetic data is within 5% of real data performance
|
|
50
|
+
- [ ] Privacy guarantees are validated via membership inference attack success rate <1%
|
|
51
|
+
- [ ] Synthetic data is versioned and generation process is documented for reproducibility
|
|
52
|
+
- [ ] Bias metrics are measured and do not amplify demographic disparities
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: system-design
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.0.6
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: system design, load balancer, sharding strategy, replication, CAP theorem, horizontal scaling, vertical scaling, message queue, distributed cache, high availability, fault tolerance
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — System Design
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
Any task involving large-scale system architecture, scaling strategy,
|
|
13
|
+
distributed infrastructure, or high-availability design.
|
|
14
|
+
|
|
15
|
+
## Mandatory actions when this skill is active
|
|
16
|
+
|
|
17
|
+
### Before
|
|
18
|
+
|
|
19
|
+
1. **Quantify requirements** — Peak QPS, latency SLA (p50/p95/p99), data volume, read/write ratio, availability target.
|
|
20
|
+
2. **Identify constraints** — Budget, team size, existing stack, compliance, geographic needs.
|
|
21
|
+
3. **Establish scope** — Distinguish MVP from full-scale target. Design for target, implement in phases.
|
|
22
|
+
|
|
23
|
+
### During
|
|
24
|
+
|
|
25
|
+
#### Capacity planning math (always do first)
|
|
26
|
+
```
|
|
27
|
+
DAU * actions_per_user / 86400 = avg QPS
|
|
28
|
+
avg QPS * peak_multiplier (3x) = peak QPS
|
|
29
|
+
records_per_day * bytes_per_record = daily storage growth
|
|
30
|
+
annual_storage * hot_data_fraction = cache cluster sizing
|
|
31
|
+
```
|
|
32
|
+
Document all calculations in the design document.
|
|
33
|
+
|
|
34
|
+
#### Load balancing
|
|
35
|
+
- L4 (TCP): high-throughput, gRPC, WebSocket — NLB, HAProxy TCP mode
|
|
36
|
+
- L7 (HTTP): path routing, header inspection, A/B — ALB, Nginx, Envoy
|
|
37
|
+
- Algorithms: Round Robin, Least Connections, Consistent Hashing (sticky without state)
|
|
38
|
+
- Health checks: active (ping /health 5s interval, 3 fails = remove)
|
|
39
|
+
|
|
40
|
+
#### Sharding strategies
|
|
41
|
+
```
|
|
42
|
+
Hash-based: shard_id = hash(key) % N — even distribution, resharding needs consistent hashing
|
|
43
|
+
Range-based: key ranges per shard — good for range queries, risk of hot spots
|
|
44
|
+
Geographic: shard by region — data locality + compliance, cross-region queries expensive
|
|
45
|
+
```
|
|
46
|
+
Partition key must: exist in every query, distribute evenly, align with access patterns.
|
|
47
|
+
|
|
48
|
+
#### Replication
|
|
49
|
+
- Leader-Follower: one leader writes, N followers read. 10ms-1s lag. Most common.
|
|
50
|
+
- Multi-Leader: multi-region writes, conflict resolution (LWW or app-level merge).
|
|
51
|
+
- Quorum: W+R>N for strong consistency. Tunable read/write tradeoff.
|
|
52
|
+
|
|
53
|
+
#### CAP theorem
|
|
54
|
+
- Partitions WILL happen — choose CP or AP per subsystem
|
|
55
|
+
- CP (refuse stale reads): financial transactions, inventory, leader election
|
|
56
|
+
- AP (serve during partition): shopping carts, feeds, analytics, DNS
|
|
57
|
+
- PACELC: if no partition, choose Latency vs Consistency (most systems: PA/EL)
|
|
58
|
+
|
|
59
|
+
#### Caching layers
|
|
60
|
+
```
|
|
61
|
+
L1 (in-process): 100MB-1GB, TTL 30s-5min, local HashMap/node-cache
|
|
62
|
+
L2 (distributed): 10GB-1TB, TTL 5min-1hr, Redis Cluster/Memcached
|
|
63
|
+
L3 (CDN/edge): unlimited, TTL 1hr-1day, CloudFront/Cloudflare
|
|
64
|
+
```
|
|
65
|
+
Invalidation: TTL expiry | write-through | pub/sub invalidation events.
|
|
66
|
+
|
|
67
|
+
#### Message queues
|
|
68
|
+
- Kafka: high-throughput, ordered per partition, replay-capable
|
|
69
|
+
- SQS: serverless, simple, built-in DLQ
|
|
70
|
+
- RabbitMQ: flexible routing, priority queues
|
|
71
|
+
- Use when: decoupling, spike buffering, guaranteed delivery, fan-out
|
|
72
|
+
|
|
73
|
+
### After
|
|
74
|
+
|
|
75
|
+
1. **Validate with numbers** — Confirm design handles peak QPS with 2-3x headroom.
|
|
76
|
+
2. **No SPOF** — Every component has a failover path in the critical path.
|
|
77
|
+
3. **Document tradeoffs** — State what was sacrificed and why it is acceptable.
|
|
78
|
+
4. **Define SLOs** — Latency p99, error rate, availability with alerting thresholds.
|
|
79
|
+
|
|
80
|
+
## Self-check before task completion
|
|
81
|
+
- [ ] Requirements quantified (QPS, latency, storage, availability)
|
|
82
|
+
- [ ] Capacity math documented with back-of-envelope calculations
|
|
83
|
+
- [ ] No single points of failure in the critical path
|
|
84
|
+
- [ ] Sharding strategy defined with partition key rationale
|
|
85
|
+
- [ ] Caching layers specified with invalidation strategy
|
|
86
|
+
- [ ] CAP tradeoff explicitly stated and justified
|
|
87
|
+
- [ ] Message queues used for async and spike buffering
|
|
88
|
+
- [ ] SLOs defined with alerting thresholds
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-topology-design
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.1.0
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: team topology, stream-aligned team, platform team, enabling team, complicated-subsystem team, cognitive load, team interaction mode, team API, team boundary, Conway law, team coupling, team autonomy
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Team Topology Design
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
|
|
13
|
+
This skill activates when designing, reorganizing, or evaluating team structures
|
|
14
|
+
and their interactions. It applies the Team Topologies framework to align team
|
|
15
|
+
boundaries with software architecture, manage cognitive load, and define clear
|
|
16
|
+
interaction modes between teams.
|
|
17
|
+
|
|
18
|
+
## Mandatory actions when this skill is active
|
|
19
|
+
|
|
20
|
+
### Before
|
|
21
|
+
|
|
22
|
+
1. **Map current state** — Document existing team structures, their responsibilities,
|
|
23
|
+
communication patterns, and pain points.
|
|
24
|
+
2. **Identify architecture goals** — What system architecture do you want? Conway's Law
|
|
25
|
+
means team structure will produce matching architecture.
|
|
26
|
+
3. **Assess cognitive load** — Survey teams on whether their responsibilities feel
|
|
27
|
+
manageable or overwhelming. Overload is the primary signal for restructuring.
|
|
28
|
+
|
|
29
|
+
### During
|
|
30
|
+
|
|
31
|
+
4. **Apply the four fundamental team types:**
|
|
32
|
+
|
|
33
|
+
- **Stream-aligned team** — The primary type. Aligned to a single flow of business
|
|
34
|
+
value (feature, product, user journey, or persona). Delivers end-to-end without
|
|
35
|
+
hand-offs. Has full ownership from ideation through production operation.
|
|
36
|
+
Most teams should be this type.
|
|
37
|
+
|
|
38
|
+
- **Platform team** — Provides self-service capabilities that stream-aligned teams
|
|
39
|
+
consume via well-defined APIs. Reduces cognitive load by abstracting away
|
|
40
|
+
infrastructure complexity. Treats internal teams as customers. Measures success
|
|
41
|
+
by adoption and developer satisfaction, not features shipped.
|
|
42
|
+
|
|
43
|
+
- **Enabling team** — Helps stream-aligned teams adopt new technologies or practices.
|
|
44
|
+
Temporary collaboration, not permanent dependency. Measures success by the
|
|
45
|
+
stream-aligned team's growing independence. Detects capability gaps across teams
|
|
46
|
+
and bridges them through coaching, documentation, and pairing.
|
|
47
|
+
|
|
48
|
+
- **Complicated-subsystem team** — Owns a component requiring deep specialist
|
|
49
|
+
knowledge (ML model, video codec, financial calculation engine). Provides a
|
|
50
|
+
simplified interface to stream-aligned teams. Only justified when the specialist
|
|
51
|
+
knowledge truly cannot be distributed across stream-aligned teams.
|
|
52
|
+
|
|
53
|
+
5. **Define interaction modes (how teams work together):**
|
|
54
|
+
|
|
55
|
+
- **Collaboration** — Two teams working closely together for a defined period.
|
|
56
|
+
High bandwidth, high cost. Time-box to weeks/months, not permanent.
|
|
57
|
+
Use when: discovering new interfaces, bootstrapping new capabilities.
|
|
58
|
+
|
|
59
|
+
- **X-as-a-Service** — One team provides capability via API/platform that another
|
|
60
|
+
team consumes. Low coupling, clear contract. The provider defines the interface.
|
|
61
|
+
Use when: the boundary is well-understood and stable.
|
|
62
|
+
|
|
63
|
+
- **Facilitating** — One team coaches another. No code ownership transfer, no
|
|
64
|
+
permanent dependency. The facilitating team's goal is to make themselves
|
|
65
|
+
unnecessary. Use when: enabling teams help stream-aligned teams grow.
|
|
66
|
+
|
|
67
|
+
6. **Manage cognitive load:**
|
|
68
|
+
- A team should own no more domains than fit in collective working memory.
|
|
69
|
+
- Signs of overload: constant context switching, shallow knowledge across many areas,
|
|
70
|
+
slow delivery, high bug rates, burnout.
|
|
71
|
+
- Response to overload: split the team, transfer ownership to a platform team, or
|
|
72
|
+
reduce scope.
|
|
73
|
+
- Intrinsic load (problem complexity) cannot be reduced — manage it with specialists.
|
|
74
|
+
- Extraneous load (poor tooling, unclear ownership) — eliminate it aggressively.
|
|
75
|
+
|
|
76
|
+
7. **Apply Conway's Law intentionally:**
|
|
77
|
+
- Do not fight Conway's Law. Design teams to match desired architecture.
|
|
78
|
+
- If you want microservices, create teams with clear service boundaries.
|
|
79
|
+
- If you want a cohesive platform, create a platform team.
|
|
80
|
+
- Team boundaries become API boundaries. Choose them deliberately.
|
|
81
|
+
|
|
82
|
+
8. **Define team APIs:**
|
|
83
|
+
- Every team should have a clear "team API" — how others interact with them.
|
|
84
|
+
- Includes: code/service interfaces, documentation, on-call escalation paths,
|
|
85
|
+
request intake process, SLA commitments.
|
|
86
|
+
- Make team APIs explicit and discoverable.
|
|
87
|
+
|
|
88
|
+
### After
|
|
89
|
+
|
|
90
|
+
9. **Validate with evolution paths** — Team structures must evolve. Define how teams
|
|
91
|
+
will split, merge, or change interaction modes as the system grows.
|
|
92
|
+
10. **Communicate the design** — Share team topology decisions with the full org.
|
|
93
|
+
Explain the WHY, not just the WHAT.
|
|
94
|
+
11. **Set review cadence** — Reassess team topology quarterly. Look for: growing cognitive
|
|
95
|
+
load, increasing inter-team dependencies, delivery bottlenecks.
|
|
96
|
+
|
|
97
|
+
## Self-check before task completion
|
|
98
|
+
|
|
99
|
+
- [ ] Every team classified as exactly one of the four types
|
|
100
|
+
- [ ] Stream-aligned teams can deliver end-to-end without blocking dependencies
|
|
101
|
+
- [ ] Platform teams have clear self-service interfaces (not ticket queues)
|
|
102
|
+
- [ ] Interaction modes explicitly defined for each team pair that collaborates
|
|
103
|
+
- [ ] Cognitive load assessed and within manageable bounds per team
|
|
104
|
+
- [ ] Conway's Law applied intentionally (team structure matches desired architecture)
|
|
105
|
+
- [ ] Team APIs documented and discoverable
|
|
106
|
+
- [ ] Evolution paths defined for growth scenarios
|
|
107
|
+
- [ ] Review cadence established
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: technical-debt-management
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.0.9
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: technical debt management, debt inventory, debt interest, refactoring ROI, debt prioritization, debt budget, tech debt tracker, code health score, debt payoff plan, maintenance burden, debt classification, technical liability
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — Technical Debt Management
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
Any task involving debt identification, classification, prioritization,
|
|
13
|
+
ROI-based refactoring, budget allocation, code health scoring, or payoff planning.
|
|
14
|
+
|
|
15
|
+
## Mandatory actions when this skill is active
|
|
16
|
+
|
|
17
|
+
### Before writing any code
|
|
18
|
+
1. Classify the debt (deliberate vs inadvertent, prudent vs reckless).
|
|
19
|
+
2. Estimate interest rate (hours lost per sprint due to this debt).
|
|
20
|
+
3. Calculate payoff ROI before prioritizing.
|
|
21
|
+
|
|
22
|
+
### During implementation
|
|
23
|
+
- Track all debt in backlog with `tech-debt` label + severity + affected area.
|
|
24
|
+
- Boy-scout rule: leave code cleaner than found.
|
|
25
|
+
- Never create debt without acknowledgment and payoff timeline.
|
|
26
|
+
- Fix debt in atomic PRs — never bundle with feature work.
|
|
27
|
+
|
|
28
|
+
### After implementation
|
|
29
|
+
- Update debt inventory with resolved items.
|
|
30
|
+
- Recalculate code health score after significant payoffs.
|
|
31
|
+
- Document lessons to prevent similar accumulation.
|
|
32
|
+
|
|
33
|
+
## Debt Classification
|
|
34
|
+
|
|
35
|
+
| Type | Description | Example |
|
|
36
|
+
|------|-------------|---------|
|
|
37
|
+
| Deliberate + Prudent | "We know, ship now, fix Sprint N" | Hardcoded config needing config service |
|
|
38
|
+
| Deliberate + Reckless | "We know, don't care" | Skipping auth "because VPN" |
|
|
39
|
+
| Inadvertent + Prudent | "Didn't know better then" | Hand-rolled state before finding library |
|
|
40
|
+
| Inadvertent + Reckless | "Didn't know what we were doing" | N+1 queries from ORM misuse |
|
|
41
|
+
|
|
42
|
+
## Interest Calculation
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
Weekly Interest = incidents_caused * avg_hours
|
|
46
|
+
+ developer_workaround_time
|
|
47
|
+
+ onboarding_friction
|
|
48
|
+
+ blocked_feature_delays
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
- **High** (>4 hrs/sprint): fix immediately.
|
|
52
|
+
- **Medium** (1-4 hrs/sprint): schedule within 2 sprints.
|
|
53
|
+
- **Low** (<1 hr/sprint): fix opportunistically.
|
|
54
|
+
|
|
55
|
+
## Prioritization Formula
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Priority Score = interest_per_sprint / effort_to_fix_hours
|
|
59
|
+
Higher score = fix first (best ROI)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Debt Budget (The 20% Rule)
|
|
63
|
+
- 20% of sprint capacity for debt payoff (non-negotiable).
|
|
64
|
+
- 10% targeted high-interest debt. 5% boy-scout cleanup. 5% prevention tooling.
|
|
65
|
+
- Increase when: health score < 60, velocity declining 3+ sprints, incidents rising.
|
|
66
|
+
|
|
67
|
+
## Code Health Score (0-100)
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
Health = test_coverage(25%) + dependency_freshness(20%)
|
|
71
|
+
+ complexity(25%) + documentation(15%) + incident_inverse(15%)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
- Test coverage: 80%+ = 100pts, 60-80% = 75, 40-60% = 50, <40% = 25.
|
|
75
|
+
- Complexity: avg cyclomatic per function. <5 = 100, 5-10 = 75, >10 = 50.
|
|
76
|
+
- Track monthly. Alert if drops >10 points in one month.
|
|
77
|
+
|
|
78
|
+
## Self-check before task completion
|
|
79
|
+
|
|
80
|
+
- [ ] Is all identified debt logged with classification and severity?
|
|
81
|
+
- [ ] Is interest rate estimated for each item?
|
|
82
|
+
- [ ] Is payoff prioritized by ROI (interest / effort)?
|
|
83
|
+
- [ ] Is the 20% debt budget respected in sprint planning?
|
|
84
|
+
- [ ] Are new debts acknowledged with a payoff timeline?
|
|
85
|
+
- [ ] Is code health score calculated and tracked?
|
|
86
|
+
- [ ] Are debt fixes in isolated PRs (not bundled with features)?
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: technical-interview-design
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.1.0
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: technical interview, coding challenge design, system design interview, evaluation rubric, interview signal, interview bias reduction, hiring assessment, take-home challenge, interview scorecard, coding round design, debrief calibration, interview fairness
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Technical Interview Design
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
|
|
13
|
+
This skill activates when designing, improving, or evaluating technical interview
|
|
14
|
+
processes. It covers coding challenges, system design rounds, evaluation rubrics,
|
|
15
|
+
bias reduction techniques, and debrief calibration to ensure interviews extract
|
|
16
|
+
meaningful signal while treating candidates fairly.
|
|
17
|
+
|
|
18
|
+
## Mandatory actions when this skill is active
|
|
19
|
+
|
|
20
|
+
### Before
|
|
21
|
+
|
|
22
|
+
1. **Define the role clearly** — What does this person actually do day-to-day? What
|
|
23
|
+
skills are essential vs. nice-to-have? What level of seniority?
|
|
24
|
+
2. **Identify signals to extract** — Map each interview round to specific competencies
|
|
25
|
+
being evaluated. No round should exist without a clear signal target.
|
|
26
|
+
3. **Audit for relevance** — Every question and challenge must relate to actual work
|
|
27
|
+
the candidate would perform. No puzzle questions, no trivia, no gotchas.
|
|
28
|
+
|
|
29
|
+
### During
|
|
30
|
+
|
|
31
|
+
4. **Coding challenge design principles:**
|
|
32
|
+
- Relevant to actual work the team does (not algorithmic puzzles unless role requires)
|
|
33
|
+
- Time-boxed with clear expectations communicated upfront
|
|
34
|
+
- Multiple valid solution paths (not one "correct" answer)
|
|
35
|
+
- Clear evaluation criteria shared with interviewers before use
|
|
36
|
+
- Scaffolding provided (no time wasted on boilerplate setup)
|
|
37
|
+
- Accommodations available (extra time, alternative formats)
|
|
38
|
+
|
|
39
|
+
5. **Evaluation rubric (score each dimension 1-4):**
|
|
40
|
+
- **Problem decomposition** — Breaks problem into manageable parts, identifies
|
|
41
|
+
unknowns, asks clarifying questions before diving in.
|
|
42
|
+
- **Communication** — Explains thinking clearly, responds to hints, collaborates
|
|
43
|
+
with interviewer, articulates tradeoffs.
|
|
44
|
+
- **Code quality** — Readable, well-structured, appropriate abstractions, handles
|
|
45
|
+
edge cases, follows conventions.
|
|
46
|
+
- **Testing mindset** — Considers test cases, validates assumptions, identifies
|
|
47
|
+
failure modes, demonstrates correctness.
|
|
48
|
+
- **Tradeoff awareness** — Articulates time/space tradeoffs, discusses scalability,
|
|
49
|
+
acknowledges limitations of chosen approach.
|
|
50
|
+
|
|
51
|
+
6. **Bias reduction techniques:**
|
|
52
|
+
- Score independently before debrief discussion (prevent anchoring)
|
|
53
|
+
- Use structured scorecards with specific evidence required per score
|
|
54
|
+
- Same questions for all candidates at same level (allow follow-ups to vary)
|
|
55
|
+
- Diverse interview panels (varied backgrounds, roles, tenure)
|
|
56
|
+
- Evaluate against rubric, not against other candidates or "culture fit"
|
|
57
|
+
- Train interviewers on common biases (halo effect, similarity bias, confirmation)
|
|
58
|
+
|
|
59
|
+
7. **System design round structure:**
|
|
60
|
+
- Phase 1: Scope and requirements (candidate drives, interviewer clarifies)
|
|
61
|
+
- Phase 2: High-level design (components, data flow, API boundaries)
|
|
62
|
+
- Phase 3: Deep dive (interviewer picks area to explore in depth)
|
|
63
|
+
- Phase 4: Tradeoffs and evolution (scalability, failure modes, future changes)
|
|
64
|
+
- Evaluate: scalability thinking, tradeoff articulation, communication clarity,
|
|
65
|
+
ability to handle ambiguity, depth of technical knowledge.
|
|
66
|
+
|
|
67
|
+
8. **Take-home challenge guidelines:**
|
|
68
|
+
- Maximum 3-4 hours of work (state this explicitly)
|
|
69
|
+
- Provide clear submission criteria and evaluation rubric upfront
|
|
70
|
+
- Allow technology choice where possible
|
|
71
|
+
- Pay candidates for take-homes exceeding 2 hours
|
|
72
|
+
- Review within 48 hours (respect candidate time)
|
|
73
|
+
|
|
74
|
+
9. **Debrief calibration:**
|
|
75
|
+
- Each interviewer presents evidence and scores before group discussion
|
|
76
|
+
- No "veto without evidence" — strong no requires specific rubric failures
|
|
77
|
+
- Calibrate scores across interviewers quarterly using past candidates
|
|
78
|
+
- Track hire-to-performance correlation to improve signal extraction
|
|
79
|
+
|
|
80
|
+
### After
|
|
81
|
+
|
|
82
|
+
10. **Provide candidate feedback** — Specific, actionable, kind. Even for rejections,
|
|
83
|
+
share what went well and areas for growth.
|
|
84
|
+
11. **Iterate on the process** — Track interviewer consistency, candidate satisfaction
|
|
85
|
+
scores, and time-to-decision. Improve quarterly.
|
|
86
|
+
12. **Document interview guides** — Maintain living documents with questions, rubrics,
|
|
87
|
+
and calibration notes for each role type.
|
|
88
|
+
|
|
89
|
+
## Self-check before task completion
|
|
90
|
+
|
|
91
|
+
- [ ] Every round maps to specific, documented signals
|
|
92
|
+
- [ ] Challenges are relevant to actual work (no trivia or puzzles)
|
|
93
|
+
- [ ] Rubric uses 1-4 scale with clear behavioral anchors per level
|
|
94
|
+
- [ ] Bias reduction measures in place (structured scoring, diverse panels)
|
|
95
|
+
- [ ] Time expectations clearly communicated to candidates
|
|
96
|
+
- [ ] Debrief process requires evidence-backed scores before discussion
|
|
97
|
+
- [ ] Candidate feedback mechanism exists
|
|
98
|
+
- [ ] Process review cadence established (at least quarterly)
|