{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/optimize-context",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=optimize-context",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "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"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/optimize-context",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "This package contains two powerful OpenClaw skills for automated context management:\n\nContext Optimizer - Automatically optimizes conversation context to prevent \"prompt too large\" errors\nTask Processor - Handles large tasks by automatically splitting them into smaller subtasks"
      },
      {
        "title": "Files Included",
        "body": "skills/context-optimizer/ - Main skill directory with all implementation files\ncommands/optimize-context.js - Command handler for context optimization\ncommands/optimize-context.json - Command configuration for context optimization\ncommands/process-task.js - Command handler for processing large tasks\ncommands/process-task.json - Command configuration for task processing\nsystems/context-monitor.js - Background context monitoring system\nsystems/context-monitor-config.json - Configuration for context monitoring\ntask_processing_config.json - Global task processing configuration"
      },
      {
        "title": "Installation Instructions",
        "body": "Extract this package to your OpenClaw workspace:\ncd ~/.openclaw/workspace\ntar -xzf /path/to/context-optimizer-skill.tar.gz\n\n\n\nInstall dependencies (if any are needed):\ncd ~/.openclaw/workspace/skills/context-optimizer\nnpm install\n\n\n\nThe skills should now be available in your OpenClaw system with:\n\n/optimize-context command for manual context optimization\n/process-task command for handling large tasks with automatic splitting"
      },
      {
        "title": "Context Optimizer",
        "body": "Automatically monitors conversation length\nTriggers optimization when message count exceeds thresholds\nExtracts key points and facts while clearing old context\nPrevents \"prompt too large\" errors"
      },
      {
        "title": "Task Processor",
        "body": "Detects large tasks that exceed token limits\nAutomatically splits large tasks into smaller subtasks\nProcesses subtasks sequentially while maintaining context\nIntegrates with context optimization to prevent overflow"
      },
      {
        "title": "Automatic Monitoring",
        "body": "Continuous background monitoring of context length\nConfigurable thresholds for automatic optimization\nSeamless integration with normal conversation flow"
      },
      {
        "title": "Configuration",
        "body": "Adjust settings in task_processing_config.json\nModify thresholds for message counts and token limits\nConfigure timing for automatic optimization triggers\n\nThe skills are ready to use immediately after installation!"
      }
    ],
    "body": "Context Optimizer & Task Processing Skills Package\nOverview\n\nThis package contains two powerful OpenClaw skills for automated context management:\n\nContext Optimizer - Automatically optimizes conversation context to prevent \"prompt too large\" errors\nTask Processor - Handles large tasks by automatically splitting them into smaller subtasks\nFiles Included\nskills/context-optimizer/ - Main skill directory with all implementation files\ncommands/optimize-context.js - Command handler for context optimization\ncommands/optimize-context.json - Command configuration for context optimization\ncommands/process-task.js - Command handler for processing large tasks\ncommands/process-task.json - Command configuration for task processing\nsystems/context-monitor.js - Background context monitoring system\nsystems/context-monitor-config.json - Configuration for context monitoring\ntask_processing_config.json - Global task processing configuration\nInstallation Instructions\n\nExtract this package to your OpenClaw workspace:\n\ncd ~/.openclaw/workspace\ntar -xzf /path/to/context-optimizer-skill.tar.gz\n\n\nInstall dependencies (if any are needed):\n\ncd ~/.openclaw/workspace/skills/context-optimizer\nnpm install\n\n\nThe skills should now be available in your OpenClaw system with:\n\n/optimize-context command for manual context optimization\n/process-task command for handling large tasks with automatic splitting\nFeatures\nContext Optimizer\nAutomatically monitors conversation length\nTriggers optimization when message count exceeds thresholds\nExtracts key points and facts while clearing old context\nPrevents \"prompt too large\" errors\nTask Processor\nDetects large tasks that exceed token limits\nAutomatically splits large tasks into smaller subtasks\nProcesses subtasks sequentially while maintaining context\nIntegrates with context optimization to prevent overflow\nAutomatic Monitoring\nContinuous background monitoring of context length\nConfigurable thresholds for automatic optimization\nSeamless integration with normal conversation flow\nConfiguration\nAdjust settings in task_processing_config.json\nModify thresholds for message counts and token limits\nConfigure timing for automatic optimization triggers\n\nThe skills are ready to use immediately after installation!"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/blackworm/optimize-context",
    "publisherUrl": "https://clawhub.ai/blackworm/optimize-context",
    "owner": "blackworm",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}