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.

514 stars 146 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill context-window-management
Manual install
git clone --depth 1 https://github.com/Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI.git /tmp/Agent-Skills-4-Vibe-Coding-CLI
mkdir -p ~/.claude/skills
cp -r /tmp/Agent-Skills-4-Vibe-Coding-CLI/.agent/skills/context-window-management ~/.claude/skills/context-window-management

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [Tiered Context Strategy](./sub-skills/tiered-context-strategy.md)
### 2. [Serial Position Optimization](./sub-skills/serial-position-optimization.md)
### 3. [Intelligent Summarization](./sub-skills/intelligent-summarization.md)
### 4. [❌ Naive Truncation](./sub-skills/naive-truncation.md)
### 5. [❌ Ignoring Token Costs](./sub-skills/ignoring-token-costs.md)
### 6. [❌ One-Size-Fits-All](./sub-skills/one-size-fits-all.md)
Read the full skill on GitHub

Details

Skill name
context-window-management
Path
.agent/skills/context-window-management/SKILL.md
Repo updated
11 June 2026

FAQ

What does the Context Window Management skill do?

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 do I install the Context Window Management skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill context-window-management. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Context Window Management popular?

It lives in Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI, which has 514 GitHub stars and 146 forks.

Related skills

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.