kazemcodes/skill-tree/context-mode

Claude Code and agent skill by kazemcodes/skill-tree

Trust tier 3
  • community
Source check pending

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-mode

SKILL.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:

Bad: Full stack trace with 50 lines
Good: "TypeError at src/api.ts:42 — missing null check on response.data.user"
Bad: Entire file content read
Good: "File has 200 lines, key function at line 85-120, uses X pattern"
Bad: Running every test individually
Good: "All 47 tests pass, coverage at 82%"
2. Layer Information

Organize context by relevance:

Critical (always keep):
- Current task goal
- Active blockers
- Key architectural decisions
- File paths of modified files
Important (summarize when needed):
- Prior conversation decisions
- Test results
- Code exploration findings
Ephemeral (drop when context tight):
- Full file contents (re-read on demand)
- Verbose command output
- Intermediate search results
3. Use Memory System
  • Store durable facts in MEMORY.md
  • Use notes.md for 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:

  1. What was accomplished (not what was attempted)
  2. Key decisions and their rationale
  3. Current state of modified files
  4. Blockers and how to resolve them
  5. Next action (specific, not vague)

Token Budget Awareness

ContentApproximate 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:

  1. Write findings to notes.md or task progress
  2. Summarize what's done and what's next
  3. Reference specific file paths and line numbers
  4. Start fresh session with focused prompt

Anti-Patterns

PatternProblem
Reading full files unnecessarilyBurns tokens
Re-deriving from memoryWastes context
Passing full conversation to subagentsRedundant context
Keeping verbose command outputNoisy, hard to parse
Not summarizing at checkpointsLoses 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kazemcodes/skill-tree/context-mode/badge)](https://verified-skill.com/skills/kazemcodes/skill-tree/context-mode)

Something wrong with this skill or its page? Tell us.