Git Commit & Push Automator for Openclaw

Automatically stage changes, generate AI-driven commit messages, and push code to your remote repository in one seamless workflow.

brennerspear
v1.0.0
Feb 25, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install 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 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 Git Commit & Push Automator?

The Git Commit & Push skill is designed to eliminate the friction of manual version control operations. By analyzing the current state of your repository, including staged and unstaged changes, it intelligently crafts a contextual commit message that accurately reflects your work. This skill is a core component of Openclaw Skills that empowers developers to maintain a high-frequency commit habit without breaking their creative flow.

Built to handle the complete lifecycle of a code update, it manages everything from file staging to remote synchronization. Whether you are working on a quick bug fix or a major feature, this skill ensures your remote origin is always up to date with meaningful history.

Git Commit & Push Automator Use Cases

  • Automating repetitive git add, commit, and push sequences during active development.
  • Generating high-quality, descriptive commit messages based on actual code diffs rather than generic notes.
  • Setting up upstream tracking for new local branches automatically.
  • Ensuring code is backed up to remote repositories instantly after a successful coding session using Openclaw Skills.

How Git Commit & Push Automator Works

  1. The skill captures the current git status and the full diff of staged and unstaged changes.
  2. It retrieves the current branch name and reviews the last ten commits to maintain naming consistency.
  3. All local changes are staged automatically to ensure no modifications are left behind.
  4. A contextual commit message is generated based on the technical analysis of the diff.
  5. The skill executes a push command to the origin, automatically handling upstream configuration if the branch is new.

Git Commit & Push Automator Setup

To utilize this skill, ensure that Git is installed and your repository has a remote origin configured. In your environment, you can trigger the skill via the Openclaw Skills interface or CLI.

# Ensure your git user is configured
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

# Navigate to your project
cd your-repo-directory

Git Commit & Push Automator Data Schema & Taxonomy

The skill processes repository metadata to execute its tasks. The following data points are utilized:

Data Point Purpose
git status Identifies which files have been modified, deleted, or created.
git diff HEAD Extracts the specific lines of code changed to inform the commit message.
git branch Determines the target destination for the push command.
git log Provides historical context to ensure the new commit fits the repository style.

Git Commit & Push Automator Advanced Features

  • Context-aware message generation that understands the 'why' behind code changes.
  • Automatic upstream branch tracking for seamless integration with new feature branches.
  • Support for both staged and unstaged changes in a single atomic operation.
  • Non-interactive execution mode designed for speed and compatibility with Openclaw Skills automation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*