Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Session Handoff

ASecurity

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 ...

3 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentsgoshellbashgit

Works with

claude codeterminalcli

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add wormeyman/wormeyman-skills --skill session-handoff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Session Handoff?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Session Handoff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wormeyman-session-handoff/badge)](https://www.skillsdirectory.com/skills/wormeyman-session-handoff)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: session-handoff
description: >-
  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.
---

# 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 -5`
  plus `git status --short` so 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.

## 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:

```bash
# 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"; fi
```

Prefer 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.

Attribution

wormeymanwormeyman
View sourceMore from wormeyman →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →