context-compression
✓当用户要求“压缩上下文”、“总结对话历史记录”、“实施压缩”、“减少令牌使用”或提及上下文压缩、结构化摘要、每个任务令牌优化或超出上下文限制的长时间运行代理会话时,应使用此技能。
SKILL.md
When agent sessions generate millions of tokens of conversation history, compression becomes mandatory. The naive approach is aggressive compression to minimize tokens per request. The correct optimization target is tokens per task: total tokens consumed to complete a task, including re-fetching costs when compression loses critical information.
Context compression trades token savings against information loss. Three production-ready approaches exist:
The critical insight: structure forces preservation. Dedicated sections act as checklists that the summarizer must populate, preventing silent information drift.
当用户要求“压缩上下文”、“总结对话历史记录”、“实施压缩”、“减少令牌使用”或提及上下文压缩、结构化摘要、每个任务令牌优化或超出上下文限制的长时间运行代理会话时,应使用此技能。 来源:guanyang/antigravity-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/guanyang/antigravity-skills --skill context-compression- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 context-compression?
当用户要求“压缩上下文”、“总结对话历史记录”、“实施压缩”、“减少令牌使用”或提及上下文压缩、结构化摘要、每个任务令牌优化或超出上下文限制的长时间运行代理会话时,应使用此技能。 来源:guanyang/antigravity-skills。
如何安装 context-compression?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/guanyang/antigravity-skills --skill context-compression 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/guanyang/antigravity-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01