← ClaudeAtlas

compact-prolisted

Deep compaction for Claude Code. At a safe point (no half-done change, nothing running, no open question), it writes the session's state to docs/handoff/HANDOFF.md and backs up the full transcript next to it as slim, searchable, secret-masked JSONL. Then it clears the session, so the next one starts from a ~2k-token handoff instead of a 25k-45k-token compact summary. It refuses to clear mid-task unless given "force". Use when the user types /compact-pro or asks for Compact Pro, a deep compact, or a handoff and clear, or with args "auto" when a "[compact-pro auto]" hook line asks for it.
PramiCorp/compact-pro · ★ 0 · AI & Automation · score 70
Install: claude install-skill PramiCorp/compact-pro
# /compact-pro Built-in `/compact` keeps a long summary plus re-attached files and skills inside the conversation, often 25k-45k tokens. `/compact-pro` keeps only a short handoff file. Everything else is kept outside the context, in a transcript backup that costs nothing until you search it. A SessionStart hook loads the handoff and the user's last words into every new or cleared session. Paths below: `SKILL_DIR` is the base directory Claude Code shows when this skill loads. `PROJECT` is the project root, the folder holding the code, `docs/` and `CLAUDE.md` (walk up from a subfolder). The handoff folder is `PROJECT/docs/handoff` unless `COMPACT_PRO_DIR` sets another path relative to the project. Run every step in order without asking questions. The user typed one command and expects it done. Never run `/compact-pro` on your own initiative. Only suggest it in one line, at a safe point. The one exception is auto mode, below. ## Auto mode (args `auto`) Opt-in: the user sets `COMPACT_PRO_AUTO=1`. Then the UserPromptSubmit hook adds a `[compact-pro auto]` line once the context is large, and you invoke this skill yourself with args `auto` as the last step of a turn, after the user's request is done and before your closing message. Everything below applies, with these differences: - **Strict gate, silent skip.** If any check in step 0 fails, stop at once and say nothing about it: no "finishing first", no partial steps 2–5, never `force`. The hook asks again on the next promp