session-handoff
Skill4 starsChanged 11 days agoMITView on GitHub
Generate a self-contained "resume this work" handoff prompt and copy it to the clipboard, so the user can paste it into a fresh session that has zero prior context. Use this whenever the user asks for a prompt to continue/resume/pick up work later, to "pbcopy a prompt", to hand off to a new session or agent, or says things like "give me a prompt to keep going in a new chat", "write me a handoff", "copy a prompt so I can resume this tomorrow", or "I want to start fresh on this" - even if they never say the words "skill" or "handoff". Trigger it any time the intent is capturing the current work state into a portable prompt for a future context-free session.
139 other projects use a version of this.
Adopted by
Most recently taken up by
- aktsmm/Agent-Skillstheir own version, first seen Nov 8, 2026
- wanshuiyin/HERO-Anti-OverDefensetheir own version, first seen Nov 8, 2026
- alapha888/session-handoff-kittheir own version, first seen Nov 8, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- Sirius-Ji/dsh-disciplinary-skills-for-greenhandstheir own version, first seen Nov 8, 2026
- maideps/ai-harness-frameworktheir own version, first seen Nov 8, 2026
Used with
Projects with it also use ascii-diagram, research-fleet 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.
SethGammonSkillascii-diagram
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.
Also in 4 projects that use this
SethGammonSkillresearch-fleet
Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.
Also in 3 projects that use this
vicoa-aiSkilllive-preview
Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.
Also in 4 projects that use this
botlearn-aiSkilldoc-gen
Also in 4 projects that use this
flyingobsidianSkillterminology
Read a codebase, find terminology, create/update definitions into a markdown document.
Also in 3 projects that use this
Dizzy-TenSkillbug-diagnosis
Diagnose bugs and product issues without modifying code. Use when the user explicitly invokes $bug-diagnosis or asks for diagnosis, root-cause analysis, issue classification, or fix strategy for code bugs, failing tests, configuration/dependency problems, deployment issues, performance regressions, data anomalies, or frontend/user-experience problems described through screenshots, annotations, logs, errors, or natural-language reports. Prioritize analysis and recommendations only; do not edit files.
Also in 3 projects that use this
- +1 more from SethGammon
Other versions139 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 139
- rohitg00/pro-workflow★ 2.9ksame name
- SethGammon/Citadel★ 927same name
- wanshuiyin/HERO-Anti-OverDefense★ 805same name
- OneWave-AI/claude-skills★ 378same name
- ai-analyst-lab/ai-analyst★ 304same name
- entireio/skills★ 239same name
- Innei/SKILL★ 92same name
- yuzushi-dev/session-handoff★ 67same name
- Hive-Academy/ptah-extension★ 34same name
- Hive-Academy/PtahCode★ 34same name
129 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 repository10 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 117 edited versions we read keep these.
4
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 56
Use absolute paths so they're clickable and unambiguous in a fresh terminal.
- Distinctive: line 100
Write the prompt to a file, then pipe that file to the clipboard - this avoids shell quoting mangling multi-line text and backticks, and …
- Distinctive: line 115
Prefer the session scratchpad directory for the file if one is defined.
- Distinctive: line 126
After copying, confirm it's on the clipboard and show the prompt in the chat too, so the user can eyeball it before starting fresh and tell …
“Common” is measured: kept by at least 6 in 10 of the 117 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
Session handoff
The job
Turn everything learned in this session into one self-contained prompt the user can paste into a brand-new session (or hand to another agent) that knows nothing about this conversation, then put that prompt on their clipboard.
The whole value is that the future session has zero context. It cannot see this chat, your scratchpad, or your reasoning. If a fact isn't in the prompt (or reachable from a pointer the prompt gives), it's gone. Write for that reader.
Gather the real state first - don't hand back a template
A handoff prompt full of <fill this in> placeholders is useless. Before
writing, collect the concrete state so the prompt is specific and true:
- Where the work lives - repo path, current branch, and
git log --oneline -5plusgit status --shortso you can name the exact commits and whether anything is uncommitted. - What's done - the substantive results of this session, ideally anchored to commit hashes or file paths, not vibes.
- What's next - the specific next task, phrased as an instruction, not a mood.
- What to read first - the files, docs, and memories that hold the detail, so the prompt can point instead of dump.
- Gotchas and conventions - anything a fresh session would get wrong: how to run tests, "don't push", auth quirks, house style, tools to prefer.
Pull these from the actual conversation and the repo. When something is uncertain,
check it (a quick git log, an ls) rather than guessing - a wrong fact in a
handoff is worse than an omission because the next session will act on it.
Lean on pointers, keep it portable
The best handoff is short but complete because it delegates. If the project
keeps notes or memory (design docs, NOTES.md, a memory system), tell the next
session to read them first rather than re-explaining their contents. A prompt that
says "read docs/foo-NOTES.md (authoritative) before touching anything" transfers
more, more reliably, than three paragraphs paraphrasing that file. Dump raw detail
only for things that live nowhere but this chat.
Use absolute paths so they're clickable and unambiguous in a fresh terminal.
Every pointer must outlive this session. A session scratchpad, or anything
under /tmp or /private/tmp, can be gone by the time the next session starts:
the scratchpad belongs to this session, and a reboot clears /tmp. You can still
reach those files now, and the next session may not. So before writing the
prompt, copy anything it needs somewhere durable - into the repo (uncommitted is
fine, if the prompt says so) or a folder under the home directory - or paste it
inline if it is short. Then point at the new location.
Prompt shape
Adapt to the work, but this structure covers most cases. Write it as if the user is speaking to the next session in the first person - that's how they'll paste it.
I'm resuming work on <project> in <absolute repo path> (branch <branch>).
## Context
<1-3 sentences: what this is and the current goal>
## What's done
- <result, with commit hash / file path where it applies>
- ...
## Read these first (authoritative - don't re-derive)
- <absolute path> - <why it matters>
- memory/notes: <where the durable state lives>
## Next task
<the specific next step, concretely enough to start immediately>
## Conventions / gotchas
- <how to run tests / build>
- <constraints: e.g. don't push; branch first; style rules>
- <anything a cold start would trip on>Drop sections that don't apply; add one if the work needs it. Match the target tool's idiom - if the next session is Claude Code with skills/memory, say so and point at them; if it's a plain chat, make the prompt fully self-standing.
Put it on the clipboard
Write the prompt to a file, then pipe that file to the clipboard - this avoids shell quoting mangling multi-line text and backticks, and leaves a copy the user can re-grab:
# Pick whichever exists: pbcopy on macOS, clip.exe on Windows and WSL,
# xclip/wl-copy on a Linux desktop.
if command -v pbcopy >/dev/null; then pbcopy < /path/to/handoff-prompt.md
elif command -v clip.exe >/dev/null; then clip.exe < /path/to/handoff-prompt.md
elif command -v clip >/dev/null; then clip < /path/to/handoff-prompt.md
elif command -v wl-copy >/dev/null; then wl-copy < /path/to/handoff-prompt.md
elif command -v xclip >/dev/null; then xclip -selection clipboard < /path/to/handoff-prompt.md
else echo "NO_CLIPBOARD_TOOL"; fiPrefer the session scratchpad directory for the file if one is defined; otherwise a temp path is fine.
Check the tool exists rather than assuming one. pbcopy is macOS only;
clip.exe covers Windows AND WSL, because WSL executes Windows binaries. If none
is found, say so plainly and print the prompt in a copyable block - a clipboard
step that silently did nothing is the one failure the user cannot see, because
they only find out when they paste stale content into the fresh session.
Close the loop
After copying, confirm it's on the clipboard and show the prompt in the chat too, so the user can eyeball it before starting fresh and tell you to adjust anything. Keep the confirmation to a line - the prompt itself is the deliverable.
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.

