/flow-extras:handoff What will the next session be used for?from flow-extras
Write a redacted handoff summary of the current conversation and, on the user's yes, start a fresh background agent seeded with it. Use when the user asks to hand off, continue in a new session, or pass this work to a background agent. Not for flow runs (flow keeps its own state in the spec and PROGRESS.md; use /flow:next to resume), not for saving a lesson (use /flow:lesson).
Ships in flow-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A fresh agent continues the work from one file. The file becomes its whole prompt, so it holds pointers and decisions, never copied content, and never a secret.
Cover, in this order: goal; current state (what is done, what is not); decisions and constraints, kept as the exact user wording because a paraphrase drifts; tried and rejected options, each with the reason, so the next agent does not retry them; problems met and how each was resolved; artifact paths; open items; and Suggested skills: naming the skills the next agent should call through the Skill tool. Keep the details that are hard to reconstruct exact: names, numbers, dates, links. If the user passed an argument, treat it as the focus of the next session and tailor the summary to it.
Point to specs, plans, ADRs, issues, commits and diffs by path or URL. Copying them duplicates what the next agent can read itself and goes stale.
Write each remaining step as a line that starts Open. and ends with one marker saying how you know its state, because the next agent otherwise repeats a write or trusts a guessed path:
(run) exit N: you ran it and it exited N.(read): you read the file or output yourself.(assumed): you did not check.(state checked) when you inspected the target as it is now, or (code read) when you only read the code that writes it.List every step marked (assumed) or (code read), and every (run) with a non-zero exit, under Verify first: above Next steps:. Verifying is read-only inspection (read, list, git status, a dry run); the next agent confirms before it writes.
Pipe the draft to scripts/handoff.sh beside this SKILL.md. It masks API keys, tokens, passwords, private keys and email addresses, because the file becomes a prompt and sits in a temp dir. It writes ${TMPDIR:-/tmp}/handoff-<slug>.md ($TMPDIR is often unset on Linux) and prints the path:
bash <this skill dir>/scripts/handoff.sh write <slug> <<'EOF'
...summary...
EOF
If the script warns that a marked step is outside Verify first:, move it there and write again.
Read the written file once and remove anything the patterns missed: unusual secret shapes (keys, tokens, connection strings), customer names, internal hostnames. The script handles the common shapes only, so do not quote secrets in the draft at all.
Print the exact line with scripts/handoff.sh command "<name>" <file> and ask. The name is short and descriptive (for example Fix login bug) and holds no quotes, $, backticks or backslashes (the script refuses them); it shows in the job list and terminal title.
Only on a yes, run scripts/handoff.sh launch "<name>" <file>. It runs claude --bg -n "<name>" -- "$(cat <file>)" in the current directory and returns at once; the user manages the job with claude agents. The file is passed inside double quotes, so the shell does not expand $ or run backticks in the summary. On a no, leave the file in place and stop.
Skip quietly when claude is not on PATH (launch also exits 0 with a note): report the file path and stop.
Tests: bash scripts/test_handoff.sh.
Credit: adapted from mattpocock/skills skills/in-progress/claude-handoff/SKILL.md @ 49dd158 (MIT). Credit: adapted from garrytan/gstack context-save/SKILL.md.tmpl @ 5b9b837 (MIT). Credit: adapted from anthropics/skills skills/claude-api/shared/model-migration.md @ dbd4588 (Apache-2.0).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tomaspalsson/flow --plugin flow-extras20 skills in this plugin
/auditStage-gated parallel code audit for a whole codebase or module: recon → 6 parallel detection agents (correctness, security, performance, design, tests, style) → dedup + triage → user approval gate → fix planning → second approval gate → serialized apply with revert-on-failure → verification. Use for whole-codebase/module debt inventory, health checks, modernization, production-readiness sweeps, or quality audits. Triggers on: /audit, audit this codebase, audit repo, find tech debt, pay down debt, code health check, make production-ready, refactor everything, apply clean code, quality sweep. Do NOT use for: single-PR or branch review ≤10 files (use /pr-reviewer), one-file cleanup (use /simplify), bug fix (use /fix), feature work (use /flow:next), style-only formatting (run the formatter), or uncommitted-change review (use /review). Scope threshold: whole-codebase or whole-module only — not for incremental branch work./babysitDrive one open pull request, or several independent ones, toward merge-ready after flow ships a draft: fix failing CI and resolve merge conflicts. Use when asked to babysit a PR, get it green, fix the CI, resolve the conflicts, or check on one or more PRs. Modes: check (one read-only report) or drive (loop until CI is green and the PR merges clean, or a hard stop). Open review threads are reported and left to the user. Never merges and never marks a draft ready. Not for opening the PR (use /flow:next), not for reviewing someone else's PR (use /pr-reviewer), not for diagnosing a bug from scratch (use /flow:fix).