kazemcodes/skill-tree/context-mode
Claude Code and agent skill by kazemcodes/skill-tree
- community
Checking that the SKILL.md file is still in the repository.
Manage context windows efficiently — summarize, compress, and preserve critical information across sessions
Install
npx vskill@latest install kazemcodes/skill-tree/context-modeSKILL.md
The same SKILL.md was published earlier as kazemcodes/skill-tree/context-mode.
Context Mode
Optimize context usage. Keep what matters, compress what doesn't, preserve across sessions.
When to Use
- Context window getting full
- Starting a new session with prior work
- Need to preserve decisions across checkpoints
- Large codebase exploration consuming tokens
Context Management Strategies
1. Summarize Aggressively
Replace verbose output with concise summaries:
2. Layer Information
Organize context by relevance:
3. Use Memory System
- Store durable facts in
MEMORY.md - Use
notes.mdfor cross-session observations - Reference memory instead of re-deriving
- Search memory before re-exploring
4. Parallel Context via Subagents
- Spawn subagents for heavy exploration
- Each subagent gets clean context
- Synthesize findings, not raw output
- Don't pass full conversation to every subagent
Checkpoint Discipline
At checkpoint time, ensure these are captured:
- What was accomplished (not what was attempted)
- Key decisions and their rationale
- Current state of modified files
- Blockers and how to resolve them
- Next action (specific, not vague)
Token Budget Awareness
| Content | Approximate Cost | |
|---|---|---|
| Full file read (500 lines) | ~2000 tokens | |
| Command output (100 lines) | ~400 tokens | |
| Subagent prompt | ~500 tokens | |
| Checkpoint summary | ~800 tokens |
Rule of thumb: If you're reading it twice, summarize it once.
Session Handoff
When context is tight:
- Write findings to
notes.mdor task progress - Summarize what's done and what's next
- Reference specific file paths and line numbers
- Start fresh session with focused prompt
Anti-Patterns
| Pattern | Problem | |
|---|---|---|
| Reading full files unnecessarily | Burns tokens | |
| Re-deriving from memory | Wastes context | |
| Passing full conversation to subagents | Redundant context | |
| Keeping verbose command output | Noisy, hard to parse | |
| Not summarizing at checkpoints | Loses critical info |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/context-mode/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kazemcodes/skill-tree/context-mode)