Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

handoff

БесплатноБез исполняемых скриптовНе проверен

Produce a verified handoff prompt/file that lets a fresh agent with zero context resume in-progress work cleanly. Use when a session is ending with unfinished…

ericmjlот ericmjl★ 45 звёзд на GitHub

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

Handoff

Usage

Write a handoff (DROP mode) when:

  • A session ends with work unfinished and a fresh agent/session/window will continue it.
  • The user asks to "hand off", "save progress", "prepare for a fresh session", or "write a handoff".
  • Context is running low — suggest it proactively at ~50-60% usage, not at 90%.
  • The session shows degradation symptoms: contradicting earlier decisions, re-deriving settled facts, or misremembering file contents. Say one sentence ("This session may be degrading — want me to write a handoff so a fresh agent picks up cleanly?") and stop. Never write the file without confirmation.

Resume from a handoff (GRAB mode) when starting work where a handoff exists (check for one first — see How It Works).

Do not use for a finished task (nothing to hand off) or durable architecture rationale (that belongs in a design doc or the project's persistent memory, not a handoff).

Requirements

  • No dependencies. Works in any git or non-git project.
  • Writes one markdown file (default: .handoffs/<YYYY-MM-DD>-<slug>.md at the repo root; add .handoffs/ to .gitignore — it is local scratch, not committed — unless the user asks to commit it).

What It Does

Produces a single handoff file plus a paste-ready resume prompt, and on resume, re-verifies that file against repo reality before continuing. The handoff captures what the next agent cannot reconstruct from the code or git history: the intent, the dead ends already ruled out, and the exact next step — grounded in verified repo state, not the chat narrative.

How It Works

Core principle: verify before you write

This skill runs precisely when memory is least reliable. Nothing goes in the file from memory alone. A claim may be tagged [V] (verified) only if confirmed by a command or file read during this handoff run; anything merely remembered is tagged [?] and is a lead, not a fact.

  1. Orient in reality. Run git status, git branch --show-current, git log --oneline -15, git diff --stat. No git? Re-read the files you believe you touched and list what actually changed vs. what you believe changed.
  2. Re-read, don't recall. Re-open every file the handoff will mention. Any quoted path, line number, or snippet must come from this run's fresh read.
  3. Re-run ground truth. Run the project's test/build/lint command. "Tests pass" is written only from output produced in this run — otherwise it's [?].
  4. No invention. Can't verify it and don't clearly remember it? Omit it. An honest gap beats confident fiction. If many claims end up [?], write at the top: "Low-confidence handoff — verify aggressively."
  5. If an older handoff exists, read its dead-ends and open-questions sections, carry forward anything still relevant (re-tagged [?] unless re-verified), then archive it (move to .handoffs/archive/), never delete it — its dead-ends section may be the only record of what not to retry.

Mine the conversation

Work through this checklist before drafting; skim-reading is how handoffs lose their value:

  • Goal in the user's terms + definition of done (the exact command/test that must go green)
  • Work completed (every file modified, with specifics)
  • Failed approaches + why they failed (the most expensive thing to re-discover)
  • Decisions made + rejected alternatives + the WHY
  • Test results and measurements (raw numbers, pasted output tails)
  • Discoveries, gotchas, non-obvious facts ("known traps")
  • User preferences expressed
  • Remaining open questions the next agent must not guess past

Write the handoff file

Keep every section; if one is genuinely empty, write "none". Target ≤250 lines, hard ceiling 400 (it must fit in a fresh context). Cut narrative prose before cutting Dead Ends, Verified State, or Next Steps. When you compress toward that budget, do not stack nouns or drop "that" to save a line. The next agent is also a reader; run processing-friendly-prose if a section has become dense.

# Handoff: <one-line title>

Generated: <ISO timestamp> · Git HEAD: <short SHA> · Branch: <branch>
Trust rule: [V] = verified during this handoff run. [?] = unverified memory — re-check before relying on it.

## Goal & Acceptance Criteria
Why this work exists, the desired end state, and the exact test/command that must pass.

## Verified State (as of <timestamp>)
- [V]/[?] claims about what is committed, in flight, working, and broken — each with evidence.
- Test/build output tail, pasted from this run (never from memory).

## Decisions & Rationale
Decision + why + rejected alternative. The WHY stops the next agent relitigating.

## Dead Ends — DO NOT RETRY
What was tried → exactly how it failed → the specific reason → what to do instead.

## Known Traps
Non-obvious facts that would bite a stranger (file:line references).

## Next Steps (ordered)
Concrete, immediate action first. Not "finish
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Produce a verified handoff prompt/file that lets a fresh agent with zero context resume in-progress work cleanly. Use when a session is ending with unfinished work, when context is running low (~50-60% used — write EARLY, before the model dulls), when the user says "hand off", "save session state", "pick up where we left off", "prepare a handoff", "I'm switching windows/models", or when a session shows degradation (contradicting earlier decisions, re-exploring settled ground, misremembering files). Covers both writing the handoff and resuming from one.

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

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

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

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

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

Сравнить handoff с