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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install auto-commit - 安装完成后,直接呼叫该 Skill 的名称或使用
/auto-commit触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
auto-commit 是什么?
Triggers on any task that modifies code. Provides instructions to surgically stage and commit only the modified code files to save progress. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 269 次。
如何安装 auto-commit?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-commit」即可一键安装,无需额外配置。
auto-commit 是免费的吗?
是的,auto-commit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
auto-commit 支持哪些平台?
auto-commit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 auto-commit?
由 shangter666(@shangter666)开发并维护,当前版本 v1.0.2。