auto-commit
/install auto-commit
Auto Commit Skill
Core Instruction
When you complete a user request that involves modifying files or code, you MUST automatically create a git commit to save the changes. This ensures that every successful AI intervention is snapshotted.
Procedure
After finishing the code modifications for the user's request:
- Surgical Staging: Do NOT use
git add .. Instead, stage ONLY the files you have explicitly modified:git add \x3Cfile_path1> \x3Cfile_path2> ...
- Filter by Type: If multiple files were changed, ensure you are only staging source code files (e.g.,
.py,.go,.sol,.js,.ts,.md). Avoid staging environment files (.env), binaries, or large assets. - Verify: If unsure, run
git statusto confirm only the intended changes are staged. - Commit: Run
git commit -m "\x3Cmessage>"with a concise, descriptive summary of your changes.
Do not ask for permission; execute the commit automatically. If the user explicitly asks not to commit, respect their request. Skip if not a git repository or no changes were made.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install auto-commit - After installation, invoke the skill by name or use
/auto-commit - Provide required inputs per the skill's parameter spec and get structured output
What is auto-commit?
Triggers on any task that modifies code. Provides instructions to surgically stage and commit only the modified code files to save progress. It is an AI Agent Skill for Claude Code / OpenClaw, with 269 downloads so far.
How do I install auto-commit?
Run "/install auto-commit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is auto-commit free?
Yes, auto-commit is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does auto-commit support?
auto-commit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created auto-commit?
It is built and maintained by shangter666 (@shangter666); the current version is v1.0.2.