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.
- Author
- fabiensalles ↗
- Repository
- claude-marketplace ↗
- Licence
- MIT
- Last repository change
- 12.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 12.10.2026, without references to retired models or APIs.
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
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
- Warning Signs
- Rules
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
| Repository | Score | Licence |
|---|---|---|
| This page · fabiensalles/claude-marketplace | 100 | MIT |
| seyhunak/skilldeck | 100 | MIT |
| Wsh7Ash/skillmcp | 100 | MIT |
| charlieviettq/awesome-agent-skill | 100 | MIT |
| rootcastleco/rei-skills | 90 | MIT |
| Amey-Thakur/AI-SKILLS | 90 | MIT |
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.