Agent skill · operations · aiskillstore

checkpoint

Robust workflow checkpoint and resume. Handles session interruption, state recovery, and safe resume across all workflow phases.

Why this skill is useful

Adds a robust checkpoint and resume protocol with specific state management scripts that enhance workflow resilience.

What it needs

About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Checkpoint & Resume Skill Pattern for saving workflow state and resuming after interruption. When to Load This Skill Starting a workflow that might be interrupted Resuming after claude -r Recovering from crashes or timeouts Core Concept The dotagent workflow uses file-based state that survives session interruption: Checkpoint Files Phase Checkpoint: memory/state/phase.json Execution Checkpoint: memory/state/execution.json See executor agent for detailed schema with: Task status tracking Timestamps (startedat, completedat) Output file paths for verification Resume Protocol Step 1: Detect Resume Scenario Step 2: Validate State Integrity Step 3: Determine Resume Point Step 4: Inform User and Continue Safe Checkpoint Writing Always update checkpoint atomically: Recovery from Specific Scenarios Scenario 1: Ctrl-C During Subagent Scenario 2: Crash After Write, Before State Update Scenario 3: Interrupted During User Approval Scenario 4: Ancient State File Checkpoint Frequency Update checkpoint after: Phase completion User approval Each task status change (in executor) Before spawning expensive agents (opus) Archiving Old State When starting fresh or after completion: Integration with Workflow In /develop Command In Each Phase Agent Principles 1. State on disk - Never rely on conversation memory alone 2. Validate before resume - Don't blindly trust old state 3. Inform the user - Always tell them what's being resumed 4. Atomic writes - Prevent half-written state 5. Archive, don't delete - Keep old state for debugging

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/checkpoint--bb1dec

View the source on GitHub

Browse the @skills marketplace