The document your next agent opens before it works.
Live page → https://cskwork.github.io/agent-handoff/
A Claude Code skill for long-running tasks. When a
session runs long, handoff compacts everything that matters into one structured markdown file —
objective, current state, what's done (with evidence), what's left, key decisions and why, files
touched, gotchas, the single exact next action, and how to verify — so a fresh-context agent
resumes with zero ambiguity.
Pipeline and document structure are inspired by oh-my-pi's
/handoff. See Credit.
- Captures exact state, not vibes — real file paths, commands, test results, error text; the read/modified file sets are derived mechanically from tool history, never from recall.
- Defends against cold-resume failures — an explicit DO-NOT-REDO done list, a single exact next step, and any pending user question preserved verbatim.
- Paste-ready and chainable — writes
handoffs/handoff-<timestamp>.mdand emits a<handoff-context>block to paste into a fresh chat; each handoff links to its predecessor.
gather → structure → write → verify → resume
- Gather — scan tool history, derive read/modified sets, run read-only
git/test probes. - Structure — fill the fixed template; Current State first, Done labeled DO NOT REDO.
- Write — save
handoffs/handoff-<UTC>.md, fill the Handoff Chain link. - Verify — run the quality checklist (no secrets, no placeholders, copy-paste verify commands, open question preserved).
- Resume — print the path + the
<handoff-context>resume block.
Full detail: handoff/ref/pipeline.md.
The skill lives in the handoff/ folder so the skill directory name matches the skill name.
git clone https://github.com/cskwork/agent-handoff.git
ln -s "$PWD/agent-handoff/handoff" ~/.claude/skills/handoff # Claude Code
ln -s "$PWD/agent-handoff/handoff" ~/.codex/skills/handoff # CodexThen in Claude Code, the skill auto-triggers near ~80% context, on milestones, or after 5+ edits — or invoke it explicitly:
create a handoff · 핸드오프 만들어 · summarize where we left off · next plan of action
Output lands in handoffs/ in your working project. Other agents (Codex, Gemini) can use it too —
point them at handoff/SKILL.md.
handoff/ the skill (folder name = skill name)
SKILL.md lean entry (frontmatter + pipeline summary)
ref/pipeline.md full pipeline + cold-resume failure-mode table
ref/templates/handoff*.md general / coding / debugging templates
ref/checklists/*.md authoring gate + receiving-agent checklist
scripts/check-staleness.sh validate a handoff before trusting it
examples/ filled handoffs (coding + debugging)
docs/index.html GitHub Pages landing page
README.md · LICENSE · log/ repo meta
Pipeline and document structure inspired by oh-my-pi's
/handoff (Goal / Constraints / Progress / Key Decisions / Critical Context / Next Steps), its
createHandoffFileName ISO timestamp naming, its mechanically-derived <read-files>/
<modified-files> tags, and its <handoff-context> re-injection wrapper. This skill adapts that
design to a file-writing skill: because a skill cannot fork a session, it always writes the
markdown file as the durable cross-agent transport.
MIT — see LICENSE.