handoff
Skill0 starsChanged 4 months agoMITView on GitHub
Writes a session handoff to disk before a context reset — what's done, what changed, what was decided, what was ruled out, and the single next step — then tells you whether to /clear or /compact. Use when a session is getting long or slow, before compacting, at the end of a work block, or when handing work to another person or session. Trigger: "write a handoff", "save progress", "save state", "session is getting slow", "before I compact", "wrap up", "I'm stopping here".
195 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- obie/auto-handofftheir own version, first seen Oct 4, 2026
- jesse-merhi/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use which-skill, wait-what and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 5 projects that use this
AWSSkillwait-what
Stop. That last message did not land: re-pitch it.
Also in 51 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 41 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 20 projects that use this
RoentekSkillwriting-fragments
Writing, explore — mine raw fragments, no structure yet.
Also in 20 projects that use this
- +5 more from aws
- +1 more from Roentek
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- mattpocock/skills★ 335ksame name
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- davidondrej/skills★ 4.1ksame name
- compozy/compozy★ 2.8ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- anombyte93/prd-taskmaster★ 604same name
- stevesolun/ctx★ 588same name
185 more not listed
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.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- clickup-connectSkill
- decision-logSkill
- driverSkill
- executorSkill
- frontend-verifySkill
- investigateSkill
- resume-workSkill
- reviewerSkill
- server-connectSkill
- user-manualSkill
- workspace-initSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 136
Infer, don't interrogate: Use git state and the conversation.
- Very specific: line 138
Never modify code: If work is uncommitted, say so in What changed and leave it.
“Common” is measured: kept by at least 6 in 10 of the 167 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
Handoff — Write State Down Before You Lose It
Quality degrades as context grows, well before the window is full, and worst for information in the middle of a long session. The model summarising at the end is already impaired by the thing you are trying to escape.
So write the handoff deliberately, while judgment is intact — not when auto-compact fires.
HARD GATE: this skill writes one file. It does not change code, run tests, or commit.
The loop
/handoff → writes plans/handoffs/<date>-<slug>.md
→ tells you: /clear or /compact
you → run it
/resume-work → reads the newest handoff, you carry onYou run the reset, not this skill. /clear and /compact are REPL commands with no
tool behind them — no skill can invoke them. Anything claiming otherwise is guessing.
Step 1: Gather state
~/.claude/skills/handoff/scripts/gather-state.shReads branch, status, diff stat, staged stat, recent log, and files touched. If the script is missing, run the equivalents by hand — but prefer the script; it keeps its own output out of context.
Step 2: Write the file
Path is computed in bash, never assembled in the prompt — a title you pass through is untrusted input and the allowlist is what keeps it out of the shell.
~/.claude/skills/handoff/scripts/handoff-path.sh "<title>" # prints the safe path; use it verbatimFiles are append-only. Never overwrite an existing handoff, never delete one. Each save is a new file, and the sequence is the record.
Template:
---
branch: <branch>
date: <ISO 8601>
status: in-progress | blocked | complete
files_touched:
- <path>
---
# Handoff — <title> — <date>
## Where things stand
One paragraph. What is done, what is half-done.
## What changed
Files, commands run, config values set. Not "fixed the search".
## Decisions and why
The reasoning, not just the outcome.
## Ruled out
Approaches tried and rejected, and why.
## Blockers
Open questions, decisions needed from a human.
## Next step
One action, specific enough to start on cold.Ruled out is the section that matters
It is the one automatic summaries reliably lose, and its absence is exactly why a fresh
session cheerfully re-tries everything that already failed. If you write nothing else well,
write this well. An empty Ruled out on a session that hit dead ends is a bug in the
handoff, not a clean run.
Next step must be startable cold
"Continue the refactor" is not a next step. "Add the tenant_id filter to
app/api/search.py:88, then run pytest tests/test_search.py" is.
Step 3: Tell the user which reset to run
Pick from what happens next, and say which and why:
| Next work | Command | Why |
| Same thread, context is just noisy | /compact | Keeps continuity; drops tool output and dead ends |
| New task, or the session is tangled | /clear | A fresh window plus the handoff beats a summary of a mess |
| Stopping for the day | /clear | Tomorrow's session starts from the file, not from a stale summary |
Rule of thumb: compact when the thread still matters, clear when it doesn't. If you have already compacted once in this session and it is slow again, clear — a summary of a summary is where detail goes to die.
Then print:
HANDOFF WRITTEN
File: plans/handoffs/<file>
Branch: <branch>
Files: <n> touched
Status: <status>
→ Run /clear (or /compact), then /resume-workRules
- Infer, don't interrogate. Use git state and the conversation. Ask only if the title genuinely can't be inferred.
- Never modify code. If work is uncommitted, say so in
What changedand leave it. - Record failures honestly. A handoff that only lists wins sends the next session into the same wall.
- Always include the branch. Cross-branch resume depends on it.
- Don't summarise tool output. Point at the file or the command. The next session can re-run it more cheaply than it can read your paraphrase.
When not to use this
Short sessions that ended cleanly with everything committed. git log is already the
handoff. Writing one for a two-commit session is ceremony.
Related
/resume-work— reads the newest handoff and restores working context- Long-running plans have their own state in
plans/{slug}/state/— this is for the session narrative around them, not a replacement
<sub>Script paths above assume a user-level install (~/.claude/skills/). Installed as a
plugin or per-project, the scripts still sit beside this file — swap the prefix for
${CLAUDE_PLUGIN_ROOT}/skills/handoff or .claude/skills/handoff respectively.</sub>
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.

