Checkpoint Management

中级 Intermediate 流程型 Process ⚡ Claude Code 专属 ⚡ Claude Code Optimized
2 min read · 91 lines

Create named snapshots at key milestones for progress tracking and safe rollbacks

Checkpoint Management

Overview

Checkpoint management provides named snapshots within a development workflow for tracking progress, verifying changes, and enabling safe rollbacks. The /checkpoint command creates, verifies, and lists checkpoints tied to git state.

Typical Workflow

[Start]     --> /checkpoint create "feature-start"
    |
[Implement] --> /checkpoint create "core-done"
    |
[Test]      --> /checkpoint verify "core-done"
    |
[Refactor]  --> /checkpoint create "refactor-done"
    |
[PR]        --> /checkpoint verify "feature-start"

Why This Flow Works

  1. Feature start -- Clean baseline for the entire feature
  2. Core done -- Milestone marker after core implementation
  3. Verify after testing -- Confirm test state relative to milestone
  4. Post-refactor checkpoint -- Prove refactoring introduced no regressions
  5. Final verify against start -- Full-scope review of all changes before PR

Best Practices

  1. Create checkpoints at meaningful milestones, not after every small change
  2. Use descriptive names: auth-backend-done, db-migration-applied
  3. Always create checkpoints before and after refactoring
  4. Verify against the initial checkpoint before submitting a PR
  5. Periodically clear to keep the log manageable

相关技能 Related Skills