Skills for Real Engineers. Straight from my .agents directory.
context-compression
Agent skill frommuratcankoylan/Agent-Skills-for-Context-Engineering
This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve decisions, files, risks, and next actions.
How to install context-compression
npx skills add muratcankoylan/Agent-Skills-for-Context-Engineering# or add only this skill to Claude Code: copy the folder
skills/context-compression/
# into
~/.claude/skills/context-compression/ (all projects)
.claude/skills/context-compression/ (one project)
1# Context Compression Strategies23When 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.45## When to Activate67Activate this skill when:8- Agent sessions exceed context window limits9- Codebases exceed context windows (5M+ token systems)10- Designing conversation summarization strategies11- Debugging cases where agents "forget" what files they modified12- Building evaluation frameworks for compression quality13- Creating durable handoff summaries that preserve decisions, files, risks, and next actions1415Do not activate this skill for adjacent work owned by other skills:16- General token-efficiency tactics such as masking, prefix caching, or partitioning: `context-optimization`.17- Diagnosing why a long context is failing before choosing a mitigation: `context-degradation`.18- Writing raw outputs, logs, or plans to files without summarizing them: `filesystem-context`.19- Designing long-term semantic memory across sessions: `memory-systems`.20- The model deciding when and where to rewrite its own context: `self-managed-context`. This skill still owns what the replacement text must preserve.2122## Core Concepts23…
Excerpt shown under the repository's MIT license.
More skills in Agent-Skills-for-Context-Engineering
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
