agent-handoff
Skill0 starsChanged 5 months agoMITView on GitHub
Create, validate, and resume structured handoff documents that let another AI agent continue work without hidden conversation context. Use when pausing or transferring unfinished work, approaching a context limit, switching agents or sessions, reporting a blocker, recovering after interruption, resuming from HANDOFF.md, or auditing a handoff for evidence, actionable next steps, secret leakage, and unsupported completion claims.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- L3DigitalNet/Claude-Code-Pluginstheir own version, first seen Aug 31, 2026
- hams-ollo/zen-agent-skillstheir own version, first seen Aug 31, 2026
- sht5/skillstheir own version, first seen Aug 14, 2026
- WeirdSky924/agent-handoff-skilltheir own version, first seen Aug 14, 2026
- NITISH-R-G/agent-memory-protocoltheir own version, first seen Aug 1, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- WeirdSky924/agent-handoff-skill★ 29same name
- suyashb734/cliagents★ 19same name
- L3DigitalNet/Claude-Code-Plugins★ 8same name
- hams-ollo/zen-agent-skills★ 2same name
- Lutren/agent-handoff-protocol★ 2same name
- Wh0FF24/whoff-agents★ 2same name
- aprameyak/coding-skills★ 1same name
- NITISH-R-G/agent-memory-protocol★ 1same name
- ccpowerpack/claude-code-skills★ 0same name
- sht5/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 15 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create a compact, evidence-based continuation packet.
- Distinctive: line 12
Treat repository state, files, command output, and external records as evidence.
- Distinctive: line 16
Never copy secrets, credentials, session tokens, private keys, or unnecessary personal data into a handoff.
- Distinctive: line 17
Do not label work complete without verification evidence.
- Very specific: line 18
Use None — <reason> or Unknown — <how to resolve> instead of leaving a required field blank.
- Very specific: line 46
Prefer HANDOFF.md in the active project root unless the user or repository specifies another location.
- Distinctive: line 59
Write for a cold reader:
- Distinctive: line 61
Use paths, URLs, issue numbers, branch names, and commands instead of phrases such as "the file" or "the test."
- Distinctive: line 68
Read references/handoff-format.md when a field is unclear, when adapting the format, or when reviewing status and evidence semantics.
- Distinctive: line 86
Run the validator first, then inspect semantic accuracy against live state:
- Distinctive: line 99
No secret or sensitive data is present.
- Distinctive: line 105
Read the entire handoff and any directly referenced artifact required for the first action.
- Distinctive: line 106
Verify the workspace, branch, revision, working-tree state, and relevant external state.
- Distinctive: line 108
Stop and surface a conflict when continuing could overwrite work, exceed authorization, or act on stale external state.
- Distinctive: line 110
Update the handoff after material progress if another transfer is likely.
- Distinctive: line 112
Do not repeat completed work merely because the original conversation is unavailable.
- Distinctive: line 116
Use exactly one status:
- Very specific: line 123
Prefer ready-for-review over complete when a human decision remains.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Handoff
Create a compact, evidence-based continuation packet. Make the handoff useful to an agent that can access the artifacts but cannot see the current conversation.
Preserve the contract
- Treat repository state, files, command output, and external records as evidence. Do not treat memory as evidence.
- Separate verified facts from inferences and unknowns.
- Record the smallest exact next action that can restart progress.
- Preserve user intent, scope, constraints, and outstanding commitments.
- Never copy secrets, credentials, session tokens, private keys, or unnecessary personal data into a handoff.
- Do not label work complete without verification evidence.
- Use
None — <reason>orUnknown — <how to resolve>instead of leaving a required field blank.
Choose an operation
- Create or update: Capture work so another agent or session can continue it.
- Validate: Audit an existing handoff for missing, vague, unsafe, or unsupported claims.
- Resume: Reconstruct the task from a handoff and compare it with live state before acting.
Create or update a handoff
1. Reconstruct live state
Inspect the artifacts directly. Collect only information relevant to continuation:
- Original goal and measurable success criteria
- Authorized scope and explicit constraints
- Workspace, repository, branch, revision, and relevant external identifiers
- Modified, staged, untracked, committed, or published artifacts
- Work completed and work still outstanding
- Decisions, rationale, rejected approaches, and reversal conditions
- Verification commands and their exact summarized results
- Blockers, risks, failed attempts, and unresolved unknowns
- The first action the next agent should take
For a Git workspace, inspect at least the current branch, revision, working-tree status, and relevant diff. Do not run commands that mutate state merely to prepare a handoff.
2. Create the document
Prefer HANDOFF.md in the active project root unless the user or repository specifies another location. Seed the required structure with:
python scripts/create_handoff.py \
--output HANDOFF.md \
--goal "Ship the requested change with passing checks" \
--next-action "Inspect the failing authentication test"Resolve script paths relative to this skill directory, not the user's current directory. The generator records Git context when available and refuses to overwrite a file unless --force is supplied.
3. Replace every placeholder
Write for a cold reader:
- Use paths, URLs, issue numbers, branch names, and commands instead of phrases such as "the file" or "the test."
- Summarize results; do not paste large logs or diffs. Point to durable artifacts when detail matters.
- Mark each file or artifact with its state and why it matters.
- Record failed attempts only when they prevent repeated work or reveal a constraint.
- Make the first next action atomic and executable. Put later actions in dependency order.
- Include a retrieval method for external state without embedding credentials.
Read references/handoff-format.md when a field is unclear, when adapting the format, or when reviewing status and evidence semantics.
4. Validate before transfer
Run:
python scripts/validate_handoff.py HANDOFF.md --strictFix every error. Fix warnings or explain why the exception is accurate in the handoff. Re-run validation after edits.
5. Transfer explicitly
Tell the recipient where the handoff is and state its status. Do not claim that another agent has received or resumed it unless that transfer was verified.
Validate an existing handoff
Run the validator first, then inspect semantic accuracy against live state:
python scripts/validate_handoff.py path/to/HANDOFF.md --strictCheck that:
- The recorded branch, revision, file states, and external identifiers still exist.
- Verification results name a command or durable artifact and distinguish pass, fail, and not run.
- A
completehandoff has checked success criteria and successful evidence. - Unknowns include a concrete resolution method.
- The next action remains valid after any state drift.
- No secret or sensitive data is present.
Report discrepancies; do not silently rewrite the source of truth unless the user asked for an update.
Resume from a handoff
- Read the entire handoff and any directly referenced artifact required for the first action.
- Verify the workspace, branch, revision, working-tree state, and relevant external state.
- Compare live state with the snapshot. Classify differences as expected progress, harmless drift, or a conflict.
- Stop and surface a conflict when continuing could overwrite work, exceed authorization, or act on stale external state.
- Otherwise execute the first valid next action and continue toward the recorded success criteria.
- Update the handoff after material progress if another transfer is likely. Preserve prior decisions that still constrain the work.
Do not repeat completed work merely because the original conversation is unavailable. Do not assume the handoff grants authority for publishing, deletion, deployment, messaging, purchases, or other consequential actions.
Status vocabulary
Use exactly one status:
in-progress: Work can continue and an actionable next step exists.blocked: Progress requires named user input, permission, dependency, or external state.ready-for-review: Implementation is done and evidence is recorded; review or approval remains.complete: Every success criterion is met and supported by verification evidence.
Prefer ready-for-review over complete when a human decision remains.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

