git-commit

atusy 的头像作者 atusy

暂存有意义的差异并创建以为什么为重点的消息的提交。当代理需要提交代码更改时使用。

📖 中文导读:暂存有意义的差异并创建以为什么为重点的消息的提交。当代理需要提交代码更改时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: git-commit description: Stage meaningful diffs and create commits with WHY-focused messages. Use whenever making git commits.

INSTRUCTIONS

Use /git:commit slash command to stage meaningful diffs and create commits with WHY-focused messages.

DISCIPLINE

  • Only commit when:
    1. ALL tests are passing
    2. ALL compiler/linter warnings have been resolved
    3. The change represents a single logical unit of work
    4. Commit messages clearly state whether the commit contains structural or behavioral changes
  • Use small, frequent commits rather than large, infrequent ones