From context-engine
Advanced context window management techniques. Guided compaction, partial compaction, side questions, checkpoints, session discipline. Use to master context management.
How this skill is triggered — by the user, by Claude, or both
Slash command
/context-engine:context-tricksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Context is your most precious resource. These techniques protect it.
Context is your most precious resource. These techniques protect it.
Don't let auto-compaction decide what to keep. Guide it:
/compact preserve the auth refactoring plan and test results
Add to CLAUDE.md for persistent guidance:
When compacting, always preserve: current plan, test results, key architectural decisions.
Compress only part of the conversation:
/rewind — opens checkpoint menuAsk a quick question that doesn't enter conversation history:
/btw what's the syntax for Laravel's whereHas?
Answer comes back without polluting your working context.
Every Claude action creates a checkpoint. Use this aggressively:
/rewind → restore./rewind to open the menu.Include files instantly without waiting for Claude to read them:
@src/auth/middleware.php refactor this to use the new auth service
@src/api/ show me the API structure
Faster than waiting for Claude to Read the file. Paths can be relative or absolute.
Finish task → commit → /clear → new task
/clear and write a better promptclaude -n "auth-refactor" # Start named session
/rename auth-refactor # Rename during session
claude --resume auth-refactor # Resume by name later
At 60-70% context, Claude still has clear recall of the full conversation. Compacting here produces BETTER summaries than waiting until 90% when quality has already degraded. Watch your status line.
When you need to read many files for research:
Use a subagent to investigate src/auth/ and report what authentication patterns are used
The subagent reads 20 files. Only a 200-token summary returns to your session.
npx claudepluginhub artmin96/forge-studio --plugin context-engineGuides managing Claude Code context window with /compact, /clear commands, auto-compaction config, sub-agents, targeted reads, background tasks, and conversation flows for long sessions.
Manages AI context via four operations: Write (persist info), Select (retrieve relevant info), Compress (reduce tokens), Isolate (partition context). Keeps sessions sharp and efficient.
Manages Claude Code context window by snapshotting session state, compacting conversation, and resuming via hook. Use when context exceeds 70% or starting a large new task.