claude-handoff
What it does
It writes a summary of the conversation and starts a new background agent that continues the work. It is for people using Claude Code who want to hand off a task and keep going elsewhere.
When to use it
- ✓When a long conversation has become heavy and you want a fresh start.
- ✓When you want a background agent to continue the work while you do something else.
- ✓When you want to hand a task to a new session with full context.
Skill link
https://github.com/mattpocock/skills/blob/main/skills/in-progress/claude-handoff/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Hand this conversation off to a background agent so it can keep working on the login bug.”
5 new skills a week. 1 minute to read.
How it works
The agent saves a handoff summary to a temporary file, removes sensitive details, and starts a named background session that uses the summary as its starting prompt.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Write a handoff summary of the current conversation so a fresh agent can continue the work. Save it to the temporary directory of the user's OS, then launch a background agent seeded with it as its prompt: claude --bg --name "<descriptive name>" -- "$(cat <summary file>)". Passing the file keeps the shell from running backticks or expanding $ in the summary. It starts in the current working directory and returns immediately; the user manages it with claude agents.
Always pass -n/--name with a descriptive name (e.g. --name "Fix login bug"); it sets the display name shown in the job list, session picker, and terminal title.
Include a "suggested skills" section in the summary, naming which skills the next agent should call the Skill tool for.
Do not duplicate content already captured in other artifacts (specs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
Redact any sensitive information, such as API keys, passwords, or personally identifiable information, since the summary becomes the agent's prompt.
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the summary accordingly.
FAQ
How do I check on the background agent?
The skill says you manage it with the claude agents command.
Does the summary include secrets?
The skill says to redact sensitive details such as API keys and passwords before the handoff.
Does the new agent repeat old documents?
No. It refers to existing specs, plans, and commits by path or link instead of copying them.
Details
Original description by the author
Hand the current conversation off to a fresh background agent that picks up the work immediately.
repo: mattpocock/skills
Popularity
- GitHub stars
- 310k
- Ranking position
- #113
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
ask-matt
310kLets your agent act as a guide to a set of coding skills, pointing you to the right one for your situation, from idea to shipped code.
code-review
310kChecks your changes against your repo's coding standards and the original spec, running both reviews side by side before you merge.
domain-modeling
310kBuilds a shared project glossary and records key design decisions, so your code uses the same words your team uses.
implement-spec
310kTurns a finished spec and its tickets into working code, handling the tickets in order and bringing them together on one branch.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.