handoff
GitHub将当前对话整理为交接文档,保存至系统临时目录,供新 Agent 接续工作。包含建议技能、敏感信息脱敏及引用现有工件,避免内容重复。
Trigger Scenarios
Install
npx skills add mattpocock/skills --skill handoff -g -y
SKILL.md
Frontmatter
{
"name": "handoff",
"description": "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.
Version History
-
49dd158
Current 2026-10-19 03:18
优化了临时目录解析逻辑,统一跨平台(Windows/macOS)行为,确保每次运行写入相同位置并报告绝对路径。
-
068b6e0
2026-08-16 06:52
标准化跨技能调用方式,明确要求显式调用 Skill tool 而非使用斜杠命令语法,以提高模型触发准确率。
- ed37663 2026-07-24 15:58


