strategic-compact
建议在逻辑上合适的间隔手动压缩上下文,以在任务各阶段保留上下文,而非任意自动压缩。适用于会话接近上下文上限,且任务阶段恰好适合压缩的情况。
译文已校对查看英文原文
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction. Use when a session is approaching a context limit and a task phase is a natural place to compact.
适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Strategic Compact Skill
- When to Activate
- Why Strategic Compaction?
- How It Works
- Hook Setup
- Configuration
- Compaction Decision Guide
- What Survives Compaction
Suggests manual /compact at strategic points in your workflow rather than relying on arbitrary auto-compaction. Running long sessions that approach context limits (200K+ tokens) Working on multi-phase tasks (research → plan → implement → test) Switching between unrelated tasks within the same session After completing a major milestone and starting new work When responses slow down or become less coherent (context pressure) Auto-compaction triggers at arbitrary points: Often mid-task, losing important context No awareness of logical task boundaries Can interrupt complex multi-step operations Strategic compaction at logical boundaries: After exploration, before execution — Compact research context, keep implementation plan After completing a milestone — Fresh start for next phase Before major context shifts — Clear exploration context before different task The suggest-compact.js script runs on PreToolUse (Edit/Write) and combines two signals: 1. Context size (primary) — Reads the latest usage record from the session transcript (transcriptpath in the hook payload) and sums inputtokens + cachereadinputtokens + cachecreationinputtokens (the true context size of the turn). Suggests /comp
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- affaan-m/ECC
- 源文件
- skills/strategic-compact/SKILL.md
- 固定版本
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:affaan-m/ECC · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T16:01:00.577Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。