/SKILL.md
# Auto-Compress Context Skill Automatically compresses conversation context when approaching token limits, similar to Claude.ai's "Hold on, compressing our conversation" feature. ## Overview Monitors context usage and automatically triggers compression at 80% capacity (160k of 200k tokens), allowing conversations to continue indefinitely without manual resets. ## Requirements - Clawdbot with session access - Python 3.8+ - Node.js (for hook integration) ## How It Works 1. Monitors context usa
npx skillsauth add officialerictm/clawdbot-auto-compress clawdbot-auto-compressInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automatically compresses conversation context when approaching token limits, similar to Claude.ai's "Hold on, compressing our conversation" feature.
Monitors context usage and automatically triggers compression at 80% capacity (160k of 200k tokens), allowing conversations to continue indefinitely without manual resets.
cd /home/ubuntu/clawd/skills/auto-compress
chmod +x install.sh
./install.sh
agent:
hooks:
afterResponse:
- /home/ubuntu/clawd/skills/auto-compress/context-monitor.js
Once installed, it works automatically. You'll see:
Edit config.json to customize:
{
"threshold": 0.8, // Trigger at 80% capacity
"warningThreshold": 0.7, // Warn at 70% capacity
"preserveRecent": 20, // Keep last 20 messages
"compressTools": true, // Compress tool outputs
"notifyUser": true // Show compression message
}
compress-now - Force compression immediatelycompress-status - Show compression statisticscompress-disable - Temporarily disable auto-compressionWhen compression triggers, you'll see:
🗜️ Hold on, I need to compress our conversation to continue...
[Compressing 160k → 40k tokens]
✅ Compression complete! We can continue our conversation.
The conversation then continues seamlessly with all important context preserved.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.