svenja-dev/claude-code-skills/token-budget-advisor
Claude Code and agent skill by svenja-dev/claude-code-skills
- community
Checking that the SKILL.md file is still in the repository.
Proactive token budget assessment and task chunking strategy. Use this skill when queries involve multiple large file uploads, requests for comprehensive multi-document analysis, complex multi-step workflows with heavy research (10+ tool calls), phrases like "complete analysis", "full audit", "thorough review", "deep dive", or tasks combining extensive research with large output artifacts. This skill helps assess token consumption risk early and recommend chunking strategies before beginning work.
Install
npx vskill@latest install svenja-dev/claude-code-skills/token-budget-advisorSKILL.md
Token Budget Advisor
This skill provides early assessment of token-heavy tasks and recommends chunking strategies to ensure successful completion within context window constraints.
When to Use This Skill
Trigger this skill before beginning work when you detect:
- Multiple file uploads (3+ documents) combined with analysis requests
- Requests for "comprehensive", "complete", "thorough", or "full" analysis
- Multi-document comparative analysis
- Complex workflows requiring 10+ tool calls (extensive web research + synthesis)
- Tasks combining heavy research with large artifacts (reports, presentations)
- Queries spanning multiple dimensions (temporal + categorical + quantitative)
- Requests to "analyze everything" or "create a complete report on all aspects"
Core Function
This skill serves two purposes:
- Early warning system: Assess whether a task will likely exceed token limits
- Strategic planning: Provide specific, actionable chunking recommendations
Token Estimation Framework
Quick Assessment Heuristics
Estimate token consumption using these rough guidelines:
Input costs:
- Uploaded document: ~1,000-5,000 tokens each (depending on length)
- Web search result: ~500-1,500 tokens
- Web fetch (full article): ~2,000-8,000 tokens
- Google Drive document: ~1,000-10,000 tokens (varies significantly)
Output costs:
- Simple response: 500-2,000 tokens
- Detailed analysis: 2,000-5,000 tokens
- Long-form report: 5,000-15,000 tokens
- Complex artifact (presentation, document): 5,000-20,000 tokens
Tool call overhead:
- Each tool call includes the query, results, and reasoning: ~1,000-3,000 tokens average
Warning thresholds:
- Caution zone (60-80% of budget): Task is achievable but tight; consider efficiency
- Danger zone (80-95% of budget): High risk; strongly recommend chunking
- Exceeds budget (95%+ of budget): Task requires chunking; cannot complete in one conversation
Task Complexity Multipliers
Apply these mental adjustments:
- Synthesis required: Add 30-50% to output estimate (comparing, integrating multiple sources)
- Iterative refinement: Add 20-30% (when task involves reviewing and improving)
- Multiple formats: Add 20% per additional output type (report + presentation + spreadsheet)
Chunking Strategy Framework
When a task exceeds token budget, recommend specific chunking approaches. Choose strategies based on task structure:
1. Sequential Processing
Best for: Time-series data, chronological analysis, ordered workflows
Pattern:
When to use:
- Historical data analysis
- Period-over-period comparisons
- Multi-phase projects
2. Dimensional Breakdown
Best for: Multi-faceted analysis, different aspects of same topic
Pattern:
When to use:
- Multi-stakeholder analysis
- Different analytical lenses on same subject
- Complex business cases
3. Depth Progression
Best for: Tasks requiring outline → draft → refinement
Pattern:
When to use:
- Large documents or presentations
- When quality refinement is important
- Creative projects benefiting from iteration
4. Subset Sampling
Best for: Large document sets where representative sampling works
Pattern:
When to use:
- Document review at scale
- Pattern identification across many files
- Risk-based sampling approaches
5. Parallel Track Processing
Best for: Independent workstreams that can be combined later
Pattern:
When to use:
- Comparative analysis
- Multiple independent subjects
- When parts don't need each other's context
Communication Guidelines
Messaging Framework
When recommending chunking, use this structure:
- Acknowledge the request clearly
- Provide token budget assessment (brief, 1 sentence)
- Recommend specific chunking approach (numbered list, 2-4 parts)
- Ask for confirmation to proceed (keep user in control)
Example:
What NOT to Do
❌ Don't over-explain token budgets or get technical about context windows ❌ Don't apologize excessively or sound limiting ❌ Don't provide vague suggestions like "maybe split this up somehow" ❌ Don't start work and then stop mid-task saying "we've run out of tokens"
✅ Do be matter-of-fact and solution-oriented ✅ Do provide specific, actionable breakdowns ✅ Do keep the momentum going toward task completion ✅ Do frame chunking as a quality improvement (thoroughness) not limitation
Handling Edge Cases
User Insists on Single Session
If user pushes back on chunking:
Task Becomes Too Large Mid-Stream
If partway through, token budget becomes concerning:
Uncertain Estimation
When task scope is ambiguous:
Integration with Other Skills
This skill works in conjunction with domain-specific skills:
- Before heavy document analysis: Check token budget, then use docx/pdf/xlsx skills
- Before comprehensive research: Assess scope, then execute research process
- Before complex artifacts: Plan chunking, then use pptx/docx/xlsx creation skills
Think of this skill as a "pre-flight check" before embarking on token-intensive tasks.
Examples in Action
Example 1: Multi-Document Analysis
User query: "Analyze all these uploaded contracts and tell me the common terms and differences" [User has uploaded 12 PDF contracts]
Response: "I'll help you analyze these 12 contracts. Given the volume, I recommend we process this in batches to ensure thorough analysis:
- Contracts 1-4: Extract key terms, obligations, and unique clauses
- Contracts 5-8: Same analysis
- Contracts 9-12: Same analysis
- Synthesis: Common terms across all + key differences
This ensures I can give each contract proper attention. Should I start with contracts 1-4?"
Example 2: Comprehensive Research Report
User query: "Research the AI chip market and create a detailed report covering market size, key players, technology trends, and 5-year forecast"
Response: "I'll create a comprehensive AI chip market report. This research and report creation will be substantial, so I recommend:
- Market overview: Size, growth, segments (research + draft)
- Competitive landscape: Key players, market share, strategies (research + draft)
- Technology trends: Current developments, emerging tech (research + draft)
- Future outlook: 5-year forecast, implications (research + draft)
- Final report assembly: Executive summary, polish, formatting
Each section gets thorough research and quality writing. Should I begin with the market overview?"
Example 3: Simple Task (No Chunking)
User query: "Summarize this 10-page PDF and give me the key takeaways"
Response: [No trigger - proceed normally without invoking this skill] "I'll read through the PDF and extract the key points for you."
Rationale: Single document summary is well within normal token budget.
Skill Maintenance
This skill should be updated when:
- Token budget limits change
- New patterns of token-heavy tasks emerge
- Chunking strategies prove ineffective in practice
- User feedback indicates communication could be clearer
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/token-budget-advisor/token-budget-advisor/SKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 5
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/svenja-dev/claude-code-skills/token-budget-advisor)