persistent-memory-hygiene
Keeps OpenClaw's memory store clean, structured, and useful. Use at session end and during periodic maintenance.
How do I install this agent skill?
npx skills add https://github.com/archieindian/openclaw-superpowers --skill persistent-memory-hygieneIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is designed to organize and maintain the agent's memory files on a daily schedule. It is safe for its intended purpose, although it possesses a minor risk common to tools that process historical logs where malicious data saved in past sessions could theoretically influence the agent's behavior during cleanup.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/archieindian/openclaw-superpowers/persistent-memory-hygiene">View persistent-memory-hygiene on skillZs</a>