compaction-audit
审计一次 compaction 或一次上下文预处理过程,回答“为什么压了、压了什么、保留了什么”。当用户要解释某次压缩行为时使用此技能。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
审计一次 compaction 或一次上下文预处理过程,回答“为什么压了、压了什么、保留了什么”。当用户要解释某次压缩行为时使用此技能。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
为 compaction-debugger 准备上传 ClawHub 前的发布说明、检查点和上线顺序。当用户准备把插件发布到 ClawHub 时使用此技能。
用通俗语言解释 compaction-debugger 和 OpenClaw 内置 compaction 各自做了什么、为什么这么做。当用户不理解压缩机制时使用此技能。
设计和评估按上下文窗口占用率进行分层压缩的阈值策略。当用户想做 50% / 85% / 95% 分层压缩时使用此技能。
查看某个 session 经过预处理或 compaction 后,当前还保留着哪些可供 Pi 使用的“记忆”。当用户想检查 session 记忆状态时使用此技能。
根据日志和使用目标,为 compaction-debugger 给出参数调优建议。当用户想更省 token、保留更多上下文或减少误压缩时使用此技能。
对 compaction-debugger 做一轮标准回归检查,确认预处理、真实 /compact、以及压缩后的 recall 是否正常。当用户要回归测试插件时使用此技能。
| name | compaction-audit |
| description | 审计一次 compaction 或一次上下文预处理过程,回答“为什么压了、压了什么、保留了什么”。当用户要解释某次压缩行为时使用此技能。 |
| metadata | {"openclaw":{"emoji":"🧾"}} |
用于审计 compaction-debugger 在某个 session 中的行为,重点回答:
/compact 链路~/.openclaw/extensions/compaction-debugger/logsassemble-*.jsonbefore-compaction-*.jsonafter-compaction-*.jsonassemble-*.json:
summaryAdded=truesummarySkippedReason 是什么condensedCount 和 keptCount 是多少/compact,再对比 before-compaction-* 和 after-compaction-*:
tokenCount 变化是多少type:"compaction" 相关痕迹/compact 是否真实触发