Install
openclaw skills install knowledge-syncReal-time knowledge base synchronization for AI assistants. Supports inotifywait file monitoring, Git auto-push/pull, Nutstore sync, and multi-device consist...
openclaw skills install knowledge-sync核心原则: Text > Brain,文件 > 记忆,同步 > 备份
# 启用实时同步服务
systemctl --user enable sync-realtime.service
systemctl --user start sync-realtime.service
# 每 5 分钟 Git push
*/5 * * * * /path/to/git-auto-push.sh
# 每小时 Git pull
0 * * * * cd /path/to/workspace && git pull origin main --rebase
knowledge-sync/
├── SKILL.md # 主文档
├── README.md # 项目说明
├── scripts/
│ ├── sync-realtime.sh # 实时同步脚本
│ ├── git-auto-push.sh # Git 自动推送
│ └── git-auto-pull.sh # Git 自动拉取
└── docs/
├── QUICKSTART.md # 快速上手
└── sync-guide.md # 同步指南
服务器 Workspace → 坚果云实时监听 → 本地同步 → Gitee → Mac Obsidian
3-10 秒 实时 ≤5 分钟 ≤5 分钟
总延迟: 5-10 分钟(主要等待 Git 推送周期)
# 启动实时同步服务
systemctl --user start sync-realtime.service
# 查看状态
systemctl --user status sync-realtime.service
# 手动推送
./git-auto-push.sh
# 或定时执行
*/5 * * * * ./git-auto-push.sh
# Mac 端拉取
cd ~/Obsidian-MKH/我的知识/OpenClaw
git pull origin main
WATCH_DIRS=(
"/path/to/workspace/articles"
"/path/to/workspace/memory"
"/path/to/workspace/projects"
"/path/to/workspace/docs"
"/path/to/workspace/scripts"
"/path/to/workspace/learnings"
)
EXCLUDE_PATTERN="\\.(log|tmp|swp|pyc)$|node_modules|__pycache__|\\.git"
| 指标 | 正常值 | 警告值 |
|---|---|---|
| 同步延迟 | <10 秒 | >30 秒 |
| Git push 间隔 | 5 分钟 | >10 分钟 |
| Git pull 间隔 | 1 小时 | >2 小时 |
| 冲突次数 | 0 | >1/周 |
维护者: 虾球 🦐
许可: MIT
状态: 生产环境运行中