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.
The canonical home for this skill is common-context-optimization in HoangNguyen0403/agent-skills-standard
Problem: 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.
1fa7789
Canonical home
since Apr 14, 2026
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.