A proactive monitoring tool that alerts you when your AI agent's context usage reaches critical thresholds to prevent hallucinations.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install context-guardian
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install context-guardian using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Context Guardian is a specialized utility designed to solve the silent degradation of AI performance during extended conversations. By monitoring session status in real-time, this tool ensures that users and agents are aware of context saturation before it leads to errors or hallucinations. It provides a safety net for complex workflows where maintaining high-quality output is essential.
This utility is a vital addition to your suite of Openclaw Skills, offering peace of mind during high-intensity coding or research sessions. It bridges the gap between manual monitoring and automated session management by providing 3-level alerts that warn you at 60%, 70%, and 85% usage.
To integrate Context Guardian with your agent, add the following to your HEARTBEAT.md file:
## Context Monitoring
- Check context usage
- Alert if thresholds exceeded (60%, 70%, 85%)
For manual status checks, you can use the following command:
bash {baseDir}/scripts/check.sh
Configure custom thresholds and styles by creating or editing config/user.json to match your specific workflow requirements within Openclaw Skills.
The skill maintains its state in a structured JSON file within the memory directory to ensure persistence across sessions. This allows for historical tracking and prevents alert fatigue.
| Key | Type | Description |
|---|---|---|
| lastCheck | Timestamp | The Unix timestamp of the most recent monitor check. |
| lastUsage | Integer | The percentage of context used during the last check. |
| lastAlertLevel | String | Tracks the current alert state (warning, danger, or critical). |
| history | Array | A log of previous usage snapshots for trend analysis. |
Loading
A comprehensive CLI tool and JS client wrapper for accessing professional-grade financial market data and news from Massive (Polygon).

A structured paper-trading system with SQLite-backed event logging and real-time PnL tracking for AI agents.

A high-performance CLI skill for fetching real-time decentralized exchange (DEX) data, trending pools, and token analytics from GeckoTerminal.

A CLI-driven integration for fetching real-time decentralized exchange market data, liquidity metrics, and token profiles.

A framework for rewriting an AI's history to create intrinsic, identity-driven behaviors instead of instruction-based compliance.

A perspective-shifting AI skill that allows you to summon a council of 14 historical legends to provide specialized lenses for decisions, creativity, and problem-solving.








































