← Back to Skills Marketplace
garryfan-ai

memory-compact

by GarryFan-AI · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ⚠ suspicious
367
Downloads
1
Stars
2
Active Installs
4
Versions
Install in OpenClaw
/install memory-compact
Description
每日记忆自动压缩备份和关键点提取,每天早上 6:30 运行
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install memory-compact
  3. After installation, invoke the skill by name or use /memory-compact
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug memory-compact
Version 1.0.5
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 4
Frequently Asked Questions

What is memory-compact?

每日记忆自动压缩备份和关键点提取,每天早上 6:30 运行. It is an AI Agent Skill for Claude Code / OpenClaw, with 367 downloads so far.

How do I install memory-compact?

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

Is memory-compact free?

Yes, memory-compact is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does memory-compact support?

memory-compact is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created memory-compact?

It is built and maintained by GarryFan-AI (@garryfan-ai); the current version is v1.0.5.

💬 Comments