Back to skills
SKILL.md
Handoff
ASecurityHas the agent write a one-screen handoff note a fresh agent can pick up tomorrow: the goal, the current state, decisions not recorded elsewhere, open questions, the next step and the skills to load, written to a mktemp path, or into the branch's own plan folder in the repository when the note has to travel with the branch. Use when stopping today with the task not finished, when context is nearly full, or before switching repository or branch. Not for a session that continues with the same ag...
- 11 stars
- 0 votes
- 0 copies
- 4 views
- Added May 28, 2026
Security analysis
100/100npx -y skills add naimkatiman/continuous-improvement --skill handoff --agent claude-codeAre you the author of Handoff?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/naimkatiman-handoff)---
name: handoff
tier: "2"
description: "Has the agent write a one-screen handoff note a fresh agent can pick up tomorrow: the goal, the current state, decisions not recorded elsewhere, open questions, the next step and the skills to load, written to a mktemp path, or into the branch's own plan folder in the repository when the note has to travel with the branch. Use when stopping today with the task not finished, when context is nearly full, or before switching repository or branch. Not for a session that continues with the same agent (run /compact at a phase boundary instead). Ported from mattpocock/skills under MIT, with the path inside the repository added. Guidance for Law 5 (Reflect After Every Session)."
argument-hint: "What will the next session be used for?"
origin: https://github.com/mattpocock/skills
---
# /handoff — Hand the session off to a fresh agent
Ported from [mattpocock/skills `productivity/handoff`](https://github.com/mattpocock/skills/blob/main/skills/productivity/handoff/SKILL.md) (MIT, © 2026 Matt Pocock). It differs from the upstream skill in one way: the note can be written into the repository, in the current branch's plan folder, so that it is pushed with the branch. Upstream always writes to a temp path. Upstream moved the file out of `in-progress/` after the snapshot was taken, so the local copy keeps the old path. Cold-storage snapshot at [`third-party/mattpocock-skills/skills/in-progress/handoff/SKILL.md`](../third-party/mattpocock-skills/skills/in-progress/handoff/SKILL.md); SHA pin in [`third-party/MANIFEST.md`](../third-party/MANIFEST.md).
## What this skill does
Write a handoff document summarising the current conversation so a fresh agent can continue the work.
Where to save it:
- **In the repository**, at `.plans/<branch>/handoff.md`, when that folder already exists for the current branch (the folder of `/planning-with-files`) or the user asked for a note that travels (`/handoff --repo`). `<branch>` is the branch name with every character outside `A-Z a-z 0-9 . _ -` replaced by `-`, so `feat/new-store` gives `.plans/feat-new-store/handoff.md`. Create the folder if it is missing and replace an older note there. The note reaches the next engineer only once it is committed and pushed: include it in the next commit of the work, or commit it alone when the user asked for a note that travels. Where this project's rules or the user say the agent does not commit, say where the file is and leave the commit to the user. With no branch to name a folder after (no repository, a detached HEAD) or with `CI_PLAN_TRAVEL=off`, say so and use the `mktemp` path.
- **Otherwise** at a path produced by `mktemp -t handoff-XXXXXX.md` (read the file before you write to it).
A note in the repository is pushed with the branch, and everyone who can read the repository can read it. Write no secret, token, password, key or environment value into it, no customer or personal data, and no full command output. The folder is removed in the branch's last commit before it merges (the `ship` skill says when).
Suggest the skills to be used, if any, by the next session.
Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.
## When to fire it
- End of a working session that did not finish the task — you want the next agent to pick up cold without re-reading the whole transcript.
- Context budget approaching the ceiling and `/compact` would lose load-bearing state — write a handoff doc first, then compact. Compact at a phase boundary (after research, once the plan is written down, after a failed approach, before unrelated work), not in the middle of an implementation. Give `/compact` a one-line focus for the next phase, and re-read the plan file afterwards instead of trusting the summary.
- Switching from one repo or branch to another mid-session — capture what was decided in the active context before the swap.
- Before an absence, or when someone else will carry the branch on. Use `/handoff --repo` then: a note at a temp path stays on this machine, and the next engineer starts from the branch alone.
- Before invoking a long-running autonomous loop (`/loop`, or a loop from a companion plugin) that will run while you are away.
## What goes in the doc
The handoff is a brief, not a transcript. A useful one fits on one screen and answers, in order:
1. **Goal** — the one-sentence outcome the user is steering toward.
2. **Current state** — what is actually true on disk / in the system right now (branch, last commit, open files, last verified step).
3. **Decisions made this session** — only what is not already in commits, PRDs, ADRs, or the plan doc.
4. **Open questions** — blocking choices the next agent needs the user to answer before continuing.
5. **Next concrete step** — the single action the next agent should take first.
6. **Skills to load** — names of the skills the next session should activate (e.g. `verification-loop`, `superpowers:writing-plans`, `gateguard`).
Anything that is already captured elsewhere gets a path or URL pointer, not a duplicate.
## How it fits the 7 Laws
| Law | Role of this skill |
|---|---|
| Law 5 (Reflect After Every Session) | The handoff is the reflection artifact — what changed, what was decided, what remains. |
| Law 7 (Learn From Every Session) | Naming the skills the next session should activate is a learned-pattern signal. |
| Law 2 (Plan Is Sacred) | The "next concrete step" preserves the existing plan across the session boundary instead of restarting from blank. |
## Companion / alternative skills
- `superpowers:writing-plans` — produce the plan doc the handoff can reference instead of duplicating.
## Attribution
This skill is a port of [mattpocock/skills `productivity/handoff`](https://github.com/mattpocock/skills/blob/main/skills/productivity/handoff/SKILL.md). MIT-licensed upstream, MIT-licensed here. See [`third-party/mattpocock-skills/LICENSE`](../third-party/mattpocock-skills/LICENSE) for the verbatim license and [`third-party/mattpocock-skills/OUR_NOTES.md`](../third-party/mattpocock-skills/OUR_NOTES.md) for the vendoring rationale and drift radar.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.