slim-instructions
Skill1 starsChanged 32 days agoMITView on GitHub
Shrink CLAUDE.md, AGENTS.md and their imports, which are re-sent every turn, without losing a rule.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- msiShariful/claude-token-inspectortheir own version, first seen Oct 24, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- msiShariful/claude-token-inspector★ 4same name
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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auditSkill
- autonomySkill
- batch-wakeupsSkill
- code-mapSkill
- codex-dispatchSkill
- cycleSkill
- flowSkill
- frictionSkill
- guardrailsSkill
- lean-agentsSkill
- modelsSkill
- planningSkill
- reviewSkill
- rosterSkill
- scanSkill
- scheduleSkill
- speedSkill
- startSkill
- test-loopSkill
- tools-before-tokensSkill
- trim-contextSkill
- undoSkill
- whats-newSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Not in Claude Code?: Read docs/hosts.md in the plugin root first.
- Distinctive: line 35
Remove duplicates, rules contradicted by later rules, dated stories (move rationale to a rationale doc), and anything the code or tooling …
- Distinctive: line 37
Keep every rule's meaning.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Slim the always-loaded instructions
Plugin root: ${CLAUDE_PLUGIN_ROOT}. If that is still a ${...} placeholder, use the folder that contains skills/ (this file is skills/<name>/SKILL.md), and substitute that path, in quotes, wherever this skill uses CLAUDE_PLUGIN_ROOT.
Not in Claude Code? Read docs/hosts.md in the plugin root first. Skip steps that only work in Claude Code, and follow its propose-only rule before changing any host configuration.
CLAUDE.md, AGENTS.md and everything they import are sent with every turn of every session. Shrinking them saves tokens on every turn, so even a small cut adds up across a whole session.
Changes: edits instruction files, after you approve.
Autonomy: follow ${CLAUDE_PLUGIN_ROOT}/docs/autonomy.md. The mode comes from the skill argument (propose, safe, auto or yolo), else docs/kaizen/config.json, else agent-kaizen.json in your Claude config dir ($CLAUDE_CONFIG_DIR or ~/.claude), else propose. In safe and auto, read every "wait for my OK" below as: apply it yourself if the mode allows (backup, verify, roll back on failure, ledger row), otherwise list it as a proposal. Hard stops always ask. At most maxChangesPerRun changes (default 3). End with a summary of what was applied, skipped and rolled back.
In this skill, <Claude config dir> means $CLAUDE_CONFIG_DIR or ~/.claude, and <Codex home> means $CODEX_HOME or ~/.codex.
Task
Review the instructions that load automatically: CLAUDE.md (project and <Claude config dir>/),
any @-imported files, AGENTS.md and <Codex home>/AGENTS.md. First measure each one
(lines, characters / 4 ≈ tokens).
Then propose a restructure:
- A short core file with only what nearly every task needs: purpose, architecture invariants, build and test commands, hard "never" rules.
- Topic docs (for example engine, assets, UI text, networking, release) that agents read only when the task matches. List them in the core file with a one-line "read this when …" each.
- Orchestration-only process (worktrees, review rules, merge and release steps) in a file imported only by the main session, so subagents and Codex don't carry it.
- Remove duplicates, rules contradicted by later rules, dated stories (move rationale to a rationale doc), and anything the code or tooling already enforces.
- Keep every rule's meaning. List each rule you dropped or merged and why.
Show a before/after token estimate per file and the full diff. Wait for my OK before writing. After applying, add a row to docs/kaizen/LEDGER.md.
Bundled resources
Starting templates: ${CLAUDE_PLUGIN_ROOT}/templates/global-CLAUDE.md, ${CLAUDE_PLUGIN_ROOT}/templates/project-CLAUDE.md, ${CLAUDE_PLUGIN_ROOT}/templates/orchestrator.md, ${CLAUDE_PLUGIN_ROOT}/templates/codex-AGENTS.md. Background: ${CLAUDE_PLUGIN_ROOT}/docs/what-we-learned.md.
Done when
the core files shrink and no rule is lost; the audit's instruction-size section shows the change.
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.

