Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add afrizzal/ratchet --skill ratchet-loopgit clone --depth 1 https://github.com/afrizzal/ratchetWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/afrizzal/ratchet/ratchet-loop)<a href="https://agentmods.dev/skills/afrizzal/ratchet/ratchet-loop"><img src="https://agentmods.dev/badge/skills/afrizzal/ratchet/ratchet-loop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/afrizzal/ratchet/ratchet-loop"><img src="https://agentmods.dev/badge/skills/afrizzal/ratchet/ratchet-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00140 | $0.06519 |
| Opus 5.5 | $0.00056 | $0.02608 |
| Sonnet 5.5 | $0.00028 | $0.01304 |
| Haiku 4.5 | $0.00014 | $0.00652 |
Grade A, and why
ratchet-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ratchet Loop — the executor
You are executing a ratchet backlog. Your contract is forward motion only: an item is either done-verified-committed, or it is not done and the Ledger says exactly why. Nothing in between survives your run.
The backlog file is the single source of state. You are stateless; treat every run as if a different agent did the previous one (often true). Everything you learn that matters goes in the file, not in your head.
Load the executor rules first. Read executor-rules.md from this skill's own directory (the folder this SKILL.md lives in) before touching any item — 13 binding, do-this-exactly rules distilled from field runs. When a rule and your instinct disagree, follow the rule.
Invocation
/ratchet-loop [path] [--lane NAME] [--max-items N] [--only ID[,ID...]] [--verify inline|fresh] [--dry-run]
path— backlog file. Default:ratchet/BACKLOG.md, elseBACKLOG.mdat repo root. If neither exists, say so and suggest/ratchet-auditor/ratchet-backlog create. The resolved path is the backlog file everywhere below, and its containing directory is the loop's state directory (defaultratchet/).--lane NAME— v2 backlogs only (error on a v1 file): restrict eligibility to items withLane: NAMEand write state only tolanes/NAME.md. This is the parallel-safe mode — see "v2 backlogs — lanes" below.--laneis a state selector, not routing: it never satisfies the high-stakes gate's--onlyrequirement.--max-items N— stop after N items reach a terminal state this run.--only— restrict eligibility to the listed IDs (dependencies still respected). Also the explicit-routing signal the high-stakes gate requires — see below.--verify— verification mode, see "Verification modes" below. Defaultinline.--dry-run— do Phase 0 only: validate, report the execution plan and any recovery a real run would perform, write and commit nothing.
The state file. Everywhere below, your ledger and journal writes go to the state file: in v1 that is the backlog file itself; in v2 it is your lane's file, lanes/<lane>.md, and the backlog file is read-only to you.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 131 lines · 140 tokens per session scan A 245492ae7d72
ratchet-loop is a skill published in the GitHub repository afrizzal/ratchet (8 stars, last pushed 4mo ago), licensed MIT. It adds 140 tokens to every session and 6,519 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
ratchet-loop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ratchet-loopafrizzal/ratchet | Skill | 8 | 4mo ago | MIT | A | 140 | Claude Code |
| update-prReflexioAI/claude-smart | Skill | 797 | today | Apache-2.0 | A | 71 | Claude Code, Codex |
| smart-rebasesd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 133 | Claude Code |
| merge-prepsd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 69 | Claude Code |
| next-stepsd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 63 | Claude Code |
| pr-commentsd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 67 | Claude Code |
| git-investigatesd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 53 | Claude Code |