name = "context-optimize" description = "Improve context efficiency and cache stability for long or complex sessions."
Purpose
Use this skill when context is growing quickly or cache consistency drops.
Trigger
- Conversation becomes long and repetitive
- The model loses thread coherence
- Frequent prompt restarts or unstable behavior appears
Workflow
- Identify repeated, stale, or low-value context.
- Detect likely cache breakers (instruction churn, unstable prefixes).
- Propose cache-safe compaction and message hygiene rules.
- Produce an actionable operating checklist for next turns.
Output Template
## Context Health
- ...
## Cache Risks
- ...
## Optimization Actions
1. ...
2. ...
3. ...
## Session Rules
- ...
Notes
- Keep stable instructions unchanged during a session.
- Prefer summaries over re-sending raw large blocks.