Claude Trim banner
d0d012 d0d012

Claude Trim

Security community

Description

Audit your Claude Code token usage — see which skills eat your context budget and find conflicts before they cost you

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

claude-trim

**Find out what Claude Code loads before you type a single word.**

[![Go Version](https://img.shields.io/badge/go-1.22+-00ADD8?logo=go)](https://go.dev) [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE) [![Latest Release](https://img.shields.io/github/v/release/d0d012/claude-trim)](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.

![demo](docs/demo.gif)


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