Context handoff
Token-saving skills for coding agents: token-diet and context-handoff. Small, portable, no dependencies.
npx -y skills add cocohahaha/coding-agent-token-skills --skill context-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
Create a compact handoff document when a coding-agent session is large, slow, or expensive but unfinished work must continue in a fresh session. Captures the goal, completed work, decisions, touched files, exact next step, and gotchas. Triggers include "handoff", "baton pass", "continue in a fresh session", "context is too large", "write a session handoff".
SKILL.md
1.6 KB, as published. Nobody here has run it
Context Handoff
Use this skill when the session is too heavy, but the work still needs to continue.
Write a small Markdown handoff. The next agent should be able to read it once and start working.
Steps
- Write to
HANDOFF.mdin the current working directory unless the user asks for another path. - Include only what the next session needs.
- Keep exact paths, commands, errors, versions, and constraints.
- End with the next concrete action.
- After writing, report only the file path and the restart prompt.
Restart prompt:
Read HANDOFF.md and continue from "Next Step".
Template
# Handoff: <task name>
Generated: <date>
## Goal
<What the work is trying to achieve. 1-2 sentences.>
## Done
- <Concrete progress, with files/functions/results.>
## Decisions
- <Important choices, constraints, and why they matter.>
## Files
- `path/to/file` - <why it matters>
## Next Step
1. <The exact next action.>
2. <The action after that, if obvious.>
## Gotchas
- <Known failures, environment notes, commands to run, tests still needed.>
Quality Bar
- Short enough to paste into a new session.
- Specific enough that the next agent does not rediscover the same facts.
- No meeting notes. No vague summaries. No full transcript.