返回顶部
a

auto-commit自动提交

Triggers on any task that modifies code. Provides instructions to surgically stage and commit only the modified code files to save progress.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
209
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

auto-commit

自动提交技能

核心指令

当您完成涉及修改文件或代码的用户请求时,必须自动创建git提交以保存更改。这确保每次成功的人工智能干预都被快照记录。

操作流程

完成用户请求的代码修改后:
  1. 1. 精准暂存:不要使用git add .。仅暂存您明确修改过的文件:
- git add <文件路径1> <文件路径2> ...
  1. 2. 按类型筛选:如果更改了多个文件,请确保只暂存源代码文件(例如.py、.go、.sol、.js、.ts、.md)。避免暂存环境文件(.env)、二进制文件或大型资源文件。
  2. 验证:如有疑问,运行git status确认仅暂存了预期更改的文件。
  3. 提交:运行git commit -m <信息>,提供简洁且描述性的更改摘要。

无需请求许可,自动执行提交。如果用户明确要求提交,请尊重其请求。如果不是git仓库或未进行任何更改,则跳过此操作。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 auto-commit-1776353163 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 auto-commit-1776353163 技能

通过命令行安装

skillhub install auto-commit-1776353163

下载

⬇ 下载 auto-commit v1.0.2(免费)

文件大小: 1.6 KB | 发布时间: 2026-4-17 14:08

v1.0.2 最新 2026-4-17 14:08
- Refined the auto-commit workflow to stage only files explicitly modified, instead of using git add .
- Now restricts commits to typical code and documentation files, avoiding environment files, binaries, and large assets.
- Emphasized verifying staged files with git status before committing.
- Simplified and clarified instructions for more surgical and safer commits.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部