Optimize Context
v1.0.0Automatically monitors and optimizes conversation context to prevent prompt size errors by extracting key points and clearing excess history.
⭐ 1· 1.8k·4 current·4 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Suspicious
medium confidencePurpose & 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.
What to consider before installing
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.Like a lobster shell, security has layers — review code before you run it.
latestvk972ca21dd11b4cj691scp8wjs80hjg2
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
