Auto Commit for Openclaw

Automatically snapshots code changes using surgical staging and descriptive commits for Openclaw Skills users.

shangter666
v1.0.2
Mar 17, 2026
1
899
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install auto-commit

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 auto-commit 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 Auto Commit?

The Auto Commit skill is a specialized utility for Openclaw Skills designed to automate the git version control lifecycle during AI-driven development. It triggers immediately after an agent modifies code, ensuring that every successful intervention is snapshotted without requiring manual developer input. By focusing on surgical staging rather than bulk additions, it maintains high repository standards and prevents the accidental inclusion of sensitive files or unnecessary artifacts.

Auto Commit Use Cases

  • Automatically saving progress after AI-generated code refactors or bug fixes.
  • Maintaining a granular and clean commit history in collaborative repositories.
  • Preventing data loss during multi-stage development tasks by creating frequent snapshots.
  • Enforcing best practices by ensuring only source code is staged while ignoring environment files.

How Auto Commit Works

  1. Monitors file system changes following the completion of a code modification task.
  2. Identifies specific files that were explicitly modified to avoid global staging.
  3. Filters the modified files to include only relevant source code extensions like .py, .js, or .md.
  4. Verifies the current staging area status to ensure accuracy.
  5. Executes a git commit command with a concise summary describing the changes made.

Auto Commit Setup

To use this skill within Openclaw Skills, ensure your workspace is a valid git repository and that git is properly configured in your environment.

# Initialize git if not already present
git init

# Configure your git identity
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

Auto Commit Data Schema & Taxonomy

The skill manages data through standard git objects and does not maintain an external database. It organizes metadata using the following structure:

Component Logic Applied
Staging Method Surgical (explicit paths added via git add)
File Filters Includes source code (.py, .go, .ts, etc.); Excludes .env and binaries
Commit Message Context-aware concise summary of the AI's intervention
Verification Runs git status to confirm staged changes before commit

Auto Commit Advanced Features

  • Intelligent file-type filtering to protect sensitive environment variables and prevent bloat.
  • Automatic execution that respects user overrides if a no-commit instruction is provided.
  • Support for multi-file surgical staging in complex, cross-directory refactoring tasks.
  • Seamless integration with standard git workflows to ensure compatibility with existing Openclaw Skills setups.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*