Compact Guard

Survive /compact and auto-compact without losing the plan. Use this skill when the user runs /claude-papercuts:compact-guard, asks why Claude lost their plan after a compact, mentions plan-mode state vanishing mid-session, or wants to see the latest pre-compact snapshot. A PreCompact hook silently captures the current task, active todos, files edited, and the last assistant plan to .papercuts/compact-snapshots/ right before compaction runs; a SessionStart hook (only when source=compact) injects that snapshot back as context so the post-compact session knows what it was doing.

dhruba-datta 475e6d6 4 files · 20.3 KB Updated

File contents

dhruba-datta/claude-papercuts/tree/main/skills/compact-guard commit 475e6d6e72

Frequently asked questions

npx skillmds@latest add dhruba-datta/compact-guard