claude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
1How It Works & Mechanism
The core mechanism launches a background agent directly without writing to disk: compresses the current conversation into a handoff summary, then invokes `claude --bg` using the summary directly as the prompt to start a new agent, rather than writing a handoff document like the stable handoff skill.
Write a handoff summary of the current conversation so a fresh agent can continue the work. Instead of saving it, launch a background agent seeded with the summary as its prompt: `claude --bg --name "<descriptive name>" "<handoff summary>"`. It starts in the current working directory and returns immediately; the user manages it with `claude agents`.
Summary discipline: Must include a suggested skills section, reference existing artifacts via path/URL instead of duplicating content, and redact sensitive information—because the summary becomes the prompt for the new agent.
Include a "suggested skills" section in the summary, naming which skills the next agent should call the Skill tool for.
Explicit user invocation only: Frontmatter specifies disable-model-invocation: true, paired with policy.allow_implicit_invocation: false in the Codex manifest; argument-hint prompts the user for the 'next session purpose' upon triggering.
argument-hint: "What will the next session be used for?"
Naming convention: Must pass a descriptive name via -n/--name for display across job lists, session pickers, and terminal titles.
Always pass `-n`/`--name` with a descriptive name (e.g. `--name "Fix login bug"`); it sets the display name shown in the job list, session picker, and terminal title.
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | claude (Claude Code CLI) |
4Recommended Governance & Evidence
- 本地工作目录: File I/O and artifact output: The skill itself writes no files (explicitly 'Instead of saving it'); the background agent it launches continues working in the cwd according to host permissions, potentially reading and writing files.
5Second-Pass Verification
- [ok] claude --bg 调用点真实存在 — SKILL.md 正文逐字含 ``claude --bg --name "<descriptive name>" "<handoff summary>"``,且是唯一 CLI 调用指令。
- [ok] user-invoked 双清单(disable-model-invocation + allow_implicit_invocation: false) — 两 manifest 均存在且取值正确;in-progress README 亦标 User-invoked。
- [ok] 不落盘 vs productivity/handoff 写文档 — 原文 'Instead of saving it, launch a background agent' 明确;productivity/handoff/SKILL.md 存在且为写文档实现,两 skill 并存无冲突。
- [ok] suggested skills / 引用不复制 / 脱敏三段纪律 — 三段原文均在 SKILL.md('suggested skills'、'Reference them by path or URL instead'、'Redact any sensitive information…')。
- [ok] argument-hint 存在 — frontmatter 含 argument-hint: "What will the next session be used for?",且正文有对应的定向裁剪指令。
- [ok] 无外部网络端点/凭证读取 — token 扫描零网络命中;无 env/keychain/文件凭证读取指令。claude --bg 为本地 CLI。
- [ok] 命令注入面(安全反例检查) — 确认注入面真实存在(摘要进命令行 + 进新 agent prompt),已在 security.injection_surface 与 verdict.risks 显式记录;skill 自身无转义指令属宿主/模型责任,如实标注而非回避。
- [ok] 元数据 — GitHub API:MIT、257659 stars、pushed_at 2026-09-04T08:45:43Z;本地 HEAD == 3cca18b。license 归属仓库根 LICENSE。
6Verdict & Scenarios
09e04d39f394ef5b…