Memory Git Sync for Openclaw

Automates workspace memory synchronization and remote backups using Git with built-in large file detection and conflict resolution.

vemec
v1.0.0
Feb 13, 2026
2
1.5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install memory-git-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 memory-git-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 Memory Git Sync?

Memory Git Sync is a robust automation utility designed for Openclaw Skills users who need to maintain a persistent and synchronized workspace across different environments. It streamlines the entire Git lifecycle, from initial repository validation and user configuration checks to the final push to a remote repository like GitHub or GitLab. By integrating this skill into your workflow, you ensure that every change in your AI-driven workspace is versioned and backed up without manual intervention, providing a reliable safety net for your development data.

This skill is particularly valuable for developers using Openclaw Skills who want to ensure their local environment stays in sync with a central source of truth. It handles the nuances of Git management, including identity verification and upstream tracking, allowing you to focus on building rather than versioning. The tool is built to be resilient, offering automatic recovery for common Git hurdles like diverged branches or missing upstream configurations.

Memory Git Sync Use Cases

  • Automatically backing up AI-generated code and documentation to a remote repository during active sessions.
  • Synchronizing Openclaw Skills workspace data between multiple machines or team members to maintain a unified environment.
  • Preventing Git push failures by automatically identifying and ignoring large files exceeding 95MB.
  • Maintaining a timestamped audit trail of workspace changes for version history and easy recovery of previous states.

How Memory Git Sync Works

  1. The skill validates the local environment to ensure it is inside a Git repository and that user identity (name and email) is properly configured.
  2. It verifies the existence of a remote 'origin' and checks for network connectivity to allow synchronization.
  3. A pre-flight scan is performed to detect files larger than 95MB, which are automatically added to the .gitignore file to prevent push failures.
  4. It fetches and pulls the latest changes from the remote branch, using automated conflict resolution to merge remote updates before staging local changes.
  5. Changes are staged and committed with a timestamped or custom message, then pushed to the remote repository, with upstream tracking configured automatically if necessary.

Memory Git Sync Setup

To get started with this skill for Openclaw Skills, ensure you have Git 2.0+ and Bash 4.0+ installed. Your workspace must be initialized as a Git repository with a remote named origin. Use the following command to run a sync:

bash ./scripts/sync.sh "Optional custom commit message"

Ensure your Git credentials are saved via an SSH key or a credential helper like osxkeychain to allow the automation to push changes without manual password entry.

Memory Git Sync Data Schema & Taxonomy

The Memory Git Sync skill manages data within the local file system and maps it to a remote Git structure. It utilizes the following organizational logic:

Component Description
.git/ Local repository history and metadata configuration
.gitignore Automatically updated to exclude files larger than 95MB
commit message Default format: chore: memory backup YYYY-MM-DD HH:MM
log prefixes Uses [INFO], [SUCCESS], [WARNING], and [ERROR] for LLM parsing

All files within the Openclaw Skills workspace are synchronized according to their existing directory structure, excluding items specifically filtered by the large-file detection logic.

Memory Git Sync Advanced Features

  • Automated Large-File Handling: Dynamically manages .gitignore to filter out assets over 95MB that would break standard Git pushes.
  • Intelligent Conflict Resolution: Executes auto-pulls with no-edit flags to merge remote changes seamlessly into the local workspace.
  • Structured LLM Logging: Provides prefixed output specifically designed for AI agents to interpret the synchronization status and handle errors.
  • Auto-Upstream Configuration: Automatically detects missing tracking branches and sets up the upstream origin on the first push.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*