handoff
Skill0 starsChanged 4 months agoMITView on GitHub
Generate a structured session handoff document capturing progress, root causes, failed attempts, open issues, and next steps. Triggered by "generate handoff", "close session", "write handoff doc", "end of day", "EOD", "I'm done for today", "wrapping up", "switching tasks", "summarise what we did", "summarize progress", "session summary", "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
- 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 repository21 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- ci-cd-pipelineSkill
- requirements-synthesisSkill
- security-hardeningSkill
- spec-driven-developmentSkill
- workflow-from-chatsSkill
- architecture-decision-recordsSkill
- commit-history-auditSkill
- commit-messageSkill
- deslopSkill
- document-thisSkill
- env-drift-checkSkill
- minimal-diff-reviewSkill
- onboardingSkill
- pre-commit-checkSkill
- pr-review-canvasSkill
- pr-summarySkill
- release-readinessSkill
- requirements-qaSkill
- sync-docs-after-editSkill
- write-changelogSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
3
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 15
Before handing work to another developer or agent
- Distinctive: line 16
When pausing a multi-day task
- Very specific: line 17
After a commit completes successfully (see rules/agent-behavior.mdc § Session continuity) — a commit is a checkpoint worth protecting even …
- Distinctive: line 47
Write to two paths simultaneously:
- Very specific: line 106
If .cursor/session-handoff.md already exists from a prior session, overwrite it fully rather than appending — a stale entry left in place …
- Very specific: line 107
Don't write .cursor/session-handoff.md before checking .gitignore covers it — an uncommitted-but-untracked handoff file can end up …
“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
Purpose
Prevent context loss between agent or developer sessions. The handoff doc captures what happened, what was tried, what's unresolved, and what to do next — so the next session starts informed, not from scratch.
This is not a PR summary. It captures debugging context, failed attempts, and open questions that a diff cannot show.
When to run
- End of a long debugging or implementation session
- Before handing work to another developer or agent
- When pausing a multi-day task
- After a commit completes successfully (see
rules/agent-behavior.mdc§ Session continuity) — a commit is a checkpoint worth protecting even if the session ends without a goodbye
Steps
1. Gather session context
Run in parallel:
git log --oneline -10— recent commitsgit diff HEAD— any uncommitted changesgit status— working tree state
2. Review conversation history
Identify:
- What was the original goal?
- What was completed? (with file/line references where possible)
- What was attempted but failed? (include the reason it failed)
- What is still open or unresolved?
- What questions remain unanswered?
For every claim you're about to write down as "done" or "correct" — including your own — classify its evidence before writing it:
| Evidence level | What qualifies | Write it as |
| Verified | A test/build/lint actually ran and passed, or the user explicitly confirmed it ("yes that's right", "works now", approved the diff) | Stated as fact |
| Committed, not confirmed | The change was committed but nobody — human or test — actually checked the outcome is correct | Stated as fact, tagged (committed, unreviewed) |
| Unverified claim | You (the agent) asserted something was fixed/correct and the user simply moved on, changed topic, or didn't respond — no test, no explicit agreement | Listed separately under Unverified claims, never under "What was done" |
The user not objecting is not the same as the user confirming. If you proposed a fix and the conversation moved on without an explicit "yes" or a passing check, that fix is unverified — write it that way even if you privately believe it's correct.
3. Write the handoff document
Write to two paths simultaneously:
| Path | Purpose |
.cursor/session-handoff.md | Machine-readable — auto-injected at next session start |
HANDOFF.md (repo root) | Human-readable — shareable, committable |
Both files get identical content. .cursor/session-handoff.md is read at the start of the next session per the Session continuity section of rules/agent-behavior.mdc — the agent checks for this file directly, so it starts warm without the developer having to do anything even though the sessionStart hook that was meant to do the same thing is currently broken upstream in Cursor (see hooks/README.md).
# Handoff — <date>
## Goal
<One sentence: what this session set out to accomplish.>
## Status
<Completed / In Progress / Blocked>
## What was done
Only items with **Verified** or **Committed, not confirmed** evidence (see evidence table in SKILL.md). Nothing goes here on the strength of the agent's own belief alone.
- <bullet: file/feature changed and why> — `[verified: tests pass]` / `[verified: user confirmed]` / `[committed, unreviewed]`
- <cite files as `path/to/file.ts:line` where relevant>
## Unverified claims
Things asserted during the session (by the agent or otherwise) that were never independently confirmed — no test ran, no explicit user agreement. The next session should check these before building on them, not trust them.
- <claim> — <why it's unverified: e.g. "user changed topic before confirming"; "no test covers this path">
## What was attempted but did not work
| Approach | Why it failed |
|----------|--------------|
| <attempt> | <root cause or blocker> |
## Open issues
- [ ] <unresolved item — be specific>
- [ ] <open question that needs an answer>
## Recommended next steps
1. <concrete action with context>
2. <second action>
## Relevant files
- `<path>` — <one-line description of relevance>
## Skills that may help
- <skill-name> — <why relevant>4. Reference, don't duplicate
- Link to existing files rather than pasting their content.
- Reference commit SHAs for specific changes rather than re-describing the diff.
5. Report
Tell the user: both files written, key open issues, and recommended first next step. Remind them that .cursor/session-handoff.md will be auto-loaded at the next session start.
Output
.cursor/session-handoff.md— auto-injected next session (do not commit this file; add to.gitignore)HANDOFF.md— shareable summary for the team or future self
Gotchas
- If
.cursor/session-handoff.mdalready exists from a prior session, overwrite it fully rather than appending — a stale entry left in place gets re-injected at every future session start, misleading the next session about current state. - Don't write
.cursor/session-handoff.mdbefore checking.gitignorecovers it — an uncommitted-but-untracked handoff file can end up accidentally staged in a broadgit add. - "What was attempted but failed" needs the actual reason it failed, not just that it did — a handoff that says "tried X, didn't work" without the root cause forces the next session to redo the diagnosis.
- The single biggest way a handoff misleads the next session: recording an agent's own claim as fact because the user didn't push back on it. A user going quiet or changing the subject is not confirmation — it can just as easily mean they didn't notice, didn't understand, or silently disagreed and moved on. Anything without a test result or an explicit "yes" belongs under Unverified claims, not What was done — see the evidence table in Step 2.
- Resist the pull to upgrade an item's evidence level to make the handoff look more finished. "Committed, not confirmed" and "Verified" read very differently to the next session — don't blur them because the diff looks plausible.
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.

