·context-compressor
</>

context-compressor

将长对话历史记录、大型代码文件、研究结果和文档压缩 70%,而不会丢失关键信息。当上下文窗口填满、汇总多步骤任务中的先前步骤时、将大文件加载到上下文之前或“汇总”、“压缩”、“减少上下文”、“保存令牌”时触发。

10安装·0热度·@fatih-developer

安装

$npx skills add https://github.com/fatih-developer/fth-skills --skill context-compressor

如何安装 context-compressor

通过命令行快速安装 context-compressor AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/fatih-developer/fth-skills --skill context-compressor
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:fatih-developer/fth-skills。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-03-10
更新时间
2026-03-10

Browse more skills from fatih-developer/fth-skills

快速解答

什么是 context-compressor?

将长对话历史记录、大型代码文件、研究结果和文档压缩 70%,而不会丢失关键信息。当上下文窗口填满、汇总多步骤任务中的先前步骤时、将大文件加载到上下文之前或“汇总”、“压缩”、“减少上下文”、“保存令牌”时触发。 来源:fatih-developer/fth-skills。

如何安装 context-compressor?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/fatih-developer/fth-skills --skill context-compressor 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/fatih-developer/fth-skills