/the-workflow:handoff [self|teammate]from the-workflow
Triage a conversation into a standalone transfer document capturing decisions, constraints, resource identifiers, verification state, and remaining work for session restarts or teammate handoffs.
Ships in the-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A handoff document is a prompt. The receiver has no access to this conversation, so everything it needs must be on the page — and everything it does not need competes with what it does.
$mode selects the receiver. Empty means self.
Two passes, in this order. A single pass sorts for precision and loses the subtle context that turns out to be load-bearing — which is the documented failure of aggressive compaction.
Keep — state that does not survive the boundary any other way:
Drop — noise in transfer:
A failed attempt is a decision, not exploration. It belongs under Decisions with the reason it failed, whenever that reason still constrains the remaining work. Drop only the attempts that constrain nothing.
Do not reconstruct what compaction took. A handoff usually runs late, when part of the conversation is already summarized. Where the detail is gone, write what is known and mark the gap — a confident reconstruction is the one failure the receiver cannot detect.
Produce a markdown document. Omit any section with no content; an empty header is noise.
Open with the state grade. It is the first thing both readers hit — the user scanning before they paste, and the agent reading before it acts — and it decides what the receiver does first.
# Handoff: [task name]
**State: clean | watch | blocked** — [one clause: why, and what it forces first]
## Context
[1-2 sentences: what this work is and where it stands]
## Decisions
- [decision]: [rationale]
## Constraints
- [constraint]: [why it matters]
## External Resources
- [resource type]: [identifier or URL]
## Remaining Work
1. [highest-priority next step]
2. [subsequent steps]
## Contingencies
- If [condition the receiver will hit]: [what it means and what to do]
## Verification State
- [what was checked, and the result]
- [what was not checked]
## Open Questions
- [question]: [what is needed to resolve it]
---
Before acting: restate the task, the state grade, and your first step in two or three sentences, and name anything in
this document that is ambiguous or contradicts what you find. Then proceed without waiting for confirmation.
In teammate mode, add these three sections before Decisions:
## Codebase Orientation
- [file or directory]: [relevance to this task]
## Skills and Tools
- [skill or tool]: [why the receiver needs it]
## Conventions
- [convention]: [where it is documented]
Target 500-2000 tokens. When the work is larger than that:
If Decisions or Remaining Work comes out empty after real work was done, the triage missed something. Re-read the conversation rather than emitting the document.
What SKILL.md sets; muted values are Claude Code's defaults
Run before work crosses a context boundary — a session restart, a delegation to a teammate, an async resumption, or a compaction that will take the detail behind the current state with it. Also worth running once a session has grown long enough that the next compaction is close, while the reasoning is still recoverable. Covers the transfer document only: it reads this conversation and gathers nothing new.
Three short reads, in order
handoff, session-transfer, context-preservation, documentation
3 skills in this plugin
/claude-mdWrite and maintain CLAUDE.md and `.claude/rules/` files: which layer loads when, what content belongs in each, and why a stated rule gets ignored./debriefHarvest corrections from Claude Code sessions and auto memory, and write each lesson that outlives its task into the instruction file, permission rule, or hook it belongs in, after the user approves it.npx claudepluginhub xobotyi/cc-foundry --plugin the-workflowOther plugins' skills for the same job