An active monitoring system that prevents AI context overflow by executing memory compaction and semantic state summarization.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install cognitive-compaction
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 cognitive-compaction using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Cognitive Compaction State Manager is a critical utility designed to manage the finite context window of AI agents. It acts as a circuit breaker that triggers when token utilization reaches a specific threshold, preventing 'Amnesia' or out-of-bounds failures during long-running tasks.
By temporarily suspending granular operations, this skill forces the agent to synthesize its current progress into a dense semantic summary. This ensures that the most important progress data is retained while unstructured logs are archived, allowing the agent to resume its primary objective with a fresh, optimized context.
To install the necessary dependencies for this skill, run the following command:
uv pip install pydantic
Ensure that you have python available in your system path as it is a required binary for the compaction scripts.
The skill manages state through a combination of semantic summaries and archived logs. The following structure is utilized:
| Component | Description |
|---|---|
| Current State | A dense, human-readable summary of progress and next steps. |
| Archived Logs | Unstructured operational history moved to backend storage to save tokens. |
| Compaction Script | flush_state.py handles the file swapping and state management. |
| Environment Variables | Uses OPENCLAW_SKILL_DIR to locate scripts and assets. |
Loading
A specialized skill for querying the Variflight API to retrieve one-way flight schedules, pricing, and transfer details using IATA codes.

A real-time position monitor for Polymarket that features automated profit reinvestment and risk-management circuit breakers.

Seamlessly manage project data, financial records, and agency workflows using Openclaw Skills integrated with Workamajig.

A professional design skill that converts raw information into sophisticated, Swiss-international style HTML cards and captures them as high-resolution screenshots.

A professional retail complaint and after-sales management skill that classifies issues and handles de-escalation for digital employees.

A professional-grade simulation of an NIH study section peer review designed to critique grant proposals using official scoring rubrics.








































