Openclaw Git Manager for Openclaw

A dedicated version control tool for OpenClaw that tracks configuration changes, allowing for seamless commits, diffs, and rollbacks.

wangjipeng977
v1.0.0
May 11, 2026
1
542
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install git-watcher

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 git-watcher 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 Openclaw Git Manager?

Openclaw Git Manager is a specialized utility designed to bring industrial-grade version control to your local environment. It transforms configuration management from a risky manual process into a structured, reversible workflow. By targeting specific files like openclaw.json and agent definitions, it ensures that every modification is recorded with a human-readable audit trail.

This skill is essential for users who frequently experiment with Openclaw Skills and need a safety net. It prevents data loss by establishing stable checkpoints, making it easy to identify exactly when a change was made and providing the mechanism to revert to a known-good state instantly.

Openclaw Git Manager Use Cases

  • Creating a versioned checkpoint before making risky manual edits to openclaw.json.
  • Auditing configuration history to diagnose when a specific setting was changed.
  • Rolling back a broken agent or flow definition to a previous functional state.
  • Comparing current uncommitted configuration changes against the last stable version.
  • Restoring specific configuration files without affecting the entire system state.

How Openclaw Git Manager Works

  1. The skill initializes a local Git repository within the .openclaw directory if one does not already exist.
  2. It applies a pre-defined .gitignore to exclude runtime data like logs, memory, and temporary files.
  3. Upon user command, it inspects tracked files (agents, flows, credentials) for modifications.
  4. It generates a concise diff summary of changed keys rather than overwhelming the user with raw file content.
  5. The skill stages the changes and prompts for a structured commit message to maintain a clean history.
  6. For restoration requests, it previews the changes before overwriting and creates an automatic recovery commit.

Openclaw Git Manager Setup

To begin managing your Openclaw Skills configuration, ensure your environment is ready for Python execution.

# Navigate to your OpenClaw home directory
cd ~/.openclaw

# The skill is typically invoked via the git_manager script
python3 ~/.openclaw/workspace/skills/openclaw-git-manager/scripts/git_manager.py status

Openclaw Git Manager Data Schema & Taxonomy

The Openclaw Git Manager tracks a specific subset of the file system to ensure configuration integrity while ignoring high-churn runtime data.

Tracked Path Description Data Sensitivity
~/.openclaw/openclaw.json Primary system configuration Medium
~/.openclaw/credentials/*.json Provider credential profiles High (Redacted in diffs)
~/.openclaw/agents/ Individual AI agent definitions Low
~/.openclaw/flows/ Workflow and logic definitions Low
~/.openclaw/skills/ Custom skill configurations Medium

Openclaw Git Manager Advanced Features

  • Smart Diffing: Specifically optimized for JSON files, showing key-value changes rather than raw line differences.
  • Automatic Recovery Commits: Every time a restore operation is performed, the skill creates a checkpoint of the pre-restoration state.
  • Targeted Restoration: Support for both full-tree rollbacks and single-file restoration to minimize system disruption.
  • Security Safeguards: Built-in warnings and redaction protocols to prevent the accidental commitment of raw API keys or secrets.
  • Linear History Enforcement: Prevents merge conflicts by maintaining a linear commit path, simplifying the rollback process for non-git experts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*