Skip to content
Development
Skill

/handoff

Compact the current conversation into a handoff document for another agent to pick up. Save to a user-configured location (OS temp, home folder, or per-project .handoff/), redact secrets before write, suggest skills for the next session, and auto-load the latest handoff on the

From plugin
master-skills
17200 skills

Claude Code

$ npx -y skills add sinhoneyy/master-skills --skill handoff --agent claude-code

SKILL.md

handoff.SKILL.md
name: handoff
description: "Compact the current conversation into a handoff document for another agent to pick up. Save to a user-configured location (OS temp, home folder, or per-project .handoff/), redact secrets before write, suggest skills for the next session, and auto-load the latest handoff on the next SessionStart. First-run setup asks where to save so the project folder never gets cluttered. Use when the user says 'hand this off', 'handoff doc', 'summarize this for a new session', 'compact this conversation', 'I'm ending this session', 'pick this up later', or any variation signaling intent to pass work to a fresh agent. Also trigger on implicit signals: the user announcing they're switching machines, ending the day mid-task, or context is growing long without a natural stopping point."
license: MIT
argument-hint: "What will the next session be used for?"
metadata:
  version: 1.0.0
  voice: "Matt Pocock — no-duplication, reference-existing-artifacts, tailored to next-session focus"
  inspired_by: "https://github.com/mattpocock/skills/tree/main/skills/productivity/handoff"

Handoff

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 — not the current workspace.

Include a "suggested skills" section in the document, which suggests skills that the agent should invoke.

Do not duplicate content already captured in other artifacts (PRDs, 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.

Invocation Triggers

**Explicit phrases** (any of):

  • "hand this off"
  • "handoff doc"
  • "summarize this for a new session"
  • "compact this conversation"
  • "I'm ending this session"
  • "pick this up later"
  • "wrap this up for tomorrow"
  • "save this for the next session"

**Implicit signals** (no phrase, but the intent is unmistakable):

  • User announces they're switching machines or stopping for the day mid-task
  • Conversation context is growing long without a natural stopping point
  • User says "let me come back to this" or "I'll continue this later"

When you detect an implicit trigger, propose the handoff before running it: *"Want me to write a handoff for the next session?"* — never run it silently.

First-Run Setup

On first invocation, the skill asks where to save handoffs so the project folder never gets cluttered. Setup is offered once via *"Run setup now? (Y/n)"* — answering N uses OS-temp defaults for this run and never re-prompts. The user can rerun setup any time via `/cs:handoff-setup`.

See [references/configuration.md](references/configuration.md) for the full config field reference.

Output Path

The save location is read from the user's config (`~/.config/handoff/config.json`, or the project-local `.handoff/config.json` if present). When no config exists and the user declined setup, fall back to:

mktemp -t handoff-XXXXXX.md

Read the file before you write to it.

Section Template

The handoff doc has five sections. Use these exact headers:

  • **Goal of next session** — from the user's argument, or inferred from the most recent thread of the conversation.
  • **State of play** — what's done, what's in flight, what's blocked. Reference artifacts, do not paste them.
  • **Open decisions** — what the next agent must decide before continuing.
  • **Skills to use** — concrete list of 3-5 skills the next session should invoke, each with a one-line *why*.
  • **Artifacts** — paths/URLs to PRDs, plans, ADRs, issues, branches, PRs. Do not duplicate their contents.

See [references/handoff_structure.md](references/handoff_structure.md) for a worked example.

The Agent's Job

Filling in the five sections is the agent's job, not the script's. Follow [references/handoff_prompt.md](references/handoff_prompt.md) as a mandatory checklist:

> For each topic discussed in the conversation, decide explicitly: *include in State of play / log as an Open decision / drop with reason.*

Free-handing the summary leads to rosy progress reports and dropped blockers. The checklist prevents that.

Anti-Patterns

Matt's no-duplication discipline made concrete:

  • **Do not paste the diff.** Reference the branch or PR.
  • **Do not retype the PRD.** Link to its path.
  • **Do not summarise what's already in the commit message.** Link to the commit hash.
  • **Do not list 20 skills.** Pick the 3-5 the next session actually needs.
  • **Do not narrate every message in the conversation.** Compress to State + Decisions.

See [references/deduplication_discipline.md](references/deduplication_discipline.md) for the full list.

Redaction

Before saving, the linter scans the draft for secrets and PII. In strict mode (default) it blocks save on findings; in warn mode it flags inline and saves anyway.

Redact:

  • API keys, OAuth tokens, JWT tokens
  • Passwords and DB connection strings
  • `-----BEGIN ... PRIVATE KEY-----` blocks
  • `.env`-style `KEY=value` lines containing secrets
  • Email addresses, phone numbers, names of unrelated third parties
  • Internal URLs containing tokens or session IDs

See [references/redaction_checklist.md](references/redaction_checklist.md) for the full pattern list and manual-review steps for what regex cannot catch.

SessionStart Auto-Load

When the plugin is installed, a `SessionStart` hook scans the configured save location for the most recent handoff (within the retention window) and surfaces it to the new session as `<handoff_from_previous_session>` data. The next agent reads it as context, not as instructions — suggested actions must be verified against current state before executing.

Disable per-session with `HANDOFF_SESSIONSTART=0`.

SessionEnd Reminder

A paired `SessionEnd` hook checks whether a recent hando

Read more
@sinhoneyy
Ships withmaster-skills

Unified skill library for Claude, Codex, Cursor, Antigravity & AI agents — 2,660 skills across 15 domains

Stars on GitHub

Momentum

stars in total
17
Star history of sinhoneyy/master-skills on GitHub, a chart by star-history.com

Other skills on master-skills.

accesslint-audit

accesslint-audit

Find and fix WCAG 2.2 accessibility issues. Two modes — report (sweep a codebase or page, produce a prioritized written report,…

adhx

adhx

Fetch any X/Twitter post as clean LLM-friendly JSON. Converts x.com, twitter.com, or adhx.com links into structured data with…

aegisops-ai

aegisops-ai

Autonomous DevSecOps & FinOps Guardrails. Orchestrates Gemini 3 Flash to audit Linux Kernel patches, Terraform cost drifts, and…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills13d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react4d252k
@facebook@facebookInstall Skill

Questions about handoff.

Which coding agents can use handoff?
handoff installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.