Skills optimize-context
Context Optimizer & Task Processing Skills Package
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/blackworm/optimize-context" ~/.claude/skills/openclaw-skills-optimize-context && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/blackworm/optimize-context" ~/.openclaw/skills/openclaw-skills-optimize-context && rm -rf "$T"
manifest:
skills/blackworm/optimize-context/SKILL.mdsource content
Context Optimizer & Task Processing Skills Package
Overview
This package contains two powerful OpenClaw skills for automated context management:
- Context Optimizer - Automatically optimizes conversation context to prevent "prompt too large" errors
- Task Processor - Handles large tasks by automatically splitting them into smaller subtasks
Files Included
- Main skill directory with all implementation filesskills/context-optimizer/
- Command handler for context optimizationcommands/optimize-context.js
- Command configuration for context optimizationcommands/optimize-context.json
- Command handler for processing large taskscommands/process-task.js
- Command configuration for task processingcommands/process-task.json
- Background context monitoring systemsystems/context-monitor.js
- Configuration for context monitoringsystems/context-monitor-config.json
- Global task processing configurationtask_processing_config.json
Installation Instructions
-
Extract this package to your OpenClaw workspace:
cd ~/.openclaw/workspace tar -xzf /path/to/context-optimizer-skill.tar.gz -
Install dependencies (if any are needed):
cd ~/.openclaw/workspace/skills/context-optimizer npm install -
The skills should now be available in your OpenClaw system with:
command for manual context optimization/optimize-context
command for handling large tasks with automatic splitting/process-task
Features
Context Optimizer
- Automatically monitors conversation length
- Triggers optimization when message count exceeds thresholds
- Extracts key points and facts while clearing old context
- Prevents "prompt too large" errors
Task Processor
- Detects large tasks that exceed token limits
- Automatically splits large tasks into smaller subtasks
- Processes subtasks sequentially while maintaining context
- Integrates with context optimization to prevent overflow
Automatic Monitoring
- Continuous background monitoring of context length
- Configurable thresholds for automatic optimization
- Seamless integration with normal conversation flow
Configuration
- Adjust settings in
task_processing_config.json - Modify thresholds for message counts and token limits
- Configure timing for automatic optimization triggers
The skills are ready to use immediately after installation!