compact-prolisted
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