Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimizes context window via MECW principles and memory tiering. Use when context exceeds 30% or before long multi-step tasks.
.claude/skills/athola-context-optimization/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -19% | 0% |
pythondef select_optimal_modules(context_situation, task_complexity): if context_situation == "CRITICAL": return ["mecw-assessment", "subagent-coordination"] elif task_complexity == "high": return ["mecw-principles", "subagent-coordination"] else: return ["mecw-assessment"]
| Utilization | Status | Action | |-------------|--------|--------| | < 30% | LOW | Continue normally | | 30-50% | MODERATE | Monitor, apply principles | | > 50% | CRITICAL | Immediate optimization required |
Behavior Change: Large bash command and tool outputs are saved to disk instead of being truncated; file references are provided for access.
| Scenario | Before 2.1.2 | After 2.1.2 | |----------|--------------|-------------| | Large test output | Truncated, partial data | Full output via file reference | | Verbose build logs | Lost after 30K chars | Complete, accessible on-demand | | Context pressure | Less from truncation | Same - only loaded when read |
head, tail, or grep on file references.modules/mecw-principles.md for core concepts, the 50% rule, and quick-start code examples.modules/mecw-assessment.md for risk identification.modules/subagent-coordination.md for decomposition patterns.modules/context-waiting.md for deferred loading strategies.modules/cache-aligned-prefixes.md for ordering context so provider KV caches hit (stable prefix first, volatile last).If context usage remains high after optimization, check for large files that were read entirely rather than selectively. If MECW assessments fail, ensure that your environment provides accurate token count metadata. For permission errors when writing output logs to /tmp, verify that the project's temporary directory is writable.
against modules/cache-aligned-prefixes.md (stable first, volatile last)
(cache writes cost more than they save on non-repeated prefixes)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-08 | fail→pass | 8,255 | 3,452 | -58% | 1 | 1 | 0% | 1,199 | 1,503 | +25% | 0 | 0 | — |
case-09 | fail→pass | 16,390 | 1,992 | -88% | 1 | 1 | 0% | 962 | 1,257 | +31% | 0 | 0 | — |
case-01 | fail→pass | 14,810 | 10,646 | -28% | 1 | 1 | 0% | 2,443 | 2,711 | +11% | 0 | 0 | — |
case-02 | fail→fail | 11,116 | 6,802 | -39% | 1 | 1 | 0% | 1,877 | 2,024 | +8% | 0 | 0 | — |
case-03 | fail→pass | 8,143 | 3,205 | -61% | 1 | 1 | 0% | 1,193 | 1,472 | +23% | 0 | 0 | — |
case-04 | fail→pass | 16,746 | 6,369 | -62% | 1 | 1 | 0% | 2,451 | 1,978 | -19% | 0 | 0 | — |
case-05 | pass→pass | 7,045 | 4,215 | -40% | 1 | 1 | 0% | 1,009 | 1,658 | +64% | 0 | 0 | — |
case-06 | pass→pass | 7,825 | 2,584 | -67% | 1 | 1 | 0% | 1,202 | 1,304 | +8% | 0 | 0 | — |
case-07 | fail→pass | 6,271 | 3,041 | -52% | 1 | 1 | 0% | 908 | 1,449 | +60% | 0 | 0 | — |
case-10 | fail→pass | 11,287 | 4,184 | -63% | 1 | 1 | 0% | 1,671 | 1,701 | +2% | 0 | 0 | — |
case-11 | fail→pass | 6,866 | 3,229 | -53% | 1 | 1 | 0% | 1,055 | 1,532 | +45% | 0 | 0 | — |
case-12 | pass→pass | 10,514 | 7,360 | -30% | 1 | 1 | 0% | 1,703 | 2,142 | +26% | 0 | 0 | — |
case-13 | fail→pass | 14,143 | 6,177 | -56% | 1 | 1 | 0% | 2,227 | 1,902 | -15% | 0 | 0 | — |
case-14 | fail→pass | 10,798 | 1,991 | -82% | 1 | 1 | 0% | 1,695 | 1,235 | -27% | 0 | 0 | — |
case-15 | pass→pass | 13,125 | 9,764 | -26% | 1 | 1 | 0% | 2,057 | 2,548 | +24% | 0 | 0 | — |
case-16 | pass→pass | 8,443 | 4,473 | -47% | 1 | 1 | 0% | 1,449 | 1,707 | +18% | 0 | 0 | — |
case-17 | fail→pass | 12,892 | 3,303 | -74% | 1 | 1 | 0% | 1,921 | 1,410 | -27% | 0 | 0 | — |
case-18 | fail→pass | 8,288 | 2,762 | -67% | 1 | 1 | 0% | 1,268 | 1,352 | +7% | 0 | 0 | — |
case-19 | pass→pass | 5,657 | 3,997 | -29% | 1 | 1 | 0% | 757 | 1,569 | +107% | 0 | 0 | — |
case-20 | pass→fail | 12,490 | 7,048 | -44% | 1 | 1 | 0% | 2,081 | 1,970 | -5% | 0 | 0 | — |
case-21 | fail→pass | 13,155 | 9,954 | -24% | 1 | 1 | 0% | 2,063 | 2,501 | +21% | 0 | 0 | — |
case-22 | fail→pass | 13,716 | 3,264 | -76% | 1 | 1 | 0% | 2,003 | 1,482 | -26% | 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, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +59 percentage points is the difference between those two pass rates over the 21 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.