Zero Labs
Industry News / AI

I Tried 100+ Claude Code Skills. These 7 Are The Best.

Source · Towards AI By Kushal Banda

From the publisher’s feed, collected in the ZeroLabs newsroom.

TL;DRClaude Code sessions can burn through tokens before you’ve written a line of useful code verbose CLI output, bloated context files, and lossy session compaction are the primary culprits.Seven open-source tools address this at the architecture level, not just the prompt level.Token Optimizer audits and fixes ghost tokens across your entire setup; Caveman strips 75% of output verbosity; Intent Layer replaces raw code-scanning with structured codebase context.Handoff replaces lossy /compact with surgical session handoffs; a well-structured CLAUDE.md prevents thousands of wasted input tokens per session; Code Review Graph cuts review token cost by 6.8× using a persistent codebase knowledge graph.RTK intercepts every CLI command and compresses output before it reaches the context window one dev measured 89% savings across 15,720 commands.The cost that compounds before you typeEvery Claude Code session carries overhead before you’ve written a single prompt. Your CLAUDE.md loads on every turn. MCP servers inject tool schemas. Registered skills sit in context whether invoked or not. When you run git status, the full output lands in context and gets re-read on every subsequent turn.By mid-session, you’re not paying for new information you’re paying to re-read the same noise again and again.The math compounds fast. A single git diff producing 2,000 tokens, re-read across 10 turns, costs 20,000 tokens. Multiply that across 80+ CLI calls in a real coding session, and a 30-minute session can consume 150,000+ tokens just from shell output. That's before Claude reads a single source file.The tools below target this problem at the infrastructure layer. They work with Claude Code, and most support Codex, Gemini CLI, and Cursor.1. Token Optimizer : Audit and fix your entire context setupGitHub: github.com/alexgreensh/token-optimizerMost token-saving tools compress one slice of the problem. Token Optimizer covers the full picture: bloated configs, unused skills, duplicate system prompts, stale memory, and the 60–70% you lose on every context compaction.It installs as a Claude Code plugin:/plugin marketplace add alexgreensh/token-optimizer/plugin install token-optimizer@token-optimizerToken OptimizerThe plugin runs fully local, uses zero context tokens itself, and surfaces a live dashboard after every session showing tokens used, cost, and turn count. Its quality-bar statusline scores context window health in real time a signal for when to compact manually versus let it run.The audit mode is where it earns its place. Tell it your goal and it returns prioritized fixes with exact token savings per item. The structure map feature compresses large file re-reads: a 180,000-token file re-read compresses to roughly 250 tokens a 99.86% reduction. Bash output compression handles verbose output from git, pytest, jest, docker, kubectl, and build tools by default, saving 5,000–30,000 tokens per session depending on CLI usage.Target: 5–15% context recovery from config cleanup, 25%+ when combined with proper compaction management.2. Caveman : 65% output token reduction, zero information lossGitHub: github.com/mattpocock/skills · github.com/JuliusBrussee/cavemanThe single highest-leverage low-effort change: make the agent stop writing prose.Most Claude Code output tokens aren’t code they’re narration. “Let me explain what I’m going to do.” “Based on the code I’ve analyzed.” “Here’s a summary of what I found.” Caveman mode removes all of that while keeping every technical fact, every file path, every code block byte-for-byte intact.Trigger it by saying “caveman mode” or invoking /caveman. The agent switches to compressed caveman-style communication — short sentences, infinitive verbs, no pleasantries and stays there until you say "normal mode."Caveman’s extended version adds /caveman-compress (rewrites your CLAUDE.md into caveman-speak, cutting 46% of input tokens per session) and /caveman-review (ultra-compressed PR review comments: one line per issue, location + problem + fix).Code blocks remain unchanged. Security warnings and irreversible actions auto-revert to normal mode for safety.Install via npx skills:npx skills add mattpocock/skills --skill caveman -gOr install the full Julius Brussee version (supports 40+ agents including Cursor, Windsurf, Cline, Copilot):curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash3. Intent Layer : Give agents the codebase map they’re missingGitHub: github.com/crafter-station/skillsWhen Claude explores your codebase, it reads files sequentially without knowing which ones matter. A feature in auth/session.ts triggers a scan of every related import, every potential caller, every adjacent file that might be relevant. Most of that reading is wasted.Intent LayerIntent Layer solves the root cause: agents lack the mental map of your codebase that experienced engineers carry. The skill sets up AGENTS.md files at folder boundaries lightweight markdown documents that encode intent, constraints, and pitfalls that code alone can't express.npx skills add https://github.com/crafter-station/skills/tree/main/context-engineering/intent-layer --skill intent-layer -g -y4. Handoff: End lossy compactionGitHub: github.com/mattpocock/skills (handoff skill)Claude Code’s built-in /compact command compresses your conversation when the context window approaches its limit. The compression is lossy. Specific variable names, nuanced design decisions, and edge-case constraints frequently don't survive.HandoffThe Handoff skill replaces /compact with a structured exit. When you're approaching context limits, trigger /handoff. The skill mines the full conversation, captures git state, extracts decisions and constraints, and writes a structured markdown document to a temp directory. You paste that document into a fresh session and continue with zero context pollution.What it captures (and /compact doesn't):Decisions made and the reasoning behind themFile paths and references to existing artifacts (ADRs, plans, PRDs) linked, not duplicatedA “suggested skills” section listing which skills the next session should invokeRedacted sensitive information (API keys, credentials)The handoff document is agent-agnostic. A session started in Claude Code can hand off to Codex, Copilot CLI, or any other tool useful for adversarial review (different agents reviewing each other’s work) or parallel sessions on large features.npx skills add mattpocock/skills --skill handoff -gWhen to use it: at 60–70% context window fill, before complex multi-session work, any time you’re switching from planning to implementation.5. CLAUDE.md structure : Karpathy wayGitHub: github.com/multica-ai/andrej-karpathy-skillsKarpathy identified the core agent failure modes directly: wrong assumptions made silently, code overcomplicated beyond what was asked, and unrelated things changed as side effects. The multica-ai repo distills his observations into four behavioral constraints in a 65-line file.Think before coding. State assumptions explicitly. If multiple interpretations exist, surface them don’t pick silently. If something is unclear, stop and ask.Simplicity first. No features beyond what was asked. No abstractions for single-use code. No error handling for impossible scenarios. If the output is 200 lines and 50 would do, rewrite it.Surgical changes. Touch only what the request requires. Don’t improve adjacent code. Don’t refactor things that aren’t broken. Every changed line should trace directly to the user’s request.Goal-driven execution. Transform tasks into verifiable success criteria. “Fix the bug” becomes “write a test that reproduces it, then make it pass.” Weak criteria require constant clarification; strong criteria let the agent run independently.Install in one line:curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.mdOr append to an existing CLAUDE.md:echo "" >> CLAUDE.md && curl https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md >> CLAUDE.mdOne tradeoff the repo flags: these guidelines bias toward caution over speed. For trivial tasks, use judgment.6. Code Review Graph : Structural codebase context over file scanningGitHub: github.com/tirth8205/code-review-graphWhen Claude reviews a pull request, it typically reads changed files, then reads their imports, then reads callers, expanding outward until it has enough context to reason about impact. On a large codebase, that’s thousands of tokens spent re-discovering structure that doesn’t change between reviews.Code Review GraphCode Review Graph builds a persistent, local-first knowledge graph of your codebase using Tree-sitter for parsing across Python, TypeScript, JavaScript, Rust, Go, Java, and others. It stores functions, classes, imports, call sites, inheritance, and test coverage in SQLite, then exposes this as an MCP server.The benchmarks from real codebases:Code reviews: 6.8× average token reduction (tested on httpx, FastAPI, Next.js)Daily coding tasks: 14.1× average, up to 49.1× on large reposWhen a file changes, the graph traces every caller, dependent, and test that could be affected the “blast radius” and surfaces only those files instead of the whole project. A 2,900-file project re-indexes in under 2 seconds. On one monorepo, 27,700+ files were excluded from review context; only 15 files were actually read.Install and configure:pip install code-review-graphcode-review-graph install # sets up MCP config, hooks, and CLAUDE.md automaticallycode-review-graph build # builds the initial graphCLAUDE.md instruction it adds: always use graph MCP tools before grep/glob/read. The graph is faster, cheaper, and returns structural context (callers, dependents, test coverage) that file scanning can't.7. RTK (Rust Token Killer) compress CLI output before it reaches contextGitHub: github.com/rtk-ai/rtkEvery shell command Claude runs lands in context. And gets re-read on every subsequent turn.RTK is a Rust-based CLI proxy that sits between Claude’s Bash tool and the shell. When Claude runs git status, RTK intercepts the call, runs it, compresses the output, and returns the compressed version. The original output never hits the context window.Compression is aggressive and lossless for decision-making:cargo test: 155 lines → 3 lines (98% reduction)git status: 119 chars → 28 chars (76% reduction)git log: compact summaries instead of full outputThe re-read compounding is where RTK’s actual impact shows. A git diff producing 2,000 tokens normally costs 20,000 tokens across a 10-turn session. RTK compresses it to 800 tokens total cost 8,000, saving 12,000 from one command. One developer measured 138 million tokens saved across 15,720 commands over several weeks at 89% efficiency.Install (single Rust binary, zero runtime dependencies):curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | shrtk init -g # installs PreToolUse hook for Claude Code globallyThe PreToolUse hook rewrites every Bash call transparently git status becomes rtk git status before execution, with no change to your workflow.Note: the hook only applies to Bash tool calls. If Claude uses native file-reading tools (Read, Glob), those aren't compressed by RTK that's where Code Review Graph and Token Optimizer handle the gap. On Windows without WSL, you get CLAUDE.md fallback mode instead of the auto-rewrite hook.On failure, RTK saves the full unfiltered output to disk so Claude can access it. You don’t lose debugging information.rtk gain # shows savings stats: tokens saved, percentage, per-command breakdownHow these tools fit togetherNone of these seven tools solve the same problem. They’re complementary layers:Session startup (input tokens every turn):CLAUDE.md discipline minimize baseline overheadIntent Layer structured codebase context instead of file scanningActive session (output and re-read tokens):Caveman compresses agent outputRTK compresses CLI output before it enters contextCode Review Graph surgical file reads instead of broad scanningSession lifecycle (compaction and handoff):Token Optimizer audit, fix, and monitor context healthHandoff structured session continuity without lossy compressionFor most engineers, the highest-ROI starting point is RTK (install in 2 minutes, immediate compounding savings) combined with a CLAUDE.md audit (one-time, high leverage). Add Caveman and Handoff as habits, and Code Review Graph on any project with more than a few hundred files.Key takeaways for engineering teamsThe token waste in AI coding sessions is a context engineering problem, not a prompt engineering problem. You can’t fix it by writing better prompts the overhead compounds from structural setup decisions that persist across every session.At team scale, the math changes fast. Claude Sonnet 4.6 runs ~$3.00 per million input tokens at standard rates. Cache reads are $0.30. A team burning 5 million input tokens per day spends $15,000 at standard rates; shifting 80% to cache reads saves ~$4M annualized. The tools above compound on top of that baseline.The practical moves:Instrument first: Deploy Token Optimizer and RTK’s gain command to know your actual waste before optimizing.Fix structure before behavior a bloated CLAUDE.md costs more than any single bad prompt.Replace /compact with Handoff on multi-session features where continuity matters.Add Code Review Graph before your codebase hits 500+ files, not after.Further readingToken Optimizer : Audit, fix, and monitor Claude Code contextCaveman (mattpocock) : Skills library including caveman and handoffIntent Layer — codebase context engineering skillRailly Hugo’s Intent Layer write-up : Methodology behind the skillCode Review Graph : Local-first codebase knowledge graph for token-efficient reviewsRTK (Rust Token Killer) : CLI proxy for compressing shell outputThanks for reading! If you have any questions or feedback, please let me know on Medium or LinkedInI Tried 100+ Claude Code Skills. These 7 Are The Best. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.