Optimize Context

# Context Optimizer & Task Processing Skills Package

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Optimize Context" with this command: npx skills add blackworm/optimize-context

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 files
  • commands/optimize-context.js - Command handler for context optimization
  • commands/optimize-context.json - Command configuration for context optimization
  • commands/process-task.js - Command handler for processing large tasks
  • commands/process-task.json - Command configuration for task processing
  • systems/context-monitor.js - Background context monitoring system
  • systems/context-monitor-config.json - Configuration for context monitoring
  • task_processing_config.json - Global task processing configuration

Installation 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

  • 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!

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Cclaw

Open-source comedy AI + video editing + poster generation. Create standup/sketch/manzai/scripts, edit videos via FFmpeg, and generate comedy posters via canv...

Registry SourceRecently Updated
General

Dlazy Seedance 1.5 Pro

Convert images into dynamic dance videos using Doubao Seedance 1.5 Pro.

Registry SourceRecently Updated
General

Pod Template Pack

Use when user needs ready-to-use POD (Print on Demand) design keywords, title templates, and listing copy. Use when creating POD product listings for TikTok,...

Registry SourceRecently Updated
General

Dlazy Mj.Imagine

Generate artistic images using Midjourney (MJ) model. Supports text-to-image.

Registry SourceRecently Updated