handoff
Skill5 starsChanged 18 days agoMITView on GitHub
Write a compact, decision-ready handoff so the next session (or the user) can continue without reconstructing the current one. Use when the session is ending, context is running low, the user asks for a handoff / 'pass the baton' / 'hand off', or a long-running operation needs a durable state checkpoint.
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 repository46 other files it gives its agents.
- batchSkill
- best-of-nSkill
- datavizSkill
- debugSkill
- delegateSkill
- dependency-updateSkill
- documentSkill
- documentsSkill
- docxSkill
- fleet-managerSkill
- flightsSkill
- forgetSkill
- frontend-designSkill
- githubSkill
- gmailSkill
- goalsSkill
- google-calendarSkill
- helpSkill
- image-searchSkill
- implementSkill
- interviewSkill
- mcp-builderSkill
- mcp-discoverySkill
- moneySkill
- pdfSkill
- photosSkill
- planSkill
- plugin-creatorSkill
- podcastSkill
- pptxSkill
- presentationsSkill
- releaseSkill
- researchSkill
- reviewSkill
- security-reviewSkill
- shoppingSkill
- simplifySkill
- skill-creatorSkill
- skill-installerSkill
- spotifySkill
- spreadsheetsSkill
- testSkill
- ttsSkill
- verifySkill
- webapp-testingSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Gather the truth from tools, not memory: Run/collect:
- Very specific: line 54
Persist it: Always write .codewhale/handoff.md in the workspace — that is the only path the runtime reads back.
- Very specific: line 62
If the workspace has an ops/notes convention (e.g.
- Distinctive: line 71
Ensure nothing is left only in memory: dirty work is either committed (WIP is fine with a real body), stashed with a note, or recorded in …
- Distinctive: line 85
Keep claims narrower than evidence: distinguish landed/committed, verified locally, CI-verified, and pending.
- Distinctive: line 91
If the user asks for a "short text-only" handoff, give exactly that in the reply and skip the full markdown file unless asked.
“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
Write a compact, decision-ready handoff so the next session (or the user) can continue without reconstructing the current one. Use when the session is ending, context is running low, the user asks for a handoff / "pass the baton" / "hand off", or a long-running operation needs a durable state checkpoint. The goal: the durable artifact survives, the context does not need to.
Invocation: model+user
When to use
- The user says "handoff", "hand off", "pass the baton", "takeover prompt", "write me a handoff", or the session is about to end / compact.
- A long operation (multi-turn, multi-workstream) has state that must survive context loss: commits, branches, PRs, CI, blockers, decisions.
- You are switching to a fresh session and want the new session to start from evidence instead of reconstructing the old one.
What to do
- Gather the truth from tools, not memory. Run/collect:
git branch --show-current,git status --short,git log --oneline origin/<default>..HEAD(what is local-only),git log --oneline -5(recent context).- Live remote state where relevant (
gh pr list --state open,gh pr checks <n>,gh run list) — only what the user's operation actually depends on; do not pad the handoff with a full GitHub dump. - Any in-flight work: dirty files, uncommitted slices, partial worktrees, running background jobs/workers, queued CI.
Write a compact markdown handoff (aim under ~60 lines; the user may also ask for a "short text-only" variant — then aim under ~15 lines):
# Handoff — <operation/session name> — <date> - **State:** <one-line: what is done vs in-flight vs blocked> - **Landed/committed:** <exact SHAs + one-line what> - **Branches/PRs:** <names + states; which are ours vs community> - **CI:** <what is green, what is waiting, what is broken> - **Blockers:** <exact blocker + what would unblock> - **Decisions made:** <the WHY that a fresh session must not re-litigate> - **Next step:** <the single next action, one line> - **Continuation records:** <pointers to partial work that must be preserved (worktrees, uncommitted files, receipts)>Persist it. Always write
.codewhale/handoff.mdin the workspace — that is the only path the runtime reads back. On the next session's first turn it is injected as the "## Previous Session Relay" block (HANDOFF_RELATIVE_PATH,crates/tui/src/prompts.rs:85; loader atprompts.rs:301-315). A handoff written anywhere else is never picked up, so the next session starts cold no matter how good the note is.Optionally also write a human-discoverable copy:
- If the workspace has an ops/notes convention (e.g.
codewhale-ops/notes/with a living handoff file), update the living handoff's dated facts and snapshot, or create<topic>-handoff-<date>.mdnext to it. - Otherwise the repo root as
HANDOFF.mdordocs/handoff/<topic>-<date>.md. These are for people; nothing in the runtime reads them. Never overwrite someone else's uncommitted handoff without reading it first.
- If the workspace has an ops/notes convention (e.g.
- Clear the way for the new session ("clears context"). A skill cannot
delete the current context, but it can make the context disposable:
- Ensure nothing is left only in memory: dirty work is either committed (WIP is fine with a real body), stashed with a note, or recorded in the handoff with its exact location.
- Kill or record background work that would outlive the session (background jobs, sub-agents) — record what is still running and its task id.
- Close with the one-line "next step" so the fresh session has an unambiguous first action.
- Deliver. Give the user the compact handoff text in your reply (the persisted file is the durable copy; the reply is the readable one).
Constraints
- Facts only from tool output; never invent SHAs, check states, or blockers.
- Keep claims narrower than evidence: distinguish landed/committed, verified locally, CI-verified, and pending.
- Preserve other people's uncommitted work: read before touching, archive before overwriting.
- The handoff is orientation, not law: tell the next session to refresh live state before acting on it.
- If the user asks for a "short text-only" handoff, give exactly that in the reply and skip the full markdown file unless asked.
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.

