返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
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
安全检测
已通过
198
下载量
1
收藏
概述
安装方式
版本历史

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: 1. **Surgical Staging**: Do NOT use `git add .`. Instead, stage ONLY the files you have explicitly modified: - `git add <file_path1> <file_path2> ...` 2. **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. 3. **Verify**: If unsure, run `git status` to confirm only the intended changes are staged. 4. **Commit**: Run `git commit -m "<message>"` 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.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install auto-commit-1776353163

下载 Zip 包

⬇ 下载 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
返回顶部