← ClaudeAtlas

compact-handofflisted

Build a complete, copy-paste `/compact <instructions>` handoff that preserves the ENTIRE working state of the current session so NOTHING is lost when the conversation is compacted. Use whenever the user asks to "compact", "compact prompt", "compact the prompt", "make/give me the compact command", "the command to write after /compact", "prepare a compaction handoff", "summarize the session for /compact", "handoff before compacting", "don't lose anything before we compact", "save the session so we don't lose it", or any request to produce the text to feed the `/compact` command. Also updates the project KB / long-term memory first (when one exists) so the durable record is complete too.
hishamashraf585/compact-handoff-skill · ★ 0 · AI & Automation · score 70
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