context-optimization
Improves context efficiency: budgeting, observation masking, prefix or KV-cache strategy, partitioning and token-cost reduction.
- Kind
- Skill
- Works with
- Any agent
- Source
- Agent Skills for Context Engineering @ 9ff0c99108b3
- Path
- skills/context-optimization/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-optimization/ (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 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`. - Diagnosing active lost-in-middle, poisoning, distraction, confusion, or clash: `context-degradation`. - Designing a structured handoff summary for a long conversation: `context-compression`. …