Overview
Save the current work progress, update the work log and status snapshot, and ensure context is not lost.
When to Use
- Completing a phase of work
- Preparing to switch tasks
- Before a session ends
- The user says "checkpoint", "存档", "保存进度"
Steps
1. Collect the current state
Ask for or infer the following information:
- What was completed today?
- Which tasks are in progress? What is their progress?
- What decisions were made?
- What problems or blockers were encountered?
- What is planned for tomorrow?
2. Update the work log
Create or update docs/memory/YYYY-MM-DD.md:
# YYYY-MM-DD 工作日志
## 今日完成
- [x] [完成的事项 1]
- [x] [完成的事项 2]
## 进行中
- [ ] [进行中的任务 1](进度:[X]%)
- [ ] [进行中的任务 2](进度:[Y]%)
## 决策记录
| 时间 | 决策 | 原因 |
|------|------|------|
| [时间] | [决策内容] | [原因] |
## 遇到的问题
- [问题描述及解决方案]
## 明日计划
- [ ] [计划事项 1]
- [ ] [计划事项 2]
## 关联文档
- [相关 spec](link)
- [相关 plan](link)
3. Update the status snapshot
Update docs/progress.md:
# 工作流状态快照
## 当前进行中的工作
1. [任务1] - 进度 [X]%
2. [任务2] - 进度 [Y]%
3. [任务3]
## 待办事项
- [ ] [待办1]
- [ ] [待办2]
## 阻塞/卡点
- [问题描述]
## 最近的决策
| 日期 | 决策内容 | 原因 |
|------|----------|------|
| [日期] | [决策] | [原因] |
## 相关文档链接
- [文档1](link)
- [文档2](link)
---
*最后更新:YYYY-MM-DD*
4. Confirm the save is complete
Report to the user:
- The work log has been updated
- The status snapshot has been updated
- The session can be safely ended
Notes
- If the user does not provide information, ask proactively
- Keep it concise; just record the key information
- When updating progress.md, retain historical decisions (keep only the most recent 5-10)
Success Criteria
- Created today's work log
- Updated progress.md
- Recorded completed items
- Recorded in-progress tasks and their progress
- Recorded important decisions