File contents Git Memory Skill
🧠 AI 记忆自动版本管理 - 支持 OpenClaw 和 Hermes
描述
用 Git 版本控制管理 AI 记忆系统,解决 AI 失忆问题。
支持全局记忆、子系统记忆、会话隔离、自动提交、远程同步。
支持平台
平台
实现方式
工具
OpenClaw
TypeScript Hooks
自动触发
Hermes
Python Provider
gitmemory_* tools
激活时机
OpenClaw
会话开始时自动激活(读取最新记忆)
用户提到"记住这个"、"别忘了"、"记忆"等关键词
交易/操作完成后自动记录
会话结束时自动合并
Hermes
配置 memory.provider: gitmemory 后自动激活
提供 gitmemory_status/commit/push/pull 工具
会话结束时自动 commit + push
核心功能
记忆版本控制 - 所有记忆变更可追溯
会话隔离 - 每个会话独立分支
自动提交 - AI 自动写 commit message
冲突检测 - 多会话冲突显式提示
远程同步 - 推送到 GitHub/Gitee 备份
多设备同步 - 共享记忆仓库
安装方法
OpenClaw
bash <(curl -fsSL https://raw.githubusercontent.com/javamagong/claw-git-memory-skill/main/quick-install.sh)
Hermes
git clone git@github.com:javamagong/claw-git-memory-skill.git
cd claw-git-memory-skill
bash hermes/install.sh ~/my-claw-memory
配置
OpenClaw (TOOLS.md)
git-memory:
repo: /workspace/projects/workspace
remote: git@github.com:yourname/repo.git
auto-commit: true
Hermes (~/.hermes/config.yaml)
memory:
provider: gitmemory
repo: ~/my-claw-memory
auto_commit: true
auto_push: true
Hermes 工具
工具
说明
gitmemory_status
检查同步状态
gitmemory_commit
提交记忆变更
gitmemory_push
推送到远程
gitmemory_pull
拉取最新记忆
作者
JavaMaGong & A小二
版本
2.1.0
许可证
MIT
1 --- 2 name: claw-git-memory-skill 3 description: Git Memory Skill 4 --- 5 # Git Memory Skill 6 7 > 🧠 AI 记忆自动版本管理 - 支持 OpenClaw 和 Hermes 8 9 ## 描述 10 11 用 Git 版本控制管理 AI 记忆系统,解决 AI 失忆问题。 12 支持全局记忆、子系统记忆、会话隔离、自动提交、远程同步。 13 14 ## 支持平台 15 16 | 平台 | 实现方式 | 工具 | 17 |------|---------|------| 18 | OpenClaw | TypeScript Hooks | 自动触发 | 19 | Hermes | Python Provider | gitmemory_* tools | 20 21 ## 激活时机 22 23 ### OpenClaw 24 - 会话开始时自动激活(读取最新记忆) 25 - 用户提到"记住这个"、"别忘了"、"记忆"等关键词 26 - 交易/操作完成后自动记录 27 - 会话结束时自动合并 28 29 ### Hermes 30 - 配置 `memory.provider: gitmemory` 后自动激活 31 - 提供 `gitmemory_status/commit/push/pull` 工具 32 - 会话结束时自动 commit + push 33 34 ## 核心功能 35 36 1. **记忆版本控制** - 所有记忆变更可追溯 37 2. **会话隔离** - 每个会话独立分支 38 3. **自动提交** - AI 自动写 commit message 39 4. **冲突检测** - 多会话冲突显式提示 40 5. **远程同步** - 推送到 GitHub/Gitee 备份 41 6. **多设备同步** - 共享记忆仓库 42 43 ## 安装方法 44 45 ### OpenClaw 46 ```bash 47 bash <(curl -fsSL https://raw.githubusercontent.com/javamagong/claw-git-memory-skill/main/quick-install.sh) 48 ``` 49 50 ### Hermes 51 ```bash 52 git clone git@github.com:javamagong/claw-git-memory-skill.git 53 cd claw-git-memory-skill 54 bash hermes/install.sh ~/my-claw-memory 55 ``` 56 57 ## 配置 58 59 ### OpenClaw (TOOLS.md) 60 ```yaml 61 git-memory: 62 repo: /workspace/projects/workspace 63 remote: git@github.com:yourname/repo.git 64 auto-commit: true 65 ``` 66 67 ### Hermes (~/.hermes/config.yaml) 68 ```yaml 69 memory: 70 provider: gitmemory 71 repo: ~/my-claw-memory 72 auto_commit: true 73 auto_push: true 74 ``` 75 76 ## Hermes 工具 77 78 | 工具 | 说明 | 79 |------|------| 80 | `gitmemory_status` | 检查同步状态 | 81 | `gitmemory_commit` | 提交记忆变更 | 82 | `gitmemory_push` | 推送到远程 | 83 | `gitmemory_pull` | 拉取最新记忆 | 84 85 ## 作者 86 87 JavaMaGong & A小二 88 89 ## 版本 90 91 2.1.0 92 93 ## 许可证 94 95 MIT
javamagong/claw-git-memory-skill/tree/main/ commit b0a36925c3
Frequently asked questions How do I install the Claw Git Memory Skill skill? Run npx skillmds@latest add javamagong/claw-git-memory-skill 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.
What does the Claw Git Memory Skill skill do? Git Memory Skill It is listed under Coding & Dev Tools on SkillMD.
Is Claw Git Memory Skill safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Claw Git Memory Skill? 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.
Is Claw Git Memory Skill free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Claw Git Memory Skill? javamagong (@javamagong) published this skill. Their other Agent Skills are listed on their SkillMD profile.