compact-handofflisted
Install: claude install-skill hishamashraf585/compact-handoff-skill
# Compaction Handoff Builder
`/compact` condenses the in-context conversation and **can silently drop concrete details** (credentials,
IDs, file paths, decisions, half-finished threads). This skill produces a single, dense, copy-paste
**`/compact <instructions>` block** that re-injects the full working state so the fresh post-compaction
context can continue **seamlessly with nothing lost**.
The user will paste your block as their `/compact` command (or type `/compact` and paste it as the
argument). Your job is to make that argument a perfect handoff.
## Procedure
1. **Save durable memory FIRST (do this before emitting the block).**
Compaction only affects the chat window — the real long-term memory is on disk. If this session did
any substantive work AND a project KB / memory file / `MEMORY.md` / `CLAUDE.md`-linked memory exists
(or the user has an agentmemory/KB system), append the session's latest work there **now** so the
durable record is complete regardless of compaction. Then have the `/compact` block point back to it.
If no such store exists, just note that in the block.
2. **Reconstruct the session EXHAUSTIVELY.**
Re-read back over the WHOLE conversation — do not summarize from fuzzy memory, and do not paraphrase
loosely. Extract every concrete fact across the categories below. Compaction's whole failure mode is
losing specifics, so the handoff must be built from a careful re-read.
3. **Emit ONE fenced code block** that starts with `/comp