Install
openclaw skills install git-commit-guardEnforce a git-first workflow for repository coding tasks. Use when Codex is working inside a local git repository to inspect, modify, debug, refactor, implement, test, or finish code. Before any new development, require checking git status, reviewing dirty files, validating the current worktree, and committing validated changes. After implementation, require targeted verification, broader end-of-turn validation, and detailed Chinese git commits.
openclaw skills install git-commit-guardTreat every coding task as operating on a potentially valuable worktree.
git status --short --branch first.git diff --stat, git diff, and targeted file reads.When git status is not clean, do all of the following before new development:
Before committing existing dirty changes, prefer this order:
Before the final commit, run a broader validation pass whenever practical:
If the full sweep is not feasible, state exactly what was run and what was not run.
git status is clean after the final commit.references/commit-template.md for the preferred structure and examples.Recommended type values:
featfixrefactortestdocschore