Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Plan a session's context window like the budget it is — what loads up front, what gets linked instead, what stays fetch-on-demand, and how to keep the stable prefix cache-friendly so repeated turns cost cents instead of dollars. Use when asked my agent keeps blowing its context, plan what to load into the session, why is every turn so expensive, or design the context for this workflow. Produces the load/link/fetch allocation, the cache-aware prefix layout, the per-turn cost shape, and the evicti
.claude/skills/mohitagw15856-context-budget/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-15 | ✓→✗ | ▼ Worse | -10% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 35% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 55% | 0% |
A context window is a budget that gets re-spent every single turn — everything sitting in it rides every call, which is how a session that "only loaded a few files" ends up paying for them forty times. This skill plans the spend before the session: what earns a permanent seat (loaded once, up front, stable), what gets linked (a map or index, with the full thing fetch-on-demand), and what never enters at all. The quiet second half is cache-awareness: providers price cached prefix tokens at a fraction of fresh ones, but only if the prefix stays byte-identical — so the layout (stable things first, volatile things last) is itself a cost decision.
Ask for these if not provided:
| Piece | Size (~tokens) | Verdict | Why | |---|---|---|---| load / link (with its index) / fetch-on-demand / exclude]
Ordered: instructions → schemas/standing refs → the maps/indexes → (volatility line) → working state → history — with the cache note per section]
Turn 1 / mid-session / near-limit — the arithmetic, cache-adjusted where pricing is known]
The order, each with its recovery route: "crushed outputs first — refetchable via command]"]
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 31,643 | 40,477 | +28% | 1 | 1 | 0% | 5,879 | 5,828 | -1% | 0 | 0 | — |
case-02 | fail→fail | 28,079 | 19,155 | -32% | 1 | 1 | 0% | 5,163 | 4,520 | -12% | 0 | 0 | — |
case-03 | fail→pass | 13,462 | 13,815 | +3% | 1 | 1 | 0% | 2,359 | 3,728 | +58% | 0 | 0 | — |
case-04 | pass→pass | 13,829 | 10,222 | -26% | 1 | 1 | 0% | 2,346 | 3,175 | +35% | 0 | 0 | — |
case-05 | pass→pass | 33,327 | 7,921 | -76% | 1 | 1 | 0% | 1,719 | 2,671 | +55% | 0 | 0 | — |
case-06 | pass→pass | 12,528 | 8,401 | -33% | 1 | 1 | 0% | 1,958 | 2,695 | +38% | 0 | 0 | — |
case-07 | pass→pass | 13,575 | 11,658 | -14% | 1 | 1 | 0% | 2,037 | 3,108 | +53% | 0 | 0 | — |
case-08 | pass→pass | 15,765 | 17,946 | +14% | 1 | 1 | 0% | 2,903 | 4,083 | +41% | 0 | 0 | — |
case-09 | pass→pass | 21,412 | 20,562 | -4% | 1 | 1 | 0% | 3,366 | 4,486 | +33% | 0 | 0 | — |
case-10 | pass→pass | 12,104 | 48,552 | +301% | 1 | 1 | 0% | 1,842 | 3,199 | +74% | 0 | 0 | — |
case-11 | fail→pass | 11,130 | 6,183 | -44% | 1 | 1 | 0% | 1,795 | 1,973 | +10% | 0 | 0 | — |
case-12 | pass→pass | 12,563 | 8,882 | -29% | 1 | 1 | 0% | 1,836 | 2,560 | +39% | 0 | 0 | — |
case-13 | pass→pass | 34,040 | 21,363 | -37% | 1 | 1 | 0% | 4,331 | 5,681 | +31% | 0 | 0 | — |
case-14 | pass→pass | 5,790 | 5,344 | -8% | 1 | 1 | 0% | 1,305 | 2,399 | +84% | 0 | 0 | — |
case-15 | pass→fail | 82,674 | 17,602 | -79% | 1 | 1 | 0% | 4,756 | 4,262 | -10% | 0 | 0 | — |
case-16 | pass→pass | 5,830 | 12,964 | +122% | 1 | 1 | 0% | 1,129 | 2,471 | +119% | 0 | 0 | — |
case-22 | pass→pass | 6,508 | 14,806 | +128% | 1 | 1 | 0% | 1,231 | 2,294 | +86% | 0 | 0 | — |
case-17 | pass→pass | 17,478 | 15,541 | -11% | 1 | 1 | 0% | 3,121 | 3,985 | +28% | 0 | 0 | — |
case-18 | pass→pass | 74,631 | 11,955 | -84% | 1 | 1 | 0% | 2,149 | 3,100 | +44% | 0 | 0 | — |
case-19 | pass→pass | 12,851 | 11,536 | -10% | 1 | 1 | 0% | 1,958 | 3,096 | +58% | 0 | 0 | — |
case-20 | pass→pass | 12,276 | 6,344 | -48% | 1 | 1 | 0% | 1,813 | 2,245 | +24% | 0 | 0 | — |
case-21 | pass→pass | 8,049 | 5,216 | -35% | 1 | 1 | 0% | 1,276 | 2,150 | +68% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.