Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Agent Skill

Handoff (Matt Pocock)

Writes a short handoff document from the current session so a fresh agent can pick up the work, saved to your temp folder with secrets redacted.

name: handoffBy Matt PocockChecked
View source on GitHub
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark

Install

Commands are pinned to commit abeeaf9, the version we read, wherever the install method supports it.

npx skills

Terminal
npx skills add mattpocock/skills@abeeaf95660ba9e8b7c753eb38f441ca707a8823 --skill handoff -a claude-code

Copies the skill into .claude/skills/ in this project, pinned to the reviewed commit.

Plugin marketplace

Claude Code prompt
/plugin install mattpocock-skills@claude-plugins-official

Run inside Claude Code. Installs the whole mattpocock-skills plugin from its default branch, not the pinned commit; the official marketplace is available by default.

What it does

A 16-line skill for ending a session cleanly. When you run it, the agent writes a handoff document that summarises the conversation so a fresh agent can continue the work. It saves the file to your operating system’s temp folder rather than the repository, lists which skills the next agent should load, links to existing artefacts (specs, plans, ADRs, issues, commits) instead of copying them, and redacts API keys, passwords and personal data. If you pass an argument, the document is tailored to what the next session will focus on.

When to use it

Before context gets long enough to compact, when handing work from one agent to another (Claude Code to Codex, say), or at the end of a day when you want tomorrow’s session to start without re-explaining everything. It is a cheap habit that saves the first ten minutes of the next session.

When to skip it

Short tasks that fit in one session, and work where the plan file or the PR description already holds the state. The skill itself warns against duplicating those.

Try it

/handoff Next session: finish the CSV export and write its tests.

Then start the new session with “Read the handoff at and continue.” Check the document before you do: a summary can drop the one constraint that mattered.

What it can touch

Bundles scripts
No
Pre-approved tools
None declared
Needs
Nothing beyond the agent
Client-specific fields
argument-hint, disable-model-invocation

claude.ai and the Claude API reject uploads that use fields outside the open spec or names containing "claude" or "anthropic", so this skill needs editing before you upload it there.

Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.

Instructions only. It writes one file outside the workspace. The frontmatter sets disable-model-invocation: true, so in Claude Code and Cursor it only runs when you call it, and argument-hint, a Claude Code field. Both are outside the open spec, so remove them before uploading to claude.ai. Other agents ignore them, which means they may trigger it on their own.

At commit abeeaf9 the SKILL.md is 16 lines long. Alongside it:

  • agents/ (1 entry)

Alternatives

To spec from the same author when the conversation should become a spec in your tracker instead. Writing plans for a plan the next agent can execute step by step. Background on why sessions degrade is in our glossary entry on compaction.

SKILL.md

The file exactly as published at the reviewed commit, reproduced under its MIT licence.

skills/productivity/handoff/SKILL.md
---
name: handoff
description: Compact the current conversation into a handoff document for another agent to pick up.
argument-hint: "What will the next session be used for?"
disable-model-invocation: true
---

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.
  • To spec (Matt Pocock)

    Turns what you have already discussed with the agent into a written spec with user stories and decisions, and files it in your issue tracker.

    Engineering workflowChecked at abeeaf9

  • Writing plans

    obra's Superpowers skill that turns a spec into a step-by-step implementation plan with right-sized tasks, exact files and test steps, before any code.

    Engineering workflowJesse Vincent (obra)Checked at 22f0b46

  • Task management with TASKS.md

    Keeps your to-do list in a TASKS.md file with Active, Waiting On, Someday and Done sections, edits it on request, and asks before adding tasks from meetings.

    AnthropicChecked at 0e0fcac

  • Claude Code skills: folders, invocation and plugins

    Where Claude Code skills live, which copy wins when names clash, how /skill-name works, Claude Code's extra frontmatter fields and how plugin skills are named.

    Skill guideIntermediate

  • Context engineering

    Deciding what instructions, documents, tools and history a model sees at each step.

    SkillIntermediate