mindforge-cc 10.0.3 → 10.7.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/config.json +25 -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 +176 -0
- package/MINDFORGE.md +4 -4
- package/package.json +2 -2
- package/.mindforge/personas/data-privacy-engineer.md +0 -187
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dmux-workflows
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.0.5
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: dmux, parallel agents, multi-model orchestration, tmux agents, worktree parallel, parallel panes, concurrent execution, multi-harness, orchestrate workers, split work, fan out, parallel branches
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — Dmux Workflows (Multi-Agent Parallel Execution)
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
|
|
13
|
+
When executing multiple independent tasks simultaneously using parallel agent
|
|
14
|
+
instances, tmux panes, or git worktrees. Use when facing 2+ tasks that have no
|
|
15
|
+
shared state, no sequential dependencies, and would benefit from concurrent
|
|
16
|
+
execution. Handles isolation, coordination, and merge strategies for parallel work.
|
|
17
|
+
|
|
18
|
+
Core principle: **Independence before parallelism** — never parallelize tasks that
|
|
19
|
+
touch the same files or depend on each other's output.
|
|
20
|
+
|
|
21
|
+
## Mandatory actions when this skill is active
|
|
22
|
+
|
|
23
|
+
### Before parallel execution begins
|
|
24
|
+
|
|
25
|
+
1. **Task decomposition:**
|
|
26
|
+
- List all subtasks in the current work item
|
|
27
|
+
- For each pair of subtasks, verify: do they touch the same files? (NO required)
|
|
28
|
+
- For each pair, verify: does one depend on the other's output? (NO required)
|
|
29
|
+
- If ANY dependency exists: serialize those tasks, parallelize the rest
|
|
30
|
+
|
|
31
|
+
2. **Worker definition:**
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"session": "dmux-[feature-name]",
|
|
35
|
+
"workers": [
|
|
36
|
+
{
|
|
37
|
+
"name": "worker-1-description",
|
|
38
|
+
"task": "specific task instructions",
|
|
39
|
+
"model": "sonnet|opus|haiku",
|
|
40
|
+
"branch": "feat/[feature]-[subtask]",
|
|
41
|
+
"files": ["list", "of", "files", "this", "worker", "touches"],
|
|
42
|
+
"timeout_minutes": 30
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
3. **Independence verification matrix:**
|
|
49
|
+
- Create file-touch matrix: workers (rows) x files (columns)
|
|
50
|
+
- If any column has more than one worker marked: STOP, restructure tasks
|
|
51
|
+
- This is the critical safety check — skip it and you get merge conflicts
|
|
52
|
+
|
|
53
|
+
4. **Select execution pattern:**
|
|
54
|
+
|
|
55
|
+
| Pattern | Workers | Use when |
|
|
56
|
+
|---------|---------|----------|
|
|
57
|
+
| Research + Implement | 2 | One explores options, other builds after |
|
|
58
|
+
| Multi-file | 2-4 | Each worker owns distinct files |
|
|
59
|
+
| Test + Fix | 2 | Watcher finds bugs, fixer resolves them |
|
|
60
|
+
| Cross-model review | 3 | Security + perf + coverage perspectives |
|
|
61
|
+
| Fan-out gather | 3-5 | Same prompt, different models, best-of-N |
|
|
62
|
+
|
|
63
|
+
### During parallel execution
|
|
64
|
+
|
|
65
|
+
**Launch protocol:**
|
|
66
|
+
1. Create tmux session: `tmux new-session -d -s dmux-[name]`
|
|
67
|
+
2. For each worker beyond the first: `tmux split-window` or `tmux new-window`
|
|
68
|
+
3. Set up git worktree for each pane:
|
|
69
|
+
```bash
|
|
70
|
+
git worktree add ../worktree-[worker-name] -b [worker-branch]
|
|
71
|
+
```
|
|
72
|
+
4. Launch agent in each pane with task-specific instructions
|
|
73
|
+
5. Maximum 5-6 panes (beyond this, coordination overhead exceeds benefit)
|
|
74
|
+
|
|
75
|
+
**Isolation guarantees:**
|
|
76
|
+
- Each worker operates in its own worktree (filesystem isolation)
|
|
77
|
+
- Each worker has its own branch (git isolation)
|
|
78
|
+
- No worker reads files that another worker writes
|
|
79
|
+
- Workers do NOT communicate during execution (no shared state)
|
|
80
|
+
|
|
81
|
+
**Monitoring during execution:**
|
|
82
|
+
- Check pane output periodically for errors or stalls
|
|
83
|
+
- If a worker finishes early: do NOT reassign it (avoid introducing dependencies)
|
|
84
|
+
- If a worker fails: note the failure, continue others, address in merge phase
|
|
85
|
+
- Track wall-clock time per worker for future estimation
|
|
86
|
+
|
|
87
|
+
**Resource constraints:**
|
|
88
|
+
- Max 5-6 concurrent panes (token budget and context limits)
|
|
89
|
+
- Each worker should complete within its timeout
|
|
90
|
+
- If total token usage exceeds budget: kill lowest-priority worker first
|
|
91
|
+
- Prefer fewer workers with clear tasks over many workers with vague tasks
|
|
92
|
+
|
|
93
|
+
### After parallel execution
|
|
94
|
+
|
|
95
|
+
1. **Merge strategy (sequential, NOT parallel):**
|
|
96
|
+
- Review each worker's output independently
|
|
97
|
+
- Verify each worker stayed within its file boundaries
|
|
98
|
+
- Merge workers one at a time into the integration branch:
|
|
99
|
+
```bash
|
|
100
|
+
git checkout main-feature-branch
|
|
101
|
+
git merge worktree-[worker-1-branch] --no-ff
|
|
102
|
+
# verify tests pass
|
|
103
|
+
git merge worktree-[worker-2-branch] --no-ff
|
|
104
|
+
# verify tests pass
|
|
105
|
+
# repeat for each worker
|
|
106
|
+
```
|
|
107
|
+
- Run full test suite after all merges
|
|
108
|
+
|
|
109
|
+
2. **Conflict resolution:**
|
|
110
|
+
- If merge conflict occurs: investigate which worker violated boundaries
|
|
111
|
+
- Resolve manually (do not auto-resolve — understand the conflict)
|
|
112
|
+
- Add the conflicting files to a "shared files" list for future runs
|
|
113
|
+
|
|
114
|
+
3. **Cleanup:**
|
|
115
|
+
- Remove all worktrees: `git worktree remove ../worktree-[name]`
|
|
116
|
+
- Delete worker branches if fully merged
|
|
117
|
+
- Close tmux session: `tmux kill-session -t dmux-[name]`
|
|
118
|
+
- Consolidate results into a single summary
|
|
119
|
+
|
|
120
|
+
4. **Results consolidation:**
|
|
121
|
+
```
|
|
122
|
+
## Dmux Execution Report
|
|
123
|
+
- Session: dmux-[name]
|
|
124
|
+
- Workers: N launched, M succeeded, F failed
|
|
125
|
+
- Wall-clock time: X minutes (vs estimated Y sequential)
|
|
126
|
+
- Speedup factor: sequential_time / parallel_time
|
|
127
|
+
- Conflicts: [none | list with resolution]
|
|
128
|
+
- Output: [summary of what each worker produced]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Self-check before task completion
|
|
132
|
+
|
|
133
|
+
Before marking a parallel execution task done:
|
|
134
|
+
|
|
135
|
+
- [ ] Did I verify task independence (no shared files, no output dependencies)?
|
|
136
|
+
- [ ] Did I use git worktrees for filesystem isolation?
|
|
137
|
+
- [ ] Did I stay within the 5-6 pane maximum?
|
|
138
|
+
- [ ] Did I review each worker's output independently before merging?
|
|
139
|
+
- [ ] Did I run full tests after all merges completed?
|
|
140
|
+
- [ ] Did I clean up worktrees and close the tmux session?
|
|
141
|
+
- [ ] Did I document the speedup factor and any conflicts encountered?
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dns-architecture
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.1.1
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: dns architecture, dns load balancing, dns failover, GeoDNS, TTL strategy, dns service discovery, dns-based routing, dns health check, dns propagation, anycast dns, dns caching layer, dns resolution chain
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — DNS Architecture
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
Any task involving DNS-based traffic management, load balancing via DNS,
|
|
13
|
+
failover strategies, GeoDNS routing, service discovery using DNS,
|
|
14
|
+
or TTL optimization for high-availability systems.
|
|
15
|
+
|
|
16
|
+
## Mandatory actions when this skill is active
|
|
17
|
+
|
|
18
|
+
### Before writing any code
|
|
19
|
+
1. Map the DNS resolution chain (client → resolver → authoritative → response).
|
|
20
|
+
2. Identify failover requirements (RTO target determines TTL).
|
|
21
|
+
3. Decide routing strategy (round-robin, weighted, latency, geo, failover).
|
|
22
|
+
4. Determine health check mechanism for DNS-managed endpoints.
|
|
23
|
+
|
|
24
|
+
### During implementation
|
|
25
|
+
- Set TTL appropriate to failover speed requirements.
|
|
26
|
+
- Implement health checks for all DNS-managed endpoints.
|
|
27
|
+
- Use anycast for latency-critical global services.
|
|
28
|
+
- Configure both primary and secondary DNS providers for resilience.
|
|
29
|
+
- Document propagation delays for operational runbooks.
|
|
30
|
+
- Never rely on DNS as sole load balancer for sub-second failover.
|
|
31
|
+
|
|
32
|
+
### After implementation
|
|
33
|
+
- Verify health checks remove unhealthy endpoints within TTL window.
|
|
34
|
+
- Test failover scenario end-to-end (kill primary, measure recovery time).
|
|
35
|
+
- Confirm GeoDNS routes correctly from each target region.
|
|
36
|
+
- Monitor DNS resolution latency and error rates.
|
|
37
|
+
- Validate TTL behavior in major resolvers (Google, Cloudflare, ISP).
|
|
38
|
+
|
|
39
|
+
## DNS Load Balancing
|
|
40
|
+
|
|
41
|
+
### Strategies
|
|
42
|
+
| Strategy | How It Works | Best For |
|
|
43
|
+
|----------|-------------|----------|
|
|
44
|
+
| Round-robin | Rotate through A records | Simple distribution |
|
|
45
|
+
| Weighted | Assign weight per endpoint | Canary, capacity differences |
|
|
46
|
+
| Latency-based | Route to lowest-latency endpoint | Global services |
|
|
47
|
+
| Failover | Primary/secondary with health check | HA with clear primary |
|
|
48
|
+
| Geo | Route by resolver geography | Data sovereignty, latency |
|
|
49
|
+
|
|
50
|
+
### Limitations
|
|
51
|
+
- DNS caching means changes take TTL seconds to propagate.
|
|
52
|
+
- Client-side caching may ignore TTL (some browsers cache 60s minimum).
|
|
53
|
+
- Cannot do sub-second failover via DNS alone.
|
|
54
|
+
- Resolver location != user location (use EDNS Client Subnet to improve).
|
|
55
|
+
|
|
56
|
+
## GeoDNS
|
|
57
|
+
|
|
58
|
+
### How It Works
|
|
59
|
+
1. DNS query arrives at authoritative server.
|
|
60
|
+
2. Server determines resolver's geographic location (via IP geolocation).
|
|
61
|
+
3. Returns IP address of nearest datacenter.
|
|
62
|
+
4. EDNS Client Subnet (ECS) improves accuracy by passing client subnet.
|
|
63
|
+
|
|
64
|
+
### Configuration
|
|
65
|
+
```
|
|
66
|
+
# Example GeoDNS policy
|
|
67
|
+
api.example.com:
|
|
68
|
+
default: us-east-1.api.example.com
|
|
69
|
+
EU: eu-west-1.api.example.com
|
|
70
|
+
APAC: ap-southeast-1.api.example.com
|
|
71
|
+
fallback: us-east-1.api.example.com # if region unhealthy
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Considerations
|
|
75
|
+
- Resolver location != user location (corporate DNS, VPN users).
|
|
76
|
+
- ECS support improves accuracy but not universally supported.
|
|
77
|
+
- Always have fallback for unresolvable regions.
|
|
78
|
+
- Test from each target region to verify correct routing.
|
|
79
|
+
|
|
80
|
+
## TTL Strategy
|
|
81
|
+
|
|
82
|
+
### TTL Decision Framework
|
|
83
|
+
| Scenario | Recommended TTL | Reason |
|
|
84
|
+
|----------|----------------|--------|
|
|
85
|
+
| Fast failover needed | 30-60 seconds | Quick removal of unhealthy |
|
|
86
|
+
| Normal operation | 300 seconds (5 min) | Balance between freshness and cache |
|
|
87
|
+
| Static content CDN | 3600 seconds (1 hour) | Rarely changes, maximize cache |
|
|
88
|
+
| During migration | 60 seconds | Prepare for cutover |
|
|
89
|
+
| After migration stable | 300-3600 seconds | Return to normal caching |
|
|
90
|
+
|
|
91
|
+
### TTL Trade-offs
|
|
92
|
+
- **Low TTL (30s)**: Fast failover, more DNS queries, higher authoritative load.
|
|
93
|
+
- **High TTL (3600s)**: Fewer queries, better cache hit rate, slow failover.
|
|
94
|
+
- **Strategy**: Lower TTL before planned changes, raise after stability confirmed.
|
|
95
|
+
|
|
96
|
+
### Propagation Reality
|
|
97
|
+
- TTL expiry != instant propagation.
|
|
98
|
+
- Some resolvers enforce minimum TTL (30s-60s).
|
|
99
|
+
- Browser DNS cache may ignore TTL entirely.
|
|
100
|
+
- Java apps cache DNS indefinitely by default (set `networkaddress.cache.ttl`).
|
|
101
|
+
|
|
102
|
+
## Service Discovery via DNS
|
|
103
|
+
|
|
104
|
+
### Internal Service Discovery
|
|
105
|
+
- Use internal DNS zone (e.g., `service.internal`).
|
|
106
|
+
- SRV records provide port discovery alongside host.
|
|
107
|
+
- Short TTL (5-15s) for dynamic service registration.
|
|
108
|
+
|
|
109
|
+
### SRV Records
|
|
110
|
+
```
|
|
111
|
+
_http._tcp.api.internal. 15 IN SRV 10 100 8080 api-pod-1.internal.
|
|
112
|
+
_http._tcp.api.internal. 15 IN SRV 10 100 8080 api-pod-2.internal.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Kubernetes DNS
|
|
116
|
+
- Service discovery built-in: `service-name.namespace.svc.cluster.local`.
|
|
117
|
+
- Headless services return individual pod IPs.
|
|
118
|
+
- ExternalName services alias external endpoints.
|
|
119
|
+
|
|
120
|
+
## Anycast DNS
|
|
121
|
+
|
|
122
|
+
### How It Works
|
|
123
|
+
- Multiple servers advertise the same IP address via BGP.
|
|
124
|
+
- Network routes traffic to the nearest server (by BGP path).
|
|
125
|
+
- If one server goes down, BGP re-routes to next nearest.
|
|
126
|
+
|
|
127
|
+
### Use Cases
|
|
128
|
+
- Authoritative DNS servers (Cloudflare, Route53).
|
|
129
|
+
- CDN edge nodes.
|
|
130
|
+
- DDoS mitigation (absorb attack across multiple PoPs).
|
|
131
|
+
|
|
132
|
+
### Considerations
|
|
133
|
+
- Failover speed depends on BGP convergence (seconds to minutes).
|
|
134
|
+
- TCP connections break on route change (DNS is UDP, so usually fine).
|
|
135
|
+
- Not suitable for stateful protocols without session persistence.
|
|
136
|
+
|
|
137
|
+
## Health Checks
|
|
138
|
+
|
|
139
|
+
### DNS Health Check Pattern
|
|
140
|
+
1. Health checker probes endpoints at regular intervals (10-30s).
|
|
141
|
+
2. If endpoint fails N consecutive checks, remove from DNS response.
|
|
142
|
+
3. Continue probing. If endpoint recovers, add back after M consecutive successes.
|
|
143
|
+
4. Removal takes effect within TTL seconds (resolver cache expiry).
|
|
144
|
+
|
|
145
|
+
### Health Check Types
|
|
146
|
+
| Type | Checks | Use For |
|
|
147
|
+
|------|--------|---------|
|
|
148
|
+
| TCP | Port open | Basic availability |
|
|
149
|
+
| HTTP | Status 200 + body match | Application health |
|
|
150
|
+
| HTTPS | Valid cert + status | Full stack health |
|
|
151
|
+
| Custom | Business logic probe | Application-specific |
|
|
152
|
+
|
|
153
|
+
### Timing
|
|
154
|
+
- Check interval: 10-30 seconds.
|
|
155
|
+
- Failure threshold: 2-3 consecutive failures.
|
|
156
|
+
- Recovery threshold: 2-3 consecutive successes.
|
|
157
|
+
- Effective failover time: check_interval × failure_threshold + TTL.
|
|
158
|
+
|
|
159
|
+
## Self-check
|
|
160
|
+
- [ ] TTL set appropriate to failover speed requirement.
|
|
161
|
+
- [ ] Health checks configured for all DNS-managed endpoints.
|
|
162
|
+
- [ ] Failover tested end-to-end (measured recovery time).
|
|
163
|
+
- [ ] GeoDNS verified from target regions.
|
|
164
|
+
- [ ] Secondary DNS provider configured for resilience.
|
|
165
|
+
- [ ] Propagation delays documented in runbook.
|
|
166
|
+
- [ ] Client-side DNS caching behavior accounted for.
|
|
167
|
+
- [ ] Monitoring in place for resolution latency and errors.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ecommerce-architecture
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.2.0
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: ecommerce architecture, shopping cart design, checkout flow optimization, inventory management system, pricing engine, order lifecycle management, marketplace architecture, product catalog design, ecommerce platform, fulfillment system, order routing, dynamic pricing
|
|
7
|
+
compose: caching-strategies
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Skill — Ecommerce Architecture
|
|
11
|
+
|
|
12
|
+
## When this skill activates
|
|
13
|
+
This skill activates when designing shopping cart flows, checkout experiences, inventory management systems, pricing engines, order lifecycle workflows, product catalog architectures, marketplace platforms, or fulfillment/logistics systems for ecommerce.
|
|
14
|
+
|
|
15
|
+
## Mandatory actions when this skill is active
|
|
16
|
+
|
|
17
|
+
### Before writing any code
|
|
18
|
+
1. Design cart and checkout state machine: anonymous cart → logged-in cart (merge/replace strategy), cart → checkout (address validation), checkout → payment → order confirmation, with explicit timeout handling for abandoned carts (30 min session, 7 day recovery email)
|
|
19
|
+
2. Model inventory architecture: real-time available-to-promise (ATP) calculation across warehouses, reserved inventory during checkout (soft hold 15 min, hard hold at payment), backorder handling, and oversell prevention with pessimistic locking
|
|
20
|
+
3. Map order lifecycle stages: order placed → payment authorized → fraud screening → fulfillment assigned → picked → packed → shipped → delivered → returns window, with event-driven state transitions and webhook notifications at each stage
|
|
21
|
+
|
|
22
|
+
### During implementation
|
|
23
|
+
- Implement cart persistence with multi-device sync: store cart in database (not just sessions), deduplicate items by SKU+options hash, handle quantity updates with stock validation, expire abandoned carts after 30 days, support guest cart migration to user account on login
|
|
24
|
+
- Build pricing engine with rule evaluation: base price → promotional discounts (BOGO, percentage off, fixed amount) → coupon codes (stackable/non-stackable) → volume discounts → tax calculation (Avalara/TaxJar API), with price display consistency (cart/checkout/confirmation must match)
|
|
25
|
+
- Design inventory reservation system: when checkout starts, create soft reservation (pessimistic lock), release on timeout or explicit cancel, convert to hard reservation on payment success, allocate to specific warehouse based on proximity to shipping address and stock availability
|
|
26
|
+
- Implement order routing logic: evaluate fulfillment options (ship from warehouse, dropship from vendor, ship from store), calculate shipping cost and delivery ETA per option, optimize for cost vs speed vs carbon footprint, handle split shipments when inventory spans locations
|
|
27
|
+
- Build product catalog with faceted search: index products in Elasticsearch/Algolia with attributes (category, brand, color, size, price), support filters (multi-select facets), range queries (price slider), text search with typo tolerance, and sort options (relevance, price, rating, recency)
|
|
28
|
+
|
|
29
|
+
### After implementation
|
|
30
|
+
- Validate checkout flow conversion: measure cart abandonment rate by stage (cart → checkout → payment → confirmation), identify friction points (shipping cost surprise, account creation forced, payment failure), implement address autocomplete (Google Places API), express checkout options (Apple Pay, Shop Pay)
|
|
31
|
+
- Test inventory consistency under load: simulate concurrent purchases of last item in stock (race condition), verify oversell prevention, validate soft reservation expiry releases inventory back to available pool, confirm hard reservation deducts from ATP correctly
|
|
32
|
+
- Execute fraud screening integration: verify address verification system (AVS) checks, CVV validation, velocity checks (too many orders from same IP/card), device fingerprinting (Sift/Forter), manual review queue for high-risk orders
|
|
33
|
+
|
|
34
|
+
## Self-check before task completion
|
|
35
|
+
- [ ] Cart supports guest and logged-in users, syncs across devices, handles item updates with real-time stock validation
|
|
36
|
+
- [ ] Pricing engine evaluates all discount layers (promotions → coupons → volume → tax) with consistent display across cart/checkout/confirmation
|
|
37
|
+
- [ ] Inventory reservation implemented: soft hold during checkout (15 min timeout), hard hold post-payment, pessimistic locking prevents oversell
|
|
38
|
+
- [ ] Checkout flow optimized: address autocomplete, saved payment methods, express checkout options (Apple Pay), progress indicator
|
|
39
|
+
- [ ] Order lifecycle event-driven: state machine with webhook notifications (order placed, shipped, delivered), customer email templates
|
|
40
|
+
- [ ] Product catalog searchable: faceted filters, text search with typo tolerance, sort options, pagination or infinite scroll
|
|
41
|
+
- [ ] Fraud screening integrated: AVS/CVV checks, velocity limits, device fingerprinting, manual review queue for high-risk transactions
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: edge-computing
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.1.1
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: edge computing, edge function, CDN compute, edge worker, latency optimization, data locality, edge caching, cloudflare workers, deno deploy, edge runtime, compute at edge, edge-first architecture
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — Edge Computing
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
Any task involving moving computation closer to users at the network edge,
|
|
13
|
+
designing edge functions, optimizing latency through geographic distribution,
|
|
14
|
+
or evaluating edge vs origin placement decisions.
|
|
15
|
+
|
|
16
|
+
## Mandatory actions when this skill is active
|
|
17
|
+
|
|
18
|
+
### Before writing any code
|
|
19
|
+
1. Identify latency-sensitive paths that benefit from edge execution.
|
|
20
|
+
2. Decide edge vs origin for each operation using the decision matrix:
|
|
21
|
+
- Latency-sensitive reads → edge
|
|
22
|
+
- Data-heavy computation → origin
|
|
23
|
+
- Personalization with small state → edge
|
|
24
|
+
- Writes requiring strong consistency → origin
|
|
25
|
+
3. Document runtime constraints (time limits, memory, bundle size).
|
|
26
|
+
|
|
27
|
+
### During implementation
|
|
28
|
+
- Keep edge function bundles small (<1MB) to minimize cold starts.
|
|
29
|
+
- Avoid heavy imports — each dependency adds cold start latency.
|
|
30
|
+
- Use stale-while-revalidate for cache coordination.
|
|
31
|
+
- Handle edge-to-origin fallback gracefully.
|
|
32
|
+
- Never rely on persistent connections at edge (stateless by design).
|
|
33
|
+
- Implement proper cache-control headers at every layer.
|
|
34
|
+
|
|
35
|
+
### After implementation
|
|
36
|
+
- Measure actual latency improvement from edge deployment.
|
|
37
|
+
- Verify data locality compliance (GDPR region constraints).
|
|
38
|
+
- Test cold start performance under real traffic patterns.
|
|
39
|
+
- Monitor edge function error rates per region.
|
|
40
|
+
|
|
41
|
+
## Edge vs Origin Decision Framework
|
|
42
|
+
|
|
43
|
+
| Signal | Edge | Origin |
|
|
44
|
+
|--------|------|--------|
|
|
45
|
+
| Latency-critical (<50ms target) | Yes | No |
|
|
46
|
+
| Heavy computation (>50ms CPU) | No | Yes |
|
|
47
|
+
| Personalization (small state) | Yes | No |
|
|
48
|
+
| Database writes | No | Yes |
|
|
49
|
+
| Static asset serving | Yes | No |
|
|
50
|
+
| Auth token validation | Yes | No |
|
|
51
|
+
| Complex business logic | No | Yes |
|
|
52
|
+
|
|
53
|
+
## Platform Patterns
|
|
54
|
+
|
|
55
|
+
### Cloudflare Workers
|
|
56
|
+
- V8 isolate model (no container cold start).
|
|
57
|
+
- KV for eventual-consistent edge state.
|
|
58
|
+
- Durable Objects for strong consistency at edge.
|
|
59
|
+
- R2 for edge-local object storage.
|
|
60
|
+
|
|
61
|
+
### Vercel Edge Functions
|
|
62
|
+
- Runs on Cloudflare infrastructure.
|
|
63
|
+
- Streaming responses supported.
|
|
64
|
+
- Middleware pattern for auth/redirects.
|
|
65
|
+
|
|
66
|
+
### Deno Deploy
|
|
67
|
+
- Global V8 isolates with zero cold start.
|
|
68
|
+
- Built-in KV for edge state.
|
|
69
|
+
- Native Web APIs (fetch, streams, crypto).
|
|
70
|
+
|
|
71
|
+
## Caching Strategy at Edge
|
|
72
|
+
- `Cache-Control: public, max-age=60, stale-while-revalidate=300` for dynamic content.
|
|
73
|
+
- `Cache-Control: public, max-age=31536000, immutable` for hashed static assets.
|
|
74
|
+
- Purge on deploy for cache invalidation.
|
|
75
|
+
- Use cache tags for granular invalidation.
|
|
76
|
+
|
|
77
|
+
## Limitations to Always Consider
|
|
78
|
+
- Time limits (typically 30s-50ms CPU time depending on platform).
|
|
79
|
+
- Memory limits (128MB typical).
|
|
80
|
+
- No persistent connections (WebSocket requires special handling).
|
|
81
|
+
- Bundle size constraints (1-10MB depending on platform).
|
|
82
|
+
- Limited Node.js API compatibility at edge.
|
|
83
|
+
- Eventual consistency for distributed edge state.
|
|
84
|
+
|
|
85
|
+
## Self-check
|
|
86
|
+
- [ ] Edge vs origin decision documented for each function.
|
|
87
|
+
- [ ] Cold start measured and acceptable (<50ms target).
|
|
88
|
+
- [ ] Bundle size within platform limits.
|
|
89
|
+
- [ ] Fallback to origin implemented for edge failures.
|
|
90
|
+
- [ ] Data locality compliant with regulatory requirements.
|
|
91
|
+
- [ ] Cache headers set correctly at every layer.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: edtech-platform
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.2.0
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: edtech platform, learning management system, adaptive learning algorithm, assessment engine, educational content delivery, student progress tracking, course management, LMS architecture, online learning platform, competency framework, learning path design, educational analytics
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — EdTech Platform
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
This skill activates when building learning management systems (LMS), adaptive learning algorithms, assessment/quiz engines, course content delivery platforms, student progress tracking, competency frameworks, learning path recommendations, or educational analytics dashboards.
|
|
13
|
+
|
|
14
|
+
## Mandatory actions when this skill is active
|
|
15
|
+
|
|
16
|
+
### Before writing any code
|
|
17
|
+
1. Design learning object model: courses → modules → lessons → activities (video, reading, quiz, assignment), with prerequisite dependencies (DAG validation), completion criteria per activity type (watch 80% of video, pass quiz with 70%, submit assignment), and progress rollup to course level
|
|
18
|
+
2. Model assessment engine: question bank with metadata (difficulty, topic tags, bloom's taxonomy level), quiz generation (random selection from pool, fixed seed for consistency), scoring rubrics (multiple choice auto-grade, short answer manual review, peer assessment), and partial credit support
|
|
19
|
+
3. Map adaptive learning logic: knowledge graph (concepts and prerequisite relationships), learner profiling (mastery level per concept, learning velocity, preferred modalities), content recommendation (serve easier/harder content based on performance), and remediation paths (loop back to foundational concepts on failure)
|
|
20
|
+
|
|
21
|
+
### During implementation
|
|
22
|
+
- Implement content delivery with engagement tracking: video player with playback position persistence (resume from last position), event logging (play, pause, seek, speed change, completion), transcripts with search, captions in multiple languages, quality selection (adaptive bitrate for mobile), and download for offline access
|
|
23
|
+
- Build assessment engine with anti-cheating measures: randomize question order, shuffle answer choices, time limits per question, lockdown browser detection (fullscreen enforcement, tab switch detection), plagiarism detection (Turnitin API, cosine similarity for text), and proctoring integration (webcam monitoring, eye tracking)
|
|
24
|
+
- Design progress tracking with granular analytics: store activity completion events (user_id, activity_id, timestamp, score, time_spent), aggregate to module/course level, calculate metrics (completion rate, average score, time to completion), identify at-risk students (falling behind pace, multiple failed attempts), trigger interventions (reminder emails, instructor notifications)
|
|
25
|
+
- Implement competency-based progression: define competencies with proficiency levels (novice, intermediate, advanced, expert), map learning activities to competencies, assess mastery through multiple evidence points (quiz scores, assignment grades, peer reviews), unlock next level only when threshold met (80% proficiency)
|
|
26
|
+
- Build discussion forums with moderation: threaded conversations, upvote/downvote, instructor endorsements, tag filtering (question, announcement, discussion), spam detection (rate limiting, keyword filters, ML-based flagging), and content moderation queue
|
|
27
|
+
|
|
28
|
+
### After implementation
|
|
29
|
+
- Validate learning analytics accuracy: verify completion tracking (activity marked complete only when criteria met), score calculation (weighted averages for modules/courses), progress rollup (course progress reflects all module progress), and leaderboard consistency (rank students by total points, handle ties)
|
|
30
|
+
- Test adaptive learning effectiveness: measure learning velocity (time to achieve 80% mastery per concept), retention rate (re-test after 1 week), engagement metrics (video watch time, quiz attempts, forum participation), compare adaptive vs linear paths (A/B test for cohort outcomes)
|
|
31
|
+
- Execute accessibility compliance audit: WCAG 2.1 AA conformance (video captions, keyboard navigation, screen reader support), alternative formats (transcripts, audio descriptions), color contrast checks (4.5:1 for text), and assistive technology testing (NVDA, JAWS)
|
|
32
|
+
|
|
33
|
+
## Self-check before task completion
|
|
34
|
+
- [ ] Learning object hierarchy implemented: courses → modules → lessons → activities with prerequisite enforcement (DAG validation)
|
|
35
|
+
- [ ] Content delivery tracks engagement: video playback position, event logs, transcript search, adaptive bitrate, offline download
|
|
36
|
+
- [ ] Assessment engine supports multiple question types: multiple choice, short answer, essay, peer assessment, with auto-grading and manual review workflows
|
|
37
|
+
- [ ] Anti-cheating measures active: randomized questions, time limits, lockdown browser, plagiarism detection, proctoring integration
|
|
38
|
+
- [ ] Progress tracking granular: activity-level completion events, aggregate metrics at module/course level, at-risk student identification
|
|
39
|
+
- [ ] Adaptive learning functional: knowledge graph, learner profiling, content recommendation based on mastery, remediation paths
|
|
40
|
+
- [ ] Competency-based progression: proficiency levels, evidence-based mastery assessment, unlock gates for next level
|
|
41
|
+
- [ ] Accessibility compliant: WCAG 2.1 AA (captions, keyboard nav, screen reader), alternative formats, color contrast
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: email-deliverability
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
min_mindforge_version: 10.0.4
|
|
5
|
+
status: stable
|
|
6
|
+
triggers: email deliverability, SPF record, DKIM signing, DMARC policy, email warm-up, sender reputation, bounce handling, complaint loop, email authentication, inbox placement, email throttling, transactional email architecture
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skill — Email Deliverability (Authentication & Reputation Architecture)
|
|
10
|
+
|
|
11
|
+
## When this skill activates
|
|
12
|
+
When configuring email sending infrastructure, troubleshooting delivery issues,
|
|
13
|
+
warming up new sending domains/IPs, or architecting transactional vs marketing
|
|
14
|
+
email separation. Use for any task that affects whether emails reach the inbox.
|
|
15
|
+
|
|
16
|
+
Core principle: **Reputation is everything** — email deliverability is a long game.
|
|
17
|
+
One bad send can destroy months of reputation building. Protect sender reputation
|
|
18
|
+
like you protect production uptime.
|
|
19
|
+
|
|
20
|
+
## Mandatory actions when this skill is active
|
|
21
|
+
|
|
22
|
+
### Email Authentication Trio (Non-Negotiable)
|
|
23
|
+
|
|
24
|
+
1. **SPF (Sender Policy Framework):**
|
|
25
|
+
```dns
|
|
26
|
+
; Authorize sending IPs/services
|
|
27
|
+
v=spf1 include:_spf.google.com include:sendgrid.net include:amazonses.com -all
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Rules:
|
|
31
|
+
- List ALL authorized sending services (ESP, transactional provider, corporate mail)
|
|
32
|
+
- End with `-all` (hard fail) not `~all` (soft fail) for production domains
|
|
33
|
+
- Maximum 10 DNS lookups (SPF limit) — use `include` sparingly
|
|
34
|
+
- Audit quarterly: remove services you no longer use
|
|
35
|
+
- Never authorize `+all` (allows anyone to send as you)
|
|
36
|
+
|
|
37
|
+
2. **DKIM (DomainKeys Identified Mail):**
|
|
38
|
+
```dns
|
|
39
|
+
; Public key for signature verification
|
|
40
|
+
selector1._domainkey.example.com IN TXT "v=DKIM1; k=rsa; p=[public_key]"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Rules:
|
|
44
|
+
- Every sending service gets its own DKIM selector
|
|
45
|
+
- Minimum 2048-bit RSA key (1024-bit is deprecated)
|
|
46
|
+
- Rotate keys annually (publish new key, wait 48h, remove old)
|
|
47
|
+
- Sign with your own domain (not the ESP's domain) for reputation ownership
|
|
48
|
+
- Verify signatures are passing: check DKIM alignment in email headers
|
|
49
|
+
|
|
50
|
+
3. **DMARC (Domain-based Message Authentication, Reporting & Conformance):**
|
|
51
|
+
```dns
|
|
52
|
+
; Tell receivers what to do with failures
|
|
53
|
+
_dmarc.example.com IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com; ruf=mailto:dmarc-forensic@example.com; pct=100"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Deployment progression:
|
|
57
|
+
```
|
|
58
|
+
Week 1-2: p=none (monitor only, collect reports)
|
|
59
|
+
Week 3-4: p=quarantine; pct=10 (quarantine 10% of failures)
|
|
60
|
+
Week 5-6: p=quarantine; pct=50
|
|
61
|
+
Week 7-8: p=quarantine; pct=100
|
|
62
|
+
Week 9+: p=reject (full enforcement — unauthenticated mail rejected)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Rules:
|
|
66
|
+
- ALWAYS start at p=none and progress gradually
|
|
67
|
+
- Monitor DMARC reports (rua) weekly for legitimate sending you missed
|
|
68
|
+
- Goal state: p=reject (maximum protection against spoofing)
|
|
69
|
+
- Ensure both SPF and DKIM alignment pass (DMARC requires at least one)
|
|
70
|
+
|
|
71
|
+
### IP/Domain Warm-Up
|
|
72
|
+
|
|
73
|
+
4. **Warm-up schedule for new sending infrastructure:**
|
|
74
|
+
```
|
|
75
|
+
Day 1-3: 50 emails/day (to most engaged recipients only)
|
|
76
|
+
Day 4-7: 100 emails/day
|
|
77
|
+
Week 2: 200-500/day
|
|
78
|
+
Week 3: 500-1,000/day
|
|
79
|
+
Week 4: 1,000-5,000/day
|
|
80
|
+
Week 5: 5,000-10,000/day
|
|
81
|
+
Week 6+: Increase 2x per week until target volume
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Rules:
|
|
85
|
+
- Send to MOST ENGAGED recipients first (opened/clicked in last 30 days)
|
|
86
|
+
- Monitor bounce rate after each volume increase (must stay <2%)
|
|
87
|
+
- If bounce rate spikes: stop, investigate, reduce volume
|
|
88
|
+
- Warm-up separately for each mailbox provider (Gmail, Outlook, Yahoo)
|
|
89
|
+
- Transactional and marketing should warm up independently
|
|
90
|
+
- Warm-up takes 6-8 weeks minimum — no shortcuts
|
|
91
|
+
|
|
92
|
+
### Sender Reputation Monitoring
|
|
93
|
+
|
|
94
|
+
5. **Key metrics and thresholds:**
|
|
95
|
+
```
|
|
96
|
+
| Metric | Healthy | Warning | Critical |
|
|
97
|
+
|----------------------|------------|------------|------------|
|
|
98
|
+
| Bounce rate | <1% | 1-2% | >2% |
|
|
99
|
+
| Complaint rate | <0.05% | 0.05-0.1% | >0.1% |
|
|
100
|
+
| Open rate | >20% | 10-20% | <10% |
|
|
101
|
+
| Spam trap hits | 0 | 1-2/month | >2/month |
|
|
102
|
+
| Blacklist presence | None | 1 minor | Major list |
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Actions:
|
|
106
|
+
- Warning threshold: investigate root cause, adjust sending patterns
|
|
107
|
+
- Critical threshold: STOP marketing sends immediately, fix before resuming
|
|
108
|
+
- Monitor Google Postmaster Tools, Microsoft SNDS, Yahoo FBL daily
|
|
109
|
+
- Set up alerts for threshold crossings
|
|
110
|
+
|
|
111
|
+
### Bounce Handling
|
|
112
|
+
|
|
113
|
+
6. **Bounce classification and response:**
|
|
114
|
+
```
|
|
115
|
+
Hard bounce (permanent failure):
|
|
116
|
+
- Invalid address, domain doesn't exist, mailbox doesn't exist
|
|
117
|
+
- Action: Remove from list IMMEDIATELY (first occurrence)
|
|
118
|
+
- Never retry a hard bounce
|
|
119
|
+
|
|
120
|
+
Soft bounce (temporary failure):
|
|
121
|
+
- Mailbox full, server temporarily unavailable, message too large
|
|
122
|
+
- Action: Retry up to 3 times over 72 hours
|
|
123
|
+
- After 3 soft bounces on same address: treat as hard bounce and suppress
|
|
124
|
+
|
|
125
|
+
Complaint (user clicked "spam"):
|
|
126
|
+
- Action: Suppress IMMEDIATELY, never email again
|
|
127
|
+
- Process FBL (Feedback Loop) reports within 1 hour
|
|
128
|
+
- If complaint rate rises: review recent sends for consent issues
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### List Hygiene
|
|
132
|
+
|
|
133
|
+
7. **Ongoing list maintenance:**
|
|
134
|
+
```
|
|
135
|
+
- Remove hard bounces: immediately
|
|
136
|
+
- Suppress complaints: immediately
|
|
137
|
+
- Remove unengaged: no open/click in 90 days → sunset sequence → remove
|
|
138
|
+
- Validate on signup: real-time email validation API (catch typos, disposable domains)
|
|
139
|
+
- Re-validate periodically: quarterly bulk validation of full list
|
|
140
|
+
- Double opt-in: recommended for all marketing (required in some jurisdictions)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Architecture (Transactional vs Marketing Separation)
|
|
144
|
+
|
|
145
|
+
8. **Separate sending infrastructure:**
|
|
146
|
+
```
|
|
147
|
+
Transactional email (receipts, password resets, 2FA):
|
|
148
|
+
- Dedicated IP/subdomain: mail.example.com
|
|
149
|
+
- Priority: immediate delivery (no batching)
|
|
150
|
+
- Volume: consistent, predictable
|
|
151
|
+
- Reputation: protected (never mixed with marketing)
|
|
152
|
+
|
|
153
|
+
Marketing email (newsletters, promotions, re-engagement):
|
|
154
|
+
- Dedicated IP/subdomain: news.example.com
|
|
155
|
+
- Priority: send-time optimized (batch by timezone/engagement)
|
|
156
|
+
- Volume: variable, seasonal spikes
|
|
157
|
+
- Reputation: more volatile (isolated from transactional)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Rules:
|
|
161
|
+
- NEVER share IPs between transactional and marketing
|
|
162
|
+
- Transactional emails must not contain marketing content (CAN-SPAM)
|
|
163
|
+
- If marketing reputation degrades, transactional delivery is unaffected
|
|
164
|
+
- Use subdomain separation (not just IP) for domain reputation isolation
|
|
165
|
+
|
|
166
|
+
## Self-check before task completion
|
|
167
|
+
|
|
168
|
+
Before marking a task done when this skill was active:
|
|
169
|
+
|
|
170
|
+
- [ ] Are SPF, DKIM, and DMARC all configured and passing alignment?
|
|
171
|
+
- [ ] Is DMARC at p=quarantine or p=reject (not indefinitely at p=none)?
|
|
172
|
+
- [ ] Is there a warm-up plan for any new IPs/domains (starting at 50/day)?
|
|
173
|
+
- [ ] Are bounce rate (<2%) and complaint rate (<0.1%) being monitored with alerts?
|
|
174
|
+
- [ ] Are hard bounces removed immediately and complaints suppressed?
|
|
175
|
+
- [ ] Is transactional email on a separate IP/subdomain from marketing?
|
|
176
|
+
- [ ] Is there a sunset policy for unengaged recipients (90-day inactivity)?
|
|
177
|
+
- [ ] Are real-time email validation and double opt-in implemented for new signups?
|