A compact session handoff prompt for coding agents. Primarily packaged as a Claude Code skill, but the instructions inside SKILL.md are model- and platform-agnostic — see Using with other agents.
When your current session is getting long, run /handoff-prompt. The skill introspects the session and emits a single fenced block covering:
- Current task — what you were working on
- Progress so far — concrete files/lines changed
- Where we stopped — last action + reason
- Next steps — what to do next
- Key decisions & gotchas — non-obvious traps
- Context references — paths to
CLAUDE.md/AGENTS.md/ active plan (never inlined) - Open questions — unresolved items
The output is hard-capped at ~300 tokens. Empty sections are omitted. Project context is referenced by path, not duplicated. Paste the block into a fresh session and keep going.
/compact is generic and verbose. Most of what ends up in a compacted transcript is restatement you don't need. This skill emits only what a new agent actually needs to resume — everything else is either in your repo's CLAUDE.md / AGENTS.md or in the plan/spec files it links to.
Clone directly into your user-scope skills directory:
git clone https://github.com/sidorovanthon/handoff-prompt.git ~/.claude/skills/handoff-promptOr, if you only want the skill file:
mkdir -p ~/.claude/skills/handoff-prompt
curl -o ~/.claude/skills/handoff-prompt/SKILL.md \
https://raw.githubusercontent.com/sidorovanthon/handoff-prompt/main/SKILL.mdRestart your Claude Code session — skills are loaded at startup.
git clone https://github.com/sidorovanthon/handoff-prompt.git "$env:USERPROFILE\.claude\skills\handoff-prompt"In any Claude Code session, type:
/handoff-prompt
Claude will reply with a single code block. Copy it, open a fresh session, and paste.
That's it.
cd ~/.claude/skills/handoff-prompt && git pullrm -rf ~/.claude/skills/handoff-promptThe core is a set of instructions for an LLM coding agent — the Claude Code packaging (YAML frontmatter + ~/.claude/skills/ path + /handoff-prompt slash command) is just one way to deliver them. Any capable coding agent that accepts custom instructions, project rules, or a system prompt can produce the same handoff block.
Save the body of SKILL.md as a project rule:
curl -o .cursorrules https://raw.githubusercontent.com/sidorovanthon/handoff-prompt/main/SKILL.mdThen ask Cursor: "Generate a handoff prompt following the handoff-prompt rules."
Load it as read-only context:
curl -o handoff-prompt.md https://raw.githubusercontent.com/sidorovanthon/handoff-prompt/main/SKILL.md
aider --read handoff-prompt.mdThen ask: "Generate a handoff prompt."
Both honor the Anthropic skill format. Place the file at the platform's skills location (check each platform's docs for the exact path) and invoke by name.
Paste the body of SKILL.md into the agent's custom instructions, system prompt, or a project AGENTS.md / conventions file, then ask: "Give me a handoff prompt."
MIT