codely-git-conventional-commit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context

上下文

If the user does not specify the commit message, gather context about the current Git changes to determine it:
git status
,
git diff HEAD
, the untracked files, the current branch and the recent commits.
如果用户未指定 commit message,请收集当前 Git 更改的相关上下文以确定提交信息:
git status
、
git diff HEAD
、未跟踪文件、当前分支以及最近的 commits。

Your task

你的任务

Create a single Git commit. Follow the conventions in
resources/commit-messages.md
to determine the commit message if it has not been already specified.
创建一个单独的 Git commit。如果尚未指定 commit message,请遵循
resources/commit-messages.md
中的规范来确定提交信息。

Co-authors

共同作者

Always add a co-author trailer to the commit message with the following format:
text
Co-Authored-By: {tool} - {model.name} {model.version} ({model.reasoning_effort}) <{tooling_email}>
  • tool
    : The AI coding tool used (e.g.
    Claude Code
    ,
    Cursor
    ,
    Copilot
    ,
    Codex
    )
  • model.name
    : The name of the model used to make the change (e.g.
    Claude Opus
    ,
    Cursor Composer
    ,
    OpenAI GPT
    )
  • model.version
    : The version of the model used to make the change (e.g.
    4.6
    ,
    1.5
    ,
    5.4
    )
  • model.reasoning_effort
    : The reasoning effort of the model used to make the change (e.g.
    low
    ,
    medium
    ,
    high
    )
  • tooling_email
    :
    • Claude Code:
      noreply@anthropic.com
    • Cursor:
      cursoragent@cursor.com
    • Copilot:
      copilot@github.com
    • Codex:
      codex@openai.com
始终在 commit message 中添加 co-author trailer,格式如下:
text
Co-Authored-By: {tool} - {model.name} {model.version} ({model.reasoning_effort}) <{tooling_email}>
  • tool
    :使用的 AI 编程工具(例如
    Claude Code
    、
    Cursor
    、
    Copilot
    、
    Codex
    )
  • model.name
    :用于完成更改的模型名称(例如
    Claude Opus
    、
    Cursor Composer
    、
    OpenAI GPT
    )
  • model.version
    :用于完成更改的模型版本(例如
    4.6
    、
    1.5
    、
    5.4
    )
  • model.reasoning_effort
    :用于完成更改的模型的 reasoning effort(例如
    low
    、
    medium
    、
    high
    )
  • tooling_email
    :
    • Claude Code:
      noreply@anthropic.com
    • Cursor:
      cursoragent@cursor.com
    • Copilot:
      copilot@github.com
    • Codex:
      codex@openai.com