compact-guardian

Halt auto-compact after three consecutive failures and send Telegram alerts.

4|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/ybbms777/openclaw-claude-code-integration --skill compact-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compact-guardian
Source: https://github.com/ybbms777/openclaw-claude-code-integration/tree/main
Command: npx skills add https://github.com/ybbms777/openclaw-claude-code-integration --skill compact-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

防止 auto-compact 连续失败导致记忆碎片堆积。

Core Features & Use Cases

  • 熔断保护:当 memory-lancedb-pro 自动压缩连续失败达到阈值时触发熔断,暂停当前会话的自动压缩并发送 Telegram 通知。
  • 监控与重置:在手动触发 /compact 且成功后重置计数器,确保记忆系统恢复正常。
  • 跨工作流支持:与 memory-compaction、cache-monitor 等协作,提供稳定的记忆管理闭环。

Quick Start

Register and enable the compact-guardian skill to enable熔断 protection in the auto-compact workflow.

Frequently Asked Questions about compact-guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does auto-compact fail repeatedly and how do I stop memory fragmentation in lancedb?

Auto-compact failures cause memory fragmentation when they persist unchecked. You can halt this degradation by deploying a circuit breaker that pauses auto-compact after three consecutive failures and sends a Telegram alert.

How do I reset the auto-compact circuit breaker after a manual memory compaction?

To reset the auto-compact circuit breaker, trigger a manual /compact action successfully. Once manual memory compaction succeeds, the failure counter resets and automatic memory workflows resume.

What happens when auto-compact fails three times in a row in memory-lancedb-pro workflows?

When auto-compact fails three times consecutively in memory-lancedb-pro workflows, a circuit breaker trips to halt the automatic process and dispatches a Telegram notification to alert you of the memory fragmentation risk.

Does the auto-compact circuit breaker coordinate with the memory-compact pipeline for recovery?

Yes, the auto-compact circuit breaker coordinates with the memory-compact pipeline by exposing a deterministic reset hook. This ensures stable memory management closure across workflows after a successful manual action.

Can I receive Telegram alerts when auto-compact halts due to continuous failures?

Yes, Telegram alerts are sent automatically when the auto-compact circuit breaker trips. This notifies you immediately when three consecutive failures occur, preventing further memory fragmentation without manual polling.