Generate a handoff document compacting the current conversation for a fresh agent to pick up. Walks the mandatory checklist, runs the redaction linter, saves to
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-72c0ce77d8cd ,按照其中的说明把「cs-handoff」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Compact the current conversation into a handoff document for another agent to pick up.
/cs:handoff [optional description of what the next session will focus on]
The argument (if provided) becomes the Goal of next session verbatim. Without it, infer from the most recent unresolved thread.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/config_loader.py --status.
should_prompt_setup: true, ask the user: "Run setup now? (Y/n)".
/cs:handoff-setup, then return here.python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/setup.py --decline. Continue with defaults.python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/cleanup.py. mtime-guarded — never deletes edited files.skills/handoff/references/handoff_prompt.md and apply every step against the conversation.python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/handoff_template_generator.py --goal "<goal>". Capture the printed path.python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/skill_recommender.py --goal "<goal>". Pick 3-5 max. Edit the auto-list.python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/handoff_self_check.py <path>. Fixes fidelity gaps (empty Goal, State bullets without artifacts, missing Decisions when git is dirty, too few/many Skills, inline content in Artifacts). Strict mode by default — resolve findings before save.python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/redaction_linter.py <path>. Strict mode by default — resolve findings before save. Use <!-- handoff:allow secret --> for true false positives.When work continues past the original handoff, pass --refresh to the generator instead of creating a new file:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/handoff/scripts/handoff_template_generator.py --refresh --goal "<updated goal>"
The script returns the path of the most recent handoff; edit it in place. Re-run the self-check and redaction linter after editing.
The plugin's SessionStart hook surfaces the most recent handoff (within retention window) on the next session start. The next agent reads it as data, not instructions. Disable per-session with HANDOFF_SESSIONSTART=0.
Inspired by Matt Pocock's handoff skill (MIT). The no-duplication discipline is his.