关于 session-handoff
Session Handoff 是为后续会话整理续接记录的技能,适合转交进行中的工作;记录项目状态、决策、经验,并提供可复制的恢复命令。
主要功能
- 01收集 Git 状态和近期历史
- 02列出已完成及待办工作
- 03记录决策及其理由
- 04提供可复制的恢复命令
适用场景
- 01为稍后的会话准备续接信息
- 02将进行中的任务转交给下一会话
- 03结束工作时总结仓库状态
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ rohitg00/ pro-workflow --skill session-handoff安装后在 Claude Code 中输入/session-handoff确认已加载。
详细介绍
会话交接
这不同于收尾总结。收尾总结是给你自己看的清单。交接文档是写给下一次会话的。
触发条件
当你说“handoff”“continue later”“pass to next session”“session transfer”,或结束会话并希望之后顺利继续时使用。
工作流
- 从 git 中收集当前状态。
- 列出已完成、进行中和待处理的工作。
- 记录已做出的关键决策及其理由。
- 总结本次会话中的任何经验。
- 为下一次会话生成恢复命令。
命令
git status
git diff --stat
git log --oneline -5
git branch --show-current
输出
# Session Handoff — [date] [time]
## Status
- **Branch**: feature/xyz
- **Commits this session**: 3
- **Uncommitted changes**: 2 files modified
- **Tests**: passing / failing / not run
## What's Done
- [completed task 1]
- [completed task 2]
## What's In Progress
- [current task with context on where you stopped]
- [file:line that needs attention next]
## What's Pending
- [next task that hasn't been started]
- [blocked items with reason]
## Key Decisions Made
- [decision 1 and why]
- [decision 2 and why]
## Learnings Captured
- [Category] Rule (from this session)
## Files Touched
- `path/to/file1.ts` — [what changed]
- `path/to/file2.ts` — [what changed]
## Gotchas for Next Session
- [thing that tripped you up]
- [non-obvious behavior discovered]
## Resume Command
> Continue working on [branch]. [1-2 sentence context]. Next step: [specific action].
注意事项
- 为读者(下一次会话)而写,而不是为作者自己而写。
- 在相关处注明具体文件路径和行号。
- 恢复命令应可直接复制并粘贴到下一次会话中。
- 保持客观——从功能角度描述变更,不要推断动机。
评论
支持 Markdown