← 返回
未分类 中文

auto-commit

Triggers on any task that modifies code. Provides instructions to surgically stage and commit only the modified code files to save progress.
在任何修改代码的任务时触发,提供指令,仅暂存并提交已修改的代码文件,以保存进度。
shangter666 shangter666 来源
未分类 clawhub v1.0.2 1 版本 99815.2 Key: 无需
★ 1
Stars
📥 520
下载
💾 0
安装
1
版本
#latest

概述

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 ...
  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 "" 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.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-01 18:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,572
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,859
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 327,400