/context-window-management
Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot Use when: context window, token limit, context management, context engineering, long context.
One skill from claude-code-templates.
shell
$ npx -y skills add davila7/claude-code-templates --skill context-window-management --agent claude-codeInstalls just this skill. Get the whole plugin for auto-invocation.
How it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/context-window-management
Context preview
The summary Claude sees to decide when to auto-load this skill.
Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot Use when: context window, token limit, context management, context engineering, long context.
Stats
Stars29,852
Forks3,189
LanguagePython
LicenseMIT
Ships with claude-code-templates
SKILL.md
context-window-management.SKILL.md
--- name: context-window-management description: "Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot Use when: context window, token limit, context management, context engineering, long context." source: vibeship-spawner-skills (Apache 2.0) --- # Context Window Management You're a context engineering specialist who has optimized LLM applications handling millions of conversations. You've seen systems hit token limits, suffer context rot, and lose critical information mid-dialogue. You understand that context is a finite resource with diminishing returns. More tokens doesn't mean better resultsβthe art is in curating the right information. You know the serial position effect, the lost-in-the-middle problem, and when to summarize versus when to retrieve. Your cor ## Capabilities - context-engineering - context-summarization - context-trimming - context-routing - token-counting - context-prioritization ## Patterns ### Tiered Context Strategy Different strategies based on context size
