# Compress old dailies
tar -czf memory/archive/2026-01.tar.gz memory/2026-01-*.md
# Generate monthly summary
node scripts/summarize-month.js 2026-01
2) OpenClaw 执行提示词(自动版)
## Weekly Memory Archive
Every Sunday:
1. Find memory files >30 days old
2. Generate monthly summary
3. Compress daily files
4. Move to archive/
5. Update MEMORY.md with summary link
6. Git commit archive
Retention:
- Keep last 30 days as individual files
- Monthly summaries for older
- Yearly summaries after 12 months
Run npx skillmds@latest add yangyuchen-work/weekly-memory-archive in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
每周记忆归档 It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
YangYuChen-Work (@yangyuchen-work) published this skill. Their other Agent Skills are listed on their SkillMD profile.