Create, verify, or list workflow checkpoints after running verification checks.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ecc-73b4a1f458bb ,按照其中的说明把「checkpoint」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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)