# Send Optimize Context to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "optimize-context",
    "name": "Optimize Context",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/blackworm/optimize-context",
    "canonicalUrl": "https://clawhub.ai/blackworm/optimize-context",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/optimize-context",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=optimize-context",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "task_processing_config.json",
      "systems/context-monitor-config.json",
      "systems/context-monitor.js",
      "skills/context-optimizer/config.json",
      "skills/context-optimizer/optimize.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "optimize-context",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T00:44:57.482Z",
      "expiresAt": "2026-05-10T00:44:57.482Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=optimize-context",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=optimize-context",
        "contentDisposition": "attachment; filename=\"optimize-context-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "optimize-context"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/optimize-context"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/optimize-context",
    "downloadUrl": "https://openagent3.xyz/downloads/optimize-context",
    "agentUrl": "https://openagent3.xyz/skills/optimize-context/agent",
    "manifestUrl": "https://openagent3.xyz/skills/optimize-context/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/optimize-context/agent.md"
  }
}
```
## Documentation

### 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

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

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:

/optimize-context command for manual context optimization
/process-task command for handling large tasks with automatic splitting

### 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!
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: blackworm
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T00:44:57.482Z
- Expires at: 2026-05-10T00:44:57.482Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/optimize-context)
- [Send to Agent page](https://openagent3.xyz/skills/optimize-context/agent)
- [JSON manifest](https://openagent3.xyz/skills/optimize-context/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/optimize-context/agent.md)
- [Download page](https://openagent3.xyz/downloads/optimize-context)