← Back to Skills Marketplace
artwebs

Context Guardian Pro

by liu hongbin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
127
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install context-guardian-pro
Description
Automates context monitoring by summarizing history, saving to long-term memory, and sending QQ alerts when session message or token limits approach threshold.
README (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)。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install context-guardian-pro
  3. After installation, invoke the skill by name or use /context-guardian-pro
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug context-guardian-pro
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments