|
Download github_code/affaan-m__ECC/commands/checkpoint.md from Corpus-NZ/High-Quality-Code: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/datasets/Corpus-NZ/High-Quality-Code/resolve/main/github_code/affaan-m__ECC/commands/checkpoint.md
- Command line
-
hf download hf://datasets/Corpus-NZ/High-Quality-Code/github_code/affaan-m__ECC/commands/checkpoint.md
-
curl -L -o checkpoint.md https://huggingface.co/datasets/Corpus-NZ/High-Quality-Code/resolve/main/github_code/affaan-m__ECC/commands/checkpoint.md
1.62 kB
metadata
description: >-
Create, verify, or list workflow checkpoints after running verification
checks.
Checkpoint Command
Create or verify a checkpoint in your workflow.
Usage
/checkpoint [create|verify|list] [name]
Create Checkpoint
When creating a checkpoint:
- Run
/verify quickto ensure current state is clean - Create a git stash or commit with checkpoint name
- Log checkpoint to
.claude/checkpoints.log:
echo "$(date +%Y-%m-%d-%H:%M) | $CHECKPOINT_NAME | $(git rev-parse --short HEAD)" >> .claude/checkpoints.log
- Report checkpoint created
Verify Checkpoint
When verifying against a checkpoint:
Read checkpoint from log
Compare current state to checkpoint:
- Files added since checkpoint
- Files modified since checkpoint
- Test pass rate now vs then
- Coverage now vs then
Report:
CHECKPOINT COMPARISON: $NAME
============================
Files changed: X
Tests: +Y passed / -Z failed
Coverage: +X% / -Y%
Build: [PASS/FAIL]
List Checkpoints
Show all checkpoints with:
- Name
- Timestamp
- Git SHA
- Status (current, behind, ahead)
Workflow
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
$ARGUMENTS:
create <name>- Create named checkpointverify <name>- Verify against named checkpointlist- Show all checkpointsclear- Remove old checkpoints (keeps last 5)