What problem does it solve? Context compaction in Claude Code can silently drop the files and task state you were actively working on, forcing you to rebuild context from scratch. This Skill saves your working state before compaction and guides recovery afterward. ## Core Features & Use Cases - Pre-Compact Checklist: Captures current task, files in progress, decisions, blockers, and next steps before running /compact. - Compaction Internals Reference: Documents Claude Code limits such as 5 restored files, 5K tokens per file, and a 50K total restore budget. - Prevention Strategies: Advises delegating searches to subagents, reading partial file ranges, and compacting at task boundaries to reduce token pressure. - Use Case: You receive an auto-compact warning mid-refactor. Run the checklist to record your five active files and next steps, compact safely, then resume exactly where you left off. ## Quick Start Before running /compact, ask the assistant to save my current task state and the top five files I am editing using compact-guard.