context-guardian
Proactive context monitoring with smart 3-level alerts. Know when to restart before quality degrades.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/brucey0017-cloud/context-guardianWhat This Skill Does
The Context Guardian skill is an essential preventative maintenance tool for OpenClaw agents. It monitors the current context window utilization in real-time, providing a proactive alert system that triggers at three defined thresholds: 60%, 70%, and 85%. By identifying context saturation before it occurs, the skill helps prevent the common pitfalls of long-running sessions, such as model 'hallucinations,' loss of instruction adherence, and silent degradation of output quality. It tracks historical alert states to ensure you are notified only when necessary, preventing annoying repetitive notifications while keeping you informed of your workspace health.
Installation
To integrate Context Guardian into your environment, use the OpenClaw CLI to run the following command:
clawhub install openclaw/skills/skills/brucey0017-cloud/context-guardian
Once installed, ensure your HEARTBEAT.md file is updated to include the context monitoring task. Finally, customize your sensitivity settings or notification style by modifying config/user.json to suit your specific workflow requirements.
Use Cases
This skill is perfect for developers working on long-running coding projects, writers maintaining massive narrative continuity, or researchers compiling complex data across lengthy sessions. By preventing the 'garbage in, garbage out' scenario caused by massive context buffers, Context Guardian ensures that your agent remains sharp and focused throughout the entire workday. It is particularly useful for agents managing complex stateful tasks where context pollution could lead to breaking changes or incorrect data processing.
Example Prompts
- "Context Guardian, what is my current memory usage and do I need to clear my session?"
- "Show me the current status of my context window and suggest the best way to compress my existing conversation logs."
- "OpenClaw, check my context levels and prepare a summary of my current task so I can perform a clean restart without losing progress."
Tips & Limitations
To get the most out of this skill, configure the suggestions object in your JSON settings to enable auto-compression tools. Be aware that this skill relies on the session_status tool; if your specific agent implementation does not support this tool, the monitoring functionality will not be able to pull accurate data. While it proactively prevents errors, always remember that manually archiving long sessions periodically remains a best practice in AI workflows.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-brucey0017-cloud-context-guardian": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-read, file-write
Related Skills
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
verify-before-done
Prevent premature completion claims, repeated same-pattern retries, and weak handoffs. Use this skill to improve verification, strategy switching, and blocked-task reporting without changing personality or tone.
evidence-gap-mapper
在报告、方案或演示稿中定位结论先行但证据不足的位置,并给出补证优先级。;use for evidence, gap-analysis, research workflows;do not use for 伪造数据支撑结论, 忽略高风险假设.
securityvitals
Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.
feishu-cron-announce
创建定时任务并通过 OpenClaw cron announce 直接推送结果到飞书。当需要设置定时监控任务(如版本发布、天气、股票等)并让结果自动推送到飞书时使用。关键词:飞书定时推送、cron 定时任务、飞书 announce、定时监控、飞书监控通知。