instruct-compact
Installation
SKILL.md
Instruct Compact
Synthesize the current session into a directive block the user copy-pastes into /compact <paste>. The block tells the built-in summarizer what to preserve verbatim, what to compress, and what to drop — so intentional compaction keeps signal and sheds noise.
Output: a fenced block only, printed to terminal. No file written. Target: 250-400 tokens. Speed: 3-5s.
Distinct from /save-context (durable CONTEXT-*-llm.md for resuming later). This is ephemeral steering for compaction now.
When to Use
- User is about to run
/compactand wants to control what survives - Long session nearing auto-compaction; user wants to front-load survival priorities
- Triggers: "instruct compact", "compaction instructions", "steer compact", "prepare compaction"
Instructions
- Read the conversation (last 15-20 messages) — no shell needed unless confirming a file path.
- Synthesize the 7 sections (below). Write directives to the summarizer, not the content itself — e.g. "Preserve exact path
x/y.md", not a copy of the file. Embed a literal only when losing it is expensive (exact paths, the one key decision). - Print the block using the template. Nothing else after it except one line:
Copy the block above into /compact.