persistent-memory-hygiene
Persistent Memory Hygiene
State file: ~/.openclaw/skill-state/persistent-memory-hygiene/state.yaml
Memory Structure
memory/
YYYY-MM-DD.md # Daily notes - raw, comprehensive
MEMORY.md # Long-term - curated, distilled
When to Write
Write to memory/YYYY-MM-DD.md when:
- Completing a significant task
- Making a decision with reasoning
- Encountering a notable error and its fix
- At checkpoints on long tasks
Write to MEMORY.md when:
- Something is worth remembering across months
- A user preference has been established
- A pattern has been confirmed
Session Closing Routine
## [HH:MM] Session End
- Completed: [what was finished]
- In progress: [what was started]
- Next: [what to do next session]
- Decisions: [choices made and why]
After writing, update state: last_cleaned_at, memory_line_count, daily_file_count, last_daily_file, status: done.
Hygiene Rules
- Daily files: write raw, append-only, never edit old entries
- MEMORY.md: review periodically, remove stale entries, keep under 500 lines
Cron Wakeup Behavior
On 11pm wakeup:
- Read state file
- If
last_cleaned_atis today's date: skip (already ran) - Otherwise: run Session Closing Routine, update state
More from archieindian/openclaw-superpowers
heartbeat-governor
Enforces per-skill execution budgets for scheduled cron skills — pauses runaway skills that exceed their token or wall-clock budget before they drain your monthly API allowance.
25context-window-management
Prevents context overflow on long-running OpenClaw sessions. Use when approaching context limits.
25fact-check-before-trust
Triggers a secondary verification pass for any agent output containing factual claims, numbers, dates, or named entities before the output is acted on
19long-running-task-management
Breaks multi-hour tasks into checkpointed stages with resume capability. Use when a task is expected to take more than 30 minutes or multiple sessions.
19agent-self-recovery
Detects when the agent is stuck in a loop and escapes systematically. Use when you notice repeated failures or loss of direction.
18skill-vetting
Reviews a ClawHub skill's source code for security risks before installation. Use before installing any new skill.
18