claude-handoff
写一份当前会话的交接摘要,让新的代理能马上接手工作。把摘要保存到用户操作系统的临时目录,再用它作为提示词启动后台代理:claude --bg --name "<descriptive name>" -- "$(cat <summary file>)"。通过文件传递摘要,可以避免 shell 执行其中的反引号或展开 $。代理会在当前工作目录启动,并立即返回;用户可以通过 claude agents 管理它。
始终使用 -n/--name 并提供一个有描述性的名称,例如 --name "Fix login bug"。这个名称会显示在任务列表、会话选择器和终端标题中。
在摘要里加入一个「suggested skills」部分,列出下一个代理应该为哪些 skills 调用 Skill 工具。
不要重复其他材料(规格、计划、架构决策记录、issue、提交、diff)里已经记录的内容。用路径或 URL 引用它们。
删除任何敏感信息,例如 API key、密码或个人身份信息,因为摘要会成为代理的提示词。
如果读者传入了参数,就把它当作下一会话的工作说明,并据此调整摘要。
原文链接和 commit
Section titled “原文链接和 commit”读者要自己输入 /claude-handoff 才会用到它。它不在 Claude Code 插件里。
把当前会话整理成交接摘要,保存到临时目录并启动后台代理继续工作。摘要会列出建议调用的 skills,并避免重复已有材料或泄露敏感信息。
Hand the current conversation off to a fresh background agent that picks up the work immediately.- 仓库 mattpocock/skills
- 文件
skills/in-progress/claude-handoff/SKILL.md - 提交
d81f3a1 - 原仓库里这一则没有单独的说明页。
- 同目录文件
skills/in-progress/claude-handoff/agents/openai.yaml
英文 SKILL.md
---name: claude-handoffdescription: Hand the current conversation off to a fresh background agent that picks up the work immediately.argument-hint: "What will the next session be used for?"disable-model-invocation: true---
Write a handoff summary of the current conversation so a fresh agent can continue the work. Save it to the temporary directory of the user's OS, then launch a background agent seeded with it as its prompt: `claude --bg --name "<descriptive name>" -- "$(cat <summary file>)"`. Passing the file keeps the shell from running backticks or expanding `$` in the summary. It starts in the current working directory and returns immediately; the user manages it with `claude agents`.
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.
Include a "suggested skills" section in the summary, 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, since the summary becomes the agent's prompt.
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the summary accordingly.非官方学习站,与 Matt Pocock 和 AI Hero 没有隶属关系。本站不提供可安装的中文技能包。
技能原文采用 MIT 许可。Copyright (c) 2026 Matt Pocock