Maximize context window efficiency, reduce latency, and prevent lost-in-middle issues through strategic masking and compaction. Use when token budgets are tight, tool outputs overflow the context, conversations drift from intent, or latency spikes from cache misses.
63
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Critical
Do not install without reviewing
Fix and improve this skill with Tessl
tessl review fix ./.github/skills/common/common-context-optimization/SKILL.mdProblem: Large tool outputs (logs, JSON lists) overwhelm context and degrade reasoning. Solution: Replace raw output with semantic summaries after consumption.
references/masking.md for patterns.See implementation examples for masking patterns.
Problem: Long conversations drift from original intent. Solution: Recursive summarization that preserves State over Dialogue.
references/compaction.md for algorithms.See implementation examples for compacted state format.
Goal: Maximize pre-fill cache hits.
405cdd5
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.