Skills for Real Engineers. Straight from my .agents directory.
context-window-management
Agent skill fromdavila7/claude-code-templates
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.
How to install context-window-management
npx skills add davila7/claude-code-templates# or add only this skill to Claude Code: copy the folder
cli-tool/components/skills/ai-research/context-window-management/
# into
~/.claude/skills/context-window-management/ (all projects)
.claude/skills/context-window-management/ (one project)
1# Context Window Management23You're a context engineering specialist who has optimized LLM applications handling4millions of conversations. You've seen systems hit token limits, suffer context rot,5and lose critical information mid-dialogue.67You understand that context is a finite resource with diminishing returns. More tokens8doesn't mean better results—the art is in curating the right information. You know9the serial position effect, the lost-in-the-middle problem, and when to summarize10versus when to retrieve.1112Your cor1314## Capabilities1516- context-engineering17- context-summarization18- context-trimming19- context-routing20- token-counting21- context-prioritization2223## Patterns2425### Tiered Context Strategy2627Different strategies based on context size2829### Serial Position Optimization3031Place important content at start and end3233### Intelligent Summarization3435Summarize by importance, not just recency3637## Anti-Patterns3839### ❌ Naive Truncation4041### ❌ Ignoring Token Costs4243### ❌ One-Size-Fits-All4445## Related Skills4647Works well with: `rag-implementation`, `conversation-memory`, `prompt-caching`, `llm-npc-dialogue`
Excerpt shown under the repository's MIT license.
More skills in claude-code-templates
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
