claude-slim

You're burning thousands of tokens before you even say "hello."
Every Claude Code session auto-loads every skill, memory file, and plugin instruction into the system prompt — even the ones you never use. If you run OMC, marketplace plugins, or a custom skill stack, you're paying for context you'll never touch. claude-slim finds and removes that waste.
/claude-slim
한국어 | 日本語 | 中文
The problem, visualized
Session start token budget
┌──────────────────────────────────────────────────┐
│██████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░│ Before claude-slim
│ 12K tokens consumed ↑ your actual work ↑ │
├──────────────────────────────────────────────────┤
│██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │ After claude-slim
│ 5K ↑ more room for your work ↑ │
└──────────────────────────────────────────────────┘
Where the bloat hides:
| Source | Typical overhead |
|---|
| 60+ registered skills | ~3,000 tokens |
| CLAUDE.md (plugin instructions) | ~5,000 tokens |
| Memory files | ~2,500 tokens |
| Deferred tools list | ~1,500 tokens |
| Total | ~12,000 tokens |
That's slower responses. Hitting your usage cap faster. Paying for context you're not using.
One command. Five steps.
/claude-slim
┌────────┐ ┌──────────┐ ┌─────────┐ ┌─────────┐ ┌────────┐
│ Scan │ → │ Classify │ → │ Propose │ → │ Clean │ → │ Report │
│ │ │ │ │ │ │ │ │ │
│measure │ │ broken │ │ you │ │ move to │ │before │
│ every │ │ dupes │ │ choose │ │.disabled│ │ vs │
│source │ │ bloat │ │ what │ │ dir │ │ after │
└────────┘ └──────────┘ └─────────┘ └─────────┘ └────────┘
Scan — Measures everything: local skills, plugin skills, CLAUDE.md, memory files, MCP servers. Token counts are measured with js-tiktoken, not guessed.
Classify — Finds the waste automatically:
| What it catches |
|---|
| Broken symlinks | Dead links from uninstalled skill packs |
| Duplicates | Same skill registered from multiple sources |
| Empty templates | Placeholder skills with no content |
| Oversized files | SKILL.md over 10KB |
| Unused skills | Local skills never invoked in your last N days of sessions (default 60d) |
| Stale memory | Large memory files loaded every session |
| Disabled plugins | Installed but disabled plugins still in cache |
| Stale projects | Project memory untouched for 90+ days |
| Temp caches | Failed plugin install remnants (temp_local_*) |
Propose — Three tiers, you decide:
| Tier | Action | Example |
|---|
| Auto | Pre-selected | Broken symlinks, empty templates, temp caches |
| Recommended | Suggested | Duplicates, stale memory, disabled plugins, stale projects |
| Optional | Your call | Oversized skills you might still use |
Clean — Moves selected items to ~/.claude/skills.disabled/. Nothing is deleted. Ever.
Report — Shows exactly what changed:
╭──────────────────────────────────────────╮
│ claude-slim report │
│ │
│ Before: 14,510 tokens at startup │
│ After: 5,181 tokens at startup │
│ Saved: 9,329 tokens (64.3%) │
│ │
│ Top offenders removed: │
│ • office-hours 23,008 tok │
│ • harness 7,902 tok │
│ • manpower 4,764 tok │
│ │
│ Est. monthly savings: ~$1.68 │
│ (2 sessions/day × $0.003/1K tok) │
╰──────────────────────────────────────────╯
┌──────────────────┬──────────┬──────────┬────────────┐
│ │ Before │ After │ Saved │
├──────────────────┼──────────┼──────────┼────────────┤
│ Local skills │ 14 │ 4 │ -10 │
│ System prompt │ ~124 │ ~114 │ -10 │
│ Memory files │ 19.5KB │ 5.7KB │ -13.8KB │
│ Est. tokens │ ~14,510 │ ~5,181 │ ~9,329 │
└──────────────────┴──────────┴──────────┴────────────┘
Try it (10 seconds)
No install needed — run once and see what's in your ~/.claude/:
npx claude-slim scan
Happy with what you see? Make it part of your Claude Code workflow: