session-handoff
它能做什么
这项技能总结当前的工作,包括目标、决定和下一步,让其他人可以接着完成。适合结束会话、切换电脑,或长对话快要占满空间、想用摘要重新开始的人。
适用场景
- ✓当你要结束一次会话,并希望之后接着做的时候。
- ✓当你要切换到另一台电脑,或把工作交给另一个智能体的时候。
- ✓当一段长对话变得过大,你想用摘要重新开始的时候。
技能链接
https://github.com/alirezarezvani/claude-skills/blob/main/productivity/handoff/skills/session-handoff/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请写一份交接说明,让新的会话能从我们今天停下的地方接着做。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会总结目标、当前状态、决定和下一步。它会指向已有的文件而不是复制它们,去除密钥等敏感信息,然后把说明保存到临时文件夹中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Handoff
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 — not the current workspace.
Include a "suggested skills" section in the document, which suggests skills that the agent should invoke.
Do not duplicate content already captured in other artifacts (PRDs, 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.
Invocation Triggers
Explicit phrases (any of):
- "hand this off"
- "handoff doc"
- "summarize this for a new session"
- "compact this conversation"
- "I'm ending this session"
- "pick this up later"
- "wrap this up for tomorrow"
- "save this for the next session"
Implicit signals (no phrase, but the intent is unmistakable):
- User announces they're switching machines or stopping for the day mid-task
- Conversation context is growing long without a natural stopping point
- User says "let me come back to this" or "I'll continue this later"
When you detect an implicit trigger, propose the handoff before running it: "Want me to write a handoff for the next session?" — never run it silently.
First-Run Setup
On first invocation, the skill asks where to save handoffs so the project folder never gets cluttered. Setup is offered once via "Run setup now? (Y/n)" — answering N uses OS-temp defaults for this run and never re-prompts. The user can rerun setup any time via /cs-handoff-setup.
See references/configuration.md for the full config field reference.
Output Path
The save location is read from the user's config (~/.config/handoff/config.json, or the project-local .handoff/config.json if present). When no config exists and the user declined setup, fall back to:
mktemp -t handoff-XXXXXX.md
Read the file before you write to it.
Section Template
The handoff doc has five sections. Use these exact headers:
- Goal of next session — from the user's argument, or inferred from the most recent thread of the conversation.
- State of play — what's done, what's in flight, what's blocked. Reference artifacts, do not paste them.
- Open decisions — what the next agent must decide before continuing.
- Skills to use — concrete list of 3-5 skills the next session should invoke, each with a one-line why.
- Artifacts — paths/URLs to PRDs, plans, ADRs, issues, branches, PRs. Do not duplicate their contents.
See references/handoff_structure.md for a worked example.
The Agent's Job
Filling in the five sections is the agent's job, not the script's. Follow references/handoff_prompt.md as a mandatory checklist:
For each topic discussed in the conversation, decide explicitly: include in State of play / log as an Open decision / drop with reason.
Free-handing the summary leads to rosy progress reports and dropped blockers. The checklist prevents that.
Anti-Patterns
Matt's no-duplication discipline made concrete:
- Do not paste the diff. Reference the branch or PR.
- Do not retype the PRD. Link to its path.
- Do not summarise what's already in the commit message. Link to the commit hash.
- Do not list 20 skills. Pick the 3-5 the next session actually needs.
- Do not narrate every message in the conversation. Compress to State + Decisions.
See references/deduplication_discipline.md for the full list.
Redaction
Before saving, the linter scans the draft for secrets and PII. In strict mode (default) it blocks save on findings; in warn mode it flags inline and saves anyway.
Redact:
- API keys, OAuth tokens, JWT tokens
- Passwords and DB connection strings
-----BEGIN ... PRIVATE KEY-----blocks.env-styleKEY=valuelines containing secrets- Email addresses, phone numbers, names of unrelated third parties
- Internal URLs containing tokens or session IDs
See references/redaction_checklist.md for the full pattern list and manual-review steps for what regex cannot catch.
SessionStart Auto-Load
When the plugin is installed, a SessionStart hook scans the configured save location for the m
常见问题
交接说明保存在哪里?
它保存在你电脑上的临时文件夹中,而不是你的项目文件夹。
它会保留密码或密钥吗?
不会,这项技能在保存前会删除 API 密钥和密码等敏感信息。
它会建议下一步加载什么吗?
会的,说明中包含一份建议下一个智能体使用的技能清单。
详情
作者的原始描述
Write a handoff document so a fresh session or another agent can pick up exactly where this one left off: goal, current state, decisions, next steps and the skills to load, referencing existing files instead of copying them, with secrets redacted before saving. Use whenever the user is ending a session, switching machines, running low on context, or asks for a handoff, a handoff doc, a 'pick up where we left off' summary, or to compact the conversation for next time. Saves to a location the user picks on first run (OS temp, home folder or per-project .handoff/) and can auto-load the latest han
热度
- GitHub 星标
- 29k
- 排名
- #9710
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-launcher-orchestrator
29k帮你的智能体从一个清晰的目标出发,逐步规划、构建、测试并定时运行你自己账户中的 Claude 托管智能体。
grade-iterate
29k让你的智能体按评分标准为托管 AI 智能体的工作打分,并在固定的轮次内改进,因此它永远不会无限循环。
interview
29k让你的智能体就一个 AI 智能体的想法对你进行访谈,并在任何上线之前,把你的回答整理成一份简单的构建计划。
run-without-you
29k帮你的智能体设置托管 AI 智能体,使其按计划或在某个事件发生时运行,并在启动前检查定时设置。