handoff
Skill2 starsChanged 10 days agoBSD-3-ClauseView on GitHub
Write a handoff document and persist key learnings to memory so the next agent (or future session) can continue this work without re-discovering context.
191 other projects use a version of this, 77 of them edited.
Adopted by
Most recently taken up by
- quickchatai/quickreviewedited, first seen Nov 15, 2026
- HiteSit/real-scientist-skillsedited, first seen Nov 15, 2026
- alexj11324/Mikkaedited, first seen Nov 15, 2026
- QiYueran-source/waymarkedited, first seen Nov 15, 2026
- xiaoxiaosrm/dsh-mattpocock-skillsedited, first seen Nov 8, 2026
- ethosagent/ethostheir 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 · 77
- mattpocock/skills★ 309k13% same
- QuivrHQ/quivr★ 40k13% same
- The-Vibe-Company/quivr★ 40k13% same
- GreyDGL/PentestGPT★ 16k14% same
- ArcReel/ArcReel★ 6.3k13% same
- withcoral/coral★ 4.9k13% same
- bestofjs/bestofjs★ 3.1k13% same
- compozy/compozy★ 2.9k13% same
- bholmesdev/hubble.md★ 1.5k14% same
- CelestoAI/SmolVM★ 1.2k13% same
67 more not listed
Wrote their own version · 114
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- davidondrej/skills★ 4.3ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- skforecast/skforecast★ 1.5ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 940same name
- JordanCoin/codemap★ 710same name
104 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 repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- mods/CLAUDE.mdCLAUDE.md
- webkit/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- askSkill
- golang-proSkill
- golang-styleSkill
- harvestSkill
- humanizerSkill
- loomSkill
- presentSkill
- upgrade-noteSkill
- worklogSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Create a handoff so work survives a context reset.
- Distinctive: line 15
Read the full conversation: what was the goal, what happened, what's left.
- Distinctive: line 16
If a prior handoff document was fed into this session, carry its still-relevant context forward.
- Distinctive: line 20
Before writing the handoff document, save what future sessions should know, even ones that never read the handoff file.
- Distinctive: line 31
Write the handoff file with these sections:
- Distinctive: line 60
If the user passed arguments, treat them as a description of what the next session will focus on.
- Distinctive: line 67
Tell the user what was saved: After writing, report the handoff file path (so they can pass it to the next session) and one line per entry …
“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
Create a handoff so work survives a context reset. The user will open a brand new Claude Code session and feed it the handoff document; that document is the only bridge. Anything not in the handoff or in durable memory is lost.
Save the handoff to a durable, agent-agnostic directory, not the workspace: ~/.handoff/handoff-<project>-<YYYYMMDD-HHMM>.md (create the directory with mkdir -p if needed). ~/.handoff/ is shared across every coding agent, so a handoff written by one agent can be picked up by another (Claude Code, Codex, opencode, pi). Don't use $TMPDIR or /tmp: macOS prunes them, so a handoff left there is gone by the time the next session needs it. Never write it into the repo, and never write it under a single agent's private state directory (e.g. ~/.claude/).
Steps
1. Gather context
- Read the full conversation: what was the goal, what happened, what's left.
- If a prior handoff document was fed into this session, carry its still-relevant context forward. Don't lose the chain.
2. Persist learnings to memory
Before writing the handoff document, save what future sessions should know, even ones that never read the handoff file. Each fact goes to the one store that owns it. When the agent's global config defines memory routing, follow it; otherwise route like this:
- A preference, a correction, or a fact every agent needs (how the user wants work done, a tool or machine fact): the shared agent-memory store at
~/.config/agent-memory/. Write one fact per file and add a line to itsMEMORY.mdindex. - A fact about one repo (a build gotcha, an ordering rule, a declined design): that repo's docs or
CLAUDE.md, where the next agent in the repo reads it anyway. - Progress on the task (where it stands, what comes next): the worklog item for the ticket or topic, through the
worklogskill. - A project or harness gotcha the repo does not record (how the code behaves at run time, a quirk of the coding agent itself): the agent's own auto-memory, and only that.
Never save a recap of shipped or resolved work, in any store: the tracker, the worklog and git history already hold it. Skip the step when nothing non-obvious was learned. Before adding an entry, read the target store's index and update an existing entry instead of writing a near-copy. State only the next session needs goes in the handoff document.
3. Write the handoff document
Write the handoff file with these sections:
# Handoff
## Goal
What we're trying to accomplish: the top-level objective.
## Current Progress
What's been done so far. Reference artifacts (PRs, commits, files, issues) by path or URL; don't duplicate their content. Link issues by their tracker key, whichever tracker the project keys on.
## What Worked
Approaches and strategies that succeeded, so the next agent repeats them.
## What Didn't Work
Approaches that failed and why, so the next agent doesn't retry them.
## Key Decisions
Decisions made during this session and their rationale.
## Suggested Skills
Skills the next agent should invoke to continue effectively (e.g. /golang-pro, /work-on, /ios-dev).
## Next Steps
Concrete action items for the next session, ordered by priority.4. Tailor to arguments
If the user passed arguments, treat them as a description of what the next session will focus on. Emphasize the sections most relevant to that focus and add specific guidance for it.
Rules
- Redact sensitive data. Strip API keys, passwords, tokens, and PII before writing.
- Reference, don't repeat. Link to PRDs, plans, ADRs, issues, commits, and diffs by path or URL. The handoff should be a map, not a copy.
- Stores are for durable facts, the handoff is for session state. A user preference goes in shared memory and a decision's rationale in the repo's docs. A list of "files left to edit" goes in the handoff doc.
- Tell the user what was saved. After writing, report the handoff file path (so they can pass it to the next session) and one line per entry written or updated, naming its store.
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.

