Compact the current conversation into a handoff document for another agent to pick up.
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 document summarising the current conversation so a fresh agent can continue the work. Save to the temporary directory of the user's OS ($TMPDIR, else /tmp; %TEMP% on Windows) - not the current workspace.
Include a "suggested skills" section in the document, 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.
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.
In Claude Code, handoff runs only when you type /handoff. Its frontmatter sets disable-model-invocation: true, which keeps the description out of Claude's context. In Codex, type $handoff to run it.
Copy the 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/productivity/handoff .claude/skills/
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 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/productivity/handoff .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for 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.
handoff ships 2 files, 1.1 KB in total. Select a file to load it from GitHub.