Agent skill

context-optimize

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/context-optimize

SKILL.md

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

  1. Identify repeated, stale, or low-value context.
  2. Detect likely cache breakers (instruction churn, unstable prefixes).
  3. Propose cache-safe compaction and message hygiene rules.
  4. Produce an actionable operating checklist for next turns.

Output Template

markdown
## 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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results