I wondered why my coding agent kept burning quota and picking the wrong tool. Then I ran a 40-line Python script on my home directory and found 116 Azure skills, 24 Odoo ERP skills, and 9 Minecraft plugin skills sitting inside ~/.agents/skills. I do not use Azure, Odoo, or Minecraft.
Over the past six months I had installed a few community "awesome agent skills" mega-packs and never cleaned them up. Last night my IDE printed excluded due to context budget limits at the bottom of the system prompt on every single turn, so I measured everything actually loading across my three daily harnesses (Antigravity/Gemini, Claude Code, and Codex CLI).
What the audit found on my machine
| Config surface | Measured on disk | Estimated metadata / schema cost |
|---|---|---|
~/.agents/skills (bulk-installed packs) |
1,531 skills | ~53,585 tokens if fully loaded |
~/.gemini/config/skills & ~/.claude/skills
|
70 & 73 skills | ~2,450 to 2,555 tokens |
Global rules + project CLAUDE.md / GEMINI.md
|
4 files (55 KB total) | ~5,900 to 8,000 tokens per turn |
| Browser MCPs enabled at the same time | 3 servers (69 tools total) | ~13,094 schema tokens |
Idle utility MCPs (blender, n8n-mcp) |
2 servers (17 tools) | ~6,900 schema tokens |
Even after the harness truncated the skill list to fit its context budget, hundreds of irrelevant skill descriptions still sat in the system prompt on every turn and competed with the skills I actually wanted the model to pick.
The MCP side had the same drift. I had chrome-devtools-mcp (33 tools, ~6,737 schema tokens), playwright-mcp (25 tools, ~3,917 schema tokens), and my own turbo-browser-mcp (11 tools, 2,441 compact tokens) all turned on at once. That is 69 browser tools doing overlapping jobs before the agent even opens a tab.
The fix: 3-tier Progressive Disclosure + one router skill
Deleting everything felt risky because I still use specialized workflows (Three.js, Blender, Remotion, Supabase RLS) once or twice a month. Instead, I split the setup into three tiers so nothing is lost while keeping default context flat:
-
Tier 1: Core Always-On (14 skills, ~1,010 metadata tokens). Only skills used almost every day stay in the active skill folder: debugging, TDD, verification-before-completion, frontend design, Windows shell reliability, writing cleanup (
stop-slop+humanizer),turbo-browser, and one 74-lineskill-router. -
Tier 2: On-Demand Vault (60 specialized skills, 0 default tokens). Media/video, 3D, mobile, database/security, and office document skills move into a local folder (
ai-brain/skills-vault/). They never appear in the system prompt. When a task mentions Blender, Supabase RLS, or Android, the 74-lineskill-routertells the agent the exactSKILL.mdpath to read on demand. - Tier 3: Reversible Archive (1,521 unused skills, 0 tokens). Everything outside my stack moves to an archive directory with a JSON manifest so any skill can be restored in one command.
Here is the core idea of the router table inside skill-router/SKILL.md:
| Task trigger | Read this file before starting |
| :--- | :--- |
| Supabase RLS / Postgres audit | `D:\Project\ai-brain\skills-vault\supabase-postgres-best-practices\SKILL.md` |
| Security review / auth | `D:\Project\ai-brain\skills-vault\security-audit-skill\SKILL.md` |
| 3D / Three.js / WebGL | `D:\Project\ai-brain\skills-vault\threejs-fundamentals\SKILL.md` |
| Video / HyperFrames / Remotion | `D:\Project\ai-brain\skills-vault\hyperframes\SKILL.md` |
Cutting the MCP and cross-session bloat too
On the MCP side, turning off the two duplicate browser servers (playwright and chrome-devtools) and leaving only turbo-browser-mcp (11 tools, 2,441 tokens, MIT: https://github.com/Tthanh2k6/turbo-browser-mcp) drops ~10,654 schema tokens per turn. Utility MCPs like blender and n8n-mcp stay disabled: true until I actually open Blender or n8n.
To stop Claude Code, Codex, and Gemini from re-reading the same repo maps every new session, I also tested pairing this slim skill set with one shared local Markdown knowledge graph (basic-memory MCP) instead of stuffing 10,000 tokens of history into CLAUDE.md.
Numbers after the cleanup plan
- Active skill metadata: 1,587 skills (~53,500 tokens) -> 14 skills (~1,010 tokens) (98.1% drop, zero truncation warnings).
- Active browser MCP tools: 69 tools across 3 servers -> 11 tools on 1 server (~10,654 schema tokens saved).
- Zero skills deleted permanently: 60 specialized skills stay one
read_fileaway viaskill-router, and 1,521 bulk-pack skills sit in an archive folder.
If your coding agent feels slower or keeps picking the wrong tool after months of installing skills and MCP servers, run a quick count on ~/.agents/skills, ~/.claude/skills, and your mcp_config.json. You might be paying for 100 Azure and Odoo skills on every prompt.
Top comments (4)
Great measurement work — the 53k-token figure is the part most people never see. Your tiering fix is solid, and I'd add one gate before anything even reaches Tier 1: audit the skill before installing it. A lot of community packs ship SKILL.md files that run scripts or hooks, ask for broad permissions, or just duplicate what you already have — that's how 1,531 skills end up on disk in the first place.
The four checks I run now: (1) is it SKILL.md-only or does it execute code/hooks, (2) what permissions does it ask for, (3) does it read the code before writing, (4) is there a smaller curated source for the same job instead of a mega-pack. I wrote the checklist up here: dev.to/laogedev2/audit-a-claude-co... — and for Chinese-language workflows I keep a small curated set instead of bulk packs (laolaoshiren/claude-code-skills-zh, 21 original skills plus a curated list), which is the same "fewer, better" idea as your 14-skill Tier 1.
Curious whether your router skill also logs which vault skills actually get pulled — that'd be the data for the next cleanup round.
Right now the router is just a static markdown map, so it does not log pulls yet. Adding a one-line append to a local usage log whenever a vault skill gets read is a good idea though. After 30 days anything with zero hits can move straight to the archive folder.
Tool schemas are sent with every request, so 69 browser tools cost input tokens before the model reads a word of your prompt. Loading a tool only when the task needs it cuts that cost.
When a task should trigger a vault skill, how do you verify the agent read that skill and the existing implementation before it starts editing?