Optimize Context
by @blackworm
Automatically monitors and optimizes conversation context to prevent prompt size errors by extracting key points and clearing excess history.
clawhub install optimize-contextπ About This Skill
Context Optimizer & Task Processing Skills Package
Overview
This package contains two powerful OpenClaw skills for automated context management:1. Context Optimizer - Automatically optimizes conversation context to prevent "prompt too large" errors 2. Task Processor - Handles large tasks by automatically splitting them into smaller subtasks
Files Included
skills/context-optimizer/ - Main skill directory with all implementation filescommands/optimize-context.js - Command handler for context optimizationcommands/optimize-context.json - Command configuration for context optimizationcommands/process-task.js - Command handler for processing large taskscommands/process-task.json - Command configuration for task processingsystems/context-monitor.js - Background context monitoring systemsystems/context-monitor-config.json - Configuration for context monitoringtask_processing_config.json - Global task processing configurationInstallation Instructions
1. Extract this package to your OpenClaw workspace:
cd ~/.openclaw/workspace
tar -xzf /path/to/context-optimizer-skill.tar.gz
2. Install dependencies (if any are needed):
cd ~/.openclaw/workspace/skills/context-optimizer
npm install
3. The skills should now be available in your OpenClaw system with:
- /optimize-context command for manual context optimization
- /process-task command for handling large tasks with automatic splitting
Features
Context Optimizer
Task Processor
Automatic Monitoring
Configuration
task_processing_config.jsonThe skills are ready to use immediately after installation!
βοΈ Configuration
task_processing_config.jsonThe skills are ready to use immediately after installation!