/memfleet-skills:memfleet-node-statefrom memfleet-skills
Reads precomputed coordination state for a symbol: recent episodes, active intents, dominant intent, conflict density, and Y-doc thread. Use before editing any symbol you didn't write.
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.
Read the precomputed NodeState rollup for a symbol. One call returns:
dominant_intent (most-recent, most-impactful)conflict_density — how often edits collide hereThis is the query that replaces "read 500 lines of prose context from other agents". Use it before touching any symbol you did not edit yourself in this session.
| Tool | Purpose |
|---|---|
get_node_state | Rollup + top-N recent episodes (O(1), precomputed by record_episode) |
ydoc_read | Full Y-doc thread + current NodeState blob (richer; use when you need history) |
Parameter types: MCP parameters are strictly typed.
last_nMUST be a JSON number, not a quoted string.repo_idandsymbolare required string fields.
symbol is a NodeIdentity — usually the qualified name (UserRoleRepo.find, payments::charge). The broker treats it as an opaque string keyed by (repo_id, symbol).
get_node_statemcp__memfleet__get_node_state({
repo_id: "my-repo",
symbol: "UserRole",
last_n: 5
})
Parameters:
repo_id — string, required.symbol — string, required. NodeIdentity.last_n — integer, optional. How many recent episodes to include. Default 10, cap 50.Success criteria: the broker returns dominant_intent, active_intents[], recent_episodes[], conflict_density.
| Field | Means | Action |
|---|---|---|
dominant_intent: null | Nothing in flight | Safe to publish_intent and edit |
dominant_intent is Refactor(RenameSymbol) and your plan is another rename | Active rename in progress | Wait or replan; do NOT publish a competing rename |
dominant_intent is your own from earlier this session | You already scouted | Skip Step 1 of safe-edit; go straight to publish |
active_intents.len() > 1 | Multiple agents in scope | Read each; expect contention |
conflict_density high (e.g. > 0.3) | Hot battleground | Use a shorter ttl_ms on your publish_intent to release fast |
recent_episodes[0].conflict_class == "C" | Last edit was blocked | Investigate before adding more pressure |
For full history including the CRDT operations, call ydoc_read:
mcp__memfleet__ydoc_read({
repo_id: "my-repo",
symbol: "UserRole"
})
Returns the full Y-doc thread (every CRDT op against the symbol) plus the current NodeState rollup blob. Heavier than get_node_state — use only when you need the operation-level history.
| Situation | Action |
|---|---|
| About to edit an unfamiliar symbol | Call get_node_state first; it's O(1), no excuse to skip |
| About to edit a symbol you edited 5 minutes ago | Skip — your own state is fresh |
| Need to know "who is editing X right now" | active_intents + their agent_id field |
Debugging a publish_intent conflict | active_intents shows exactly who is in scope |
| Polling for new activity on a single symbol | get_node_state works but is wasteful; prefer memfleet-subscribe |
| Need the full operation log, not just rollup | ydoc_read |
| Mistake | Reality |
|---|---|
| Grepping the codebase to find "who last touched X" | The broker has a precomputed rollup. get_node_state is one call. |
Calling get_node_state in a busy poll loop | NodeState is precomputed and cheap, but for streaming use subscribe instead — push beats poll. |
Treating dominant_intent: null as "no one is working here ever" | It means no in-flight intent. Recent episodes still tell you who was here. |
Quoting last_n as a string | Must be a JSON number. |
Using ydoc_read when you only need the rollup | get_node_state is much cheaper. Reserve ydoc_read for full history. |
Passing a file path as symbol | symbol is a NodeIdentity (qualified name). File paths are not stable across renames. |
get_node_state is O(1) — the rollup is precomputed by record_episode, not recomputed on read. There is no cost to calling it on hot paths like Step 1 of every safe-edit. The whole point is that reads are free; the work happens once at write time.
This is a lookup skill — typically the first MCP call in a safe-edit. Pair with:
memfleet-safe-editmemfleet-publish-intentmemfleet-subscribememfleet-fleet-statusWhat SKILL.md sets; muted values are Claude Code's defaults
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-firstAlways use FIRST in any multi-agent session before reading code, planning a refactor, or making an edit on a repo with a registered MemFleet broker. Triggered by: 'I'm about to edit X', 'rename Y across the fleet', 'plan this refactor', joining a running fleet session, coordinating with other agents, prose hand-offs between agents. Do not write a prose rationale for an edit, do not grep for 'who else might be touching this', and do not skip publish_intent because 'it's just a small change'. Empty fleet_status is not permission to skip the protocol — it just means you're the first agent in this window. Skip ONLY for solo-agent sessions with no broker registered or for pure docs-only edits where coordination has zero value./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-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