/memfleet-skills:memfleet-publish-intentfrom memfleet-skills
Registers structural intent before editing in multi-agent sessions to surface blast radius and active conflicts, preventing wasted edits.
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.
Register a structural intent against a symbol BEFORE editing. Returns the precomputed blast radius (the propagation set of nodes implicated by your edit) and any conflicts already declared by other agents.
This is the first call in memfleet-safe-edit Step 2. Skipping it means you discover collisions at merge time instead of at intent time, which is exactly what MemFleet exists to prevent.
| Tool | Purpose |
|---|---|
publish_intent | Declare intent; get blast radius + active conflicts |
get_node_state | (Optional pre-call) inspect recent activity on the symbol first |
fleet_status | (Optional pre-call) confirm the broker is up and not in a conflict storm |
Parameter types: MCP parameters are strictly typed.
intent_kindMUST be a JSON object naming the variant ({"Refactor": {"pattern": "RenameSymbol"}}); a flat string like"Refactor(RenameSymbol)"is rejected. Numbers (ttl_ms) must be JSON numbers, not quoted strings.
Locate the symbol you are about to edit using whatever discovery tool your harness has:
find_symbol / find_code (they return the canonical NodeIdentity).grep for the qualified name. The symbol field is a free-form string the broker treats as the NodeIdentity.Choose the variant matching your planned edit:
| Variant | Use for |
|---|---|
Refactor { pattern: RenameSymbol | ExtractFunction | ... } | Structural rewrites that preserve behaviour |
FeatureAdd { surface: NewSymbol | NewField | NewEndpoint | ... } | Net-new functionality |
BugFix { defect: NullHandling | RaceCondition | OffByOne | ... } | Behaviour corrections |
Cleanup { kind: DeadCode | FormatOnly | Lint | ... } | Non-semantic tidying |
Performance { axis: Latency | Memory | Throughput | ... } | Optimisations |
SecurityFix { severity, cve? } | Security patches; CVE optional |
TestAdd { covers: [NodeIdentity] } | New tests covering specific symbols |
DocsOnly | Comments, docstrings, README — no semantic change |
Exploratory | Probe / scout / kickoff signals; not a real edit |
Pass the variant as JSON, never as a flat string.
publish_intentmcp__memfleet__publish_intent({
repo_id: "my-repo",
symbol: "UserRole",
intent_kind:{"Refactor": {"pattern": "RenameSymbol"}},
ttl_ms: 300000,
agent_id: "claude-code-session-42" // optional but recommended
})
Parameters:
repo_id — string, required. The repository the symbol lives in.symbol — string, required. The NodeIdentity (qualified name) of the target.intent_kind — JSON object, required. One of the variants above.ttl_ms — integer, required. How long the intent stays live without renewal. Default sane choice: 300_000 (5 minutes).reference_time — RFC3339 string, optional. Defaults to "now". Used for LWW arbitration on Class B.agent_id — string, optional. Helps fleet_status / get_node_state attribute the intent to a person/session.Success criteria: the broker returns intent_id, propagation_set, and active_conflicts (possibly empty).
{
"intent_id": "01H…",
"propagation_set": ["UserRoleRepo", "UserSessionService"],
"active_conflicts": []
}
| Field | Meaning |
|---|---|
intent_id | ULID. Save it — every subsequent record_episode references it. |
propagation_set | Nodes the broker thinks your edit will ripple into. Other agents on these nodes get a structural signal in their next get_node_state. |
active_conflicts | Empty = clear to edit. Non-empty = branch to memfleet-conflict-resolution. |
active_conflicts | Action |
|---|---|
| Empty | Proceed with the edit (next step in memfleet-safe-edit). |
| Non-empty | STOP. Branch to memfleet-conflict-resolution. Do not edit. |
| Situation | Action |
|---|---|
| You are about to touch multiple symbols | Publish one intent per symbol; collect all intent_ids before editing |
| The edit is exploratory (probe, hypothesis test) | Use intent_kind: "Exploratory" so others know it is not a real edit |
| You already published earlier this session and it timed out | Publish a fresh intent; TTL has expired so the prior intent is no longer in active_intents |
propagation_set is enormous (>50 nodes) | Consider splitting the intent into narrower scopes before proceeding |
| Multi-agent wave (leader/follower) | Encode the correlation tag in the intent surface — see memfleet-fleet-coordination |
| Mistake | Reality |
|---|---|
| Editing first, publishing after | The whole point is to detect conflicts BEFORE the wasted edit. Reverse the order. |
Passing intent_kind as a flattened string ("Refactor(RenameSymbol)") | Rejected by the schema. Use the JSON-object form. |
Quoting ttl_ms as a string ("300000") | Rejected; must be a JSON number. |
Using a Unix epoch for reference_time | RFC3339 only. Wrong format = silent fall-through to "now". |
Setting ttl_ms to a huge value "to be safe" | Long TTLs pin the intent and starve other agents. Pick the actual edit horizon (5–15 min typical). |
Ignoring propagation_set | Those are the nodes other agents will see flagged. Sanity-check that they make sense. |
Treating an Exploratory intent as "publishing nothing" | Exploratory still creates a NodeState entry — useful for later get_node_state introspection. |
This is the first MCP call in any coordinated edit. Pair with:
memfleet-safe-editmemfleet-node-statememfleet-record-episodememfleet-conflict-resolutionWhat SKILL.md sets; muted values are Claude Code's defaults
10 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-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-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.npx claudepluginhub syncable-dev/memfleet-public --plugin memfleet-skillsOther plugins' skills for the same job