Token Optimization
Guidelines for trimming token use in MCP server and tool calls, without giving up effectiveness.
- CCM score
- 37 of 100
- skills.sh installs
- 360
- GitHub stars
- 51
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers lazy loading, minimal output, progressive detail, and cache-first habits, plus anti-patterns like unbounded SELECTs and full schema dumps
- Includes per-server patterns for database-query, api-explorer, documentation, log-analyzer, security-scanner, and code-quality, with BAD and GOOD call examples
- Provides a pre-call checklist and output size standards: max 20 DB rows, quotes under 500 characters, and responses under about 2000 tokens
- Designed for working with MCP tools in Claude sessions; points runtime speed, code minification, and infrastructure cost questions to other skills
Install
$ npx -y skills add claude-dev-suite/claude-dev-suite --skill token-optimization -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Token Optimization Best Practices
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:token-optimizationfor comprehensive documentation.
Guidelines for minimizing token consumption in MCP server and external tool interactions.
When NOT to Use This Skill
This skill focuses on API/tool call optimization. Do NOT use for:
- Runtime performance - Use
performanceskill for speed optimization - Code minification - Use build tools (Vite, Webpack, etc.)
- Database query optimization - Use database-specific skills
- Algorithm efficiency - Use computer science fundamentals
- Prompt engineering - This is about tool usage, not prompt design
General Principles
| Principle | Description |
|---|---|
| Lazy Loading | Load information only when strictly necessary |
| Minimal Output | Request only needed data, use limit and compact parameters |
| Progressive Detail | Start with overview/summary, drill down only if needed |
| Cache First | Check if information is already in context before external calls |
Anti-Patterns
Details
- Repository
- github.com/claude-dev-suite/claude-dev-suite
- Categories
- Memory & Context, Skill & Plugin Building
- First seen
- Jun 3, 2026
Questions
What does the token-optimization skill do?
The token-optimization skill gives best practices for reducing token consumption in MCP server and external tool interactions while keeping results effective. It covers anti-patterns such as unbounded SELECT queries and full schema requests, and suggests limits, compact formats and targeted searches instead. It is meant for cases where a user asks how to use fewer tokens or make MCP calls more efficient.
Where does token-optimization stand in the Memory & Context category?
Token-optimization sits in the Memory & Context category on Claude Marketplaces, alongside handoff, caveman-compress, caveman-stats, caveman-learn and caveman-optimize. It differs from those by focusing on API and tool call patterns rather than text compression or session memory. It also states it is not for code performance or infrastructure cost work.
How do I install the token-optimization skill?
Run npx -y skills add claude-dev-suite/claude-dev-suite --skill token-optimization -y inside your project. Once installed, the agent gets guidance for limiting output size, choosing specific MCP tools and checking context before making external calls. The skill comes from the claude-dev-suite GitHub repository.
Does token-optimization need any tools or accounts to run?
The skill's allowed tools are Read, Grep and Glob, so it works with file reading and searching in the project. Its guidance refers to MCP servers such as database, API, documentation and log tools, which the user must have set up separately. It is a set of usage guidelines rather than a standalone service.
When should I use token-optimization and when should I not?
Use it when you ask about token usage, reducing API calls, MCP efficiency, or limiting output size. Do not use it for code optimization, which the performance skill covers, or for infrastructure cost work, which belongs to cloud or DevOps skills. Text compression is also outside its scope.
More from claude-dev-suite/claude-dev-suite
All 2Similar to Token Optimization
More Memory & Contextsave-handoffnowledge-co/community360 installsSave a resumable handoff summary only when the user explicitly asks. This is not a real transcript import.
wiki-retrieveagricidaniel/claude-obsidian359 installsHybrid retrieval primitive for the Compound Vault. Replaces the v1.6 static hot→index→drill read order with contextual-prefix + BM25 + cosine-rerank, modeled on
session-memoryhumanplane/homunculus356 installsMaintains awareness across sessions. Spawns observer agent on start, loads context, notifies of evolution opportunities.
memory-systemsmuratcankoylan/agent-skills-for-context-engineering354 installs>
context-management-context-restoresickn33/agentic-awesome-skills353 installscontext management context restore
idea-ingestgarrytan/gbrain351 installsIngest links, articles, tweets, and ideas into the brain. Fetch content, save to brain with analysis, create author people page, and cross-link. Use when the us