A protective git-first workflow skill for AI agents that ensures repository integrity through rigorous pre-work inspection, multi-stage validation, and structured commits.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install git-commit-guard
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install git-commit-guard using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Git Commit Guard is a specialized extension within the Openclaw Skills ecosystem designed to enforce a disciplined, git-first methodology for AI coding agents. It prevents the common pitfall of AI agents overwriting unsaved work or polluting repositories with unverified changes. By prioritizing worktree health, the skill ensures that every coding task—from debugging to feature implementation—starts with a clear understanding of the current repository state.
This skill is particularly valuable for developers working in multilingual environments or those who prefer high-context version histories. It mandates that agents inspect dirty worktrees, infer the correct validation commands from the local environment, and document all changes using detailed commit messages in Chinese. This approach maintains a high-quality, auditable project history while minimizing the risk of regression or lost code.
git status at the start of the turn to determine if the repository is clean or dirty.git diff and file reads to summarize existing changes and intent.To integrate this workflow into your AI agent environment using Openclaw Skills, ensure your local repository is initialized and your configuration points to the standard commit templates.
# Ensure you are in a git repository
git init
# The skill will automatically reference your template if located at:
# references/commit-template.md
# Check status to see the skill in action
git status --short --branch
The skill organizes its operations around the standard Git metadata and a specific template structure for documentation:
| Data Type | Source/Location | Purpose |
|---|---|---|
| Worktree State | git status |
Determines initialization logic (clean vs. dirty). |
| Diff Logs | git diff --stat |
Used for summarizing intent and impact of changes. |
| Commit Template | references/commit-template.md |
Provides the structural blueprint for Chinese commit messages. |
| Validation Output | Local CLI (npm, pytest, etc.) | Logs the success/failure of verification steps before committing. |
| Commit History | .git/logs |
Stores the final auditable hashes and detailed Chinese descriptions. |
Loading
A high-performance web reading layer that converts public URLs into structured, agent-ready intelligence via a single API call.

A specialized skill for extracting and organizing public product features, pricing structures, and help documentation from CamScanner to streamline office collaboration.

A professional-grade research framework that automates systematic academic, market, and competitive analysis with mandatory quality gates.

A specialized tool for extracting and organizing public flight schedules, check-in information, and official notices from China Eastern Airlines.

Deep Research Pro is a rigorous AI research skill that enforces mandatory full-text parsing, structured data extraction, and source verification to ensure maximum analytical depth.

A specialized automation skill for tracking Candy Crush Saga game events, version updates, and official community guidelines.








































