ratchet
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRatchet Skill
Ratchet Skill
Track progress through the RPI workflow with permanent gates.
Note: tracks and locks progress. It does not “run the loop” by itself—pair it with (epic loop) or (Ralph loop) to actually execute work.
/ratchet/crank/swarm通过永久性进度门跟踪RPI工作流的进度。
注意: 用于跟踪并锁定进度。它本身不会“运行循环”——需要搭配 (史诗循环)或 (Ralph循环)才能实际执行工作。
/ratchet/crank/swarmThe Brownian Ratchet
布朗棘轮
Progress = Chaos × Filter → Ratchet| Phase | What Happens |
|---|---|
| Chaos | Multiple attempts (exploration, implementation) |
| Filter | Validation gates (tests, /vibe, review) |
| Ratchet | Lock progress permanently (merged, closed, stored) |
Key insight: Progress is permanent. You can't un-ratchet.
Progress = Chaos × Filter → Ratchet| 阶段 | 操作内容 |
|---|---|
| 混沌阶段 | 多次尝试(探索、实现) |
| 筛选阶段 | 验证关卡(测试、/vibe、评审) |
| 棘轮阶段 | 永久锁定进度(合并、关闭、存储) |
核心要点: 进度是永久性的,无法回退棘轮状态。
Execution Steps
执行步骤
Given :
/ratchet [command]输入 后:
/ratchet [command]status - Check Current State
status - 查看当前状态
bash
ao ratchet status 2>/dev/nullOr check the chain manually:
bash
cat .agents/ao/chain.jsonl 2>/dev/null | tail -10bash
ao ratchet status 2>/dev/null或手动检查链文件:
bash
cat .agents/ao/chain.jsonl 2>/dev/null | tail -10check [step] - Verify Gate
check [step] - 验证关卡
bash
ao ratchet check <step> 2>/dev/nullSteps: , , , ,
researchplanimplementvibepost-mortembash
ao ratchet check <step> 2>/dev/null可选步骤:、、、、
researchplanimplementvibepost-mortemrecord [step] - Record Completion
record [step] - 记录完成状态
bash
ao ratchet record <step> --output "<artifact-path>" 2>/dev/nullOr record manually by writing to chain:
bash
echo '{"step":"<step>","status":"completed","output":"<path>","time":"<ISO-timestamp>"}' >> .agents/ao/chain.jsonlbash
ao ratchet record <step> --output "<artifact-path>" 2>/dev/null或手动写入链文件完成记录:
bash
echo '{"step":"<step>","status":"completed","output":"<path>","time":"<ISO-timestamp>"}' >> .agents/ao/chain.jsonlskip [step] - Skip Intentionally
skip [step] - 主动跳过步骤
bash
ao ratchet skip <step> --reason "<why>" 2>/dev/nullbash
ao ratchet skip <step> --reason "<why>" 2>/dev/nullWorkflow Steps
工作流步骤
| Step | Gate | Output |
|---|---|---|
| Research artifact exists | |
| Plan artifact exists | |
| Code + tests pass | Source files |
| /vibe passes | |
| Learnings extracted | |
| 步骤 | 验证关卡 | 输出产物 |
|---|---|---|
| 存在研究产物 | |
| 存在计划产物 | |
| 代码+测试通过 | 源文件 |
| /vibe验证通过 | |
| 提取经验总结 | |
Chain Storage
链存储
Progress stored in :
.agents/ao/chain.jsonljson
{"step":"research","status":"completed","output":".agents/research/auth.md","time":"2026-01-25T10:00:00Z"}
{"step":"plan","status":"completed","output":".agents/plans/auth-plan.md","time":"2026-01-25T11:00:00Z"}
{"step":"implement","status":"in_progress","time":"2026-01-25T12:00:00Z"}进度信息存储在 文件中:
.agents/ao/chain.jsonljson
{"step":"research","status":"completed","output":".agents/research/auth.md","time":"2026-01-25T10:00:00Z"}
{"step":"plan","status":"completed","output":".agents/plans/auth-plan.md","time":"2026-01-25T11:00:00Z"}
{"step":"implement","status":"in_progress","time":"2026-01-25T12:00:00Z"}Key Rules
核心规则
- Progress is permanent - can't un-ratchet
- Gates must pass - validate before proceeding
- Record everything - maintain the chain
- Skip explicitly - document why if skipping a step
- 进度永久有效 - 无法回退棘轮状态
- 必须通过关卡 - 推进前需完成验证
- 记录所有操作 - 维护链文件
- 主动跳过需说明 - 若跳过步骤需记录原因