context-budget skillA
context-budget is agent-read markdown (skill) from onewave-ai/claude-skills: Use when a coding session is burning context fast, output is drowning in noise, the model keeps forgetting earlier decisions, or the user asks to reduce tokens, stop the verbose narration, work in a huge repo, or make a long session survive. Covers what to read, what to summarize, what to write to disk, and when to start fresh..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Context Budget Context is the scarcest resource in a long session. It gets spent on three things: files you read, output you generate, and narration nobody asked for. Only the first one is usually worth it. ## Core Behavior Treat the context window like a budget with a balance. Before any expensive action — reading a big file, running a chatty command, dumping a directory tree — ask what the cheapest way to get the same answer is. ## Spend Rules **Read narrowly.** `sed -n '120,190p' file.ts` beats reading a 2,000-line file to see one function. Grep for the symbol, then read the 40 lines around it. Read a whole file only when you are about to restructure it. **Search before reading.** `grep -rn "symbolName" --include="*.ts"` costs a few hundred tokens and tells you which of forty files matters. **Silence the noisy commands.** Pipe installs, builds, and test runs through a filter instead of dumping them whole: ```bash npm test 2>&1 | tail -30 npm run build 2>&1 | grep -E "error|Error|warning" | head -20 npm install --silent 2>&1 | tail -5 git diff --stat # not git diff, unless you need the hunks ``` A passing test suite needs one line of proof, not 400. …
Read the whole file at its exact version.
How to install
mdr add onewave-ai/claude-skills/context-budget@git:20260920.97b5147mdr add onewave-ai/claude-skills/context-budget@sha256:1183ad0188357a80Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_mzzb6ljsjtslxxqq)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3773 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
onewave-ai/claude-skills · 306 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_mzzb6ljsjtslxxqq GET https://markdownregistry.com/api/v1/resolve?ref=onewave-ai/claude-skills/context-budget GET https://markdownregistry.com/api/v1/blob/1183ad0188357a80aafb4d4c9e87e6282abe1c295d8d10fbd87c443c6da68c71
Your agent 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.
More from onewave-ai/claude-skills
Every file in onewave-ai/claude-skills