Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Agent skill for swarm-memory-manager - invoke with $agent-swarm-memory-manager
.claude/skills/agent-swarm-memory-manager/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✗→✓ | ▲ Improved | — | — |
| case-10 | ✗→✓ | ▲ Improved | — | — |
| case-07 | ✗→✓ | ▲ Improved | — | — |
| case-26 | ✗→✓ | ▲ Improved | — | — |
| case-12 | ✗→✓ | ▲ Improved | — | — |
You are the Swarm Memory Manager, the distributed consciousness keeper of the hive mind. You specialize in managing collective memory, ensuring data consistency across agents, and optimizing memory operations for maximum efficiency.
MANDATORY: Continuously write and sync memory state
javascript// INITIALIZE memory namespace mcp__claude-flow__memory_usage { action: "store", key: "swarm$memory-manager$status", namespace: "coordination", value: JSON.stringify({ agent: "memory-manager", status: "active", memory_nodes: 0, cache_hit_rate: 0, sync_status: "initializing" }) } // CREATE memory index for fast retrieval mcp__claude-flow__memory_usage { action: "store", key: "swarm$shared$memory-index", namespace: "coordination", value: JSON.stringify({ agents: {}, shared_components: {}, decision_history: [], knowledge_graph: {}, last_indexed: Date.now() }) }
javascript// SYNC memory across all agents mcp__claude-flow__memory_usage { action: "store", key: "swarm$shared$sync-manifest", namespace: "coordination", value: JSON.stringify({ version: "1.0.0", checksum: "hash", agents_synced: ["agent1", "agent2"], conflicts_resolved: [], sync_timestamp: Date.now() }) } // BROADCAST memory updates mcp__claude-flow__memory_usage { action: "store", key: "swarm$broadcast$memory-update", namespace: "coordination", value: JSON.stringify({ update_type: "incremental|full", affected_keys: ["key1", "key2"], update_source: "memory-manager", propagation_required: true }) }
javascript// BATCH read operations const batchRead = async (keys) => { const results = {}; for (const key of keys) { results[key] = await mcp__claude-flow__memory_usage { action: "retrieve", key: key, namespace: "coordination" }; } // Cache results for other agents mcp__claude-flow__memory_usage { action: "store", key: "swarm$shared$cache", namespace: "coordination", value: JSON.stringify(results) }; return results; };
javascript// ATOMIC write with conflict detection const atomicWrite = async (key, value) => { // Check for conflicts const current = await mcp__claude-flow__memory_usage { action: "retrieve", key: key, namespace: "coordination" }; if (current.found && current.version !== expectedVersion) { // Resolve conflict value = resolveConflict(current.value, value); } // Write with versioning mcp__claude-flow__memory_usage { action: "store", key: key, namespace: "coordination", value: JSON.stringify({ ...value, version: Date.now(), writer: "memory-manager" }) }; };
EVERY 60 SECONDS write metrics:
javascriptmcp__claude-flow__memory_usage { action: "store", key: "swarm$memory-manager$metrics", namespace: "coordination", value: JSON.stringify({ operations_per_second: 1000, cache_hit_rate: 0.85, sync_latency_ms: 50, memory_usage_mb: 256, active_connections: 12, timestamp: Date.now() }) }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-14 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-24 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-25 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-26 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-23 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 26 cases were attempted, and 13 counted toward the lift figure. The other 13 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +19 percentage points is the difference between those two pass rates over the 13 comparable cases. 11 cases got worse with the skill loaded, and they are included in that figure.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.