memory-maintenance
Memory maintenance and update procedures for OpenClaw agents - how to properly update MEMORY.md and USER PROFILE files during session resets
- License 许可
- MIT
- 最近更新
- 2026-04-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- memory-maintenance
- tags
- [ "memory", "maintenance", "session-reset", "openclaw" ]
- description
- Memory maintenance and update procedures for OpenClaw agents - how to properly update MEMORY.md and USER PROFILE files during session resets
03 SKILL.md 正文
Memory Maintenance Skill
Purpose
This skill provides guidance on how to properly update memory files (MEMORY.md and USER PROFILE) during session resets or when important information needs to be preserved.
When to Use
- During session reset notifications
- When user shares important preferences or information
- After completing significant tasks or learning lessons
- When discovering new patterns about user behavior
Memory Structure
MEMORY.md (Long-term Memory)
- Loaded ONLY in main sessions (direct chats with your human)
- Contains curated memories, significant events, lessons learned
- Should be updated periodically with distilled wisdom from daily logs
USER PROFILE (User Information)
- Basic user information and preferences
- Context about user's technical skills, location, habits
- Should be updated when new information is learned about the user
Daily Notes (memory/YYYY-MM-DD.md)
- Raw logs of daily activities
- Created automatically in
memory/directory - Source material for updating MEMORY.md
Update Procedures
During Session Reset
- Review the conversation for important facts, preferences, or decisions
- Check if anything needs to be added to MEMORY.md
- Update USER PROFILE if new user information was learned
- Consider creating a skill if a reusable workflow was discovered
What to Save
Save to MEMORY.md:
- Significant technical decisions or fixes
- User preferences discovered (e.g., "prefers concise answers")
- Important events (first conversation, major system changes)
- Lessons learned from mistakes or successes
- System status updates (e.g., "OpenClaw gateway needs pairing")
Save to USER PROFILE:
- User's name, pronouns, timezone
- Technical skills and preferences
- Communication style preferences
- Context about user's environment
Do NOT save:
- Sensitive personal information (unless explicitly asked to remember)
- Temporary or trivial details
- Information already captured in memory
Example Updates
Adding a New Event
重要事件时间线 > 2026年4月9日: **会话重置**: 在系统自动重置前进行简短问候交流
Updating User Preferences
用户偏好与习惯: **回复风格**: 偏好简洁明了的回答,不喜欢冗长的解释
Recording System Status
系统状态: **可用技能**: 当前有102个技能,涵盖17个类别(包括OpenClaw导入技能、MLOps、开发、研究等)
Best Practices
- Be selective: Only save what's truly important for future sessions
- Use consistent formatting: Follow the existing markdown structure
- Add dates: Always include dates for timeline entries
- Categorize properly: Use appropriate sections (基本信息, 重要事件时间线, 用户偏好与习惯, 系统状态)
- Review periodically: Use heartbeats to review and clean up old memory entries
Verification
After updating memory files:
- Check that the new entries are properly formatted
- Ensure no duplicate information was added
- Verify that sensitive information wasn't accidentally included
- Test that the information would be useful in a future session
Related Skills
- proactive-agent - For anticipatory memory management
- self-improving-agent - For learning from experience
- memos-sync - For synchronizing memory to central database
04 同仓库更多 Skills
webapp-testing
To test local web applications, write native Python Playwright scripts.
python-packaging
Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.
canvas-design
These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.
webapp-testing
To test local web applications, write native Python Playwright scripts.
slack-gif-creator
A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.
frontend-design
You are a frontend designer-engineer, not a layout generator.