Sign in
Explore
Skills · SkillData & AIReviewed

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

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 3 Nov 2026
Adds
  • .claude/skills/context-optimization/ (the skill folder)
  • 1 file(s) the skill refers to
  • 2 other files in the folder: references/optimization_techniques.md, scripts/compaction.py
Runs scripts
Yes
  • scripts/compaction.py
  • script file in the folder (scripts/compaction.py)
Uses the network
None found
Needs secrets
None found
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • scripts/compaction.py: Context Optimization Utilities — compaction, masking, budgeting, and cache optimization.
Source revision
9ff0c99108b3
Licence
MIT
Last activity
27 Nov 2026
Source changed after the scan
Yes
  • Last push 27 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
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.

# 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`.
…