About claude-handoff
claude-handoff is a skill for preparing a Claude conversation handoff, then starting a background session with the summary. It emphasizes avoiding duplicated notes, removing sensitive data, and suggesting skills for the next agent.
Key features
- 01Prepare a continuation-ready handoff
- 02Start a background session from a temp file
- 03Label the task with a descriptive name
- 04Suggest skills and reference existing artifacts
- 05Remove sensitive information
Use cases
- 01Hand off current work to a background agent
- 02Tailor a handoff to the user's stated focus
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ devcxl/ mattpocock-skills-zh --skill claude-handoffAfter installing, type/claude-handoffin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project README为当前对话撰写一份交接摘要,让一个全新的 agent 能够继续工作。先将摘要保存到用户操作系统的临时目录,再以该文件内容作为提示启动后台 agent:claude --bg --name "<描述性名称>" -- "$(cat <summary file>)"。通过文件传入摘要可避免 shell 执行其中的反引号或展开 $。它会在当前工作目录启动并立刻返回;用户通过 claude agents 来管理它。
务必传 -n/--name 并配以描述性名称(例如 --name "修复登录 bug"):它会被设置为任务列表、会话选择器以及终端标题中所显示的标签。
在摘要里加一个 "suggested skills" 部分,建议下一个 agent 调用哪些技能。
不要重复已经被记录在其他产物(规格、计划、ADR、issue、commit、diff)中的内容。引用时用路径或 URL。
抹去任何敏感信息,例如 API 密钥、密码或可识别个人身份的信息:摘要会成为 agent 的提示词。
如果用户传入了参数,把它们当作对下一个会话关注点的描述,并据此裁剪摘要。