commands/checkpoint.md
Create or verify a checkpoint in your workflow.
/checkpoint [create|verify|list] [name]
When creating a checkpoint:
/verify quick to ensure current state is clean.claude/checkpoints.log:echo "$(date +%Y-%m-%d-%H:%M) | $CHECKPOINT_NAME | $(git rev-parse --short HEAD)" >> .claude/checkpoints.log
When verifying against a checkpoint:
Read checkpoint from log
Compare current state to checkpoint:
Report:
CHECKPOINT COMPARISON: $NAME
============================
Files changed: X
Tests: +Y passed / -Z failed
Coverage: +X% / -Y%
Build: [PASS/FAIL]
Show all checkpoints with:
Typical checkpoint flow:
[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"
$ARGUMENTS:
create <name> - Create named checkpointverify <name> - Verify against named checkpointlist - Show all checkpointsclear - Remove old checkpoints (keeps last 5)