# token-budget-advisor

> Claude/Codex skill by [@affaan-m](https://github.com/affaan-m) · 283k stars · Updated 2026-10-15

Offer a choice of response depth (25%/50%/75%/100%) with token estimates before answering, then answer at that level. Use when the user asks to control response length or token budget, such as 'token budget', 'short version', 'brief answer', 'respuesta corta vs larga', 'cuántos tokens', 'ahorrar tokens', 'responde al 50%', 'dame la versión corta', 'quiero controlar cuánto usas'. Skip if depth is already set this session or 'token' means an auth/payment token.

Tags: ai-agents, anthropic, claude, claude-code, developer-tools, llm, mcp, productivity

## Install

```sh
git clone https://github.com/affaan-m/ECC /tmp/ECC && ln -s /tmp/ECC/skills/token-budget-advisor ~/.claude/skills/token-budget-advisor
```

## From README

Token Budget Advisor (TBA) Intercept the response flow to offer the user a choice about response depth before Claude answers. When to Use User wants to control how long or detailed a response is User mentions tokens, budget, depth, or response length User says "short version", "tldr", "brief", "al 25%", "exhaustive", etc. Any time the user wants to choose depth/detail level upfront Do not trigger when: user already set a level this session (maintain it silently), or the answer is trivially one line. How It Works Step 1 — Estimate input tokens Use the repository's canonical context-budget heuristics to estimate the prompt's token count mentally. Use the same calibration guidance as context-budget: prose: words × 1.3 code-heavy or mixed/code blocks: chars / 4 For mixed content, use the dominant content type and keep the estimate heuristic.

## Links

- HTML page: https://omgskills.com/library/affaan-m/ecc/token-budget-advisor/
- GitHub: https://github.com/affaan-m/ECC
- Author: [@affaan-m](https://github.com/affaan-m)

## More from this repo

- [api-design](https://omgskills.com/library/affaan-m/ecc/api-design/index.md) — REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning,...
   - [@affaan-m](https://github.com/affaan-m) · 283k stars
- [article-writing](https://omgskills.com/library/affaan-m/ecc/article-writing/index.md) — Used to write articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive...
   - [@affaan-m](https://github.com/affaan-m) · 283k stars
- [brand-voice](https://omgskills.com/library/affaan-m/ecc/brand-voice/index.md) — Used to build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then...
   - [@affaan-m](https://github.com/affaan-m) · 283k stars
