handoff
Skill4 starsChanged 5 months agoMITView on GitHub
Produces an EXHAUSTIVE session handoff written to docs/ai-context/HANDOFF.md so a future person or a fresh Claude session with ZERO context can resume the work without asking anything (timeline, files changed, decisions + rationale, failed approaches, glossary, exact current state, next steps). Use when the user explicitly asks to "hand off", "dump the context", "write a handoff", "save the session for later", or "create HANDOFF.md". NOT for: loading/resuming a prior handoff (use the load-handoff skill), generating general documentation (use the generate-docs skill), or a quick status summary — and do NOT auto-invoke to write HANDOFF.md unless the user explicitly asks for a handoff.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 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
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 repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analytics-cleanerSkill
- apply-review-feedbackSkill
- architect-designSkill
- battle-tested-patternsSkill
- code-deletionSkill
- code-simplifierSkill
- consensus-boardSkill
- context-implementSkill
- deep-reviewSkill
- deliberate-thinkingSkill
- design-brainstormSkill
- exhaustive-testingSkill
- generate-docsSkill
- load-handoffSkill
- meticulous-code-reviewSkill
- optimizeSkill
- refactorSkill
- reflectSkill
- regression-safety-netSkill
- scope-creep-preventionSkill
- senior-reviewSkill
- ship-featureSkill
- subagent-buildSkill
- systematic-debuggingSkill
- test-first-developmentSkill
- verification-before-completionSkill
- verify-claimsSkill
- write-plansSkill
- write-promptSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
0
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
- Very specific: line 106
If you need to confirm the current state of any file, read it with Read.
- Very specific: line 107
If git was discussed, run the minimum commands with Bash.
- Very specific: line 108
Read references/handoff.md and fill the template with REAL content (no placeholders).
- Very specific: line 109
Write docs/ai-context/HANDOFF.md with Write (overwrite if it exists).
- Very specific: line 112
To load this handoff in a new session: run /swe-skills:load-handoff.
“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
Exhaustive Session Handoff
Prerequisite: Read the project's
CLAUDE.mdfirst (if present). Confirm with "CLAUDE.md read". Language of the generated HANDOFF.md: your project's working language — be consistent, never mix languages. Destination:docs/ai-context/HANDOFF.md(always overwrite — the git log preserves history). Load-bearing: BEFORE updating an existing HANDOFF.md you MUST read it first.
Purpose
Generate a document that lets another person or another Claude session WITH NO prior context understand EVERYTHING that happened in this session and continue from exactly where it was left off, without having to ask the user anything.
Target audience: someone who knows NOTHING about the project, does NOT know the jargon, does NOT know what was discussed or decided. Reading ONLY the HANDOFF.md, they must be able to resume the task in under 5 minutes.
Anti-patterns (DO NOT do this)
| Anti-pattern | Why it's forbidden |
"Files Modified: auth.py" without explaining what changed or why | The reader doesn't know what changed or the motivation |
| "Approach failed" without saying what was tried, the error, and why it was discarded | Risk of repeating the same failed attempt |
| Empty bullet lists like "- [Task 1]" with no real content | The template is not the output: fill it with real content |
| Assuming the reader knows internal jargon (tenant IDs, message queue, graph DB, LLM provider) | Define each technical term the first time it appears |
| Summarizing conversations like "the user asked for X" while omitting refinements | Every change of direction from the user must be recorded |
| Skipping the "why" of a technical decision | Without the why, the next session will undo the decision |
| Generating HANDOFF.md without having actually read the modified files | Verify before asserting — use Read on the key files |
Generation protocol
Step 1: RECONSTRUCT THE TIMELINE
Review the full conversation from the user's first message to the last. Identify: the user's initial request (verbatim, not paraphrased), each refinement/change of course, each question Claude asked and its answer, and each technical decision Claude made autonomously (what it was, what alternatives were discarded, why).
Step 2: REAL INVENTORY OF CHANGES
For each file touched: (1) Read the current file to confirm its final state; (2) if in
doubt versus disk, run git diff <file> or git log -p -1 <file>; (3) document absolute
path, lines touched, what changed, why, and which project pattern/convention was followed.
Step 3: GIT CONTEXT (ONLY IF RELEVANT)
Do NOT capture git context automatically. Include it only if the conversation
discussed commits/branches/merges/conflicts/PRs, or the user is mid-way through an
uncommitted multi-file change that affects the continuation. If it applies, run the
minimum: git status --short, git branch --show-current, git log --oneline -5.
Step 4: EXTRACT DECISIONS AND FAILED APPROACHES
For each decision: what was chosen, alternatives considered, rationale (cite evidence). For each failed approach: what was tried, the real error message (not paraphrased), the root cause, and the lesson (what NOT to try again).
Step 5: DOMAIN GLOSSARY
List every technical term, acronym, service name, ID, or project concept in the handoff. Define each in 1 line so the novice reader doesn't get lost.
HANDOFF.md template
The full 14-section template (executive summary, original request, project context,
glossary, timeline, files, commands, decisions, failed approaches, current state, git
context, next steps, warnings, quick references) lives in references/handoff.md. Read
it, fill every section with REAL content, and write the result to docs/ai-context/HANDOFF.md.
Checklist before saving
- Every template section has real content (no
<...>placeholders left) - Each modified file has WHAT + WHY + verification
- Each technical decision has alternatives + rationale
- Each failed approach has root cause + lesson
- The glossary defines every technical term mentioned
- The next step is actionable without ambiguity
- A reader with no context can understand it in under 5 minutes
- The whole document is in one consistent language
- No phrases like "the user probably wanted" — everything is verified
Execution
- Review the full conversation of this session.
- If you need to confirm the current state of any file, read it with
Read. - If git was discussed, run the minimum commands with
Bash. - Read
references/handoff.mdand fill the template with REAL content (no placeholders). - Write
docs/ai-context/HANDOFF.mdwithWrite(overwrite if it exists). - Confirm to the user: file path + line count + how to load it.
To load this handoff in a new session: run /swe-skills:load-handoff.
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.

