Token导航 LogoToken导航TokenDH.com
开发可写文件clawhub未标认证来源可访问clear审计提醒

multi-device-sync-githubmulti device sync GitHub 开发

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

13,275

周安装

537

GitHub Stars

1

下载量

4,167
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:multi-device-sync-github(multi device sync GitHub 开发)
来源仓库:https://github.com/regulusz/multi-device-sync-github
安装命令:
openclaw skills install multi-device-sync-github
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install multi-device-sync-github

简介

围绕 GitHub 仓库、Issue 和 PR 提供协作辅助能力。

  • 适合查询项目状态、整理变更并生成可执行下一步。
  • 涉及写入操作时需确认 token 权限与仓库授权范围。
  • 安装命令:openclaw skills install multi-device-sync-github。
  • 注意区分只读与写入操作,避免越权访问私有仓库。

SKILL.md

name
multi-device-sync-github
description
Multi-device OpenClaw data synchronization using GitHub. Manages workspace data sync across multiple machines (Ubuntu, Mac, etc.) with automatic push on file changes, periodic pull, and conflict detection. Use when setting up or managing OpenClaw across multiple devices, configuring data synchronization, resolving sync conflicts, or adding new devices to the sync network.

Multi-Device Sync via GitHub

Synchronize OpenClaw workspace data across multiple machines using a private GitHub repository.

Features

  • Automatic push: File changes trigger immediate git commit + push (via inotifywait/fswatch)
  • Periodic pull: Configurable interval (default: 5 minutes) to pull remote changes
  • Conflict detection: Manual resolution required on conflicts
  • Multi-device support: Each device uses distinct file prefixes for memory files
  • Cross-platform: Works on Linux (inotifywait) and macOS (fswatch)
  • Selective sync: Choose which files to synchronize
  • Interactive setup: Guided installation with customization options

Architecture

Device A (Ubuntu) ◄────► GitHub Repo ◄────► Device B (Mac)
       │                      │                    │
   auto-push              central              auto-push
  periodic pull             hub               periodic pull

Prerequisites

Linux (Ubuntu/Debian)

sudo apt-get install -y git inotify-tools

macOS

brew install git fswatch

Quick Start

Interactive Installation (Recommended)

curl -fsSL https://raw.githubusercontent.com/RegulusZ/multi-device-sync-github/main/install.sh | bash

The installer will guide you through:

  1. Choose: First device (upload) or Add to existing sync (download)
  2. Enter your GitHub sync repo URL
  3. Name your device
  4. Select files to sync
  5. Configure sync interval

Manual Installation

# 1. Clone skill
git clone https://github.com/RegulusZ/multi-device-sync-github.git ~/openclaw-skills/multi-device-sync-github

# 2. Clone/create sync repo
git clone git@github.com:YOURNAME/openclaw_sync.git ~/openclaw-sync

# 3. Initialize
cd ~/openclaw-sync
~/openclaw-skills/multi-device-sync-github/scripts/sync-init.sh \
  --device-name mydevice \
  --repo-url "git@github.com:YOURNAME/openclaw_sync.git"

# 4. Start daemon
~/openclaw-skills/multi-device-sync-github/scripts/sync-daemon.sh start

How It Works

Symlink Architecture

The skill creates symlinks from your workspace to the sync repo:

~/.openclaw/workspace/
├── USER.md      → ~/openclaw-sync/USER.md (symlink)
├── MEMORY.md    → ~/openclaw-sync/MEMORY.md (symlink)
├── SOUL.md      → ~/openclaw-sync/SOUL.md (symlink)
├── skills/      → ~/openclaw-sync/skills/ (symlink)
└── memory/      → ~/openclaw-sync/memory/ (symlink)

When you edit a file in workspace, you're actually editing the sync repo file.

Auto-Push Flow

File changed in workspace
    ↓ (symlink)
File changed in sync repo
    ↓ (inotifywait/fswatch)
Wait 2 seconds (debounce)
    ↓
git add -A && git commit && git push

Periodic Pull

Every N minutes (configurable), the daemon pulls remote changes.

Configuration

Edit ~/.config/openclaw/sync-config.yaml:

repo_url: "git@github.com:YOURNAME/openclaw_sync.git"
sync_interval_minutes: 5
device_name: "ubuntu"
conflict_strategy: "notify"
auto_pull_on_start: true
auto_push_enabled: true

paths:
  sync:
    - "USER.md"
    - "MEMORY.md"
    - "SOUL.md"
    - "skills/"
    - "memory/"
  ignore:
    - "logs/"
    - "temp/"
    - "*.log"

Syncable Files

