workflow-checkpoint
Workflow Checkpoint System - Save and recover from any point in multi-step AI workflows. Never lose progress mid-task.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aptratcn/workflow-checkpointWorkflow Checkpoint System 💾
Save and recover from any point in multi-step AI workflows. Never lose progress mid-task.
Why This Matters
AI Agents executing multi-step workflows often fail mid-way:
- Task 3 of 5 fails → all progress lost
- Session restarts → must start from scratch
- Token overflow → workflow interrupted
- Tool errors → uncertain where we left off
This skill eliminates that problem with automatic checkpointing.
How It Works
Core Protocol
For every multi-step workflow:
1. PLAN → Write steps to checkpoint file
2. EXECUTE → After each step, save:
- Which step completed
- What output was produced
- What artifacts were created
- Current state/data
3. VERIFY → Check step result
4. CHECKPOINT → Update progress file
5. RECOVER → On failure, resume from last checkpoint
Checkpoint File Format
Save to memory/checkpoints/<workflow-name>.json:
{
"workflow": "deploy-website",
"startedAt": "2026-04-21T07:30:00Z",
"totalSteps": 5,
"completedSteps": [1, 2, 3],
"currentStep": 4,
"status": "in_progress",
"steps": {
"1": {
"name": "Clone repository",
"status": "done",
"output": "/tmp/myapp cloned successfully",
"timestamp": "2026-04-21T07:31:00Z"
},
"2": {
"name": "Install dependencies",
"status": "done",
"output": "npm install completed",
"timestamp": "2026-04-21T07:33:00Z"
},
"3": {
"name": "Build project",
"status": "done",
"output": "build/ directory created",
"timestamp": "2026-04-21T07:35:00Z"
},
"4": {
"name": "Deploy to server",
"status": "failed",
"error": "Connection timeout",
"timestamp": "2026-04-21T07:38:00Z"
},
"5": {
"name": "Verify deployment",
"status": "pending"
}
},
"artifacts": ["/tmp/myapp/build/", "/tmp/myapp/config/"],
"lastCheckpoint": "2026-04-21T07:38:00Z"
}
Recovery Protocol
When resuming a failed workflow:
- Read checkpoint file
- Identify last completed step
- Skip completed steps (verify artifacts still exist)
- Resume from failed/pending step
- Update checkpoint
Usage Examples
Before a complex task:
I'm about to execute a 5-step workflow: deploy-website.
Steps: 1) Clone repo 2) Install deps 3) Build 4) Deploy 5) Verify
Saving checkpoint to memory/checkpoints/deploy-website.json
After each step:
Step 2/5 complete: Install dependencies
Output: npm install completed, 142 packages
Checkpoint updated: completedSteps [1,2]
On failure:
Step 4/5 FAILED: Deploy to server
Error: Connection timeout to 192.168.1.100:22
Checkpoint saved. Can resume from step 4.
Retrying... (attempt 1/3)
On recovery:
Resuming workflow: deploy-website
Last checkpoint: Step 3 completed at 07:35
Skipping steps 1-3 (verified artifacts exist)
Resuming from step 4: Deploy to server
Integration with Other Skills
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aptratcn-workflow-checkpoint": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
calling-agent-squad
Activate a multi-agent team (the Squad) to manage complex projects, business tasks, or development workflows. The squad includes a Manager, Architect, Coder, Reviewer, and Observer. Use when the user wants to "call a squad", "start a project", or "deploy squad" with specialized roles and quality control loops.
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
markdown-knowledge
将本地 Markdown 知识库与 OpenClaw 集成,支持语义检索和上下文注入。仅在用户触发时检索(搜索知识库、查一下知识库等),不主动注入。
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.
auto-context
智能上下文卫生检查器。分析当前会话的上下文污染程度 (长对话、主题漂移、噪声累积),建议:continue、/fork、/btw 或新会话。 支持手动触发(/auto-context)和自动触发(响应层实现)。 基于 ArXiv 论文和认知心理学研究的多维度评估体系。