context-audit
Skill0 starsChanged 4 months agoMITView on GitHub
Audit the instructions an agent already carries — CLAUDE.md, AGENTS.md, skills, tool descriptions — for contradictions, over-constraint, and duplication, then propose a cut list. Use when an agent ignores its own instructions, when a CLAUDE.md has grown bloated, or when the user asks to audit or rightsize their agent context.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- nordz0r/skillstheir own version, first seen Nov 1, 2026
- adamlinscott/claude-skillstheir own version, first seen Oct 30, 2026
- CharlesLadera/claude-custom-skillstheir own version, first seen Oct 25, 2026
- garrytan/gbraintheir own version, first seen Oct 17, 2026
- greglas75/zuvotheir own version, first seen Oct 16, 2026
- Playful-Sincerity/PSDCMS-Playful-Sincerity-Digital-Core-Meta-Systemtheir own version, first seen Oct 11, 2026
Used with
Projects with it also use skillify, refactor and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillskillify
Capture a repeatable process from the current session into a reusable Amplifier SKILL.md skill file. Use when the user wants to create a skill, save a workflow as a skill, turn a process into a reusable skill, or mentions "skillify", "create skill", "make a skill", "save as skill", "capture workflow", "turn this into a skill", "new skill", or wants to automate a repeatable process they just performed.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
Other versions19 projects use a version of this.
Word for word · 1
- Neeeophytee/finding-unknowns-skills★ 339100% same
Edited · 0
None found.
Wrote their own version · 18
- garrytan/gbrain★ 32ksame name
- jiahao-shao1/sjh-skills★ 43same name
- Vesely/skills★ 28same name
- Sapere-IA/sdd-onboarding-kit★ 19same name
- WalletConnect/skills★ 14same name
- weellio/gander★ 10same name
- nordz0r/skills★ 8same name
- tstapler/dotfiles★ 8same name
- greglas75/zuvo★ 7same name
- adamlinscott/claude-skills★ 3same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository138 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/context-budget.mdcCursor rule
- .cursor/rules/delegation-law.mdcCursor rule
- .cursor/rules/harness-doctrine.mdcCursor rule
- .cursor/rules/verification-law.mdcCursor rule
- agent-interface-designSkill
- agentloop-coreSkill
- agent-loopSkill
- blindspot-passSkill
- brainstorm-prototypesSkill
- change-quizSkill
- conductor-planSkill
- context-compactSkill
- context-surgeonSkill
- contrastingSkill
- deployment-auditSkill
- doctorSkill
- harness-designSkill
- humaniseSkill
- implementation-notesSkill
- implementation-planSkill
- interview-meSkill
- no-ai-slopSkill
- optional-ponytailSkill
- opus-promptingSkill
- persistent-memorySkill
- pev-cycleSkill
- pitch-packagerSkill
- progressive-disclosureSkill
- quality-composeSkill
- reference-huntSkill
- seo-copywritingSkill
- ship-gateSkill
- subagent-swarmSkill
- ui-ux-auditSkill
- warroom-councilSkill
- writer-verifierSkill
- agent-interface-designSkill
- agentloop-coreSkill
- agent-loopSkill
- blindspot-passSkill
- brainstorm-prototypesSkill
- change-quizSkill
- conductor-planSkill
- context-auditSkill
- context-compactSkill
- context-surgeonSkill
- contrastingSkill
- deployment-auditSkill
- doctorSkill
- harness-designSkill
- humaniseSkill
- implementation-notesSkill
- implementation-planSkill
- interview-meSkill
- no-ai-slopSkill
- optional-ponytailSkill
- opus-promptingSkill
- persistent-memorySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Read them together, the way the model receives them — not one file at a time.
- Distinctive: line 28
If the harness ships its own rightsizing command, this runs alongside it, not instead of it.
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context audit
A prompt is written for one task; context is reused across every task, so it can never be as specific. That gap is where instructions rot: rules written for a worst case that no longer happens, guidance duplicated across three layers, two layers quietly telling the model opposite things. The model can resolve all of it — by spending thinking budget on it before it starts your actual work. This skill finds what to delete.
Steps
- Inventory every layer that reaches the model: root and nested
CLAUDE.md/AGENTS.md, each skill's description and body, hooks, tool and MCP server descriptions, and any harness prompt the user controls. Report each layer's size. The layer the user forgot they wrote is usually the loudest one. - Read them together, the way the model receives them — not one file at a time. Contradictions only exist between layers.
- Classify every instruction as one of five things:
- Conflict — two layers pulling opposite ways ("document as appropriate" against "never add comments"). Quote both sides verbatim. These are the most expensive finding and go first.
- Duplicate — the same instruction in two places. Keep the copy nearest the point of use; behavior of a tool belongs in that tool's description, not in the global preamble.
- Obvious — restates what the file tree, the language, or the surrounding code already shows.
- Judgement-now — a blanket rule written to prevent a worst case, wrong for some real subset of requests, and the kind of call a current model makes well on its own.
- Gotcha — non-obvious, specific to this repo, load-bearing. This is what should survive; most repos are mostly the other four.
- Propose the cut as a diff: conflicts resolved first, then duplicates, then the rest. For anything that is worth keeping but only sometimes needed, propose relocating it into a skill or a linked file loaded on demand rather than deleting it.
- Close with before/after line counts and the single deletion you are least confident about, named explicitly so a human decides that one.
Guardrails
- Propose, don't apply. The user approves every deletion.
- A rule that reads as over-constraint is sometimes scar tissue from a real incident. Anything naming a specific failure gets asked about, not cut.
- Judge instructions by whether they change behavior, not by whether they sound wise. A line the model already follows by default costs tokens to say nothing.
- If the harness ships its own rightsizing command, this runs alongside it, not instead of it.
- An audit that deletes a real invariant costs far more than the tokens it saved. When a line's purpose is unclear, that ambiguity is the finding — report it rather than guessing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

