mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-22 06:20:10 +00:00
docs: 完成所有文档的中文翻译并应用到项目
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
# Checkpoint Command
|
||||
# 检查点(Checkpoint)指令
|
||||
|
||||
Create or verify a checkpoint in your workflow.
|
||||
在工作流(Workflow)中创建或验证检查点。
|
||||
|
||||
## Usage
|
||||
## 用法
|
||||
|
||||
`/checkpoint [create|verify|list] [name]`
|
||||
|
||||
## Create Checkpoint
|
||||
## 创建检查点(Create Checkpoint)
|
||||
|
||||
When creating a checkpoint:
|
||||
创建检查点时:
|
||||
|
||||
1. Run `/verify quick` to ensure current state is clean
|
||||
2. Create a git stash or commit with checkpoint name
|
||||
3. Log checkpoint to `.claude/checkpoints.log`:
|
||||
1. 运行 `/verify quick` 以确保当前状态干净
|
||||
2. 使用检查点名称创建一个 git stash 或提交(Commit)
|
||||
3. 将检查点记录到 `.claude/checkpoints.log`:
|
||||
|
||||
```bash
|
||||
echo "$(date +%Y-%m-%d-%H:%M) | $CHECKPOINT_NAME | $(git rev-parse --short HEAD)" >> .claude/checkpoints.log
|
||||
```
|
||||
|
||||
4. Report checkpoint created
|
||||
4. 报告检查点已创建
|
||||
|
||||
## Verify Checkpoint
|
||||
## 验证检查点(Verify Checkpoint)
|
||||
|
||||
When verifying against a checkpoint:
|
||||
对比检查点进行验证时:
|
||||
|
||||
1. Read checkpoint from log
|
||||
2. Compare current state to checkpoint:
|
||||
- Files added since checkpoint
|
||||
- Files modified since checkpoint
|
||||
- Test pass rate now vs then
|
||||
- Coverage now vs then
|
||||
1. 从日志中读取检查点
|
||||
2. 将当前状态与检查点进行对比:
|
||||
- 自检查点以来新增的文件
|
||||
- 自检查点以来修改的文件
|
||||
- 当前与当时的测试通过率对比
|
||||
- 当前与当时的代码覆盖率对比
|
||||
|
||||
3. Report:
|
||||
3. 报告:
|
||||
```
|
||||
CHECKPOINT COMPARISON: $NAME
|
||||
============================
|
||||
@@ -41,17 +41,17 @@ Coverage: +X% / -Y%
|
||||
Build: [PASS/FAIL]
|
||||
```
|
||||
|
||||
## List Checkpoints
|
||||
## 列出检查点(List Checkpoints)
|
||||
|
||||
Show all checkpoints with:
|
||||
- Name
|
||||
- Timestamp
|
||||
显示所有检查点,包括:
|
||||
- 名称
|
||||
- 时间戳
|
||||
- Git SHA
|
||||
- Status (current, behind, ahead)
|
||||
- 状态(当前、落后、超前)
|
||||
|
||||
## Workflow
|
||||
## 工作流(Workflow)
|
||||
|
||||
Typical checkpoint flow:
|
||||
典型的检查点工作流:
|
||||
|
||||
```
|
||||
[Start] --> /checkpoint create "feature-start"
|
||||
@@ -65,10 +65,10 @@ Typical checkpoint flow:
|
||||
[PR] --> /checkpoint verify "feature-start"
|
||||
```
|
||||
|
||||
## Arguments
|
||||
## 参数(Arguments)
|
||||
|
||||
$ARGUMENTS:
|
||||
- `create <name>` - Create named checkpoint
|
||||
- `verify <name>` - Verify against named checkpoint
|
||||
- `list` - Show all checkpoints
|
||||
- `clear` - Remove old checkpoints (keeps last 5)
|
||||
- `create <name>` - 创建具名检查点
|
||||
- `verify <name>` - 对比指定的检查点进行验证
|
||||
- `list` - 显示所有检查点
|
||||
- `clear` - 移除旧检查点(保留最后 5 个)
|
||||
|
||||
Reference in New Issue
Block a user