Skip to content
Back to skills

Checkpoint Manager

ASecurity

State snapshots and rollback for safe experimentation. Use when creating checkpoints, rolling back changes, managing recovery points, or implementing safe experimentation.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
developmentpythongorefactoringgit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add adaptationio/Skrillz --skill checkpoint-manager --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Checkpoint Manager?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Checkpoint Manager
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adaptationio-checkpoint-manager/badge)](https://www.skillsdirectory.com/skills/adaptationio-checkpoint-manager)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: checkpoint-manager
description: State snapshots and rollback for safe experimentation. Use when creating checkpoints, rolling back changes, managing recovery points, or implementing safe experimentation.
version: 1.0.0
category: autonomous-coding
layer: verification-recovery
---

# Checkpoint Manager

Creates and manages state checkpoints for safe rollback during autonomous coding.

## Quick Start

### Create Checkpoint
```python
from scripts.checkpoint_manager import CheckpointManager

manager = CheckpointManager(project_dir)
checkpoint = await manager.create_checkpoint(
    name="before-refactor",
    description="State before major refactoring"
)
```

### Rollback to Checkpoint
```python
await manager.rollback(checkpoint.id)
# or rollback to latest
await manager.rollback_to_latest()
```

## Checkpoint Workflow

```
┌─────────────────────────────────────────────────────────────┐
│                 CHECKPOINT WORKFLOW                          │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  CREATE CHECKPOINT                                           │
│  ├─ Capture git state (commit hash, dirty files)           │
│  ├─ Snapshot feature list                                   │
│  ├─ Save progress file state                               │
│  ├─ Record context (session, tokens)                       │
│  └─ Store checkpoint metadata                               │
│                                                              │
│  RISKY OPERATION                                             │
│  ├─ Attempt operation                                       │
│  ├─ If success → Continue                                   │
│  └─ If failure → Rollback to checkpoint                    │
│                                                              │
│  ROLLBACK                                                    │
│  ├─ Load checkpoint data                                    │
│  ├─ Git reset to checkpoint commit                         │
│  ├─ Restore feature list                                   │
│  ├─ Restore progress file                                  │
│  └─ Clean up temporary files                               │
│                                                              │
└─────────────────────────────────────────────────────────────┘
```

## Checkpoint Structure

```json
{
  "id": "checkpoint-20250115-103000",
  "name": "before-refactor",
  "description": "State before major refactoring",
  "timestamp": "2025-01-15T10:30:00",
  "git_state": {
    "commit_hash": "abc1234",
    "branch": "main",
    "dirty_files": ["src/app.ts"]
  },
  "feature_state": {
    "current": "auth-003",
    "completed": ["auth-001", "auth-002"],
    "snapshot_path": ".claude/checkpoints/checkpoint-xxx/feature_list.json"
  },
  "context": {
    "session_number": 5,
    "token_usage": 45000
  }
}
```

## Checkpoint Types

| Type | Trigger | Retention |
|------|---------|-----------|
| **Automatic** | Before risky operations | Last 5 |
| **Manual** | User/agent request | Until deleted |
| **Feature** | After feature complete | Permanent |
| **Session** | Start of session | Last 3 |

## Integration Points

- **error-recoverer**: Triggers rollback on failures
- **coding-agent**: Creates checkpoints before changes
- **autonomous-loop**: Manages checkpoint lifecycle
- **context-state-tracker**: Provides state to checkpoint

## References

- `references/CHECKPOINT-STRATEGY.md` - Strategy guide
- `references/ROLLBACK-PROCEDURES.md` - Rollback details

## Scripts

- `scripts/checkpoint_manager.py` - Core manager
- `scripts/git_snapshot.py` - Git state capture
- `scripts/state_snapshot.py` - Feature/progress capture
- `scripts/rollback_handler.py` - Rollback execution

Files in this skill

  • SKILL.md4.2 KB
  • scripts/checkpoint_manager.py8.2 KB
  • scripts/git_snapshot.py4.6 KB
  • scripts/rollback_handler.py5 KB
  • scripts/state_snapshot.py5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…