← Back to Skills Marketplace
blackworm

Optimize Context

by blackworm · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1844
Downloads
1
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install optimize-context
Description
Automatically monitors and optimizes conversation context to prevent prompt size errors by extracting key points and clearing excess history.
Usage Guidance
This package implements what it says (summarizing and splitting large tasks) but you should review and consider the following before installing: - Data persistence: The skill extracts 'facts' from conversations and writes them to files (MEMORY.md and context-summary-*.md) in the workspace. If conversations contain sensitive information, that data will be stored on disk in plain text. Decide whether you are comfortable with this and consider encrypting or relocating the memory files. - Path inconsistency: The SKILL.md installation path (~/.openclaw/workspace) and the code's hardcoded workspace path (/home/blackworm/.openclaw/workspace) differ — verify and correct paths before installing so files are created where you expect. - Automatic behavior: The system includes background monitoring and scheduled optimization. If you do not want automated runs, disable scheduling in task_processing_config.json or avoid running the monitor/cron integration. - Test in a sandbox: Install and run the skill in a disposable or non-production workspace first to observe what files it creates and confirm behavior. - Minimal privileges: The skill does not request external credentials or network access, which is good. Still inspect MEMORY.md and summary files after a test run and remove any sensitive data you do not want persisted. If you want, I can point out the exact lines that write files, show how to change the hardcoded path to a dynamic location, or produce a checklist to safely sandbox and audit this skill before use.
Capability Analysis
Type: OpenClaw Skill Name: optimize-context Version: 1.0.0 The OpenClaw AgentSkills skill bundle is designed for context optimization and large task processing. All file system operations are confined to the OpenClaw workspace (`/home/blackworm/.openclaw/workspace`) and its designated memory/configuration files (`task_processing_config.json`, `MEMORY.md`, `memory/context-summary-*.md`). There is no evidence of data exfiltration, malicious execution (e.g., `eval`/`exec` of untrusted input, remote payload execution), persistence mechanisms, or prompt injection attempts in the markdown files. The skill's behavior is clearly aligned with its stated purpose of managing conversation context and splitting tasks.
Capability Assessment
Purpose & Capability
Name/description (context optimization / task processing) aligns with the included code: modules implement summarization, fact extraction, context cleanup, and task splitting. There are no requested credentials or unrelated binaries.
Instruction Scope
The runtime instructions and code read conversation messages, extract facts, and write persistent summary/memory files (MEMORY.md and context-summary-*.md). The SKILL.md instructs extraction into ~/.openclaw/workspace, but most code uses a hardcoded path (/home/blackworm/.openclaw/workspace) — a clear inconsistency. The skill's behavior includes automatic background monitoring and scheduled optimization; these actions will collect and persist conversation content to disk, which is outside a purely in-memory optimization expectation and increases privacy risk.
Install Mechanism
No formal install spec provided (instruction-only + bundled code). SKILL.md suggests running npm install in the skill directory, but the skill's package.json shows no external dependencies; running npm install is low risk but may be unnecessary. No third-party downloads or remote URLs are used.
Credentials
The skill requests no environment variables or external credentials, which is appropriate. However, it persists extracted 'facts' and summaries to disk (workspace/memory files) without encryption or explicit user consent. Because the skill automatically extracts and stores potentially sensitive user-provided content, that persistent storage is a material privilege not declared in metadata and should be considered when evaluating proportionality.
Persistence & Privilege
The skill is not configured always:true and won't be force-enabled, but it does create and modify files in the OpenClaw workspace (memory directory, MEMORY.md, summary files) and includes code for background monitoring and scheduled runs. It does not modify other skills' configurations or request elevated system privileges, but its ability to persist conversation data increases its blast radius if installed.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install optimize-context
  3. After installation, invoke the skill by name or use /optimize-context
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the Context Optimizer & Task Processing Skills Package. - Adds automated context optimization to prevent "prompt too large" errors. - Introduces a Task Processor to split and handle large tasks automatically. - Includes background monitoring for conversation length with configurable thresholds. - Provides `/optimize-context` and `/process-task` commands for manual control and automation.
Metadata
Slug optimize-context
Version 1.0.0
License
All-time Installs 4
Active Installs 4
Total Versions 1
Frequently Asked Questions

What is Optimize Context?

Automatically monitors and optimizes conversation context to prevent prompt size errors by extracting key points and clearing excess history. It is an AI Agent Skill for Claude Code / OpenClaw, with 1844 downloads so far.

How do I install Optimize Context?

Run "/install optimize-context" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Optimize Context free?

Yes, Optimize Context is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Optimize Context support?

Optimize Context is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Optimize Context?

It is built and maintained by blackworm (@blackworm); the current version is v1.0.0.

💬 Comments