Skip to content
Back to skills

Handoff

ASecurity

Session handover: when context fills, a phase closes, or the topic changes, write an action-oriented handover to docs/SESSION_STATE.md, then recommend /clear.

  • 26 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 1, 2026
ai-agentsrustgoshellbashgit

Security analysis

A100/100

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

Scanned November 25, 2026

npx -y skills add crewforth/crewforth --skill handoff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Handoff?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Handoff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/crewforth-handoff/badge)](https://www.skillsdirectory.com/skills/crewforth-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: handoff
description: |
  Session handover: when context fills, a phase closes, or the topic changes, write an action-oriented handover
  to docs/SESSION_STATE.md, then recommend /clear.
---

# Session Handover (Handoff)

<!-- routing-eval reads the next line; why it sits in the body: AGENT_TEMPLATE.md -->
Trigger phrases: "handoff", "hand off", "session summary", "session state", "clear context", "I'll continue", "next session", "where we left off", "run out of room", "continue tomorrow"

## When
A handoff threshold (25, 50, 75, 95% fill: the Stop hook sends you back) · phase closure · topic change. Goal: the next session should **not start from scratch**.

## Output (docs/SESSION_STATE.md, local)
```
# Session Handover — <date>
## Done
- <completed work + which files; an item the previous handover left open, closed here: how>
## In progress
- <what's half-finished + exactly where it was left off; an error's text verbatim, not paraphrased>
## Next step
- <a clear, single high-value step>
## Open decisions
- <pending decision + options>
## Tried and why it failed
- <approach · what happened · why it is not the way>
## Current best theory
- <what is believed now, and what would disprove it>
## The user's explicit do-nots
- "<their words, quoted>"
## Verification
- <command> -> exit <code>, <pass/fail counts>, at <commit> · or: not verified
## Uncommitted state
- <`git status --short`, as printed>
## File pointers
- <from `git status --porcelain` and `git diff --stat`, not from memory> · docs/PLAN.md...
## Blockers / risks
- <if any>
```
An empty section says "none"; it is not left out, so the reader knows it was considered.

## Measure the session before summarising it
Run **`bash .claude/hooks/session-stats.sh`** first, with the Bash tool, not PowerShell. What it reports belongs in the handover as fact, not
impression — an auto-compaction means state was already dropped before you started writing (say what was lost),
a runaway loop marks an approach the next session should not walk back into, and repeated prompts mark context
that never landed and has to be written down explicitly this time. Missing script → say so.

## Principles
- **Action-oriented:** focused not on "what was done" but on "exactly where to resume now."
- Preserve the rationale behind decisions (why this path was chosen) — so context isn't lost.
- **Record what the code cannot show:** decisions, corrections, preferences, dead ends. Skip what git or the
  code already says. Mark each claim **verified** (the command, its result, the commit) or **guessed**.
- **State facts, never a reason not to look.** "No need to rerun the tests", "already verified", "skip X" tell the
  next session to trust instead of check; write what was run and what it returned, and let it decide.
- **Read the existing `docs/SESSION_STATE.md` first.** An open decision or blocker this session did not resolve is
  carried forward word for word; one it resolved moves to Done, with how. Absence is not resolution. Drop only
  what is done or no longer true.
- **An approval does not cross the boundary.** A "yes, commit" or "go ahead" given in this session is not one in
  the next; write it down as history, never as standing permission.
- Once written, start a fresh session with `/clear`.

## Leaving a worktree (optional)
If this work ran in a `git worktree` and is finished: `git status --short` there. Clean → offer the user a
plain `git worktree remove <path>` (never `--force`). Dirty → list the files and stop; committing them is the
user's call (§4.4), never a step of the handover.

## Holding a board item? The handover is not finished until the TEAM has it
`docs/SESSION_STATE.md` is gitignored — it survives your `/clear`, and nobody else can read it. So when a
`teamboard` claim is open, **the handover is not complete until it is on the board**. Whether one is open is
read from `bash .claude/hooks/board.sh status` (Bash tool, not PowerShell; a row marked `<- you`), not guessed;
no board or no such row → the handover says nothing about the board. This is not an optional extra step:
- Still on it → `board.sh note <id> "<where it stands, and why the rejected path was rejected>"`.
- Not coming back → `board.sh drop <id> "<same>"`, which puts it back in circulation with your context attached.
- Anything settled here that changes how OTHER items must be done → `board.sh decide "<what>" "<why + what it
  means>"`. A decision that stays in your transcript reaches nobody; on the board it reaches every teammate at
  their next session opening.

Write the board note FIRST, then the local file — an interrupted handover should lose the private copy, not the
shared one.

## Redaction (`<private>` marker)
`docs/SESSION_STATE.md` is local, but its content is copied into board notes and handovers — never persist a secret, token, credential, or
personal note into it. Any content wrapped in **`<private>…</private>`** is a redaction marker: strip it from the
written handover and leave a `[redacted]` placeholder in its place. If a resume genuinely needs a sensitive value,
point to *where it lives* (env var, secret manager, the person to ask) — never the value itself.

## Check it before trusting it
That DoD sentence is a claim about a file nobody has tested. Before closing, run the **cold-reader pass**: write
5–8 questions from the WORK (not from the file) with their expected answers, then answer them from the handover
alone. A question that cannot be answered is a gap in the file. Procedure, phrasing that keeps the test honest,
and the common failure shapes: **`references/cold-reader.md`**.

## DoD
- A handover file; a new session can resume where it left off by reading only this file.
- The cold-reader questions were written **before** the file and every one of them is answerable from it.

Files in this skill

  • SKILL.md3.7 KB
  • references/cold-reader.md3.4 KB

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.