Claude Trim — Security skill for Claude Code
Audit your Claude Code token usage — see which skills eat your context budget and find conflicts before they cost you.
How to install Claude Trim
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open d0d012/claude-trim and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Trim does
Audit your Claude Code token usage — see which skills eat your context budget and find conflicts before they cost you.
Alternatives in Security
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
- Cross-Pollinate Hex MCP Servers — Diff-driven audit: find real transferable changes across hex-line-mcp, hex-ssh-mcp, hex-graph-mcp 238 ★
- Loongsuite Pilot — Local-first telemetry collector for AI coding agents — unified OpenTelemetry events for Claude Code, Codex, Cu 150 ★
README
claude-trim
**Find out what Claude Code loads before you type a single word.**
[](https://go.dev) [](LICENSE) [](https://github.com/d0d012/claude-trim/releases/latest)
`claude-trim` is a static analyzer for Claude Code. It scans your `~/.claude/` directory, counts how many tokens every skill and MCP server costs at startup, flags skills that conflict with each other, and tells you exactly what to remove — and how much money that saves.

Why this exists
Every Claude Code session starts with a hidden tax. Before you write a single prompt, Claude loads the description of every skill you have installed. With a typical plugin setup that's **20–30k tokens per session** — paid silently, every time.
Most of those tokens don't help you. Duplicate skills cover the same ground. Skills you installed months ago and forgot about run on every session. And when two skills give Claude contradictory instructions, neither works well.
**With 55 skills installed:**
Startup cost: 23,751 tokens (paid every session)
Peak cost: 140,391 tokens (if every skill body loads)
At Sonnet pricing ($3/M), 5 sessions/day, 22 working days:
→ ~$7.84/month in skill overhead alone
`claude-trim` makes this visible in 10 seconds, offline, no API key required.
Install
go install (recommended)
go install github.com/d0d012/claude-trim/cmd/claude-trim@latest
Make sure `$GOPATH/bin` (usually `~/go/bin`) is on your `$PATH`:
export PATH="$HOME/go/bin:$PATH"
Download binary
Grab the binary for your platform from [GitHub Releases](https://github.com/d0d012/claude-trim/releases/latest):
# macOS (Apple Silicon)
curl -L https://github.com/d0d012/claude-trim/releases/latest/download/claude-trim_darwin_arm64.tar
Related Skills
Skill Checker
🔍 Claude Code skill evaluator — check any skill's functionality, security, dependencies, API needs, and token
Crewcut Audit
Audit the whole session's context budget — what was read, what it cost, what to do about it
Claude Code Tooling Skills
Claude Code skills for keeping a Claude Code setup safe: review a third-party skill before installing it, lint
Agent Context Bench
Audit AGENTS.md, CLAUDE.md, Cursor and Copilot instructions; measure token cost and benchmark AI coding-agent
Cost Audit
Per-project Claude Code cost from local transcripts (token usage x API list prices). Read-only; cross-platform
Kit Audit
Measure the factory-kit's token footprint — baseline vs on-demand, heaviest assets, trim candidates
Related Agents
Context Auditor
Use proactively when the user wants to cut Claude Code token cost or asks "why is this session so expensive /
Pipeline Analyst
Use to see what is working: weekly review, funnel by agent and by source, stuck agents, usage and budget. Trig
Token Tracker
Logs token usage estimates for each agent run to .claude/token-stats.json. Call this after any agent completes