# Checkpoint Management

Git-backed state management for safe rollback.

- Repository: https://github.com/a5c-ai/babysitter (1887 stars)
- Category: Git and review
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add a5c-ai/babysitter --skill checkpoint-management -g -a claude-code -y`
Codex: `npx skills add a5c-ai/babysitter --skill checkpoint-management -g -a codex -y`
Cursor: `npx skills add a5c-ai/babysitter --skill checkpoint-management -g -a cursor -y`
Gemini CLI: `npx skills add a5c-ai/babysitter --skill checkpoint-management -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add a5c-ai/babysitter`

## Description

Git-backed state management for safe rollback. Create and restore checkpoints with tagged commits and metadata tracking.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

- Stage all current changes
- Create commit with [CHECKPOINT] prefix
- Tag with claudekit-checkpoint-{timestamp}
- Record metadata: files changed, insertions, deletions

### Restore Checkpoint
- List available checkpoints by tag
- Preview changes that would be reverted
- Restore to selected checkpoint via git reset
- Verify restored state matches checkpoint

## Session Isolation

Checkpoints are session-scoped. Tags created during a session can be cleaned up without affecting other work.

## When to Use

- Before risky refactoring operations
- After passing quality checks (safety checkpoints)
- At the start and end of ClaudeKit sessions
- Before spec execution phases

## Processes Used By

- `claudekit-orchestrator` (session start/end checkpoints)
- `claudekit-safety-pipeline` (safety checkpoints after quality checks)

