首页龙虾技能列表 › Memory Organizer — 技能工具

Memory Organizer — 技能工具

v1.2.1

[自动翻译] Organize, compress, and curate OpenClaw memory without polluting permanent memory. Use when the user wants to compress memory files, clean dated memor...

2· 660·5 当前·5 累计
by @codeblackhole1024 (codeblackhole)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/11
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
high confidence
The skill's behavior matches its description (organizing and compressing local memory files) but it reads an undeclared environment variable (OPENCLAW_WORKSPACE) and performs destructive file operations in the user's workspace — review and back up your data before use.
评估建议
This skill appears to do what it says (organize and compress local memory markdown files), but it will modify your files in-place (creates .bak and .discarded files, overwrites originals when compressing) and reads the OPENCLAW_WORKSPACE environment variable even though no env vars were declared. Before installing or running: 1) review memory-organizer.js (it's included) to confirm there are no network calls or unexpected behavior (there are none obvious, but inspect the whole file). 2) Set OPEN...
详细分析 ▾
用途与能力
Name, README, SKILL.md and the included JS file are coherent: the code implements scanning, compressing, classifying, promoting and discarding markdown memory files in a two-layer model as described. The required capabilities (file read/write in a workspace memory directory) align with the stated purpose.
指令范围
SKILL.md instructs the agent to validate paths, operate only inside the workspace memory files, and preserve backups. The code implements path checks (isPathSafe, isFilenameSafe), creates backups (.bak, .discarded), and limits operations to the workspace memory directory — the runtime instructions and code stay within the declared functional scope.
安装机制
There is no install spec (instruction-only) which is low-risk, but the package includes an executable Node.js script (memory-organizer.js). The README suggests running the script directly (node memory-organizer.js). Because code will be executed on the user's machine, the user should review the script before running it even though there is no remote install/download.
凭证需求
The skill reads process.env.OPENCLAW_WORKSPACE to determine workspace location but SKILL.md / registry metadata do not declare required environment variables. This is a mismatch: the script will fall back to ~/.openclaw/workspace-main if the env var is not set, but users should be aware the script uses that env var and will operate on local files. No network credentials are requested, but undeclared env access is a notable inconsistency.
持久化与权限
The skill is not always-enabled and does not request elevated platform privileges. However it performs file modifications (compress, rename to .discarded, write .bak backups) inside the user's workspace. That is expected for this functionality but is a persistent effect on local files; the user should ensure backups and run cautiously.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.2.12026/3/3

Refined memory organization to keep MEMORY.md clean and durable. Daily memory stays in dated files, while only long-term facts are promoted to permanent memory. Updated merge behavior and documentation to prevent permanent memory bloat.

● 无害

安装命令 点击复制

官方npx clawhub@latest install memory-organizer
镜像加速npx clawhub@latest install memory-organizer --registry https://cn.clawhub-mirror.com

技能文档

Organize memory with a strict two-layer model.

Core Rule

Treat MEMORY.md as a small permanent index.

Do not copy every dated memory file into MEMORY.md. Do not turn daily logs into permanent memory. Keep historical details inside memory/YYYY-MM-DD.md files unless a fact is clearly long-lived and should be loaded in every new session.

Memory Model

1. Permanent memory: MEMORY.md

Keep only information that is worth reading every session:

  • Stable user preferences
  • Durable identity or relationship facts
  • Long-lived project configuration
  • Important workspace rules
  • Cross-session todos that are still active
  • Reusable operational facts that will matter again

This file should stay short, clean, deduplicated, and easy to scan.

2. Daily memory: memory/YYYY-MM-DD.md

Keep session-specific and historical detail here:

  • Daily work logs
  • Intermediate reasoning summaries
  • One-off experiments
  • Temporary debugging notes
  • Daily outcomes and progress notes
  • Detailed records that are useful later, but not required every session

When compressing or organizing memory, preserve these files instead of moving everything into permanent memory.

Decision Rule: Promote or Keep Local

Before writing anything into MEMORY.md, ask:

  • Will this likely matter across many future sessions?
  • Does it need to be loaded immediately at session start?
  • Is it stable enough that it will not create clutter soon?

Only promote the item when the answer is clearly yes.

If the item is useful mainly as history, context, or audit trail, keep it in the dated file.

What to Promote

Promote only concise bullets such as:

  • User prefers short paragraphs and punchy style
  • Workspace path or permission boundary that must always be respected
  • Current active project rule that affects future execution
  • Ongoing todo that spans multiple days

What Not to Promote

Do not promote these by default:

  • Full daily summaries
  • Per-day changelogs
  • Detailed task execution logs
  • Debugging transcripts
  • Temporary ideas
  • Repeated notes already represented in MEMORY.md
  • Every published result or status check

Compression Workflow

When the user asks to compress or organize memory:

  • Scan MEMORY.md and dated memory files separately.
  • Clean and deduplicate MEMORY.md first.
  • Compress dated files in place.
  • Preserve useful historical notes inside their original memory/YYYY-MM-DD.md files.
  • Promote only a very small set of durable facts into MEMORY.md.
  • If unsure whether something is permanent, leave it in the dated file.

Merge Workflow

If using a merge or promotion action:

  • Merge selectively, not wholesale.
  • Extract only durable bullets.
  • Skip daily summaries, logs, and verbose headings.
  • Avoid adding duplicate sections for each date.
  • Prefer updating an existing permanent section over appending a new date-based block.

Quality Bar

MEMORY.md should remain:

  • Short enough for routine startup loading
  • Structured by durable topic, not by date
  • Free from noisy history
  • Focused on must-know information

If a choice would make MEMORY.md longer but not more reusable, keep that content in the dated memory file instead.

Safety

  • Validate paths before file operations.
  • Operate only inside the workspace memory files.
  • Prefer backup before destructive compression.
  • When deleting or discarding memory, preserve recoverable backups when possible.
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务