Command Palette

Search for a command to run...

Назад к скиллам
скилл № 95820

handoff

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.

БесплатноБез исполняемых скриптов
crewforthот crewforth★ 26 звёзд на GitHub

Установить handoff в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Session Handover (Handoff)

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 bef

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/cold-reader.md

FAQ

Что делает скилл handoff?

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.

Как установить скилл handoff?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл handoff запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить handoff с