360 Secure SkillHub
360 安全技能中心

Memory Keeper

Memory Keeper 通过 Python CLI 将工作区的 MEMORY.md、memory/*.md、AGENTS.md、SOUL.md、USER.md、TOOLS.md、HEARTBEAT.md 等上下文文件按原目录结构复制到归档路径,并可在目标 git 仓库中初始化、提交、推送到远端(由 --commit/--push/--remote 控制)。

crimsondevil333333
crimsondevil333333
热度 67.14
最近更新 2026-05-18 11:57:09
分类:知识依赖:代码执行 / 读写文件 / 第三方 API应用场景:笔记整理 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add memory-keeper
Metadata
name
memory-keeper
description
Copy and snapshot all important agent context (MEMORY.md, memory/*.md, AGENTS.md, SOUL.md, etc.) into a dedicated archive directory or repo. Use this skill when you want to back up your memories, context, or configuration files in preparation for maintenance, corruption recovery, or transferring to another host.

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

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