记忆保管者
将所有重要的代理上下文(MEMORY.md、memory/*.md、AGENTS.md、SOUL.md 等)复制并快照到专用的归档目录或仓库中。当你希望在进行维护、从损坏中恢复或迁移到另一台主机之前备份记忆、上下文或配置文件时,请使用此技能。
作者:CrimsonDevil333333 · 最新版本:1.0.1
收藏:0 · 下载:1.7k
说明文档
# Memory Keeper Memory Keeper is a simple CLI that copies the critical OpenClaw context files (daily memory logs, DESCRIPTION.md, personality documents, heartbeat reminders) into a safe archive destination and optionally commits/pushes them to a configured git repo. It keeps the same file layout so you can restore or inspect the history without grabbing the whole workspace. ## Features - **Snapshots**: Copies `memory/*.md`, `MEMORY.md`, `AGENTS.md`, `SOUL.md`, `USER.md`, `TOOLS.md`, `HEARTBEAT.md`, and optional extras into the archive path while preserving directory structure. - **Git-friendly**: If the target archive is a git repo, Memory Keeper can initialize it, create commits, and push changes to your remote branch (configurable via CLI flags). - **Portable**: Works on any platform; just point `--workspace` to a workspace root containing those files. ## Get started ```bash python3 skills/memory-keeper/scripts/memory_sync.py --target ~/clawdy-memories --commit --message "Sync up" --remote https://github.com/your-org/clawdy-memories.git --push ``` See `references/usage.md` for configuration tips, automation recipes, and a troubleshooting guide. ## Resources - **GitHub:** https://github.com/CrimsonDevil333333/memory-keeper - **ClawHub:** https://www.clawhub.ai/skills/memory-keeper