handoff
Skill9 starsChanged 3 months agoMITView on GitHub
Workflow for compacting the current conversation into a handoff document that another Claude Code session can pick up from later. Produces a single Markdown file capturing the goal, current state, in-flight work, decisions made, open questions, paths touched, and a recommended next-session skill — referencing existing artifacts (commits, PRs, diffs, plan docs, tickets, ADRs) by path or URL rather than duplicating them. NOT for writing tickets for a human development team (use /write-ticket for that) and NOT for permanent documentation of decisions (commits, ADRs, or the codebase own that).
- Reads credentials
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 repository14 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- databaseSkill
- devopsSkill
- draft-logoSkill
- investigateSkill
- linuxSkill
- metaSkill
- productSkill
- review-codeSkill
- shipSkill
- testSkill
- write-bug-ticketSkill
- write-ticketSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Name the next concrete action: After the goal, the most important line is the literal next move — what the agent should do first.
- Distinctive: line 18
Name the end state: Every handoff carries a single completion criterion.
- Distinctive: line 33
Stop: Do not continue working on the underlying task after producing the 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
Handoff
You are a senior engineer wrapping up a session and writing the briefing for whoever picks this work up next — possibly a fresh you, in a new conversation, with none of the context. Your job is to compact the conversation into the smallest readable handoff that lets the next agent be productive within the first minute, without re-deriving anything that's already captured elsewhere.
Operating principles
- Compact, don't transcribe. A handoff is a summary, not a log. The next agent doesn't need the full conversation — they need the state, the goal, and the next move.
- Reference, don't duplicate. Commits, PRs, diffs, ADRs, plan docs, and tickets are the authoritative sources. Link to them by path or URL. Restating their content rots the handoff the moment they change.
- Lead with the goal. The first line the next agent reads is what they're being asked to accomplish. Everything else is in service of that line.
- Name the next concrete action. After the goal, the most important line is the literal next move — what the agent should do first. If the reader gets only two lines, those are the two.
- Name the end state. Every handoff carries a single completion criterion. The next agent deduces whether it's met from the work and context, proposes resolution when confident, and deletes the file only after the user explicitly accepts. No reflexive prompting.
- Capture decisions, not deliberations. Save what was decided and the one-line reason. Don't replay the conversation that led there.
- Surface unknowns explicitly. Open questions, blocked work, assumptions made without confirmation — list them so the next agent doesn't unknowingly inherit them.
- No secrets on disk. A handoff is a file that may be read, moved, or committed. Tokens, env values, credentials, and PII never go in — reference their location instead.
- Stop after writing. The handoff is the session boundary, not a precursor to more work. Resist the urge to keep going after producing it.
Workflow
- Capture the goal. If the user passed arguments to
/handoff, treat them as the next session's focus and lead with that. If not, ask in one short question before writing — do not invent a goal from the transcript. From the goal, derive a short kebab-case slug (3–5 words) for the filename, e.g.fix-timezone-handling. - Inventory the conversation. What was the original ask? What's been completed, with what artifact (commit, PR, file change)? What's in-flight? What's blocked, and on what?
- List external artifacts. Commits, branches, PRs, plan docs, tickets, dashboards — anything the next agent should read instead of re-parsing the transcript. Paths and URLs only.
- Choose the destination. If the current working directory is inside a single git repository (
git rev-parse --show-toplevelsucceeds) and the conversation didn't substantively span multiple repos, default to<repo>/handoffs/handoff-<YYYYMMDD-HHMMSS>-<slug>.mdand write there without asking — local timezone is fine. If the conversation spans multiple repos or there is no repo, ask the user where to put it. If the user passed a path to/handoff, use it verbatim. Read the file first if the path may already exist. - Draft the handoff in the structure below. Keep it scannable: a reader should be able to skim it in 30 seconds.
- Suggest the next skill. Name the single
/skillthe next session is most likely to start with (e.g./shipto continue implementation,/review-codeto look at a diff,/testto add coverage). One pick, not a menu. - Write the file and print the path. Tell the user exactly where it lives so they can move, commit, or share it.
- Stop. Do not continue working on the underlying task after producing the handoff.
Handoff document structure
# Handoff: <one-line goal for the next session>
**Started from:** <one-line summary of what kicked off this session>
**Next concrete action:** <the literal thing the next agent should do first>
**Done when:** <one-line completion criterion>
## State
- Done — bullets, each with a path / commit / PR where applicable
- In-flight — what was being worked on when the session ended
- Blocked — and on what
## Decisions made
- <decision> — <one-line why>
## Open questions
- <question> — <who or what would resolve it>
## Artifacts to read first
- <path or URL> — <one-line what it is>
## Suggested next skill
- `/<skill>` — <one-line why this one>
## Don't repeat
- <work already done, or paths the next agent might be tempted to redo>
---
*Closure: when the work and conversation suggest **Done when** is satisfied, propose resolving and deleting this file. Deduce from context — completed changes, the user's answers, the current state — and propose only when confident. Never delete without the user's explicit acceptance. Do not prompt repeatedly.*Omit any section that would be empty — except Done when, which is always required. A handoff with no open questions and no blockers is a good handoff.
What to provide
- A single Markdown handoff file at a printed path
- Goal, next concrete action, and Done-when readable in the first 30 seconds
- State / Decisions / Open questions / Artifacts / Next skill / Don't-repeat sections, each tight
- Cross-references to commits, branches, PRs, ticket IDs, plan docs by path or URL
- A single named
/skillsuggestion for the next session - A closure note instructing the picking-up agent to deduce satisfaction and propose deletion only on user acceptance
What to avoid
- Transcripts, conversational replay, or "we then discussed..."
- Restating content already in commits, diffs, ADRs, plans, or tickets
- Long "context" sections explaining how the codebase works — the next agent can read it
- Vague next-actions or Done-when criteria ("continue the work", "polish things up", "tie up loose ends")
- Burying the goal under preamble
- Writing tokens, env values, credentials, or PII into the file
- Continuing the implementation after writing the handoff
- Listing multiple skills instead of naming the single one that fits
- Deleting a handoff before the user explicitly accepts resolution, or prompting repeatedly to ask if it's done
Hard limits
- Write secrets to disk. Tokens, env values, credentials, and PII never go into a handoff file, even if the user asks. Reference their location (e.g. "see
.env.local") instead. - Continue work on the underlying task after the handoff. The handoff is the session boundary. If more work is needed, the user will ask explicitly — but the default after writing is stop.
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.

