ratchet-files SKILL.md skillA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

ratchet-files from dzhng/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add dzhng/skills/ratchet-files@git:20261019.29fb983

Pins git:20261019.29fb983 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
dzhng/skills
Path
skills/engineering/ratchet-files/SKILL.md
Versions recorded
3
Latest version
git:20261019.29fb983, committed Oct 19, 2026
First version recorded
Oct 19, 2026
Size
6,063 bytes
Repository stars
1,377
License
MIT

Ratchet source file size so every file stays small enough for an agent to read whole: find every file over a token budget, split oversized files by concept, and set up the pre-commit ratchet that stops them from growing. Use when a commit is blocked because a file is over the size budget, when asked to find or split oversized/long/god files, when a file you need to change is too large to read in one pass, or when asked to add a file-size limit or hook to a repository.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Ratchet Files

A source file is over budget when it is past what an agent can read in one
pass (8,000 tokens, counted as bytes / 4, unless the repository sets
another). [`scripts/check-file-size.mjs`](scripts/check-file-size.mjs) owns
what counts as source, the budget, the ratchet, and the split rules; run it
with `--help` before anything else.

## Splitting

1. Run the script with `--all` from the repository root, passing the
   repository's `--max-tokens` if its hook sets one. Its list is the backlog.
2. Pick the files to split: the one blocking the work in front of you, or
   with no blocker, the largest ones a change is about to touch.
3. Split each one by the rules the script prints. A seam is a concept the
   file already owns, not a line count; when
   [refactor-clean](../refactor-clean/SKILL.md) is installed, use it to find
   them.
4. Prove the split changed no behaviour with the repository's own checks,
   and commit it alone, before the change that needed the room.

A file whose every split would cost more than it saves (one table or state
machine that only reads whole) may opt out instead. Put
`@ratchet-files-ignore` in a comment within its first 10 lines, in the
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add dzhng/skills/ratchet-files@sha256:a3afd96b16b08788

The line at the top of this page pins the label git:20261019.29fb983, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_gax4m27yzjughxyz.svg)](https://markdownregistry.com/a/art_gax4m27yzjughxyz)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, all committed on Oct 19, 2026.

versioncommittedcommitsizeaudit
git:20261019.29fb983 latest2026-10-19 29fb983 6,063 BA view · diff
git:20261019.ae7815b2026-10-19 ae7815b 5,786 BA view · diff
git:20261019.f14fc862026-10-19 f14fc86 5,783 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6063 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

dzhng/skills · 1,377 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_gax4m27yzjughxyz
GET https://markdownregistry.com/api/v1/resolve?ref=dzhng/skills/ratchet-files
GET https://markdownregistry.com/api/v1/blob/a3afd96b16b08788d918d03abe179be254c40b4fc6ce25f8d67e9c1be516c789

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from dzhng/skills

audit-agents SKILL.md skill
dzhng/skills · skills/authoring/audit-agents/SKILL.md · Audit or rewrite AGENTS.md so it holds only lasting principles. Run it only when the user asks for it by name; never…
git:20261002.5fa4602 · audit A · 1,377 stars
eval-skills SKILL.md skill
dzhng/skills · skills/authoring/eval-skills/SKILL.md · Eval and improve a skill against golden cases — run the target skill blind in a fresh, context-free subagent on each…
git:20260705.adffd39 · audit A · 1,377 stars
write-skills SKILL.md skill
dzhng/skills · skills/authoring/write-skills/SKILL.md · Create or revise agent skills. Use when adding a new skill file, renaming a skill, simplifying an existing skill…
git:20261004.3e02e02 · audit A · 1,377 stars
audit-choices SKILL.md skill
dzhng/skills · skills/engineering/audit-choices/SKILL.md · Audit the choices an implementing agent made, not its diff — a pure decision audit that traces the session's history…
git:20260813.dbb1aa5 · audit A · 1,377 stars
audit-performance SKILL.md skill
dzhng/skills · skills/engineering/audit-performance/SKILL.md · Audit and prioritize performance work through bounded-work and forward-progress checks. Use when asked to find…
git:20261002.8aea537 · audit A · 1,377 stars
audit-tests SKILL.md skill
dzhng/skills · skills/engineering/audit-tests/SKILL.md · Audit whether tests earn their maintenance cost and which suite owns each contract. Use when pruning redundant tests…
git:20260929.2fa832d · audit A · 1,377 stars
auto-research SKILL.md skill
dzhng/skills · skills/engineering/auto-research/SKILL.md · Run fast, progressive experiments to map tunable parameters and their effects. Use when optimizing code, prompts…
git:20260925.120cae1 · audit A · 1,377 stars
claude SKILL.md skill
dzhng/skills · skills/engineering/claude/SKILL.md · Use Claude Code as an independent `claude -p` subagent when the user explicitly asks for Claude, wants a second-agent…
git:20261015.f6819ca · audit A · 1,377 stars
close-spec SKILL.md skill
dzhng/skills · skills/engineering/close-spec/SKILL.md · When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec)…
git:20260721.2ee48ec · audit A · 1,377 stars
code-review SKILL.md skill
dzhng/skills · skills/engineering/code-review/SKILL.md · Review changed code for naming, stale references, unnecessary complexity, and comment quality. Use after completing…
git:20261021.8e74252 · audit A · 1,377 stars
codex SKILL.md skill
dzhng/skills · skills/engineering/codex/SKILL.md · Use the local Codex CLI as an independent second agent. Two branches — (1) proactively run `codex review` for a second…
git:20261015.f6819ca · audit A · 1,377 stars
eli5 SKILL.md skill
dzhng/skills · skills/engineering/eli5/SKILL.md · Explain a technical spec or proposed change in plain language: what problem it solves, how the solution works, and…
git:20260813.dbb1aa5 · audit A · 1,377 stars

Every file in dzhng/skills

Other files named ratchet-files

ratchet-files SKILL.md skill
dzhng/duet-agent · .agents/skills/ratchet-files/SKILL.md · Ratchet source file size so every file stays small enough for an agent to read whole: find every file over a token…
git:20261019.8b8c742 · audit A · 50 stars

Browse by kind, by grade A, or by owner.