What problem does it solve?
Context compaction in Claude Code silently drops working state: only 5 files survive within a 50K token budget, and task progress, decisions, and blockers vanish. This Skill saves critical context before compaction and restores it afterward so work continues without losing the thread.
Core Features & Use Cases
- Pre-Compact Checklist: Captures the current task, files in progress, decisions, blockers, and next steps before running /compact.
- Post-Compact Recovery: Re-reads the top-priority file, checks task progress, and resumes from saved next steps after compaction.
- Token Prevention Strategies: Delegates searches to subagents, reads partial file ranges, and compacts at task boundaries to reduce context pressure.
- Use Case: You are mid-refactor when the auto-compact warning appears. Run compact-guard to snapshot your working state, compact safely, then resume editing exactly where you left off.
Quick Start
Ask the assistant to run compact-guard to save my current task state before compacting the conversation.