Context Guardian Pro
/install context-guardian-pro
context-guardian Skill
Description
该技能用于自动化监控对话上下文压力。当检测到当前会话消息量或 Token 占用达到阈值时,自动触发“总结历史 -> 写入长期记忆 -> 发送 QQ 告警”的闭环流程,以防止 Context limit exceeded 错误。
Usage
用户无需直接调用,该技能通过 taskflow 或 cron 周期性运行。
Features
- Pressure Monitoring: 监控 Session 消息长度或字符数。
- Auto-Summarization: 集成
summarize技能提取核心信息。 - Memory Persistence: 自动将摘要追加到
memory/YYYY-MM-DD.md。 - Proactive Alerting: 通过
qqbot-channel接口向用户发送重启会话的提醒。
Inputs
threshold: 触发阈值 (默认 80% 字符占用或消息数)。
Outputs
status: 任务执行结果 (SUCCESS/FAILED)。action_taken: 采取的操作 (NONE/SUMMARIZED_AND_NOTIFIED)。
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-guardian-pro - After installation, invoke the skill by name or use
/context-guardian-pro - Provide required inputs per the skill's parameter spec and get structured output
What is Context Guardian Pro?
Automates context monitoring by summarizing history, saving to long-term memory, and sending QQ alerts when session message or token limits approach threshold. It is an AI Agent Skill for Claude Code / OpenClaw, with 127 downloads so far.
How do I install Context Guardian Pro?
Run "/install context-guardian-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context Guardian Pro free?
Yes, Context Guardian Pro is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Context Guardian Pro support?
Context Guardian Pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context Guardian Pro?
It is built and maintained by liu hongbin (@artwebs); the current version is v1.0.0.