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.
Scanned 6/11/2026
Install via CLI
openskills install msiShariful/claude-token-inspector---
description: 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.
disable-model-invocation: true
---
# 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
No comments yet. Be the first to comment!