Implements a complete file-based memory architecture that persists across OpenClaw sessions. Agents wake up with full context instead of starting from zero.
When this skill triggers, the agent should:
./scripts/install.ps1 -WorkspacePath <workspace>./scripts/install.sh -WorkspacePath <workspace>MEMORY.md, HEARTBEAT.md, memory/ directory, templates, cron configsMEMORY.md — curated long-term memoryHEARTBEAT.md — periodic check routinesmemory/cron-inbox.md — cross-session message busmemory/heartbeat-state.json — state trackingmemory/YYYY-MM-DD.md — today's daily notes./scripts/setup-cron.ps1 or ./scripts/setup-cron.shtext
workspace/
|-- MEMORY.md # Curated long-term memory
|-- HEARTBEAT.md # Periodic check routines
|-- memory/
| |-- YYYY-MM-DD.md # Daily raw logs
| |-- cron-inbox.md # Cross-session messages
| |-- heartbeat-state.json # Timestamps
| |-- diary/ # Personal reflections
| |-- platform-posts.md # External post tracking
| └── strategy-notes.md # Adaptive playbook
MEMORY.md — who you are, operator context, prioritiesmemory/YYYY-MM-DD.md (today + yesterday) — recent contextmemory/cron-inbox.md — messages from other sessionsWrite everything significant to memory/YYYY-MM-DD.md:
## HH:MM -- Brief titleThe heartbeat script ( scripts/heartbeat-check.ps1 or .sh) runs periodically and:
memory/cron-inbox.md entries into daily notesmemory/heartbeat-state.json with timestampsThe nightly cron ( scripts/memory-extract.ps1 or .sh) at 23:00:
MEMORY.md under a dated "Daily Extracts" section## HH:MM -- What happenedMEMORY.md may contain operator-specific info — only load in trusted (direct) sessionsEdit scripts/memory-extract.ps1 (or .sh) $significanceKeywords array:
Edit HEARTBEAT.md and scripts/heartbeat-check.* to add custom periodic checks:
Edit scripts/setup-cron.ps1 or scripts/setup-cron.sh:
Agent still forgets between sessions:
Cron inbox not processing:
./scripts/setup-cron.*)Memory extraction not running:
All templates live in templates/:
MEMORY.md — Long-term memory structureHEARTBEAT.md — Periodic routinesdaily-notes.md — Daily log formatcron-inbox.md — Cross-session message formatheartbeat-state.json — State tracking JSONplatform-posts.md — External post trackingstrategy-notes.md — Adaptive playbookCopy these during installation; do not modify originals.
Scripts provided for both PowerShell (Windows) and Bash (Linux/macOS):
*.ps1 — PowerShell scripts*.sh — Bash scriptsAlways check both versions exist when editing.
ScriptPurposeinstall.ps1 / install.shOne-command setupsetup-cron.ps1 / setup-cron.shConfigure automated cron jobsmemory-extract.ps1 / memory-extract.shNightly extraction from daily notesheartbeat-check.ps1 / heartbeat-check.shPeriodic inbox processing
All scripts support -WorkspacePath for custom directories and -DryRun for preview.