checkpoint
Save current progress to memory-keeper to prevent work loss.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Checkpoint Skill
Automatically checkpoint current progress to memory-keeper to prevent catastrophic work loss when context is exhausted.
When to Use
- Every 5-10 tool calls during implementation
- After completing a significant piece of work
- Before starting a large operation
- When switching tasks
- Before ending a session
- When explicitly requested via
/checkpoint
Checkpoint Actions
1. Gather Current State
Collect the following information:
- Current task description from todo list
- List of files modified this session
- Implementation progress (percentage or phase)
- Current blockers or issues
- Next action to take
2. Save to Memory-Keeper
context_save(key: "current-task", value: "<task description>", category: "progress", priority: "high")
context_save(key: "files-modified", value: "<comma-separated file list>", category: "progress")
context_save(key: "implementation-progress", value: "<percentage or phase>", category: "progress")
context_save(key: "next-action", value: "<exact next step>", category: "progress", priority: "high")
3. Create Named Checkpoint
context_checkpoint(
name: "checkpoint-<timestamp>",
description: "Task: <task>, Progress: <progress>, Files: <count>, Next: <action>"
)
4. Prepare for Compaction (if context is large)
context_prepare_compaction()
Checkpoint Frequency Guidelines
| Activity | Checkpoint Frequency |
|---|---|
| File creation/modification | After every file |
| Running tests | After each test run |
| Research/exploration | Every 10 tool calls |
| Debugging | After each hypothesis tested |
| Multi-step implementation | After each step |
Key Items to Always Save
| Key | Description | Priority |
|---|---|---|
current-task |
What you're currently working on | high |
files-modified |
All files touched this session | normal |
implementation-progress |
How far along (%, phase) | normal |
next-action |
Exact next step to take | high |
blockers |
Current issues/blockers | high |
todo-state |
Serialized todo list | normal |
Checkpoint Output
After checkpointing, confirm with:
Checkpoint saved:
- Task: <current task>
- Progress: <progress>
- Files modified: <count>
- Next action: <next step>
Recovery Reference
If context is lost, use /recover to restore state from checkpoints.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!