handoff
Skill4 starsChanged 9 months agoMITView on GitHub
Preserve and restore cross-session work context via a compact repo-local `.handoff/handoff.md`. Use when the user says: hand off, wrap up, checkpoint, save progress, save where we are, continue later, continue from previous session, resume from handoff, pick up where we left off, what did we leave off, where we left off, read the prior handoff, read prior context, load handoff, load previous context, check the handoff file, last session, prepare the next session. Skill writes a handoff on end-of-session and reads it on start-of-session so a fresh agent can continue without re-discovery.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- xiaoxiaosrm/dsh-mattpocock-skillstheir own version, first seen Nov 8, 2026
- ethosagent/ethostheir own version, first seen Nov 8, 2026
- dsifry/metaswarmtheir own version, first seen Nov 8, 2026
- glebis/claude-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use decision-mapping, setup-ts-deep-modules 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.
FabienDehopreSkilldecision-mapping
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
Also in 8 projects that use this
liufeng1976Skillsetup-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 42 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 93 projects that use this
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 87 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 51 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 54 projects that use this
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- GreyDGL/PentestGPT★ 16ksame name
- ykdojo/claude-code-tips★ 10ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
181 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 repository3 other files it gives its agents.
- gitlab-self-hostedSkill
- recallSkill
- session-syncSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Create or consume a compact handoff document so another agent, another session, or future-you can continue the work quickly.
- Distinctive: line 17
Use this skill only when continuity is the goal.
- Very specific: line 27
When reading or writing handoff state, use .handoff/handoff.md unless the user explicitly specifies another path.
- Very specific: line 38
Default mode is ask: show the draft first, then write after approval.
- Distinctive: line 46
When the user uses any of these or a close variant:
- Very specific: line 48
Read .handoff/handoff.md if it exists.
- Distinctive: line 49
If it does not exist, say no handoff file was found and start fresh unless the user provides another path.
- Distinctive: line 51
Check alignment with the current user request.
- Distinctive: line 52
Verify before trusting: run lightweight checks such as current branch, git status --short, and spot-check 1-2 Key Files.
- Very specific: line 53
If aligned and current, continue from Next Steps.
- Distinctive: line 54
If stale or branch/files do not match, say what is stale and do targeted rediscovery only for the mismatched areas.
- Distinctive: line 60
When any of these apply:
- Very specific: line 70
If the user supplied arguments, treat them as the next session's intended focus and tailor Next Steps around that.
- Distinctive: line 72
Do not duplicate content already captured in plans, PRDs, ADRs, issues, commits, or reports.
- Distinctive: line 119
Do not include full file contents, long code snippets, tool transcripts, or verbose logs.
“Common” is measured: kept by at least 6 in 10 of the 172 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
Create or consume a compact handoff document so another agent, another session, or future-you can continue the work quickly.
Use this skill only when continuity is the goal. Do not use it for ordinary implementation, code review, or debugging unless the user asks to checkpoint or resume state.
Paths
Default handoff path:
.handoff/handoff.mdWhen reading or writing handoff state, use .handoff/handoff.md unless the user explicitly specifies another path.
Optional config:
handoff:
mode: ask # ask | yolo
include_git_diff: true
max_key_files: 20Default mode is ask: show the draft first, then write after approval. If config says yolo, write directly and report the path.
For reusable installs, keep the handoff file repo-local. Do not write to the skill directory itself.
Start Session
Trigger phrases (non-exhaustive): "resume", "continue", "continue from previous session", "pick up where we left off", "where we left off", "what did we leave off", "read the prior handoff", "check the handoff file", "load handoff", "load previous context", "what happened before", "last session".
When the user uses any of these or a close variant:
- Read
.handoff/handoff.mdif it exists. - If it does not exist, say no handoff file was found and start fresh unless the user provides another path.
- Summarize the handoff in 3-6 bullets: branch, goal, in-progress state, blockers, next steps.
- Check alignment with the current user request. If the handoff is about a different task, ask whether to use it or start fresh.
- Verify before trusting: run lightweight checks such as current branch,
git status --short, and spot-check 1-2 Key Files. - If aligned and current, continue from
Next Steps. Do not re-explore files already listed unless the handoff says they are uncertain or stale. - If stale or branch/files do not match, say what is stale and do targeted rediscovery only for the mismatched areas.
End Session
Trigger phrases (non-exhaustive): "hand off", "wrap up", "checkpoint", "save progress", "save where we are", "I'll continue later", "prepare the next session", "context is heavy". Also auto-suggest when context pressure is high without an explicit user trigger.
When any of these apply:
- Gather facts (handoff is self-sufficient — collect directly):
- Current branch and recent git state.
git status --short.git diff --statwhen useful.- Files read, created, edited, or important for the next session.
- Decisions, blockers, gotchas, failed attempts worth preserving.
- The user's original goal and any later scope changes.
- Optional shortcut: if
/ck:watzup(ClaudeKit paid skill) happens to have been run earlier in this conversation, reuse its summary as input forDone,In Progress,Next Steps,Decisions,Key Files, andVerification— distill, do not paste. Refresh missing/stale parts with targeted git checks. Do not require or invoke/ck:watzupif it was not already run.
- If the user supplied arguments, treat them as the next session's intended focus and tailor
Next Stepsaround that. - Draft a compact handoff using the template below.
- Do not duplicate content already captured in plans, PRDs, ADRs, issues, commits, or reports. Reference those artifacts by path or URL.
- In
askmode, show the draft and ask whether to save or adjust it. Inyolomode, write.handoff/handoff.mddirectly.
Template
# Handoff - [project or task name]
**Updated:** [real ISO 8601 timestamp]
**Branch:** [current branch]
**Focus:** [what the next session should continue]
**Context Pressure:** [low | medium | high]
## Goal
[One short paragraph. What outcome are we working toward?]
## In Progress
- [Current partial state, if any. Include exact file refs where useful.]
## Done
- [Completed work with file:line refs where useful.]
## Next Steps
1. [Most important next action, concrete enough to execute.]
2. [Second action.]
3. [Third action.]
## Blockers
- [External dependency, failing test, missing decision, or "None".]
## Decisions
- [Non-obvious choice and why.]
## Key Files
- `path/to/file` - why it matters; line ref if useful.
## Verification
- [Command/check run and result, or "Not run".]
## Open Questions
- [Unresolved question, or "None".]Quality Bar
- Target 30-80 lines, under roughly 1k tokens.
- Favor file paths and line references over pasted code.
- Do not include full file contents, long code snippets, tool transcripts, or verbose logs.
- Include only dead ends that prevent repeated mistakes.
Next Stepsmust be executable without reading the old chat.- A fresh agent should be able to start productive work within 2-3 tool calls after reading the handoff.
Optional SessionStart Hook
For automatic context injection in Claude Code, add a SessionStart hook that prints the handoff if present.
macOS / Linux (bash):
{
"hooks": {
"SessionStart": [
{
"type": "command",
"command": "if [ -f .handoff/handoff.md ]; then echo '--- PRIOR HANDOFF ---'; cat .handoff/handoff.md; echo '--- END PRIOR HANDOFF ---'; else echo 'No prior handoff.'; fi"
}
]
}
}Windows (PowerShell):
{
"hooks": {
"SessionStart": [
{
"type": "command",
"command": "powershell -NoProfile -Command \"if (Test-Path .handoff/handoff.md) { Write-Host '--- PRIOR HANDOFF ---'; Get-Content .handoff/handoff.md; Write-Host '--- END PRIOR HANDOFF ---' } else { Write-Host 'No prior handoff.' }\""
}
]
}
}For project-local hooks, add this to the project settings file. For global hooks, only use it if you are comfortable exposing the current repo's handoff at every new session start.
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.

