/cs:handoff <next-session-focus> — Compact the current conversation into a handoff document for a fresh agent. Tailored to next-session focus (deploy/review/deb
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-25e53595499d ,按照其中的说明把「cs-handoff」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Command: /cs:handoff <next-session-focus>
Hand off the current conversation to a fresh agent. Tailored to the focus argument.
skill_recommender.py"Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead."
The artifact_deduplicator.py enforces this — FAIL verdict blocks the handoff.
# 1. Generate template tailored to focus
python ../skills/handoff/scripts/handoff_template_generator.py \
--next-focus "<focus from command argument>" \
--mktemp
# 2. Fill in the 5 sections from current conversation state
# 3. Pre-flight: dedup check
python ../skills/handoff/scripts/artifact_deduplicator.py path/to/draft.md
# CLEAN or WARN (with justified findings) → proceed
# FAIL → refactor; replace duplicated content with refs
# 4. Populate skills section
python ../skills/handoff/scripts/skill_recommender.py path/to/draft.md
# Use top recommendations for "Skills to use"
# 5. Share the file path. Next agent reads + acts.
| Focus argument keyword | Section emphasis |
|---|---|
| ship/deploy/PR | Deployment commands, checks, approvers, rollback |
| review/audit | Checklist, sensitive files, similar patterns |
| debug/fix/investigate | Symptom, repro steps, tried-already |
| design/plan/scope | Outcome, constraints, rejected alternatives |
| test/qa | Test plan, existing coverage, edge cases |
| (other) | Immediate action, blocker, files, open decisions |
50-100 lines. Anything longer probably duplicates an artifact.
cs-handoff-authorhandoff/cs:caveman, /cs:grill-me, /cs:write-a-skillVersion: 1.0.0 Derived: Matt Pocock's handoff (MIT) + this repo's wrapper