What it is
Ratchet is a single ~4MB Rust binary that turns the soft rules in CLAUDE.md, AGENTS.md and SKILL.md into hard constraints. ratchet lint scans a 35k-file repo in about 36ms, catching bad frontmatter (E006), dead globs (W108), stale paths, scripts and symbols (W103), broken links (W105) and cross-file contradictions (E005, W106). It also hooks native agent lifecycle hooks (PreToolUse, PostToolUse, Stop) to block forbidden shell commands, reads of protected files, pre-write content scans, MCP/tool calls and skipped test runs in about 1.8ms — no LLM involved. MIT-licensed, created November 28, it works with 9 coding-agent harnesses plus Git pre-commit and CI.
What is included
- ratchet lint: bad frontmatter, dead globs, stale paths and scripts, broken links, cross-file contradictions
- Enforcement at tool-call time: denied commands, pre-write content scans, protected reads, MCP and diff checks, skipped-test blocking
- Works with 9 coding-agent harnesses plus Git pre-commit and CI
- Zero API keys, offline by default, a single 4MB binary
Who it is for
Teams maintaining large sets of skills, CLAUDE.md and AGENTS.md files who want guardrails that are verifiable and enforced — not left to the model’s goodwill.