context-optimization
This skill should be used for improving context efficiency: context budgeting, observation masking, prefix or KV-cache strategy, partitioning, token-cost reduction, retrieval scoping, and extending effective context capacity without lowering answer quality.
Install
With your agent
Install OMGSkills skill "muratcankoylan/Agent-Skills-for-Context-Engineering:skills/context-optimization" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && ln -s /tmp/Agent-Skills-for-Context-Engineering/skills/context-optimization ~/.claude/skills/context-optimization
From README
Context Optimization Techniques Context optimization extends the effective capacity of limited context windows through strategic compression, masking, caching, and partitioning. Effective optimization increases useful capacity without requiring larger models or longer windows — but only when applied with measurement discipline. The techniques below are ordered by impact and risk. When to Activate Activate this skill when: Context budgets or token costs constrain task complexity Observation masking can replace verbose tool outputs with retrievable references Prefix or KV-cache hit rate needs improvement Retrieval scoping can reduce irrelevant loaded context Context partitioning can extend effective capacity across agents Budget triggers are needed for masking, compaction, or partitioning Do not activate this skill for adjacent work owned by other skills: Explaining why attention or context windows behave this way: context-fundamentals.
More from this repo
context-engineering-collection
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and...
long-horizon-prompting
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent...
self-improvement-loops
This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target:...
