conversation-long-thread-compression

Installation
SKILL.md

Long-Thread Compression

When this applies

Activate when any of the following conditions are true:

  1. The conversation has exceeded approximately 50 turns (a "turn" being one user message + one assistant response).
  2. The estimated context window utilization is at or above 80% (based on estimated token count or explicit signal from the runtime environment).
  3. A major matter milestone has been reached: a document has been finalized, a negotiation round has concluded, or a filing has been submitted.
  4. The user explicitly requests: "summarize this thread", "compress the context", "give me a summary of where we are", or similar.
  5. 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.

What to preserve — no exceptions

Installs
1
GitHub Stars
11
First Seen
Jun 24, 2026
conversation-long-thread-compression — sboghossian/mini-claude-for-legal