SKILL.md
Skill4 starsChanged 7 months agoMITView on GitHub
防止 auto-compact 连续失败导致记忆碎片堆积。 来源:Claude Code 源码泄露中发现的 MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3 机制。 原始数据:BQ 记录显示,未加保护的系统每天全球浪费约 25 万次 API 调用。 复制到 ~/.openclaw/workspace/skills/compact-guardian/SKILL.md, 然后发给你的 OpenClaw: 检查 hooks 配置里是否包含: - checkCompactGuardian() — 启动时检查是否熔断 - recordGuardianFailure() — compact 失败时调用 - recordGuardianSuccess() — compact 成功时重置计数器 这个 skill 解决的是*熔断问题,不是清理*问题。 记忆碎片的定期清理由 memory-compaction skill 负责。 两者配合使用效果最好。
200 other projects use a version of this.
Adopted by
Most recently taken up by
- SysikNagibator/AiPCtheir own version, first seen Oct 6, 2026
- Ataraxy-Labs/weavetheir own version, first seen Oct 4, 2026
- Ataraxy-Labs/semtheir own version, first seen Oct 3, 2026
- OutSystems/outsystems-mcptheir own version, first seen Sep 30, 2026
- jukkan/xrm-mcptheir own version, first seen Sep 30, 2026
- duty1g/x64dbg-mcp-servertheir own version, first seen Sep 29, 2026
Other versions200 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 200
- Ataraxy-Labs/sem★ 3.4ksame name
- op7418/NanoBanana-PPT-Skills★ 3.3ksame name
- duty1g/x64dbg-mcp-server★ 2.2ksame name
- Ataraxy-Labs/weave★ 1.3ksame name
- reticlehq/reticle★ 1.2ksame name
- Auriti-Labs/geo-optimizer-skill★ 994same name
- xiaohuailabs/xiaohu-wechat-format★ 698same name
- klawsh/klaw.sh★ 634same name
- Jiang59991/ginger_wechat_portrait★ 514same name
- edouard-claude/snip★ 462same name
190 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- behavior-analyzerSkill
- cache-monitorSkill
- compact-guardianSkill
- evolveSkill
- fusion-engineSkill
- knowledge-federationSkill
- memory-compactionSkill
- rule-optimizerSkill
- safe-execSkill
- self-evalSkill
- smart-compactSkill
- yolo-permissionsSkill
The file
Files
compact-guardian
用途
防止 auto-compact 连续失败导致记忆碎片堆积。
来源:Claude Code 源码泄露中发现的 MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3 机制。
原始数据:BQ 记录显示,未加保护的系统每天全球浪费约 25 万次 API 调用。
安装方式
复制到 ~/.openclaw/workspace/skills/compact-guardian/SKILL.md,
然后发给你的 OpenClaw:
帮我注册 compact-guardian skill 并确认生效,同时在 memory-lancedb-pro 的
auto-capture 钩子里接入熔断逻辑。熔断逻辑说明
auto-compact 触发
↓
成功 → 重置计数器
失败 → 计数器 +1
↓
计数器 >= 3
↓
当前 session 停止触发 auto-compact
发送通知:「压缩已熔断,请手动 /compact」
↓
session 结束时重置计数器验证方法
openclaw skills list
# 应看到:✓ ready 📦 compact-guardian检查 hooks 配置里是否包含:
checkCompactGuardian()— 启动时检查是否熔断recordGuardianFailure()— compact 失败时调用recordGuardianSuccess()— compact 成功时重置计数器
注意
这个 skill 解决的是熔断问题,不是清理问题。
记忆碎片的定期清理由 memory-compaction skill 负责。
两者配合使用效果最好。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

