cmd-git-commit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/git-commit

/git-commit

Agent skill wrapper for the Claude command
/git-commit
.
When the original command text references
{{INPUT}}
,
$1
, or named arguments, map them from the user's current request.
Claude命令
/git-commit
的Agent技能封装。
当原始命令文本引用
{{INPUT}}
$1
或命名参数时,从用户当前请求中映射这些参数。

Command Instructions

命令说明

Analyze staged/unstaged changes to determine logical scope and type.
Generate conventional commit message:
  • Format: <type>(<scope>): <description>
  • Types: feat|fix|docs|style|refactor|test|chore
  • Keep subject under 72 chars
  • Add body if context from {{INPUT}} requires explanation
If changes span multiple scopes, create separate commits per logical unit.
Stage files with
git add
and commit. Run autonomously without approval.
{{INPUT}}
分析已暂存/未暂存的变更,确定逻辑范围和类型。
生成规范提交消息:
  • 格式:<type>(<scope>): <description>
  • 类型:feat|fix|docs|style|refactor|test|chore
  • 主题部分保持在72字符以内
  • 如果{{INPUT}}中的上下文需要解释,添加正文内容
如果变更涉及多个范围,按逻辑单元创建单独的提交。
使用
git add
暂存文件并提交。无需批准即可自主运行。
{{INPUT}}