# Handoff

把当前对话压缩成交接文档，让另一个代理接手。

- Repository: https://github.com/vinvcn/mattpocock-skills-zh-CN (5461 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-28
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add vinvcn/mattpocock-skills-zh-CN --skill handoff -g -a claude-code -y`
Codex: `npx skills add vinvcn/mattpocock-skills-zh-CN --skill handoff -g -a codex -y`
Cursor: `npx skills add vinvcn/mattpocock-skills-zh-CN --skill handoff -g -a cursor -y`
Gemini CLI: `npx skills add vinvcn/mattpocock-skills-zh-CN --skill handoff -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add vinvcn/mattpocock-skills-zh-CN`

## Description

把当前对话压缩成交接文档，让另一个代理接手。

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

编写一份 handoff document，总结当前对话，让 fresh agent 能继续工作。保存到用户操作系统的临时目录（`$TMPDIR`，否则 `/tmp`；Windows 上是 `%TEMP%`），不要保存到当前 workspace。

在文档中包含 "suggested skills" section，写明下一个 agent 应调用 Skill 工具并指定哪些 skills。

不要重复已经被其他 artifacts 捕获的内容（specs、plans、ADRs、issues、commits、diffs）。改用 path 或 URL 引用它们。

删去任何敏感信息，例如 API keys、passwords 或 personally identifiable information。

如果用户传入了 arguments，把它们视为下一次 session 的关注点描述，并据此调整文档。

