data-sync for Openclaw

A secure, incremental synchronization tool for Claude Code assets that uses a relay server for multi-device consistency and GitHub for versioned archiving.

mwangxiang
v1.0.0
Feb 25, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install data-sync

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install data-sync using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is data-sync?

data-sync is a developer-centric utility designed to manage the lifecycle of Claude Code configurations, including skills, hooks, memory libraries, and skill factories. It solves the challenge of maintaining a consistent AI development environment across multiple workstations by using a three-tier architecture: local machines, a central relay server for daily synchronization, and GitHub for long-term versioned archives.

This tool is built to be a core part of the Openclaw Skills ecosystem, prioritizing data safety by employing non-destructive Git operations. It ensures that your AI agent's evolving knowledge and capabilities are never lost, regardless of which hardware you are currently using. By utilizing incremental updates, it maintains high performance even with large knowledge bases.

data-sync Use Cases

  • Synchronizing Claude Code skills and hooks between home and office computers.
  • Creating a versioned backup of AI-generated knowledge bases to a private GitHub repository.
  • Initializing a fresh development environment on a new machine with a single command.
  • Ensuring sensitive data like API keys are not accidentally pushed to remote servers through automated scanning.

How data-sync Works

  1. The user initializes the skill by mapping local paths to the relay server's bare repositories.
  2. When switching devices, the user pulls the latest state from the relay server using fast-forward merges to prevent conflicts.
  3. After local development, the skill scans modified files for sensitive information (tokens/keys) and presents a change summary.
  4. Changes are committed and pushed to the relay server, which acts as the 'source of truth' for all connected nodes.
  5. Upon reaching a milestone, the user creates a versioned tag that triggers an archival push to GitHub.

data-sync Setup

To get started with this component of your Openclaw Skills library, follow these steps:

  1. Prepare a sync-registry.md file in the skill directory containing your server IP and repository list.
  2. Configure SSH keys on your local machine to allow passwordless access to your relay server.
  3. Execute the initialization command:
/data-sync init
  1. Follow the interactive prompts to define your .claude configuration path and your knowledge base workspace.

data-sync Data Schema & Taxonomy

The skill manages data across the following structures to ensure compatibility with Openclaw Skills workflows:

Component Path Purpose
Registry sync-registry.md Stores server metadata and repository mappings.
Config Repo ~/.claude Synchronizes skills, hooks, and agent settings.
Knowledge Repo User Defined Synchronizes markdown-based memory and distilled knowledge.
Remote: relay root@server:/path The intermediate server for high-frequency synchronization.
Remote: origin github.com/user/repo The long-term archive for major version snapshots.

data-sync Advanced Features

  • Sensitive Information Detection: Automatically blocks pushes containing patterns matching API keys, secrets, or passwords.
  • Intelligent Versioning: Suggests semantic version tags (v1.x) based on the number of commits and file changes detected since the last backup.
  • Multi-Path Archiving: Supports pushing to GitHub directly or via the relay server if the local machine has restricted internet access.
  • Conflict Prevention: Enforces a strict pull-before-push rule to maintain a linear git history across all devices.
  • Integration Support: Works seamlessly with dev-log for documentation and skill-factory for new agent capability deployment.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*