skills/token-budget-advisor/token-budget-advisor/SKILL.md
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.
npx skillsauth add svenja-dev/claude-code-skills token-budget-advisorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides early assessment of token-heavy tasks and recommends chunking strategies to ensure successful completion within context window constraints.
Trigger this skill before beginning work when you detect:
This skill serves two purposes:
Estimate token consumption using these rough guidelines:
Input costs:
Output costs:
Tool call overhead:
Warning thresholds:
Apply these mental adjustments:
When a task exceeds token budget, recommend specific chunking approaches. Choose strategies based on task structure:
Best for: Time-series data, chronological analysis, ordered workflows
Pattern:
"This analysis of 12 months of data will exceed our token budget. I recommend we split it into quarters:
- Part 1: Q1-Q2 analysis (Jan-Jun)
- Part 2: Q3-Q4 analysis (Jul-Dec)
- Part 3: Synthesis and recommendations
Should I start with Part 1?"
When to use:
Best for: Multi-faceted analysis, different aspects of same topic
Pattern:
"A complete market analysis covering financial, competitive, regulatory, and technological factors will strain our token budget. Let's break it into:
- Session 1: Financial performance and market size
- Session 2: Competitive landscape and positioning
- Session 3: Regulatory environment and compliance
- Session 4: Technology trends and synthesis
Which dimension should we tackle first?"
When to use:
Best for: Tasks requiring outline → draft → refinement
Pattern:
"Creating a comprehensive 50-slide presentation with detailed research will exceed our budget. I recommend:
- Round 1: Build structure and outline (30 min)
- Round 2: Develop content for slides 1-25 (45 min)
- Round 3: Develop content for slides 26-50 (45 min)
- Round 4: Refinement pass (30 min)
Let's start with the outline?"
When to use:
Best for: Large document sets where representative sampling works
Pattern:
"Analyzing all 15 contracts will exceed our budget. I suggest:
- Part 1: Analyze 5 representative contracts (different types/dates)
- Part 2: Based on patterns found, confirm with 5 more
- Part 3: Quick scan of remaining 5 for exceptions, then synthesize
This gives thorough coverage while managing tokens. Sound good?"
When to use:
Best for: Independent workstreams that can be combined later
Pattern:
"Comparing our product vs 5 competitors across features, pricing, and positioning is too large for one session. Let's split by competitor:
- Session 1: Competitors A & B full analysis
- Session 2: Competitors C & D full analysis
- Session 3: Competitor E + synthesis matrix
Each session stays focused and manageable."
When to use:
When recommending chunking, use this structure:
Example:
I'll help you analyze these 8 financial reports and create a comprehensive presentation.
This task will exceed our token budget given the research and artifact creation required.
I recommend splitting it into:
1. Reports 1-4: Analysis and key findings
2. Reports 5-8: Analysis and key findings
3. Synthesize all findings into presentation
Should I start with reports 1-4?
❌ 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
If user pushes back on chunking:
"I understand you'd prefer this in one go. I'll do my best to complete it, but I may need to:
- Prioritize the most critical elements
- Provide a condensed version
- Focus on breadth over depth in some areas
Let me start and we'll see how far we can get. What aspects are highest priority?"
If partway through, token budget becomes concerning:
"I'm about halfway through and we're approaching token limits. I have two options:
1. Complete this current section and continue in a fresh conversation (recommended - maintains quality)
2. Accelerate through remaining sections with lighter analysis
Which approach works better for you?"
When task scope is ambiguous:
"I want to make sure we complete this successfully. The scope could go in different directions. Could you clarify:
- [Specific question about depth]
- [Specific question about breadth]
This helps me gauge whether we should chunk this task."
This skill works in conjunction with domain-specific skills:
Think of this skill as a "pre-flight check" before embarking on token-intensive tasks.
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:
This ensures I can give each contract proper attention. Should I start with contracts 1-4?"
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:
Each section gets thorough research and quality writing. Should I begin with the market overview?"
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.
This skill should be updated when:
development
Protects design and theme files from unintended changes. Locks tailwind.config, global CSS, and theme variables. Requires explicit confirmation before modifying UI components. Activate on changes to CSS, theme config, or layout components.
development
Erzwingt striktes Test-Driven Development mit Red-Green-Refactor Zyklus. Blockiert Code-Generierung ohne vorherige Tests. Dokumentiert 13 ungueltige Rationalisierungen. Aktivieren bei neuen Features, Bug Fixes, Refactoring.
development
Enforces TypeScript best practices when writing code. Automatically enables strict typing for TypeScript projects, prevents `any` usage, and recommends generic constraints. Activate on TS/TSX files, new features, code reviews.
development
Erarbeitet mit dem User eine Spezifikation bevor Code geschrieben oder an CC/Sonnet delegiert wird. Prueft Kontext, Ziel, Abnahmekriterien, Constraints. Erzeugt SPEC.md oder CC-Prompt mit Self-Fix-Protokoll. Triggern bei: Spec, Spezifikation, SPEC.md, CC-Prompt, Sonnet-Prompt, "delegate an CC", "was brauchst du noch", "plan das erstmal", "bevor du loslegst", groessere Features, mehrstufige Aufgaben, unklare Abnahmekriterien. Im Zweifel User fragen. Ersetzt cc-prompt-builder.