Skip to content
Skills Library
AI & agents · Planning

context-window-management

/context-window-management

ACTIVATE when context is getting long, when quality of responses degrades, when working on large codebases, or when a session has been running for 30+ minutes. ACTIVATE for 'context too long', 'losing track', 'fresh session', 'context window'. Provides rules for managing context utilization to maintain response quality. DO NOT use at the start of short sessions.

Licence
MIT
Last repository change
12.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

ACTIVATE when context is getting long, when quality of responses degrades, when working on large codebases, or when a session has been running for 30+ minutes. ACTIVATE for 'context too long', 'losing track', 'fresh session', 'context window'. Provides rules for managing context utilization to maintain response quality. DO NOT use at the start of short sessions.

Triggers from the description

context too longlosing trackfresh sessioncontext window
Original author description

ACTIVATE when context is getting long, when quality of responses degrades, when working on large codebases, or when a session has been running for 30+ minutes. ACTIVATE for 'context too long', 'losing track', 'fresh session', 'context window'. Provides rules for managing context utilization to maintain response quality. DO NOT use at the start of short sessions.

How it works

  1. Warning Signs
  2. Rules
Original SKILL.md headings · 67 lines, 286 words
SKILL.md preview
---
name: context-window-management
description: ACTIVATE when context is getting long, when quality of responses degrades, when working on large codebases, or when a session has been running for 30+ minutes. ACTIVATE for 'context too long', 'losing track', 'fresh session', 'context window'. Provides rules for managing context utilization to maintain response quality. DO NOT use at the start of short sessions.
---

# Context Window Management

Rules for maintaining response quality as conversations grow.

## Warning Signs

- You're re-reading files you already read earlier in the session
- Responses start missing details or contradicting earlier decisions
- The user has to repeat instructions
- You lose track of what was already done vs what remains

## Rules

### 1. Offload to Files

Never keep large outputs only in context. Write them to files:
- Plans → `.claude/plans/<name>.md`
- Research findings → `.claude/research/<name>.md`
- Progress tracking → update plan checkboxes or task lists

### 2. Suggest Fresh Sessions

When you notice degradation, proactively suggest:
> "The context has grown long. I recommend saving the current progress and continuing in a fresh session."

Before suggesting, ensure you've saved:
- Current progress (what's done, what remains)
- Key decisions made
- Any blockers or open questions

### 3. Read Selectively

- Don't read entire files when you need a specific function
- Use `offset` and `limit` parameters on Read
- Use Grep to find specific sections instead of reading whole files
- Prefer Glob over recursive directory reads

### 4. Minimize Tool Output Bloat

- Use `head_limit` on Grep results
- Avoid running commands that produce large output (e.g., `npm install` verbose)
- When a command produces unexpected large output, summarize and move on

### 5. Session Handoff Template

When suggesting a fresh session, save this to `.claude/plans/<task>-handoff.md`:

```markdown
## Session Handoff — <task>

### Completed
- [what was done]

### In Progress
- [current step, what's partially done]

### Remaining
- [what still needs to be done]

### Key Decisions
- [decisions made and why]

### Resume Instructions
Start by reading this file, then continue from "In Progress".
```

Versions

RepositoryScoreLicence
This page · fabiensalles/claude-marketplace100MIT
seyhunak/skilldeck100MIT
Wsh7Ash/skillmcp100MIT
charlieviettq/awesome-agent-skill100MIT
rootcastleco/rei-skills90MIT
Amey-Thakur/AI-SKILLS90MIT

Database snapshot: 13.11.2026 · package version 5b0c396a28bf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100context-manager
    Proactive context window management to maintain high-quality outputs. Use when context usage approaches 20-40%, when explanations are being repeated, or when output quality degrades.
  • 100context-engineering
    Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.
  • 100context-check
    Checks context window usage and recommends actions (compact/clear/subagent/handoff). Use when asking about context levels or when response quality seems to be declining.
  • 95context-engineering
    Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.
  • 85handoff
    Compact the current conversation into a handoff document for another agent to pick up. Use when the user says "hand this off", "wrap up", "save context", "continue later", "pass this to another session", "I need to stop here", "pick this up later", or when a session is ending…
  • 100mukhon-context-engineering
    Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.