Reduce content by 70% — preserve critical information, discard repetition and noise. Target: compressed output should be 30% of original size with preserved information density.
| Conversation history | User/assistant message pairs | | Code file | Function/class structures, syntax | | Research results | URLs, source references, data points | | Meeting notes / document | Headers, bullet lists, decisions |
Discard: Greetings, acknowledgments ("OK", "Got it", "Thanks"), repeated explanations, intermediate reasoning that contradicts the final conclusion.
Compress long conversation histories, large code files, research results, and documents by 70% without losing critical information. Triggers when context window fills up, when summarizing previous steps in multi-step tasks, before loading large files into context, or on "summarize", "compress", "reduce context", "save tokens". Source: fatih-developer/fth-skills.