agentleFS
ybbms777ybbms777/openclaw-claude-code-integration/SKILL.md

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

Used with

Projects with it also use crypto-intelligence, heart and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Arcanea-LabsSkill

    crypto-intelligence

    Vertical-tier skill for Crypto Intelligence Domain Sub-Stack. Auto-activates inside verticals/crypto-intelligence/ or on /crypto-* commands. Enforces R5 non-advisory clause, voice (architect), refusal patterns, composition with Wealth IS umbrella per Board 2026-05-17. Loads verticals/crypto-intelligence/SKILL.md wrapper for full doctrine.

    Also in 3 projects that use this

  • Arcanea-LabsSkill

    heart

    Ops health monitor for the machine substrate. Checks Memory Bus, brain_watchdog, Voice Operator, dashboard, audit-log freshness, and scheduled tasks. Cross-cutting skill that any repo can invoke when daemons feel off or before starting a heavy work session.

    Also in 3 projects that use this

  • +10 more from Arcanea-Labs

The file

Files
SKILL.md

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 负责。 两者配合使用效果最好。

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.