← 返回 Skills 市场
artwebs

Context Guardian Pro

作者 liu hongbin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
127
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

context-guardian Skill

Description

该技能用于自动化监控对话上下文压力。当检测到当前会话消息量或 Token 占用达到阈值时,自动触发“总结历史 -> 写入长期记忆 -> 发送 QQ 告警”的闭环流程,以防止 Context limit exceeded 错误。

Usage

用户无需直接调用,该技能通过 taskflowcron 周期性运行。

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)。
安全使用建议
This skill is suspiciously inconsistent rather than obviously malicious. Before installing or enabling it: 1) Ask the author (or check upstream) which binaries and Python packages are required (openclaw CLI, taskflow) and provide an install/dependency spec. 2) Confirm how QQ alerts are authenticated — the skill mentions a qqbot-channel but no credentials or token env vars are declared. 3) Review and test the bundled scripts in a sandbox: guardian.py runs subprocesses and writes to ~/.openclaw/workspace/memory; taskflow_executor uses a hardcoded tilde path that likely won't expand and may be buggy. 4) If you plan to allow autonomous runs, ensure you trust the code (it will read session_status output and append files in your home). If the author cannot justify the missing dependency declarations and credentials, treat the skill as untrusted.
功能分析
Type: OpenClaw Skill Name: context-guardian-pro Version: 1.0.0 The skill bundle is designed to monitor LLM session token usage and automate summarization to prevent context limit errors. The code in scripts/guardian.py and scripts/taskflow_executor.py performs legitimate operations such as checking session status via the 'openclaw' CLI and writing summaries to a local memory directory, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The skill claims to monitor session pressure, summarize history, persist memory, and send QQ alerts — that purpose matches the included code at a high level. However, the code calls the 'openclaw' CLI and imports a 'taskflow' module even though the skill metadata lists no required binaries or dependencies. The package.json also lists no dependencies. The discrepancy between declared requirements (none) and actual runtime needs (openclaw CLI, taskflow Python package) is a coherence concern.
Instruction Scope
SKILL.md says the skill integrates with a separate 'summarize' skill and posts via a 'qqbot-channel' interface. The Python code, however, only simulates summarization (writes a local file) and implements send_qq_alert as a local print statement — there is no real QQ network call or use of a 'summarize' skill. The code does run subprocesses (openclaw session_status) and writes to ~/.openclaw/workspace/memory/*; these actions are within the stated purpose but the stated integrations and behaviors are not implemented, which is misleading.
Install Mechanism
There is no install spec (instruction-only), which is low risk in itself, but the bundled code expects external runtime elements (openclaw CLI, a taskflow library). Because no install or dependency instructions are provided, users may have missing dependencies or unknown runtime behavior. No external download URLs or archives are present.
Credentials
The manifest requests no environment variables or credentials, yet the SKILL.md and code discuss sending QQ alerts (which would normally require auth tokens) and integrating with other services. The absence of declared QQ credentials or other access tokens is inconsistent with the described alerting capability and should be clarified before trusting the skill with real alerts.
Persistence & Privilege
The skill does write summaries into the user's home under ~/.openclaw/workspace/memory/YYYY-MM-DD.md — this matches the stated 'memory persistence' purpose and is scoped to the user's OpenClaw workspace. The skill is not marked always:true and does not request broad system privileges. Autonomous invocation is allowed (default), which is normal; combine that with the other inconsistencies when deciding trust.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install context-guardian-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /context-guardian-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of context-guardian-pro skill. - Monitors conversation context pressure and automatically triggers a workflow to summarize history, persist to long-term memory, and send QQ alerts if thresholds are exceeded. - Integrates with taskflow or cron for periodic execution; no manual invocation required. - Supports configurable threshold for triggering actions. - Outputs task execution status and actions taken.
元数据
Slug context-guardian-pro
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 127 次。

如何安装 Context Guardian Pro?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install context-guardian-pro」即可一键安装,无需额外配置。

Context Guardian Pro 是免费的吗?

是的,Context Guardian Pro 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Context Guardian Pro 支持哪些平台?

Context Guardian Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Context Guardian Pro?

由 liu hongbin(@artwebs)开发并维护,当前版本 v1.0.0。

💬 留言讨论