handoff
Skill2 starsChanged 2 months agoMITView on GitHub
Compact the current conversation into a handoff document so a fresh agent (or session) can continue the work cleanly. Saves to the OS temp directory, redacts secrets, references existing artifacts by path instead of duplicating them, and suggests which skills the next session should invoke. Use when the user wants to end a session, hand off to a teammate, switch agents, says "wrap this up for next time", or mentions "/handoff".
- Reads credentials
195 other projects use a version of this, 65 of them edited.
Adopted by
Most recently taken up by
- mattpocock/skillsedited, first seen Oct 8, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- michielvandermeer/skillsedited, first seen Oct 4, 2026
- Integralist/agent-skillsedited, 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 9 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
- +4 more from aws
- +1 more from Roentek
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 65
- mattpocock/skills★ 335k21% same
- compozy/compozy★ 2.8k21% same
- stevesolun/ctx★ 58822% same
- aws/graph-explorer★ 48421% same
- Tiberriver256/mcp-server-azure-devops★ 39322% same
- openvetta/open-vetta★ 28723% same
- ninehills/skills★ 28022% same
- loulanyue/skills★ 23122% same
- niki914/zafiro★ 22121% same
- rtadewald/skills★ 16821% same
55 more not listed
Wrote their own version · 130
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- davidondrej/skills★ 4.1ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- anombyte93/prd-taskmaster★ 604same name
- devcxl/mattpocock-skills-zh★ 426same name
- dsifry/metaswarm★ 419same name
- egregore-labs/egregore★ 291same name
120 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.
- CLAUDE.mdCLAUDE.md
- ask-zslSkill
- codebase-designSkill
- code-reviewSkill
- commit-push-prSkill
- commitSkill
- decision-mappingSkill
- diagnoseSkill
- domain-modelingSkill
- git-branchSkill
- grill-with-docsSkill
- human-itlSkill
- improve-codebase-architectureSkill
- prototypeSkill
- setup-zsl-superpowersSkill
- tdd-parallelSkill
- tddSkill
- teach-me-the-codebaseSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- verify-coverageSkill
- edit-articleSkill
- setup-pre-commitSkill
- steampipeSkill
- grillingSkill
- grill-meSkill
- timesheetSkill
- writing-great-skillsSkill
- afk-fanoutSkill
- afk-workerSkill
- morning-reviewSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Write a handoff document summarising the current conversation so a fresh agent can continue the work without re-deriving context from …
- Distinctive: line 37
If a handoff file with the same slug already exists for today, read it first before writing so existing content is preserved or appended …
- Very specific: line 69
When in doubt, redact. Replace with <redacted: kind> (e.g.
- Very specific: line 73
If the user passed an argument to /handoff, treat it as a description of what the next session will focus on.
- Distinctive: line 75
If no argument was passed, write a general-purpose handoff covering everything substantive in the session.
“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
Write a handoff document summarising the current conversation so a fresh agent can continue the work without re-deriving context from scratch.
flowchart LR
cur["Current session<br/>(conversation context)"] --> scan["Scan for secrets<br/>· API keys / JWTs<br/>· hostnames / .env vars"]
scan --> compact["Write handoff.md<br/>· state at handoff<br/>· open decisions<br/>· don't redo<br/>· pointers (path:line)"]
compact --> tmp[("$TMPDIR / %TEMP%<br/>zsl-handoff-YYYYMMDD-slug.md")]
tmp --> next["Next session<br/>cat <path> or paste"]
next --> sug["Suggested skills<br/>/zsl:tdd · /zsl:triage · …"]
sug -.->|"resume in the loop"| loop["the engineering loop"]
classDef step fill:#e0e7ff,stroke:#3f51b5;
classDef artifact fill:#dcfce7,stroke:#16a34a;
classDef external fill:#fef3c7,stroke:#d97706;
class cur,scan,compact,next,sug step
class tmp artifact
class loop externalWhere to save
The OS temp directory — not the current workspace. The handoff is ephemeral session metadata, not a project artifact.
- macOS / Linux:
$TMPDIR/zsl-handoff-<YYYYMMDD>-<short-slug>.md(fallback/tmp/...) - Windows:
%TEMP%\zsl-handoff-<YYYYMMDD>-<short-slug>.md
Tell the user the absolute path after writing so they can hand it to the next session via cat <path> or paste.
If a handoff file with the same slug already exists for today, read it first before writing so existing content is preserved or appended to, not clobbered.
What goes in
Lead with what the next agent actually needs in the first 30 seconds. Cut anything they can reconstruct themselves.
- One-paragraph summary of what this session was about and where it left off — written so a cold reader can orient in three sentences.
- State at handoff — the concrete thing the next session inherits. Branch name + last commit sha (
git rev-parse --abbrev-ref HEAD/git rev-parse HEAD), unpushed work, open worktrees, halted RCAs, anything mid-flight. Reference, don't copy. - Open questions / pending decisions — anything the user and this session debated without resolving. Each as a bullet with the option list, not just the question.
- Suggested skills for next session — which
/zsl:<skill>calls the next agent should reach for first, in order. Be specific:/zsl:tdd <NN>not just/zsl:tdd. - What NOT to redo — work that's already complete (commits landed, PRs opened, slices closed). Saves the next agent from re-reviewing finished ground.
- Pointers, not duplicates — for anything that already exists in a durable artifact (PRD, ADR, issue body, commit message, file in repo), reference it by
<path>:<line>or URL. Never paste the full body.
What stays out
Skip aggressively. The point is compaction.
- Conversation transcripts. The next agent doesn't need to read your back-and-forth.
- Code listings already in the repo. Refer to
file:line. - Issue bodies / PRD bodies that are on the tracker. Refer to
#123or the path. - Tool-call output that wasn't load-bearing for the conclusion.
- Apologies, hedges, "I'm going to do X" announcements — the artifact is the record, not the running commentary.
Redaction
Before writing, scan for and redact:
- API keys, tokens, passwords, OAuth credentials, signed URLs — any string that looks like
sk-…,ghp_…,eyJ…(JWT),xox[abp]-…(Slack), AWS access-key patterns - Personally identifiable information beyond what's already in the repo (emails, phone numbers, names of customers/users mentioned in passing)
- Internal hostnames, IPs, S3 bucket names, database connection strings
- Anything under
.env*that the conversation surfaced
When in doubt, redact. Replace with <redacted: kind> (e.g. <redacted: api-key>). If the redaction makes a step incomprehensible, the next session can ask the user for the value; that's safer than leaking it into a tmp file.
Argument handling
If the user passed an argument to /handoff, treat it as a description of what the next session will focus on. Tailor the Suggested skills and State at handoff sections to that focus. The other sections still cover the broader conversation, but the spotlight shifts.
If no argument was passed, write a general-purpose handoff covering everything substantive in the session.
Template
# Handoff — <YYYY-MM-DD HH:MM> — <one-line topic>
> Generated by `/zsl:handoff`. Read this once, then start work — don't re-derive what's already settled.
## Summary
<3 sentences: what this session was about, what got done, where it stopped>
## State at handoff
- Branch: `<branch-name>` (last sha: `<short-sha>`)
- Pushed: yes / no
- Open PRs: <#N or none>
- Halted operations: <RCA path or none>
- Worktrees: <paths or none>
## Done — don't redo
- <one-line per completed item, with the commit/PR/issue link>
## Open questions / pending decisions
- **<decision>** — options considered: A (…), B (…). Leaning <X> because <reason>. Needs user to confirm.
- **<question>** — context: <file:line or PRD ref>. Asked, not yet answered.
## Suggested skills for the next session
In order:
1. `/zsl:<skill> <args>` — <one line: why this first>
2. `/zsl:<skill> <args>` — <one line>
3. `/zsl:<skill> <args>` — <one line>
## Pointers
- PRD: <path or URL>
- Relevant ADRs: <path>
- Recent commits worth reading: `<sha>` (`<subject>`)
- Files most likely to need attention: `<file>:<line-range>`Tone
The handoff is for a stranger. They have no conversational context, no memory of your earlier debates, no idea who's the user and who's the agent. Write so a cold read makes them productive in 30 seconds. If a section needs scaffolding to be understandable, the section is wrong — rewrite the section, don't pad it with explainer.
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.

