context-window-management
Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot
npx skills add sickn33/agentic-awesome-skills --skill context-window-management --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Context Window Management Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot ## Capabilities - context-engineering - context-summarization - context-trimming - context-routing - token-counting - context-prioritization ## Prerequisites - Knowledge: LLM fundamentals, Tokenization basics, Prompt engineering - Skills_recommended: prompt-engineering ## Scope - Does_not_cover: RAG implementation details, Model fine-tuning, Embedding models - Boundaries: Focus is context optimization, Covers strategies not specific implementations ## Ecosystem ### Primary_tools - tiktoken - OpenAI's tokenizer for counting tokens - LangChain - Framework with context management utilities - Claude API - 200K+ context with caching support ## Patterns ### Tiered Context Strategy Different strategies based on context size **When to use**: Building any multi-turn conversation system interface ContextTier { maxTokens: number; strategy: 'full' | 'summarize' | 'rag'; model: string; } const TIERS: ContextTier[] = [ { maxTokens: 8000, strategy: 'full', model: 'claude-3-haiku' }, { maxTokens: 32000, strategy: 'full', model: 'claude-3-5-sonnet' }, { maxTok
- Capabilities
- Prerequisites
- Scope
- Ecosystem
- Primarytools
- Patterns
- Tiered Context Strategy
- Serial Position Optimization
- Intelligent Summarization
- Token Budget Allocation
- Validation Checks
- No Token Counting
- Naive Message Truncation
- Hardcoded Token Limit
What does the context-window-management skill do?
Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill context-window-management --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.