token-budget-allocator
Installation
SKILL.md
Dynamic Context Budget Allocation Protocol (Section Quota Enforcer)
Overview
When constructing the prompt context for an autonomous agent, treating the context window as a single unpartitioned bucket causes Context Monopolization: a single verbose tool output or RAG document retrieval consumes 80% of available tokens, evicting conversation history and truncating system instructions.
Context monopolization leads to:
- Instruction Amnesia: When system rules are truncated, models violate coding standards and delete safety boundaries.
- Context Window Overflow: Requests crash unexpectedly at provider API gateways.
- Severe Cost Spikes: Unchecked data ingestion drives billing to maximum token limits.
The Dynamic Context Budget Allocation Protocol enforces strict mathematical quotas across 5 distinct context partitions, guaranteeing dedicated headroom for reasoning and history.