token-budget-advisor

token-budget-advisor is a skill for Claude Code, Codex from majiang213/OpenClaw-MAS. It costs 187 tokens per session (1,437 once invoked), scanned A, a copy of token-budget-advisor, MIT.

A guide for choosing how much detail an answer should contain before it is written. It uses response length and token usage as planning measures.

In plain words
What is it for?
Estimating input size, selecting a response depth, and avoiding unnecessary output.
Why use it?
It helps users control how brief or detailed the assistant’s response will be.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Estimating input size, selecting a response depth, and avoiding unnecessary output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiang213/openclaw-mas/token-budget-advisor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add majiang213/OpenClaw-MAS --skill token-budget-advisor
Clone the repo
git clone --depth 1 https://github.com/majiang213/OpenClaw-MAS

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for token-budget-advisor

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiang213/openclaw-mas/token-budget-advisor/github.svg)](https://agentmods.dev/skills/majiang213/openclaw-mas/token-budget-advisor)
Your own site
<a href="https://agentmods.dev/skills/majiang213/openclaw-mas/token-budget-advisor"><img src="https://agentmods.dev/badge/skills/majiang213/openclaw-mas/token-budget-advisor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for token-budget-advisor

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiang213/openclaw-mas/token-budget-advisor"><img src="https://agentmods.dev/badge/skills/majiang213/openclaw-mas/token-budget-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,437 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00187 $0.01437
Opus 5.5 $0.00075 $0.00575
Sonnet 5.5 $0.00037 $0.00287
Haiku 4.5 $0.00019 $0.00144

Measured 2mo ago against content hash c87bfe27ebd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

token-budget-advisor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to token-budget-advisor — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

ecc-skills/token-budget-advisor/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

Complexity Multiplier range Example prompts
Simple 3× – 8× "What is X?", yes/no, single fact
Medium 8× – 20× "How does X work?"
Medium-High 10× – 25× Code request with context
Complex 15× – 40× Multi-part analysis, comparisons, architecture
Creative 10× – 30× Stories, essays, narrative writing

Response window = input_tokens × mult_min to input_tokens × mult_max (but don’t exceed your model’s configured output-token limit).

Step 3 — Present depth options

Present this block before answering, using the actual estimated numbers:

Analyzing your prompt...

Input: ~[N] tokens  |  Type: [type]  |  Complexity: [level]  |  Language: [lang]

Choose your depth level:

[1] Essential   (25%)  ->  ~[tokens]   Direct answer only, no preamble
[2] Moderate    (50%)  ->  ~[tokens]   Answer + context + 1 example
[3] Detailed    (75%)  ->  ~[tokens]   Full answer with alternatives
[4] Exhaustive (100%)  ->  ~[tokens]   Everything, no limits

Which level? (1-4 or say "25% depth", "50% depth", "75% depth", "100% depth")

Precision: heuristic estimate ~85-90% accuracy (±15%).

Read the full file on GitHub · 134 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 134 lines · 187 tokens per session scan A c87bfe27ebd1

Subscribe to this mod's changes

token-budget-advisor is a skill published in the GitHub repository majiang213/OpenClaw-MAS (5 stars, last pushed 7mo ago), licensed MIT. It adds 187 tokens to every session and 1,437 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to token-budget-advisor, differing in 7 lines, and is treated as a copy.

Related

token-budget-advisor compared with skills from other repositories

token-budget-advisor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
token-budget-advisormajiang213/OpenClaw-MASSkill57mo agoMITA187Claude Code, Codex
0codekitLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA27Claude Code, Codex
afrexai-career-acceleratorLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA61Claude Code, Codex
agent-chat-uxLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA49Claude Code, Codex
13-Day Sprint MethodLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA23Claude Code, Codex
adult-social-skillsLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA45Claude Code, Codex
agent-avengersLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA97Claude Code, Codex