Skip to content
affaan-m avatar

Token Budget Advisor

Offers a depth menu with token estimates before answering, then responds at the chosen level.

CCM score
67 of 100
skills.sh installs
11.3K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a four-level depth choice (25%, 50%, 75%, 100%), each with an estimated response token range shown before the answer
  • Estimates input tokens with prose and code heuristics (words × 1.3 or chars / 4) and scales by a complexity multiplier table
  • Skips the prompt when a depth is already set this session or the user names a level, such as "short version" or "100% depth"
  • Designed for users who want to control response length and cost, and excludes auth or payment "token" references

Install

$ npx -y skills add affaan-m/ecc --skill token-budget-advisor -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

Step 2 — Estimate response size by complexity

Classify the prompt, then apply the multiplier range to get the full response window:

Details

Repository
github.com/affaan-m/ecc
Category
Memory & Context
First seen
Jul 14, 2026

Questions

What does the token-budget-advisor skill do?

It offers a choice of response depth at 25%, 50%, 75% or 100%, with estimated token counts, before answering. Once the user picks a level, the agent answers at that depth.

How do I control response length or token budget with this skill?

Ask for a short version, a brief answer, or a set depth such as 50% depth. The skill then shows token estimates and answers at the chosen level, and it keeps that level for the rest of the session.

How do I install the token-budget-advisor skill?

Run npx -y skills add affaan-m/ecc --skill token-budget-advisor -y in your project. The agent then gains the ability to offer depth choices before each answer.

Where does token-budget-advisor rank in the Memory & Context category?

It ranks in the top 50 of the Memory & Context category on Claude Marketplaces. It sits alongside handoff and the caveman skills, which it does not replace.

More from affaan-m/ecc

All 257

Similar to Token Budget Advisor

More Memory & Context