Skip to content
Back to skills

Optimize Context

ASecurity

This package contains two powerful OpenClaw skills for automated context management:

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
devopsbash

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 14 files and shows the line behind each finding

Scanned May 30, 2026

npx -y skills add Demerzels-lab/elsamultiskillagent --skill optimize-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Optimize Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Optimize Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/demerzels-lab-optimize-context/badge)](https://www.skillsdirectory.com/skills/demerzels-lab-optimize-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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:
   ```bash
   cd ~/.openclaw/workspace
   tar -xzf /path/to/context-optimizer-skill.tar.gz
   ```

2. Install dependencies (if any are needed):
   ```bash
   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!

Files in this skill

  • SKILL.md2.4 KB
  • _meta.json300 B
  • commands/optimize-context.js5.2 KB
  • commands/optimize-context.json423 B
  • commands/process-task.js2.6 KB
  • commands/process-task.json502 B
  • skills/context-optimizer/README.md2.8 KB
  • skills/context-optimizer/SKILL.md1 KB
  • skills/context-optimizer/config.json802 B
  • skills/context-optimizer/optimize.js11.6 KB
  • skills/context-optimizer/run-optimization.js2.9 KB
  • systems/context-monitor-config.json537 B
  • systems/context-monitor.js8 KB
  • task_processing_config.json948 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…