This is your reference guide when Claude starts burning through tokens with inefficient MCP server calls. It covers the practical stuff: adding LIMIT clauses to database queries, using compact formats for API schemas, tailing logs instead of dumping entire files, and checking context before fetching documentation you might already have. The anti-patterns table is the most useful part, showing you exactly what not to do (like SELECT * or fetching full API specs when you only need one endpoint). Think of it as a pre-flight checklist before making tool calls. If you're working with MCP servers regularly and want to keep token costs down without sacrificing quality, this will save you from the obvious mistakes.

skills.sh installs
346
GitHub stars
47
last updated
Aug 21, 2026

Install

$ npx -y skills add claude-dev-suite/claude-dev-suite --skill token-optimization --agent claude-code

Installs into .claude/skills of the current project.

Files

Token Optimization Best Practices

Deep Knowledge: Use mcp__documentation__fetch_docs with technology: token-optimization for 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 performance skill 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

PrincipleDescription
Lazy LoadingLoad information only when strictly necessary
Minimal OutputRequest only needed data, use limit and compact parameters
Progressive DetailStart with overview/summary, drill down only if needed
Cache FirstCheck if information is already in context before external calls

Anti-Patterns

Sponsors

Details

Repository
github.com/claude-dev-suite/claude-dev-suite
Categories
Backend & APIs, DevOps & CI/CD, AI & Agent Building, Debugging, Cloud & Infrastructure
First seen
Jun 3, 2026

More from claude-dev-suite/claude-dev-suite

All 2
1jezweb avataropenai-responsesjezweb/claude-skillsBuild agentic AI with OpenAI Responses API - stateful conversations with preserved reasoning, built-in tools (Code Interpreter, File Search, Web Search), and MC346skills.sh installs
2madteacher avatarflutter-duit-bduimadteacher/mad-agents-skillsIntegrate, fix, review, migrate, test, or debug Duit / flutter_duit backend-driven UI in Flutter applications. Use when a task mentions DUIT, flutter_duit, back346skills.sh installs
3dfinity avatarinternet-identitydfinity/icskillsIntegrate Internet Identity authentication. Covers passkey and OpenID sign-in flows, delegation handling, and principal-per-app isolation. Use when adding sign-343skills.sh installs
4pproenca avatar37signals-railspproenca/dot-skills37signals Rails coding principles and conventions from DHH, Jorge Manrubia, and the Fizzy/Basecamp/HEY codebase. This skill should be used when writing, reviewi340skills.sh installs
5bobmatnyc avatarvercel-functions-runtimebobmatnyc/claude-mpm-skillsVercel Functions and Edge Runtime, including cron jobs and routing middleware. Use when building APIs, serverless workloads, or scheduled tasks on Vercel.338skills.sh installs
6bobmatnyc avatarvercel-overviewbobmatnyc/claude-mpm-skillsVercel platform overview for onboarding, projects, CLI, Git integration, environment variables, project configuration, REST API, and webhooks. Use when planning338skills.sh installs