claude-handoff
GitHub生成会话交接摘要并启动后台代理继续工作。通过保存摘要文件防止命令注入,指定描述性名称,包含建议技能列表,引用现有文档而非重复内容,并脱敏敏感信息,实现任务的无缝转移。
触发场景
安装
npx skills add mattpocock/skills --skill claude-handoff -g -y
SKILL.md
Frontmatter
{
"name": "claude-handoff",
"description": "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.
版本历史
-
49dd158
当前 2026-10-19 03:18
修复了直接传递摘要时Shell插值导致的安全问题,改为写入临时文件后通过cat命令安全传递给后台代理。
-
1bb9595
2026-08-19 19:44
移除文档中的破折号(em-dashes),统一标点格式。
-
068b6e0
2026-08-16 06:51
统一跨技能调用的表述规范,要求显式提及'Skill tool'而非使用斜杠前缀语法,以提高模型调用准确率并增强工具中立性。
- ed37663 2026-07-24 15:57