FileDescriptionRecommended
USER.mdUser profile (name, timezone, background)✅ Yes
MEMORY.mdLong-term memory and important context✅ Yes
SOUL.mdAI behavior rules and guidelines✅ Yes
skills/Installed skills and capabilities✅ Yes
memory/Daily logs and session records✅ Yes
TOOLS.mdLocal tool notes and configurationsOptional
IDENTITY.mdAI identity (name, vibe, emoji)Optional (different per device)

File Naming Convention

Memory files use device prefix to avoid conflicts:

memory/
├── ubuntu-2026-03-01.md      # Ubuntu device
├── macmini-2026-03-01.md     # Mac Mini device
└── laptop-2026-03-01.md      # Laptop device

Shared files (no prefix):

  • USER.md
  • MEMORY.md
  • SOUL.md

Commands

CommandDescription
sync-initInitialize git repo and config
sync-statusCheck sync status
sync-nowImmediate pull + push
sync-pullManual pull
sync-pushManual push
sync-resolveInteractive conflict resolution
sync-daemon.sh start/stop/restart/statusManage background sync

Conflict Resolution

When conflicts detected:

  1. Sync paused automatically
  2. Run sync-resolve to:

- View conflicting files - Choose: keep-local / keep-remote / merge-manual / view-diff

  1. Resume sync after resolution

Adding New Device

Option A: Interactive

curl -fsSL https://raw.githubusercontent.com/RegulusZ/multi-device-sync-github/main/install.sh | bash
# Select "Add to existing sync"

Option B: Manual

git clone git@github.com:YOURNAME/openclaw_sync.git ~/openclaw-sync
cd ~/openclaw-sync
~/openclaw-skills/multi-device-sync-github/scripts/sync-init.sh \
  --device-name NEWNAME \
  --repo-url "git@github.com:YOURNAME/openclaw_sync.git"
~/openclaw-skills/multi-device-sync-github/scripts/sync-daemon.sh start

Troubleshooting

See references/troubleshooting.md for common issues.

Security Note

Use a private GitHub repository to protect your personal data.

The following files may contain sensitive information:

  • MEMORY.md - May include IP addresses, service URLs
  • memory/ - Daily logs with potentially sensitive details

Files in This Skill

multi-device-sync-github/
├── SKILL.md                  # This file
├── README.md                 # GitHub README
├── LICENSE                   # MIT License
├── install.sh                # Interactive installer
├── _meta.json                # ClawHub metadata
├── scripts/
│   ├── sync-init.sh             # Initialize sync repo
│   ├── sync-daemon.sh           # Background sync (pull + push watcher)
│   ├── sync-push.sh             # Push changes to remote
│   ├── sync-pull.sh             # Pull changes from remote
│   ├── sync-status.sh           # Show sync status
│   ├── sync-now.sh              # Immediate sync
│   ├── sync-resolve.sh          # Conflict resolution
│   └── sync-notify           # Notification helper
└── references/
    └── troubleshooting.md    # Common issues

License

MIT License - See LICENSE for details.

Security & Safety

Default Settings (Safe by Default)

  • Auto-push disabled: auto_push_enabled: false by default
  • Confirmation prompts: Destructive operations require user confirmation
  • Selective git operations: Only configured files are committed

Installation Safety

Recommended (Safest):

git clone https://github.com/RegulusZ/multi-device-sync-github.git
cd multi-device-sync-github
./install.sh

Convenience (Review First):

# Download and review before executing
curl -fsSL https://raw.githubusercontent.com/RegulusZ/multi-device-sync-github/main/install.sh -o install.sh
cat install.sh  # Review the code
./install.sh

Data Protection

  • Automatic backups: Files are backed up before replacement
  • No external endpoints: Notifications are local-only
  • User control: All operations can be reviewed before execution

Permissions

The skill requires:

  • Read/write access to ~/.openclaw/workspace/
  • Git push access to your sync repository
  • No network access beyond GitHub

Enabling Auto-Push

After reviewing the behavior, enable auto-push:

# Edit config
nano ~/.config/openclaw/sync-config.yaml

# Change:
auto_push_enabled: true

Security & Safety

Default Settings (Safe by Default)

  • Auto-push disabled: auto_push_enabled: false by default
  • Confirmation prompts: Destructive operations require user confirmation
  • Selective git operations: Only configured files are committed

Installation Safety

Recommended (Safest):

git clone https://github.com/RegulusZ/multi-device-sync-github.git
cd multi-device-sync-github
./install.sh

Convenience (Review First):

curl -fsSL https://raw.githubusercontent.com/RegulusZ/multi-device-sync-github/main/install.sh -o install.sh
cat install.sh  # Review before executing
./install.sh

Data Protection

  • Automatic backups: Files backed up before replacement
  • No external endpoints: Notifications are local-only
  • User control: All operations can be reviewed before execution

Enabling Auto-Push

After reviewing behavior, enable in config:

auto_push_enabled: true

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.07%
按下载量换算3,962

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills