← Back to Skills Marketplace
balukov

Memory Sleep — Lightweight Consolidation

by Ivan Balukov · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
128
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install memory-sleep
Description
Lightweight memory consolidation for OpenClaw agents. Reviews recent daily memory files (`memory/*.md`), extracts durable knowledge, and merges it into `MEMO...
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install memory-sleep
  3. After installation, invoke the skill by name or use /memory-sleep
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug memory-sleep
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 128 downloads so far.

How do I install Memory Sleep — Lightweight Consolidation?

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

Is Memory Sleep — Lightweight Consolidation free?

Yes, Memory Sleep — Lightweight Consolidation is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Memory Sleep — Lightweight Consolidation support?

Memory Sleep — Lightweight Consolidation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Memory Sleep — Lightweight Consolidation?

It is built and maintained by Ivan Balukov (@balukov); the current version is v1.0.0.

💬 Comments