/memfleet-skills:memfleet-firstfrom memfleet-skills
Enforces the MemFleet coordination protocol in multi-agent sessions: publish_intent before edits, record_episode after. Saves tokens by replacing prose rationales with typed structural intents.
Ships in memfleet-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
IN A MULTI-AGENT SESSION → MEMFLEET TOOLS BEFORE EDITS. NO EXCEPTIONS.
1. publish_intent (declare structural intent, get blast radius + conflicts)
2. edit (your normal edit loop)
3. record_episode (classify A/B/C, update NodeState rollups for the fleet)
MemFleet is the coordination memory of the fleet, not a chat channel. Every edit is a typed structural event with a known blast radius. Skipping the protocol means silent collisions, overwrites at merge time, and the rest of the fleet wasting tokens re-reading work you already did.
A typed intent serializes to ~20 tokens. A prose rationale averages 200+. A 10-agent fleet × 100 edits = 90,000 tokens saved per fleet-turn when the protocol is followed.
MemFleet ships as a single MCP server consumed by every harness. The skill is harness-agnostic:
mcp__memfleet__publish_intent, etc.). All examples below use this prefix.fleet-cli for the same operations; the CLI mirrors every MCP tool one-to-one.MEMFLEET_STDIO=1 so the broker exposes the stdio MCP transport; otherwise it stays HTTP-only on :3040/mcp.If your harness lacks structured MCP-tool argument validation, pass enum variants as JSON (see Parameter Types below) — string-flattened forms like "Refactor(RenameSymbol)" will be rejected.
mcp__memfleet__fleet_status({ window_ms: 1_800_000 })
If the broker responds → MemFleet is active. Follow this skill for every coordinated edit.
If it does not respond → no broker registered for this session; offer to start one with memfleet start, then follow this skill.
| You are about to… | Call first | Then |
|---|---|---|
| Edit a specific symbol in a coordinated session | memfleet-publish-intent | memfleet-node-state if you want to scout activity first |
| Run the full safe-edit loop end-to-end | memfleet-safe-edit | done |
| Finish an edit and report it to the fleet | memfleet-record-episode | done |
| Check what the fleet is doing on a module | memfleet-node-state or memfleet-fleet-status | |
| Poll for new fleet activity | memfleet-query-episodes | or memfleet-subscribe for long sessions |
| Got back an active conflict / Class B/C payload | memfleet-conflict-resolution | |
| Orchestrate a multi-step fleet edit (leader/follower) | memfleet-fleet-coordination |
All MemFleet MCP tools are strictly typed (rmcp + schemars). Pass JSON numbers as numbers, enums as JSON objects with the variant name, timestamps as RFC3339 strings.
| Parameter | Correct | WRONG |
|---|---|---|
intent_kind | {"Refactor": {"pattern": "RenameSymbol"}} | "Refactor(RenameSymbol)" |
ttl_ms, last_n, window_ms, limit | ttl_ms: 300000 | ttl_ms: "300000" |
repo_id, symbol, agent_id | "my-repo" | my-repo (unquoted) |
reference_time | "2026-04-18T09:30:00Z" | "yesterday" / Unix epoch |
If you see failed to deserialize parameters: ..., it is almost always a string passed where the schema wants a number, an unquoted string, or a flattened enum.
If fleet_status returns zero active intents, it means you are the first agent in this 30-minute window — not that no protocol is needed. Run publish_intent anyway:
get_node_state call.record_episode updates the NodeState rollup for everyone, with O(1) reads downstream.Skipping the protocol on a "quiet" fleet is exactly how silent collisions show up two hours later when a second agent joins and re-edits the same symbol.
fleet_status (once per session) → confirm the broker is up.get_node_state on the symbol → who's been here recently?publish_intent → register, read propagation_set and active_conflicts.memfleet-conflict-resolution.record_episode → branch on the returned conflict_class.fleet_status({ window_ms: 1_800_000 }) → fleet-wide snapshot.get_node_state on each affected symbol → activity per node.dominant_intent is in-flight on your targets → wait or replan.subscribe(repo_id, { modules: [...] }) once at session start.query_episodes with a cursor if push is unavailable.You are violating this skill if you think:
| Thought | Reality |
|---|---|
| "It's a one-line change, skip publish_intent" | One-line changes still rename symbols. The fleet still needs to know. |
| "I'll just write a prose summary in the PR" | Prose ≠ structural signal. Other agents do not read your PR description. |
| "fleet_status is empty, no need" | Empty = you are first. Publish so the next agent sees you. |
| "I'll record_episode at the end of the day" | The NodeState rollup is what other agents read. Stale rollup = stale plans. |
"I don't see a subscribe notification, so nothing changed" | Phase-1 subscriptions are stub. Poll query_episodes with a cursor. |
| "I got a Class B 'lost' — I'll just retry blindly" | Read replan_hint. The winner may have renamed the target. |
| "I got a Class C — let me edit anyway and resolve at merge" | Class C means active callers will break. Coordinate, do not edit. |
| "MemFleet is a chat channel" | It is a structural event log. ~20 tokens per intent vs 200+ for prose. |
Skip MemFleet ONLY for:
fleet_status errors out → there is literally nothing to coordinate against.*.md, comments, log strings) where no other agent's plan depends on the line you touched. Use intent_kind: "DocsOnly" if you want the audit trail without the ceremony.For everything else, the protocol applies.
This is a process skill — it runs BEFORE any implementation, search, or refactoring skill. Pair it with:
memtrace-search (when Memtrace is also installed)memtrace-impactmemfleet-safe-editmemfleet-conflict-resolutionmemfleet-fleet-coordinationWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub syncable-dev/memfleet-public --plugin memfleet-skills10 skills in this plugin
/memfleet-conflict-resolutionAlways use when publish_intent returned a non-empty active_conflicts list, or when record_episode classified the result as Class B (you may have lost LWW) or Class C (blocked). Triggered by: 'publish_intent returned conflicts', 'I got a Class B and lost', 'Class C blocker_agent', 'who is blocking my edit', deciding whether to retry, replan, or escalate. Do not retry blindly on Class B without reading replan_hint, do not edit through a Class C — it will break active callers — and do not invent a prose 'rationale'; structural conflicts get structural resolutions./memfleet-fleet-coordinationUse when orchestrating a multi-step fleet edit: large refactors that span many symbols, leader-driven work split across follower agents, or any plan where one agent declares the shape and others execute leaf changes. Triggered by: 'coordinate the fleet on this refactor', 'split this work', 'I'm the leader, watch the followers', 'spread these renames across agents', leader/follower patterns. Do not start the leader phase without first checking fleet_status; do not let followers free-claim leaves without a correlation tag — you will not be able to aggregate results. Skip this skill for single-agent edits and small (≤ 3 symbol) changes where the safe-edit loop alone is enough./memfleet-fleet-statusAlways use as the once-per-session opener and as the periodic dashboard refresh. Returns active intents, open subscriptions, episode counts, and conflict counts split by class. Triggered by: 'how busy is the fleet', 'are there open conflicts', 'is anyone working on this repo', pre-release coordination check, leader pre-flight before a coordinated wave, periodic ops dashboard. Do not skip this call before launching a multi-symbol refactor — high class-B/C counts mean the wave will collide. Do not use it as a per-symbol query; for that use get_node_state./memfleet-node-stateAlways use to read current coordination state for a symbol — recent episodes, active intents, dominant intent, conflict density, Y-doc thread. Triggered by: 'is anyone working on X', pre-edit reconnaissance, checking fleet activity on a symbol, reading another agent's recent work, debugging why a publish_intent returned a conflict. Do not grep the codebase to figure out 'who edited this last' — the broker has a precomputed O(1) rollup. Do not call get_node_state in a tight loop expecting push semantics; for streaming, use subscribe./memfleet-publish-intentAlways use BEFORE modifying any symbol in a multi-agent session to register structural intent and surface blast radius + active conflicts. Triggered by: about to refactor / rename / delete / modify code, planning an edit, checking if another agent is working on the same area, pre-edit coordination, leader-driven multi-symbol waves. Do not edit first and publish after — the whole point is to surface conflicts BEFORE the wasted edit. Do not pass intent_kind as a flat string; it is a typed enum with a JSON-object shape./memfleet-query-episodesAlways use to search episodes across a repository filtered by node, intent type, conflict class, time range, or agent. Triggered by: 'what changed this morning', 'who last touched the auth module', 'show me the conflict inbox', 'did anyone try X recently', polling for new fleet activity when no subscription is registered, post-incident retrospective. Do not use it for per-symbol activity (get_node_state is cheaper) or for fetching a single known episode (use get_episode). Polling with query_episodes is the FALLBACK when subscribe push is unavailable; in Phase-2, prefer subscribe.Other plugins' skills for the same job