Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Consolidate Agent Memory Dream Cycles

ASecurity

Cognitive memory architecture for OpenClaw agents — periodic dream cycles that consolidate daily logs into structured long-term memory with importance scoring, insights, and push notifications. Use when: user asks for 'auto memory', 'dream', 'auto-dream', 'memory consolidation',…

19 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentsgobash

Works with

cli

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill consolidate-agent-memory-dream-cycles --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Consolidate Agent Memory Dream Cycles?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Consolidate Agent Memory Dream Cycles
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-consolidate-agent-memory-dream-cycles/badge)](https://www.skillsdirectory.com/skills/rondoflow-consolidate-agent-memory-dream-cycles)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: consolidate-agent-memory-dream-cycles
description: "Cognitive memory architecture for OpenClaw agents — periodic dream cycles that consolidate daily logs into structured long-term memory with importance scoring, insights, and push notifications. Use when: user asks for 'auto memory', 'dream', 'auto-dream', 'memory consolidation',…"
category: "AI & Agents"
author: community
version: "4.0.4"
icon: bot
---

# OpenClaw Auto-Dream — Memory Consolidation System

Agent periodically "dreams" — scans daily logs, extracts key knowledge, consolidates into long-term memory, and sends a summary report to the user.

> **[MyClaw.ai](https://myclaw.ai)** — the best way to run your OpenClaw. A dedicated server running 24/7 with full code control, cron jobs, persistent memory, and one-click skill install.

## Core Files

| File | Purpose | Mutability |
|------|---------|------------|
| `MEMORY.md` | Structured long-term knowledge | Append, update |
| `memory/procedures.md` | Workflow preferences, tool usage | Append, update |
| `memory/episodes/*.md` | Project narratives | Append only |
| `memory/index.json` | Metadata index (v3.0 schema) | Rebuilt each dream |
| `memory/dream-log.md` | Dream report log | Append only |
| `memory/archive.md` | Summarized older entries | Append only |

Optional: LCM plugin (Working Memory layer). If not installed, prompt the user:
> "Recommended: install the LCM plugin for working memory: `openclaw plugins install @martian-engineering/lossless-claw`"

Do not auto-install plugins or modify config.

## Setup

### 0. First Dream (Run Immediately After Install)

After setup is complete, DO NOT wait for the cron schedule. Immediately run the First Dream:

1. Read `references/first-dream-prompt.md`
2. Follow every step — the user should see progress as it happens
3. This scans existing daily logs, consolidates them, and sends a before/after comparison report
4. The report shows the user exactly what Auto-Dream found and organized

If the user has existing daily logs, they'll see their scattered knowledge consolidated instantly.
If the instance is brand new, they'll see the memory architecture initialized and ready.

### 1. Initialize Files

```bash
mkdir -p memory/episodes
```

Ensure the following files exist (create from `references/memory-template.md` templates if missing):
- `memory/index.json`
- `memory/procedures.md`
- `memory/dream-log.md`
- `memory/archive.md`

### 2. Create Cron Job

```
name: "auto-memory-dream"
schedule: { kind: "cron", expr: "0 4 * * *", tz: "<user timezone>" }
payload: {
  kind: "agentTurn",
  message: "Run auto memory consolidation.\n\nRead skills/skills/openclaw-auto-dream/references/dream-prompt-lite.md and follow every step strictly.",
  timeoutSeconds: 600
}
sessionTarget: "isolated"
delivery: { mode: "announce" }
```

### 3. Verify

- [ ] Cron job created and enabled
- [ ] `MEMORY.md` exists with section headers
- [ ] `memory/index.json` exists
- [ ] `memory/procedures.md` exists
- [ ] `memory/dream-log.md` exists

## Dream Cycle Flow

Each dream runs in an isolated session (see `references/dream-prompt-lite.md`):

### Step 0: Smart Skip + Recall
Check if any unconsolidated daily logs exist in the last 7 days. All processed → still send a useful message: surface an old memory ("N days ago, you decided...") and show streak count. Never send a blank "nothing to do" message.

### Step 1: Collect
Read unconsolidated daily logs. Extract decisions, facts, progress, lessons, and todos.

### Step 2: Consolidate
Compare with MEMORY.md → append new content, update existing, skip duplicates. Write workflow preferences to procedures.md. Mark processed daily logs with `<!-- consolidated -->`.

### Step 2.8: Stale Thread Detection
Scan Open Threads for items stale >14 days. Include top 3 in notification with context.

### Step 3: Generate Report + Auto-Refresh Dashboard
Append to dream-log.md with change list + insights + suggestions. If dashboard.html exists, regenerate with latest data.

### Step 4: Notify with Growth Metrics
Send a consolidation report showing:
- Before → after comparison (entries, decisions, lessons)
- Cumulative growth ("142 → 145 entries, +2.1%")
- Dream streak count ("Dream #14")
- Milestones when hit (first dream, 7-day streak, 100 entries, etc.)
- Top 3 stale reminders (if any)
- Weekly summary on Sundays (week-over-week growth, biggest memories)

### Notification Principles
1. **Every notification must deliver value** — never send empty "nothing happened" messages
2. **Show growth, not just changes** — cumulative stats make the user feel the system is evolving
3. **Surface forgotten context** — stale thread reminders and old memory recalls create surprise and utility
4. **Celebrate milestones** — streak counts and entry milestones build habit and attachment

## Manual Triggers

| Command | Action |
|---------|--------|
| "Consolidate memory" / "Dream now" | Run full dream cycle in current session |
| "Memory dashboard" | Generate memory/dashboard.html |
| "Export memory" | User-initiated export of memory files to JSON (see migration guide) |

## Language Rules

All output uses the user's preferred language (from workspace settings).

## Safety Rules

1. **Never delete daily logs** — only mark with `<!-- consolidated -->`
2. **Never remove ⚠️ PERMANENT items** — user-protected markers
3. **Safe changes** — if MEMORY.md changes >30%, save .bak copy first
4. **Index safety** — save index.json.bak before each dream
5. **Privacy** — only consolidate information the user has already written in their own workspace files
6. **Scope** — only read and write files within the `memory/` directory and `MEMORY.md`

## Reference Files

- `references/first-dream-prompt.md` — **First Dream: post-install full scan with before/after report**
- `references/dream-prompt-lite.md` — **Compact prompt for daily cron use** (default)
- `references/dream-prompt.md` — Full prompt (for manual deep consolidation)
- `references/scoring.md` — Importance scoring, forgetting curve, health score algorithms
- `references/memory-template.md` — File templates (MEMORY.md, procedures, index.json, etc.)
- `references/dashboard-template.html` — HTML dashboard template
- `references/migration-cross-instance.md` — Cross-instance migration protocol
- `references/migration-v1-to-v2.md` — v1→v2 upgrade guide
- `references/migration-v2-to-v3.md` — v2→v3 upgrade guide

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →