AgentSkillsCN

ratchet

为RPI工作流打造布朗运动棘轮式进度管控门。检查、记录、验证。触发条件:“检查进度门”、“验证进展”、“棘轮状态”。

SKILL.md
--- frontmatter
name: ratchet
description: 'Brownian Ratchet progress gates for RPI workflow. Check, record, verify. Triggers: "check gate", "verify progress", "ratchet status".'

Ratchet Skill

Track progress through the RPI workflow with permanent gates.

Note: /ratchet tracks and locks progress. It does not “run the loop” by itself—pair it with /crank (epic loop) or /swarm (Ralph loop) to actually execute work.

The Brownian Ratchet

code
Progress = Chaos × Filter → Ratchet
PhaseWhat Happens
ChaosMultiple attempts (exploration, implementation)
FilterValidation gates (tests, /vibe, review)
RatchetLock progress permanently (merged, closed, stored)

Key insight: Progress is permanent. You can't un-ratchet.

Execution Steps

Given /ratchet [command]:

status - Check Current State

bash
ao ratchet status 2>/dev/null

Or check the chain manually:

bash
cat .agents/ao/chain.jsonl 2>/dev/null | tail -10

check [step] - Verify Gate

bash
ao ratchet check <step> 2>/dev/null

Steps: research, plan, implement, vibe, post-mortem

record [step] - Record Completion

bash
ao ratchet record <step> --output "<artifact-path>" 2>/dev/null

Or record manually by writing to chain:

bash
echo '{"step":"<step>","status":"completed","output":"<path>","time":"<ISO-timestamp>"}' >> .agents/ao/chain.jsonl

skip [step] - Skip Intentionally

bash
ao ratchet skip <step> --reason "<why>" 2>/dev/null

Workflow Steps

StepGateOutput
researchResearch artifact exists.agents/research/*.md
planPlan artifact exists.agents/plans/*.md
implementCode + tests passSource files
vibe/vibe passes.agents/vibe/*.md
post-mortemLearnings extracted.agents/retros/*.md

Chain Storage

Progress stored in .agents/ao/chain.jsonl:

json
{"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