/workflow-skills:handofffrom workflow-skills
Packages in-progress work into a structured handoff document so a different person or fresh AI agent can pick up without re-deriving context. Use when switching tasks, delegating, or ending a session.
Ships in workflow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A handoff is a self-contained context package that lets a different person — or a fresh AI agent — pick up in-progress work without re-deriving everything. Most delegation fails not because the next person lacks skill, but because the context in the originator's head never got written down: what's done, what's half-done, why a path was abandoned, and what to do next. This skill produces a structured handoff document that captures exactly that, so the receiver can be productive on their first action instead of their tenth.
Use it across any domain in this library — engineering work, a PM initiative, a compliance audit, a draft document — wherever work outlives a single working session.
Before writing the handoff, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
# Gather objective state (git branch, recent commits, changed/untracked files) to seed the handoff
python scripts/handoff_context.py --repo . --format markdown
handoff_context.py to capture the objective state (git status, recent commits, changed files).assets/handoff_template.md) — lead with goal + current state, not history.Use when the work should continue unattended in its own session. The doc becomes the background agent's whole prompt, so it must stand alone. Full guidance, launch options per platform and safety notes: references/background-agent-handoff.md.
handoff_context.py --check; fix every problem it lists.python scripts/handoff_context.py --check assets/sample_background_handoff.md --name "Exporter dry-run"
claude --bg --name "Exporter dry-run" -- "$(cat /tmp/handoff.md)" # flags vary by version: check --help
| Section | What it answers | Keep it to |
|---|---|---|
| Goal & done-state | Where are we headed and how do we know we're done? | 2-3 sentences |
| Current state | What's done / in-progress / untouched right now? | A checklist |
| Next steps | What should the receiver do, in order? | Ranked, actionable |
| Decisions made | What's already settled (don't relitigate)? | Bullets + one-line why |
| Abandoned paths | What was tried and ruled out, and why? | Bullets + reason |
| Open questions / risks | What's unresolved or could bite? | Bullets, flag owner |
| Key locations | Files, branches, dashboards, tickets, people | Links/paths |
| Stop and report when (background) | When must the agent stop instead of improvising? | Bullets |
| Report back (background) | Where does the result go, and what must it contain? | One line |
| Suggested skills (background) | Which skills cover which step? | Skill — step |
auth.py:42 to the new token endpoint; expect a 200 with a JWT" is.Mistake: Launching a background agent with "continue where we left off" plus a summary, and no stop conditions or report target. Why it happens: It works in an interactive session, where the receiver can ask. Instead: Spell out when to stop and where to report. An unattended agent with no stop rule improvises past the point where a person would have asked, and its result lands nowhere anyone looks.
Mistake: Pasting a connection string or token into the handoff "so the agent has everything".
Why it happens: It is the fastest way to unblock the receiver.
Instead: Name where the secret lives and let the receiver read it there. --check flags common key formats, but redaction is the author's job.
Mistake: Including the full diff or whole files in the handoff. Why it happens: It feels more complete than a pointer. Instead: Reference the branch and commits. The receiver reads current files; a pasted copy is stale the moment anything changes.
scripts/handoff_context.py has two modes. Default: print the branch, recent commits and
changed files as a seed block (--format markdown|json). With --check FILE: validate a
handoff doc for background use and print launch commands; exit 0 ready, 1 not ready, 2
unreadable file. It never launches anything itself.
In Scope: Producing a structured, self-contained handoff document for in-progress work in any domain; capturing objective repo state via the helper script; making open work actionable for the receiver; preparing, checking and launching a handoff as the prompt of a background agent session.
Out of Scope: Project status reporting to stakeholders (project-management/execution/status-update-generator/); incident post-mortems (project-management/execution/post-mortem/); onboarding a new hire to a whole role (hr-operations/, project-management/career/pm-onboarding/). A handoff is about one body of in-flight work, not a person's full ramp-up.
| File | Purpose |
|---|---|
scripts/handoff_context.py | Seed block from git state; --check validates a background-mode handoff |
assets/handoff_template.md | Fill-in handoff document, with the three background-mode sections at the end |
assets/sample_background_handoff.md | Complete background-mode handoff that passes --check |
references/background-agent-handoff.md — what a background prompt needs, launch commands per platform, quoting, permissions, and how to check on the run.assets/handoff_template.md — fill-in-the-blanks handoff document.scripts/handoff_context.py — captures git branch, recent commits, and changed/untracked files as a seed block.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin workflow-skills3 skills in this plugin
/session-retroReview a coding-agent session and turn its failures and waste into ranked fixes to the agent's environment. Use when a session went slow or wrong, after a messy agent run, or to tune CLAUDE.md or AGENTS.md.
/skill-routerThis skill should be used when the user has a vague or cross-domain request and asks "which skill should I use", "is there a skill for this", "find the right skill", or "route this to the best skill" — it matches an intent against the whole skills library and recommends the best-fit skill(s).
Other plugins' skills for the same job