100 Skills in Just 369 Tokens: Local Model Routing Slashes Claude Costs

Developer uses local small-model routing for skill loading to cut 100 skills from 8,000 to 369 tokens.
The article presents a developer's optimization for the context cost of Claude's Skills mechanism. By default, loading all 100 skills consumes about 8,000 tokens, with waste multiplied in sub-agent scenarios. His solution offloads skill selection to a small local model that picks the needed skills based on user input and passes them back to Claude, reducing overhead to 369 tokens. Best suited to large skill libraries and frequent sub-agent use, though it carries misjudgment risk and undisclosed accuracy details.
Claude's Skills mechanism lets users load tool capabilities on demand, but there's an easily overlooked problem: the more skills you have, the higher your context cost. One developer shared his unconventional approach—handing off skill loading to a small local model for routing, compressing the total overhead of 100 skills down to just 369 tokens.

The Hidden Cost of Default Loading
According to the developer's demo in the video, he currently has about 100 skills on hand. If all were loaded into Claude, they'd add up to roughly 8,000 tokens. For most everyday tasks or agentic workflows, this overhead is unnecessary—not every task requires invoking all skills.
Because right now I have about 100 skills and they add up to 8,000 tokens.
What's more troublesome is the sub-agent scenario. If every sub-agent launched carries the full skill context, token consumption multiplies. And with Claude's default skill loading method, users have no choice but to bear this fixed cost.

This actually exposes a design-level tradeoff: Skills make model capabilities extensible, but the cost of that extensibility shows up directly in the context budget of every call. There's a natural tension between skill count and token efficiency.
Claude's Skills mechanism is essentially an on-demand tool extension approach: each skill is defined as an independent instruction or tool module that the model reads into context when needed. This differs from the traditional approach of "stuffing all tool descriptions into the system prompt." Skills were designed so users don't have to expose all capabilities to the model at once. However, as long as a skill is loaded into context, its description text occupies token budget—even if the model ultimately doesn't invoke that skill. So "more skills, higher context cost" isn't an implementation flaw; it's the inevitable result of the on-demand loading mechanism at scale. Understanding this helps determine when an external routing layer is needed to trim the loading set.
Handing Skill Selection to a Local Model
His solution is straightforward: offload the skill-loading step from Claude to a local model.
The specific flow is: the local model receives the user input, determines which skills this task needs and which it doesn't, then passes the selected skills back to Claude, which reads and executes them. This way, only the truly needed skills appear in Claude's context, rather than all 100.

The key to this idea is separation of responsibilities—Claude handles reasoning and execution, while the local model handles only a narrowly scoped classification task. Skill routing is essentially a matching problem of "mapping user intent to a tool set," which doesn't require the full capabilities of a large model. Using a small model is actually more economical.

According to the author, this router initially took about two to three days to reach a usable version, followed by several iterations before its integration with the Claude ecosystem was smooth enough. He currently packages this router as a small zip file and says anyone who needs it can leave a comment to get it.
Sub-agent refers to an independent execution unit spawned by a main agent in an agentic workflow, typically used for parallel processing of subtasks or isolating specific responsibilities. Each sub-agent usually has its own context window. If every launch carries all skill descriptions, token consumption grows linearly—or even multiplicatively—with the number of sub-agents. This is exactly why the original article emphasizes that "waste is amplified in sub-agent scenarios." By moving skill routing upstream to a local model, the routing results can be reused by all sub-agents, avoiding each sub-agent repeatedly loading the same batch of skill descriptions and significantly compressing overall context overhead.
Who This Approach Is For
Looking at the cost structure, this approach delivers the most value in two scenarios:
- Users with large skill libraries: the more skills you have, the worse the waste from default loading, and the greater the savings from routing;
- Agentic workflows that frequently use sub-agents: each spawned sub-agent reuses the routing results, avoiding redundant token consumption.
For users with only a few skills, the complexity of maintaining an additional local model router may outweigh the benefits. This also shows the approach isn't a universal optimization but a solution to a specific scale problem.
Limitations Worth Noting
To be objective, having a local model do the routing introduces a judgment layer: if the router misjudges and omits a skill that should have been loaded, Claude's execution results will be affected. The video doesn't disclose routing accuracy, misjudgment handling mechanisms, or the specific local model chosen. Additionally, 369 tokens is the hook overhead at load time; the compute cost of running the routing process locally isn't included in the comparison.
This pattern of "using a small model for up-front decisions" is becoming a common engineering technique, with a consistent core logic: reserve the large model's context budget for the parts that truly need reasoning. This case provides a concrete, reproducible reference sample—at a stage when the Skills ecosystem is still evolving, there's still plenty of room for engineering optimizations around token efficiency.
One-line Summary
The developer routes skill loading through a small local model, compressing the 8,000-token overhead of 100 skills down to 369 tokens.
Paragraph Summary
The article presents a developer's optimization practice addressing the context cost of Claude's Skills mechanism. By default, loading all 100 skills consumes about 8,000 tokens, and the waste is multiplied in sub-agent scenarios. His solution offloads skill selection from Claude to a small local model: the local model determines which skills are needed based on user input, then passes the selected skills back to Claude for execution, reducing loading overhead to 369 tokens. The router took about two to three days to develop, followed by several iterations before integrating smoothly with the Claude ecosystem. The approach is best suited to users with large skill libraries who frequently use sub-agents, but it carries the risk of routing misjudgments, and the video doesn't disclose accuracy or local model selection details.
Related articles

MAI Transcribe 2.5 Released: The New Frontier of Speech Recognition Sparks Discussion
MAI Transcribe 2.5 debuts on Hacker News as the new frontier of speech recognition, drawing 39 points and 4 comments. We analyze its version logic and early community reaction.

Unpacking the OpenAI–Anthropic Joint Statement Line by Line: AI Finds Math Weakness, Global Encryption Faces Major Overhaul
OpenAI and Anthropic's joint statement reveals AI-discovered cryptographic mathematical weaknesses. A line-by-line breakdown of the 15 sentences: existing encryption security drops sharply, the post-quantum migration window is shorter than official reassurances suggest, and H1 2027 becomes a key milestone.

MedGemma 2: A New Breakthrough in Open Medical Models Built on Gemma 4
Google releases MedGemma 2, an open medical model built on Gemma 4, shifting from medical Q&A to supporting authorized medical record retrieval, clinical score evaluation, and clinical guideline-based Q&A to help developers build real clinical workflow applications.