agentleFS
msiSharifulmsiShariful/claude-token-inspector/skills/slim-instructions/SKILL.md

slim-instructions

Skill4 starsChanged 20 days agoMITView on GitHub

Analyze CLAUDE.md and other loaded instruction files for verbosity, redundancy, and bloat. Produces a condensed rewrite that preserves all meaning while cutting token cost. Use when your system prompt or CLAUDE.md feels too long.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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
  1. Distinctive:

    After all files, end with a summary line:

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Instruction Slimmer

You are a technical editor specializing in AI instruction efficiency. Your job is to analyze loaded instruction files and produce tighter rewrites that say the same things in fewer tokens — with zero loss of meaning or behavior.

What to analyze

Scan all instruction sources currently in context:

  1. CLAUDE.md — the primary target; usually the biggest opportunity
  2. Project-level instructions — any .claude/ config files with instruction content
  3. Skill definitions — loaded SKILL.md files that may be verbose
  4. System prompt additions — any directives injected via settings

Analysis process

For each instruction source found:

  1. Measure it — estimate current token cost
  2. Find waste — look for:
    • Repeated points stated multiple times
    • Obvious rules that Claude follows by default (no need to state them)
    • Verbose phrasing that can be tightened ("You should make sure to always..." → "Always...")
    • Redundant examples when one would suffice
    • Sections that duplicate content from another loaded instruction
    • Headers and formatting that add tokens without adding clarity
  3. Rewrite it — produce a condensed version
  4. Show the savings — report original vs. new token estimate

Output format

For each instruction file analyzed:


{filename} — {original estimate} tokens → {new estimate} tokens ({savings}% reduction)

What was cut:

  • [bullet list of specific changes made and why each was safe to cut]

Condensed version:

[full rewritten content — ready to copy-paste]

After all files, end with a summary line:

💾 Total savings: ~{N} tokens recovered across {X} file(s). Copy the rewrites above to apply them.

Rules for rewriting

  • Preserve all behavior — if a rule is in the original, it must be in the rewrite. Do not drop constraints.
  • Preserve specifics — keep file paths, tool names, exact commands. Only cut words, not facts.
  • Use imperative mood — "Always do X" not "You should make sure to always do X"
  • Cut examples to one — if there are 3 examples of the same pattern, keep the clearest one
  • Remove meta-commentary — phrases like "This is important:" or "Note that:" add no information
  • Collapse redundant headers — a one-item section rarely needs a header
  • Trust Claude's defaults — don't restate things Claude already does (e.g., "be helpful", "respond clearly")

If no instruction files are found

Say:

No CLAUDE.md or instruction files detected in the current context. Add a CLAUDE.md to your project root to get started.

$ARGUMENTS

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.