← 返回 Skills 市场
linglin6

Memory Compress

作者 翎麟 · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ⚠ suspicious
370
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install 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...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install memory-compress
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /memory-compress 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug memory-compress
版本 1.2.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 370 次。

如何安装 Memory Compress?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install memory-compress」即可一键安装,无需额外配置。

Memory Compress 是免费的吗?

是的,Memory Compress 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Memory Compress 支持哪些平台?

Memory Compress 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Memory Compress?

由 翎麟(@linglin6)开发并维护,当前版本 v1.2.1。

💬 留言讨论