Handoff
A Claude Code / Codex skill for long-running tasks: writes a structured handoff doc so a fresh-context agent resumes with zero ambiguity. Docs: https://cskwork.github.io/agent-handoff/
npx -y skills add cskwork/agent-handoff --skill handoffAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Writes a structured markdown handoff file so a fresh-context agent can resume a long-running task — objective, progress, key decisions, the exact next step, and how to verify. Use near the context limit, at a milestone or session end, or when asked to create a handoff / save state / "핸드오프 만들어".
SKILL.md
3.7 KB, 825 tokens by cl100k_base, as published. Nobody here has run it
handoff
Write the document your next agent opens before it works. A handoff compacts everything that matters about a long-running task into one structured markdown file, so an agent with an empty context window resumes exactly where you left off — without re-reading the conversation.
This skill always writes a markdown file as the durable cross-agent transport, and also emits a paste-ready resume block you can drop into a fresh chat.
When to use
Trigger on any of: context window ~80%+ full · a milestone or work session ending · after 5+ file edits · the user asks for a handoff / state save / "next plan of action".
Manual trigger (user present, steering): just write the file. Automatic/threshold trigger (context near full): also append the auto-continue note (step 7).
Pipeline (summary)
gather → structure → write → verify → resume. Full detail in ref/pipeline.md. Do NOT continue the task; produce only the artifact.
- Preflight. If essentially nothing happened, say "Nothing to hand off yet" and stop — never fabricate.
- Gather mechanically. Derive read/modified sets from tool history; capture commands, test output, and error text verbatim; confirm git branch/HEAD/dirty via read-only probes. Never trust recall.
- Preserve the open thread. Capture any unanswered user question VERBATIM (the most-failed item) → Open Questions, and Current State if it blocks the next step.
- Structure. Fill
ref/templates/handoff.mdin order: Current State first; Done labeled "DO NOT REDO" + quantified; ONE next step; decisions with rationale; concrete file:line / commands / real errors. - Self-verify. Run
ref/checklists/quality.md; fix any secret, placeholder, vagueness, missing verify command, or dropped open question before writing. - Write. Save
handoffs/handoff-<UTC>.mdin the working project (ISO 8601,:/.→-); chain and merge a prior handoff if one exists. - Emit + report. Print the path + a one-line summary, then the doc wrapped in
<handoff-context>…</handoff-context>(exact wrapper in ref/pipeline.md) as the paste-ready resume block. - (Auto trigger only) Add the auto-continue note: honor the user's LATEST intent; say so if nothing remains.
Reference files
- ref/pipeline.md — the full step-by-step pipeline and cold-resume failure modes
- ref/templates/handoff.md — the document template (general)
- ref/templates/handoff-coding.md — feature-build variant
- ref/templates/handoff-debugging.md — bug/debug variant
- ref/checklists/quality.md — pre-write self-verification gate
- ref/checklists/resume.md — what the RESUMING agent does first
- examples/ — filled handoffs you can imitate
- scripts/check-staleness.sh — validate a handoff before trusting it
Hard rules
- Capture exact technical state, not abstractions — paths, symbols, commands, real errors.
- Never include secrets, tokens, or keys.
- Output ONLY the handoff artifact and where it lives; do not answer the conversation's questions.
- The file is the source of truth; the
<handoff-context>block is its transport.
What ships with it: 13 files
27.4 KB alongside SKILL.md, 1 of them executable
examples/
- handoff-example-coding.md4.2 KB
- handoff-example-debugging.md3.3 KB
- README.md890 B
ref/
- checklists/INDEX.md201 B
- checklists/quality.md1.8 KB
- checklists/resume.md1.3 KB
- INDEX.md752 B
- pipeline.md6.1 KB
- templates/handoff-coding.md1.8 KB
- templates/handoff-debugging.md1.6 KB
- templates/handoff.md1.9 KB
- templates/INDEX.md631 B
scripts/
- check-staleness.shruns3.0 KB