# token-budget-advisor

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

Offers the user an informed choice about how much response depth to consume before answering. Use this skill when the user explicitly wants to control response length, depth, or token budget. TRIGGER when: "token budget", "token count", "token usage", "token limit", "response length", "answer depth", "short version", "brief answer", "detailed answer", "exhaustive answer", "respuesta corta vs larga", "cuántos tokens", "ahorrar tokens", "responde al 50%", "dame la versión corta", "quiero controlar cuánto usas", or clear variants where the user is explicitly asking to control answer size or depth. DO NOT TRIGGER when: user has already specified a level in the current session (maintain it), the request is clearly a one-word answer, or "token" refers to auth/session/payment tokens rather than response size.

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/skills/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/skills/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) · 241k stars
- [article-writing](https://omgskills.com/skills/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) · 241k stars
- [brand-voice](https://omgskills.com/skills/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) · 241k stars
