token-budget-advisor

Estimates prompt tokens and offers selectable response depth levels before answering.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/freedom909/real-estate-saas --skill token-budget-advisor-freedom909
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: token-budget-advisor
Source: https://github.com/freedom909/real-estate-saas/tree/main/.trae/skills/token-budget-advisor
Command: npx skills add https://github.com/freedom909/real-estate-saas --skill token-budget-advisor-freedom909

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Users often receive answers that are too long or too short for their needs, wasting tokens and time. This Skill intercepts the response flow to let users choose exactly how much depth and length an answer should consume before it is generated. ## Core Features & Use Cases - Heuristic Token Estimation: Estimates input tokens using word-count and character-count heuristics, then projects a response window based on prompt complexity. - Four Depth Levels: Offers Essential (25%), Moderate (50%), Detailed (75%), and Exhaustive (100%) response tiers with estimated token counts for each. - Session-Level Persistence: Remembers the user's chosen depth level and applies it silently to subsequent responses until changed. - Use Case: A user asks a complex architecture question but only wants a quick summary. They say "give me the short version" and immediately receive a 2-4 sentence direct answer instead of a full analysis. ## Quick Start Ask the assistant to respond at 50% depth before answering your next question.

Frequently Asked Questions about token-budget-advisor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control the length of an AI response?▼

State a depth level such as "short version", "50% depth", or "exhaustive answer" before your question. The skill maps these phrases to four tiers from 25% Essential to 100% Exhaustive and responds at that length immediately.

How does the token budget advisor estimate token counts?▼

It uses heuristic rules: words multiplied by 1.3 for prose, and characters divided by 4 for code-heavy content. The estimate is then scaled by a complexity multiplier ranging from 3x for simple questions to 40x for complex analysis.

How accurate is heuristic token estimation without a tokenizer?▼

Heuristic estimation achieves roughly 85-90% accuracy with a variance of plus or minus 15%. It is suitable for relative depth planning but should not be treated as an exact billing-grade token count.

Does the chosen response depth persist across a session?▼

Yes. Once a user selects a depth level, it is maintained silently for all subsequent responses in that session. The level only changes when the user explicitly requests a different depth.

When should I not use token budget control?▼

Skip it when the answer is trivially one line, when the user already set a level this session, or when "token" refers to authentication or payment tokens rather than response size.