什么是 context-compressor?
将长对话历史记录、大型代码文件、研究结果和文档压缩 70%,而不会丢失关键信息。当上下文窗口填满、汇总多步骤任务中的先前步骤时、将大文件加载到上下文之前或“汇总”、“压缩”、“减少上下文”、“保存令牌”时触发。 来源:fatih-developer/fth-skills。
将长对话历史记录、大型代码文件、研究结果和文档压缩 70%,而不会丢失关键信息。当上下文窗口填满、汇总多步骤任务中的先前步骤时、将大文件加载到上下文之前或“汇总”、“压缩”、“减少上下文”、“保存令牌”时触发。
通过命令行快速安装 context-compressor AI 技能到你的开发环境
来源:fatih-developer/fth-skills。
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.
将长对话历史记录、大型代码文件、研究结果和文档压缩 70%,而不会丢失关键信息。当上下文窗口填满、汇总多步骤任务中的先前步骤时、将大文件加载到上下文之前或“汇总”、“压缩”、“减少上下文”、“保存令牌”时触发。 来源:fatih-developer/fth-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/fatih-developer/fth-skills --skill context-compressor将长对话历史记录、大型代码文件、研究结果和文档压缩 70%,而不会丢失关键信息。当上下文窗口填满、汇总多步骤任务中的先前步骤时、将大文件加载到上下文之前或“汇总”、“压缩”、“减少上下文”、“保存令牌”时触发。 来源:fatih-developer/fth-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/fatih-developer/fth-skills --skill context-compressor 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/fatih-developer/fth-skills