← 返回 Skills 市场
balukov

Memory Sleep — Lightweight Consolidation

作者 Ivan Balukov · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
128
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install memory-sleep
功能描述
Lightweight memory consolidation for OpenClaw agents. Reviews recent daily memory files (`memory/*.md`), extracts durable knowledge, and merges it into `MEMO...
使用说明 (SKILL.md)

\r \r

Sleep — Lightweight Memory Consolidation for OpenClaw\r

\r memory-sleep is a small, conservative skill for agents that keep:\r

  • daily notes in memory/YYYY-MM-DD.md\r
  • long-term knowledge in MEMORY.md\r \r It does not introduce extra indexes, dashboards, archives, or custom memory schemas.\r Its job is simple: keep MEMORY.md fresh while daily files remain raw journals.\r \r

Use When\r

\r

  • User says dream\r
  • User asks to consolidate memory\r
  • A nightly cron runs the skill\r
  • Daily memory files are piling up and MEMORY.md is getting stale\r \r

Goals\r

\r

  • Keep the existing OpenClaw-style memory structure\r
  • Distill durable facts from recent journals\r
  • Correct stale information in MEMORY.md\r
  • Avoid over-editing or inventing new structure\r \r

Inputs\r

\r

  • MEMORY.md\r
  • memory/YYYY-MM-DD.md files\r \r

Outputs\r

\r

  • Updated MEMORY.md\r
  • Optional short run note appended to today's daily file\r \r

Consolidation Flow\r

\r

1. Orient\r

\r

  1. Read MEMORY.md\r
  2. List files in memory/\r
  3. Focus on recent daily files first\r \r

2. Scan Recent Daily Files\r

\r Default window: last 7 days.\r \r Extract only durable items such as:\r

  • preferences\r
  • decisions\r
  • recurring facts\r
  • important project context\r
  • corrections to stale memory\r \r Ignore or down-rank:\r
  • routine acknowledgements\r
  • temporary chatter\r
  • one-off noise with no lasting value\r \r

3. Merge Conservatively into MEMORY.md\r

\r Use surgical edits only.\r \r Allowed operations:\r

  • Add new durable facts\r
  • Correct stale facts with newer confirmed info\r
  • Deduplicate overlapping entries\r
  • Prune clearly obsolete items when confidence is high\r
  • Absolutize relative dates where useful\r \r Do not:\r
  • rewrite the whole file unnecessarily\r
  • create a new memory system\r
  • add bureaucratic structure unless the file already uses it\r \r

4. Optional Journal Marking\r

\r For older files already consolidated, optionally prepend a short HTML comment such as:\r \r

\x3C!-- consolidated to MEMORY.md on YYYY-MM-DD -->\r
```\r
\r
Never delete journal files.\r
\r
### 5. Report Briefly\r
\r
Return a short summary like:\r
\r
```text\r
🌙 Dream complete\r
- Scanned N daily files\r
- MEMORY.md: +N added / ~N corrected / -N pruned\r
```\r
\r
## Rules\r
\r
- Prefer the existing workspace memory architecture\r
- `MEMORY.md` is the primary long-term memory output\r
- Daily files remain journals, not databases\r
- Be conservative when removing information\r
- Avoid leaking secrets into reports or memory summaries\r
- If logging the run, keep it short\r
\r
## Recommended Cron\r
\r
Nightly example:\r
\r
```text\r
0 3 * * *\r
```\r
\r
Example job message:\r
\r
```text\r
Execute dream skill: consolidate memory\r
```\r
\r
## Design Principle\r
\r
This skill is intentionally minimal.\r
\r
It is for users who want:\r
- lightweight consolidation\r
- compatibility with default OpenClaw memory habits\r
- no imposed sidecar files unless they choose to add them later\r
\r
Think of it as a careful editor, not a memory framework.
安全使用建议
This skill is coherent and lightweight: it will read your daily notes and update MEMORY.md, and may prepend a small comment to consolidated daily files. Before enabling it: (1) ensure MEMORY.md and your daily notes don't contain secrets you don't want auto-edited or consolidated; (2) make a backup or use version control so you can review its edits; (3) consider running it manually a few times to review outputs before allowing autonomous/nightly runs; (4) if you prefer explicit control, disable autonomous invocation or run it only on demand.
功能分析
Type: OpenClaw Skill Name: memory-sleep Version: 1.0.0 The memory-sleep skill is a text-processing utility designed to consolidate daily journal entries into a long-term memory file. The instructions in SKILL.md are limited to reading and writing local markdown files within the agent's workspace and include explicit safety guidelines such as avoiding secret leakage and not deleting source files. There are no indicators of data exfiltration, malicious execution, or unauthorized persistence.
能力评估
Purpose & Capability
The skill claims to consolidate daily 'memory/*.md' files into 'MEMORY.md' and the instructions only require reading those files and updating MEMORY.md (optionally prepending a comment to daily files). No unrelated binaries, credentials, or installs are requested.
Instruction Scope
Instructions explicitly limit activity to reading memory/YYYY-MM-DD.md files and MEMORY.md, merging durable facts, and optionally adding an HTML comment to consolidated daily files. This is coherent with the stated purpose. Note: the skill writes to MEMORY.md and may modify daily files (by prepending comments), so runs will change repository state; the SKILL.md does advise conservatism and to avoid leaking secrets, but users should still be aware of potential accidental edits to sensitive content.
Install Mechanism
Instruction-only skill with no install spec and no code files. This is lowest-risk in terms of installation because nothing is downloaded or written to disk by an installer.
Credentials
No environment variables, credentials, or config paths are required. The declared inputs/outputs are limited to workspace memory files, which fits the stated task.
Persistence & Privilege
always is false and autonomous invocation is allowed (the platform default). The skill does write to workspace files but does not request persistent platform privileges or alter other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install memory-sleep
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /memory-sleep 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Lightweight memory consolidation. Scans daily logs, merges into MEMORY.md. No extra files, no framework — just a careful editor for your agent's memory.
元数据
Slug memory-sleep
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Memory Sleep — Lightweight Consolidation 是什么?

Lightweight memory consolidation for OpenClaw agents. Reviews recent daily memory files (`memory/*.md`), extracts durable knowledge, and merges it into `MEMO... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 128 次。

如何安装 Memory Sleep — Lightweight Consolidation?

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

Memory Sleep — Lightweight Consolidation 是免费的吗?

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

Memory Sleep — Lightweight Consolidation 支持哪些平台?

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

谁开发了 Memory Sleep — Lightweight Consolidation?

由 Ivan Balukov(@balukov)开发并维护,当前版本 v1.0.0。

💬 留言讨论