← Back to Skills Marketplace
370
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install memory-compress
Description
Never let your agent forget what matters. Compress verbose daily logs into structured summaries — 4-8x compression, zero information loss. Inspired by classi...
Usage Guidance
This skill appears to implement the advertised compression logic and does not contact networks or request credentials. However, the script resolves input file paths against OPENCLAW_WORKSPACE (defaulting to ~/.opencl/workspace) rather than the current working directory — a behavior not documented in SKILL.md. Before installing/using: 1) inspect the script (done) and confirm the workspace path is acceptable; 2) run it first on a non-sensitive test file and pass explicit absolute paths for input and output to avoid accidental reads of other files; 3) if you prefer behavior tied to the current directory, modify the script to resolve relative to process.cwd() or set OPENCLAW_WORKSPACE explicitly; 4) avoid running it directly on production or sensitive memory until you’re comfortable with its file access and output locations.
Capability Analysis
Type: OpenClaw Skill
Name: memory-compress
Version: 1.2.1
The skill contains a path traversal vulnerability in `scripts/memory-compress.js` because it uses `path.resolve(WORKSPACE, DAILY_LOG)` and `path.resolve(OUTPUT)` without validating that the resulting paths remain within the intended workspace. This allows the script to read from or write to arbitrary locations on the filesystem if the input arguments are manipulated. While the code lacks evidence of intentional malice, such as network exfiltration or obfuscation, the insecure file handling is a high-risk flaw.
Capability Assessment
Purpose & Capability
Name/description promise a markdown-based log compressor; the included Node script implements that functionality with keyword and fallback extraction. The capabilities (parsing headers, producing a compressed markdown summary) match the stated purpose.
Instruction Scope
SKILL.md shows CLI examples that imply paths are relative to your current repo/workdir (e.g., node scripts/... memory/2026-03-14.md). The script, however, resolves the input path relative to a WORKSPACE directory (OPENCLAW_WORKSPACE or ${HOME}/.opencl/workspace) which is not called out in the SKILL.md. This difference could cause the script to read files outside the user’s expected working directory (e.g., a global workspace), so the agent running it may access unexpected files.
Install Mechanism
No install spec, no external downloads or dependencies. The skill is instruction-only plus a local JS script; that is low-risk from an install-mechanism perspective.
Credentials
Registry metadata declares no required env vars or credentials, but the script reads OPENCLAW_WORKSPACE and falls back to HOME. Those env vars are non-secret, but the SKILL.md does not document them. The script can therefore resolve and read files from a location the user did not explicitly supply.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes. It writes to the output path provided (or /tmp by default) and may create directories, which is normal CLI behavior.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install memory-compress - After installation, invoke the skill by name or use
/memory-compress - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.1
v1.2.1 — Removed internal naming from script comments and help text. Clean release.
v1.2.0
v1.2.0 — Added classical Chinese compression philosophy (the real secret sauce). First-person tone from the builder. Strip redundancy, keep turning points, let structure carry meaning.
v1.1.0
v1.1.0 — Killer description, architecture diagram, bilingual support highlighted. Never let your agent forget what matters.
v1.0.0
v1.0.0 — Production-ready memory compression engine. 4-8x compression ratio, hybrid extraction strategy (keyword + fallback), 40+ bilingual patterns, multi-day support, zero dependencies. 13/13 test cases passed.
Metadata
Frequently Asked Questions
What is Memory Compress?
Never let your agent forget what matters. Compress verbose daily logs into structured summaries — 4-8x compression, zero information loss. Inspired by classi... It is an AI Agent Skill for Claude Code / OpenClaw, with 370 downloads so far.
How do I install Memory Compress?
Run "/install memory-compress" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Memory Compress free?
Yes, Memory Compress is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Memory Compress support?
Memory Compress is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Memory Compress?
It is built and maintained by 翎麟 (@linglin6); the current version is v1.2.1.
More Skills