npx claudepluginhub aaione/everything-claude-code-zh# Checkpoint 命令 在你的工作流中创建或验证 checkpoint(检查点)。 ## 用法 `/checkpoint [create|verify|list] [name]` ## 创建 Checkpoint 创建 checkpoint 时: 1. 运行 `/verify quick` 以确保当前状态是干净的 2. 使用 checkpoint 名称创建 git stash 或 commit 3. 将 checkpoint 记录到 `.claude/checkpoints.log`: 4. 报告 checkpoint 已创建 ## 验证 Checkpoint 针对 checkpoint 进行验证时: 1. 从日志中读取 checkpoint 2. 将当前状态与 checkpoint 进行比较: - 自 checkpoint 以来添加的文件 - 自 checkpoint 以来修改的文件 - 现在 vs 当时的测试通过率 - 现在 vs 当时的覆盖率 3. 报告: ## 列出 Checkpoints 显示所有 checkpoints 及其: - 名称 - 时间戳 - Git SHA - 状态 (current, behind, ahead) ## 工作流 典型的 checkpoint 流程: ## 参数 ...
/checkpointCreates git-based checkpoints with stashes/commits and logs them for workflows. Verifies by comparing file changes, tests passed/failed, coverage, build status. Also lists and clears.
/checkpointCreates or verifies named checkpoints in git workflow: stash/commit with log entry, compare files/tests/coverage changes. Also lists and clears.
/checkpointCreates, verifies, or lists named checkpoints in a workflow, logging state with git SHA and comparing file/test/coverage changes.
/checkpointManages project checkpoints: verifies code and tests, commits via git with Conventional Commits, updates progress.md docs, suggests /clear. Supports save, restore, list, --archive.
/checkpointSaves or restores git working directory checkpoints capturing staged/unstaged changes and untracked files. Supports list, diff, delete subcommands with optional --tag.
/forge-checkpointCreates a manual checkpoint by writing a timestamped JSON entry to .claude/forge-command.json and stashing all current git changes with a labeled message.
Share bugs, ideas, or general feedback.
在你的工作流中创建或验证 checkpoint(检查点)。
/checkpoint [create|verify|list] [name]
创建 checkpoint 时:
/verify quick 以确保当前状态是干净的.claude/checkpoints.log:echo "$(date +%Y-%m-%d-%H:%M) | $CHECKPOINT_NAME | $(git rev-parse --short HEAD)" >> .claude/checkpoints.log
针对 checkpoint 进行验证时:
从日志中读取 checkpoint
将当前状态与 checkpoint 进行比较:
报告:
CHECKPOINT COMPARISON: $NAME
============================
Files changed: X
Tests: +Y passed / -Z failed
Coverage: +X% / -Y%
Build: [PASS/FAIL]
显示所有 checkpoints 及其:
典型的 checkpoint 流程:
[开始] --> /checkpoint create "feature-start"
|
[实现] --> /checkpoint create "core-done"
|
[测试] --> /checkpoint verify "core-done"
|
[重构] --> /checkpoint create "refactor-done"
|
[PR] --> /checkpoint verify "feature-start"
$ARGUMENTS:
create <name> - 创建指定名称的 checkpointverify <name> - 针对指定名称的 checkpoint 进行验证list - 显示所有 checkpointsclear - 移除旧的 checkpoints(保留最后 5 个)