Files
SuperClaude/.claude/commands/shared/checkpoint.yml

28 lines
732 B
YAML
Raw Normal View History

# Checkpoint System
```yaml
Create:
Tag: git tag checkpoint/<type>-$(date +%Y%m%d-%H%M%S)
Stash: git stash push -m "checkpoint-<operation>-<timestamp>"
Manifest: .claude/checkpoints/manifest.yml
Summary: .claudedocs/summaries/checkpoint-<type>-<timestamp>.md
Triggers:
Auto: Destructive|Refactor|Migration|Permissions|Deploy
Manual: User request|Risky ops|Experiments
Types: feature|fix|refactor|migrate|deploy|manual
Rollback:
Full: git reset --hard <checkpoint>
Selective: git checkout <checkpoint> -- <files>
Incremental: git revert <commits>
Stash: git stash pop
Process:
- Verify checkpoint exists
- Check working tree
- Confirm w/ user
- Create pre-rollback checkpoint
- Execute & verify
```