Skip to content
Back to skills

Session Handoff

ASecurity

Writes a handoff note at the end of a session so a fresh agent can continue the work: the goal, what is done and what is not, the decisions with their reasons, every claim marked verified or UNVERIFIED, numbered next steps, and links to the specs and plans instead of copies, with secrets redacted. Use when the user says 'write a handoff', 'hand this off', 'handoff doc', 'I'm stopping here, write it up for the next session', 'compact this for another agent', or 'continue tomorrow'. Not for a q...

  • 7 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 29, 2026
ai-agentsgogitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add vanducng/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 with every re-scan.

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

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: session-handoff
description: "Writes a handoff note at the end of a session so a fresh agent can continue the work: the goal, what is done and what is not, the decisions with their reasons, every claim marked verified or UNVERIFIED, numbered next steps, and links to the specs and plans instead of copies, with secrets redacted. Use when the user says 'write a handoff', 'hand this off', 'handoff doc', 'I'm stopping here, write it up for the next session', 'compact this for another agent', or 'continue tomorrow'. Not for a queue handoff between OpenRig seats (queue-handoff) or a status report to a person (exec-brief)."
license: MIT
argument-hint: "[what the next session will focus on] [--out <path>]"
metadata:
  author: vanducng
  version: "0.1.0"
  upstream: "https://github.com/mattpocock/skills/tree/6f7f7831a625f040a8e06a0e7954826b87ce775a/skills/productivity/handoff"
  upstream_commit: "6f7f7831a625f040a8e06a0e7954826b87ce775a"
  upstream_license: "MIT, Copyright (c) 2026 Matt Pocock (LICENSE.txt)"
---

# session-handoff

A handoff lets a fresh agent, with none of this conversation, take the next step correctly. Write only what that agent cannot get from the files themselves.

## Write it

1. **Read the session's own record first:** the conversation, any log or notes file the user points at, and `git status` and `git log` when you can run them. Facts come from there, not from memory.
2. **Fill this shape,** and leave out any section that is empty:

   ```markdown
   # Handoff: <topic>

   **Goal:** <one line: what the work is for>

   ## State
   - Done: <item> (<file, PR or commit>)
   - In progress: <item>: <how far>
   - Not started: <item>

   ## Decisions
   - <decision>, because <reason>

   ## Unverified
   - UNVERIFIED: <claim> (check: <the command or look that would confirm it>)

   ## Next
   1. <the first step, runnable as written>
   2. ...

   ## References
   - <path or URL>: <what it holds, in a few words>
   ```

3. **Mark what nobody checked.** A claim about state that was assumed, remembered, or left running goes under Unverified, with the check that would settle it. Something measured this session (a test run, a query result) is stated plainly with its number, never marked unverified.
4. **Point, never copy.** Specs, plans, ADRs, tickets, diffs and long logs are referenced by path or URL, with a few words on what each holds. Restating their content makes the note go stale the moment they change.
5. **Redact every secret.** Never write a key, token, password or connection string, even one that appears in the log. Say where it lives instead: "the API key from the team vault", or `STRIPE_API_KEY=[REDACTED]`.
6. **Tailor it.** If the user said what the next session will focus on, put that first in Next, and drop the detail it does not need.
7. **Suggested skills, when useful:** one line naming the skills the next agent should load, by name.

## Save it

- Use the path the user names (`--out`).
- Otherwise use `.cache/handoff/<YYYY-MM-DD-HHMM>-<topic>.md` under the working directory. A handoff is scratch, not a record: if the working directory is a git repository whose `.gitignore` does not cover `.cache/`, say so, so that it is not committed by accident.
- Reply with the path and the first Next step, nothing more.

## Do not

- Write a handoff when the user only asked a question about the session. Answer it.
- Add history the next agent does not need: the order things were tried, dead ends already ruled out (keep one line if it saves a retry), or praise.
- Invent a next step the session did not reach. If the next step is unknown, say that, and say what would decide it.

Files in this skill

  • LICENSE.txt1 KB
  • SKILL.md3.6 KB
  • evals/01-redact-secrets/checks.sh525 B
  • evals/01-redact-secrets/fixture/notes/session-log.md729 B
  • evals/01-redact-secrets/prompt.md153 B
  • evals/01-redact-secrets/scenario.json53 B
  • evals/02-cite-not-copy/checks.sh667 B
  • evals/02-cite-not-copy/fixture/docs/SPEC.md402 B
  • evals/02-cite-not-copy/fixture/docs/adr/0007-export-format.md147 B
  • evals/02-cite-not-copy/fixture/notes/session-log.md416 B
  • evals/02-cite-not-copy/prompt.md179 B
  • evals/02-cite-not-copy/scenario.json53 B
  • evals/03-mark-unverified/checks.sh647 B
  • evals/03-mark-unverified/fixture/notes/session-log.md451 B
  • evals/03-mark-unverified/prompt.md153 B
  • evals/03-mark-unverified/scenario.json53 B
  • evals/04-clean-question/checks.sh350 B
  • evals/04-clean-question/fixture/notes/session-log.md320 B
  • evals/04-clean-question/prompt.md119 B
  • evals/04-clean-question/scenario.json68 B

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.