handoff
编写一份 handoff 文档,总结当前对话,让新的代理可以接着处理工作。把文件保存到用户操作系统的临时目录($TMPDIR,否则用 /tmp;Windows 上用 %TEMP%),不要放在当前工作区。
在文档中加入一个「suggested skills」部分,列出下一个代理应该调用 Skill 工具的 skills。
不要重复其他资料里已经记录的内容,例如规格、计划、架构决策记录(ADR)、issue、提交和 diff。用路径或 URL 引用它们。
遮盖任何敏感信息,例如 API key、密码或个人身份信息。
如果用户提供了参数,就把它当作下一次会话的工作说明,并据此调整文档。
原文链接和 commit
Section titled “原文链接和 commit”读者要自己输入 /handoff 才会用到它。它在 Claude Code 插件里。
handoff 会把当前对话整理成文档,方便其他 harness、目录或代理接着处理,并根据你给出的目标调整内容。
Compact the current conversation into a handoff document for another agent to pick up.- 仓库 mattpocock/skills
- 文件
skills/productivity/handoff/SKILL.md - 提交
d81f3a1 - 说明页
docs/productivity/handoff.md - 同目录文件
skills/productivity/handoff/agents/openai.yaml
英文 SKILL.md
---name: handoffdescription: Compact the current conversation into a handoff document for another agent to pick up.argument-hint: "What will the next session be used for?"disable-model-invocation: true---
Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save to the temporary directory of the user's OS (`$TMPDIR`, else `/tmp`; `%TEMP%` on Windows) - not the current workspace.
Include a "suggested skills" section in the document, 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.
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.非官方学习站,与 Matt Pocock 和 AI Hero 没有隶属关系。本站不提供可安装的中文技能包。
技能原文采用 MIT 许可。Copyright (c) 2026 Matt Pocock