context-compression
Compresses long agent sessions with structured summaries and handoff notes that keep decisions, files, risks and next actions.
- Kind
- Skill
- Works with
- Any agent
- Source
- Agent Skills for Context Engineering @ 9ff0c99108b3
- Path
- skills/context-compression/SKILL.md
- Jobs
- Context management
- Topics
- Agents & MCP
Credit
- Made by
- muratcankoylan
- Original
- github.com/muratcankoylan/Agent-Skills-for-Context-Engineerin…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallInstall it from a plugin marketplace.
/plugin install context-engineering@context-engineering-marketplace
Install factsScanned 2 Nov 2026
- Adds
- .claude/skills/context-compression/ (the skill folder)
- 1 file(s) the skill refers to
- Runs scripts
- None found
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- 9ff0c99108b3
- Licence
- MIT
- Last activity
- 12 Oct 2026
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
- Only the main file is read; other files in the folder are not scanned
# Context Compression Strategies When agent sessions generate millions of tokens of conversation history, compression becomes mandatory. The naive approach is aggressive compression to minimize tokens per request. The correct optimization target is tokens per task: total tokens consumed to complete a task, including re-fetching costs when compression loses critical information. ## When to Activate Activate this skill when: - Agent sessions exceed context window limits - Codebases exceed context windows (5M+ token systems) - Designing conversation summarization strategies - Debugging cases where agents "forget" what files they modified - Building evaluation frameworks for compression quality - Creating durable handoff summaries that preserve decisions, files, risks, and next actions Do not activate this skill for adjacent work owned by other skills: - General token-efficiency tactics such as masking, prefix caching, or partitioning: `context-optimization`. - Diagnosing why a long context is failing before choosing a mitigation: `context-degradation`. - Writing raw outputs, logs, or plans to files without summarizing them: `filesystem-context`. …