Context Compressor
Skill by maddiedreese
Why use this skill?
Prevent AI context fatigue with the Context Compressor. Automatically summarize long sessions, preserve key code, and maintain project continuity.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/maddiedreese/context-compressorWhat This Skill Does
The Context Compressor skill is an essential utility for power users of the Clawdbot framework. As AI sessions progress, they accumulate significant context, which can eventually lead to performance degradation, memory bottlenecks, or reaching the hard token limits of the underlying LLM. This skill acts as an intelligent cleanup agent. It monitors session metadata in real-time, and when usage hits a configurable threshold, it triggers a condensation process. Instead of simply deleting data, the skill extracts the 'core intelligence' of the conversation—including final code states, architectural decisions, and open TODO items—and packages them into a concise foundation for a fresh session. This allows the user to maintain an infinite, coherent work history without the degradation associated with long context windows.
Installation
To integrate this skill into your environment, use the OpenClaw command-line interface. Run the following command in your terminal:
clawhub install openclaw/skills/skills/maddiedreese/context-compressor
Ensure you have the latest version of the Clawhub CLI installed to resolve dependencies automatically.
Use Cases
- Complex Software Development: When building a large application, you can keep the agent on track across hundreds of file edits and refactoring cycles.
- Extended Research Projects: Manage extensive data analysis or creative writing tasks that exceed standard memory limits.
- Long-Running Automated Tasks: Ensure your agent stays coherent during background tasks that operate over multiple hours or days.
- Efficiency Maintenance: Proactively cleaning session history ensures that the AI responds faster by reducing the overhead of processing massive context chunks.
Example Prompts
- "Context Compressor, please show me the current status of my session memory usage."
- "I am about to start a deep-dive refactor on the codebase; set the compression threshold to 70% so we have plenty of room."
- "Run a forced context compression now to clear out the legacy brainstorming notes and give us a fresh start with the current system state."
Tips & Limitations
- Proactive Thresholds: Set your threshold to 75% or 80%. Waiting until you hit 95% can sometimes trigger a compressed summary while you are in the middle of a critical thought process, which may be disruptive.
- Quiet Hours: Use the
set-quiet-hourscommand to ensure the agent doesn't interrupt your high-focus sessions with background summarization. - Data Integrity: While the tool is designed to preserve file states and crucial logic, always verify key details if you are working on mission-critical system infrastructure. The tool removes 'chaff,' but always check that the summary captured your latest intent correctly if it seems the conversation context has shifted too abruptly.
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-maddiedreese-context-compressor": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
figma
Professional Figma design analysis and asset export. Use for extracting design data, exporting assets in multiple formats, auditing accessibility compliance, analyzing design systems, and generating comprehensive design documentation. Read-only analysis of Figma files with powerful export and reporting capabilities.
figma
Professional Figma design analysis and asset export. Use for extracting design data, exporting assets in multiple formats, auditing accessibility compliance, analyzing design systems, and generating comprehensive design documentation. Read-only analysis of Figma files with powerful export and reporting capabilities.
substack-formatter
Transform plain text into Substack article format with proper HTML formatting for copy-paste into Substack editor.