Skip to main content

claude-handoff

Hand the current conversation off to a fresh background agent that picks up the work immediately.

Matt PocockIn ProgressMIT

SKILL.md

Written by Matt Pocock and published in mattpocock/skills under the MIT license. Treq shows it unchanged except for heading levels and links to files on 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.

When claude-handoff runs

In Claude Code, claude-handoff runs only when you type /claude-handoff. Its frontmatter sets disable-model-invocation: true, which keeps the description out of Claude's context. In Codex, type $claude-handoff to run it.

Install claude-handoff

Claude Code

Copy the claude-handoff folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.

git clone --depth 1 https://github.com/mattpocock/skills.git /tmp/mattpocock-skills
mkdir -p .claude/skills
cp -r /tmp/mattpocock-skills/skills/in-progress/claude-handoff .claude/skills/

Codex

Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if claude-handoff does not appear.

git clone --depth 1 https://github.com/mattpocock/skills.git /tmp/mattpocock-skills
mkdir -p .agents/skills
cp -r /tmp/mattpocock-skills/skills/in-progress/claude-handoff .agents/skills/

Treq

Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for claude-handoff and choose Install….

Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.

Files

claude-handoff ships 2 files, 1.5 KB in total. Select a file to load it from GitHub.

agents/openai.yaml141 BView on GitHub ↗

All skills by Matt Pocock