Compact Guard
Pre/post-compaction checklist that preserves task state inside Claude Code's real compaction limits.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 14, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · 470b79c
Ships the actual Claude Code compaction constants (5-file, 50K-token restore budget) and a copy-paste pre-compact checklist — concretely more useful than generic 'summarize before compacting' advice, though the per-technique token-savings percentages are the author's estimates, not measured. (Listed here under our older name; the skill's own name is "Compact Guard".)
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 4/5
What Compact Guard does
Compact Guard is a pre-compact/post-compact checklist skill: before you run /compact (or auto-compact fires), it has you record the current task, the up-to-5 files in progress, decisions made, blockers, and next steps, then walks a recovery sequence after compaction. It's built around Claude Code's actual restore limits (max 5 files, 5K tokens/file, 50K total budget) rather than generic 'summarize the conversation' advice. Triggers before manual /compact or when the auto-compact warning appears.
How to install Compact Guard
git clone https://github.com/rohitg00/pro-workflow
cd pro-workflow
mkdir -p ~/.claude/skills
cp -r skills/compact-guard ~/.claude/skills/context-compression
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Compact Guard
-
/context-compressionPre/post-compaction checklist that preserves task state inside Claude Code's real compaction limits.
It also activates on plain-language prompts like these:
-
Compress this long session's context into a structured summary -
Summarize our conversation so far to cut token burn -
Restructure this context so we don't have to re-read everything
Frequently asked questions
- Is the Compact Guard skill free?
- Yes. The skill itself is free from rohitg00/pro-workflow. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Compact Guard work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 14, 2026. Verdict: Tested · Works. Ships the actual Claude Code compaction constants (5-file, 50K-token restore budget) and a copy-paste pre-compact checklist — concretely more useful than generic 'summarize before compacting' advice, though the per-technique token-savings percentages are the author's estimates, not measured. (Listed here under our older name; the skill's own name is "Compact Guard".)
- What is the Compact Guard SkillProof Score?
- 8.8/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 4/5.
- How do I install Compact Guard?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Compact Guard with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.