Skip to content
Skillpedia
Agents310k · #113

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.md

Copy 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

Use this skill to help me: https://github.com/mattpocock/skills/blob/main/skills/in-progress/claude-handoff/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills