← 返回 Skills 市场
memory-compact
作者
GarryFan-AI
· GitHub ↗
· v1.0.5
· MIT-0
367
总下载
1
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install memory-compact
功能描述
每日记忆自动压缩备份和关键点提取,每天早上 6:30 运行
安全使用建议
This skill appears to implement local backup and simple key‑point extraction as advertised, but there are mismatches between its documentation and code. Before installing or enabling it: 1) Review wrapper.py’s use of subprocess.run — if you prefer no subprocess usage, consider replacing the wrapper with a direct import and call to memory_backup.main() or run memory_backup.py directly. 2) Verify that no network/networking code exists (the shipped code is local-only) and ensure your environment policy prevents unexpected network egress. 3) Be aware the README/SKILL.md mention logs and a Feishu notification file that are not implemented; if you rely on those features, update the code. 4) Test the script in an isolated environment (container or VM) with representative workspace files and check that backups and MEMORY.md are written only under ~/.openclaw/workspace. 5) If you need stronger guarantees, run static analysis or have someone audit the code; if anything seems unclear (why subprocess is used, where notifications/logs should be), ask the author for clarification or correct the wrapper to avoid subprocess usage.
功能分析
Type: OpenClaw Skill
Name: memory-compact
Version: 1.0.5
The memory-compact skill is designed to manage local AI interaction logs by extracting key points and moving files to a backup directory. The code in memory_backup.py and wrapper.py is well-structured, lacks network access or obfuscation, and includes proactive security measures such as path validation (is_safe_path) to prevent directory traversal. While the documentation (README.md and SKILL.md) repeatedly emphasizes its safety and mentions previous 'virus detection' issues, the current implementation shows no signs of malicious intent or unauthorized data exfiltration.
能力评估
Purpose & Capability
Name/description, required binary (python3), and included scripts align with a local backup/key‑point extraction tool. The files operate on ~/.openclaw/workspace which is appropriate for the stated purpose. Minor mismatch: README/SKILL.md claim the skill 'generates Feishu notification' and writes logs, but the code does not implement a network notification — it only prints output to stdout.
Instruction Scope
SKILL.md and README repeatedly claim 'no subprocess/system commands' and 'no network requests', but wrapper.py uses subprocess.run to invoke the Python script (this is a system call). The documentation references a log file path (/root/.openclaw/workspace/scripts/memory_backup.log) and generation of a Feishu notification file, yet memory_backup.py does not write a notification file or a log to that path. These inconsistencies broaden the agent's allowed behavior compared to what's promised in the docs.
Install Mechanism
No install spec; code is shipped with the skill and requires only python3. No downloads or archives are fetched at install time, which is low-risk.
Credentials
The skill requests no environment variables or external credentials. File operations are confined to a single workspace path (~/.openclaw/workspace). This is proportionate to the stated function.
Persistence & Privilege
always is false and the skill does not request persistent elevated privileges or modify other skill configurations. It is user-invocable and can be scheduled externally via cron; that is appropriate for a scheduled backup utility.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install memory-compact - 安装完成后,直接呼叫该 Skill 的名称或使用
/memory-compact触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.5
memory-compact v1.0.5
- Added detailed security certification section, highlighting no external risks and safe operation scope
- Enhanced documentation on workflow, configuration, and usage with improved formatting and clarity
- Clarified that all file operations are restricted to the workspace directory
- README.md file added for user guidance
v1.0.3
- Added memory_backup.py script to the skill.
- Updated usage instructions in SKILL.md with new manual run methods, including path changes.
- Provided both wrapper and direct script execution options in documentation.
- No breaking changes; existing features and workflow remain unchanged.
v1.0.2
Version 1.0.2 of memory-compact
- Fix some security issues.
- Documentation and skill description remain unchanged.
v1.0.0
Initial release of memory-compact skill:
- Automatically compresses and backs up daily memory logs, extracting 2–3 key points each day.
- Runs every morning at 6:30 AM Beijing time (via cron).
- Extracted key points are recorded in MEMORY.md in a concise format.
- Original log files are moved to a backup directory after processing.
- Sends daily Feishu notification with summary and backup details.
- Allows customization of extraction keywords by editing the script.
元数据
常见问题
memory-compact 是什么?
每日记忆自动压缩备份和关键点提取,每天早上 6:30 运行. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 367 次。
如何安装 memory-compact?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install memory-compact」即可一键安装,无需额外配置。
memory-compact 是免费的吗?
是的,memory-compact 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
memory-compact 支持哪些平台?
memory-compact 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 memory-compact?
由 GarryFan-AI(@garryfan-ai)开发并维护,当前版本 v1.0.5。
推荐 Skills