Skip to content
Development
Command

/checkpoint

在工作流(Workflow)中创建或验证检查点。

From plugin
everything-claude-code
1.8k35 skills15 agents35 commands6 hooks
Install
> /plugin marketplace add xu-xiang/everything-claude-code-zh
> /plugin install everything-claude-code@everything-claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/checkpoint

Context preview

What this command does when you run it.

在工作流(Workflow)中创建或验证检查点。

Command definition

checkpoint.md

检查点(Checkpoint)指令

在工作流(Workflow)中创建或验证检查点。

用法

`/checkpoint [create|verify|list] [name]`

创建检查点(Create Checkpoint)

创建检查点时:

1. 运行 `/verify quick` 以确保当前状态干净 2. 使用检查点名称创建一个 git stash 或提交(Commit) 3. 将检查点记录到 `.claude/checkpoints.log`:

echo "$(date +%Y-%m-%d-%H:%M) | $CHECKPOINT_NAME | $(git rev-parse --short HEAD)" >> .claude/checkpoints.log

4. 报告检查点已创建

验证检查点(Verify Checkpoint)

对比检查点进行验证时:

1. 从日志中读取检查点 2. 将当前状态与检查点进行对比:

  • 自检查点以来新增的文件
  • 自检查点以来修改的文件
  • 当前与当时的测试通过率对比
  • 当前与当时的代码覆盖率对比

3. 报告:

CHECKPOINT COMPARISON: $NAME
============================
Files changed: X
Tests: +Y passed / -Z failed
Coverage: +X% / -Y%
Build: [PASS/FAIL]

列出检查点(List Checkpoints)

显示所有检查点,包括:

  • 名称
  • 时间戳
  • Git SHA
  • 状态(当前、落后、超前)

工作流(Workflow)

典型的检查点工作流:

[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>` - 创建具名检查点
  • `verify <name>` - 对比指定的检查点进行验证
  • `list` - 显示所有检查点
  • `clear` - 移除旧检查点(保留最后 5 个)
Ships witheverything-claude-code

🌐 Language / 语言 / 語言 为 AI 智能体(Agent)框架打造的性能优化系统。源自 Anthropic 黑客松获胜作品。 这不仅仅是配置文件。它是一个完整的系统:包含技能(Skills)、本能(Instincts)、内存优化、持续学习、安全扫描以及研究优先的开发模式。这些生产级的智能体(Agents)、钩子(Hooks)、命令(Commands)、规则(Rules)以及 MCP 配置,是在构建真实产品的 10 个多月高强度日常使用中演化而来的。 适用于 Claude Code, Codex,

Get the whole plugin