conversation-long-thread-compression
Installation
SKILL.md
Long-Thread Compression
When this applies
Activate when any of the following conditions are true:
- The conversation has exceeded approximately 50 turns (a "turn" being one user message + one assistant response).
- The estimated context window utilization is at or above 80% (based on estimated token count or explicit signal from the runtime environment).
- A major matter milestone has been reached: a document has been finalized, a negotiation round has concluded, or a filing has been submitted.
- The user explicitly requests: "summarize this thread", "compress the context", "give me a summary of where we are", or similar.
- Before exporting or sharing the thread (e.g., sending a matter summary to a client or colleague).
This skill does not apply to short, fresh conversations or to single-turn queries with no ongoing matter context.
Behavior
Compress older conversation turns into a single, structured matter-summary block. Replace compressed turns with the block in place. Keep the most recent 5–10 turns full and uncompressed — they contain the live working context that must not be flattened.