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-commitWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1Claude命令的Agent技能封装。
/git-commit当原始命令文本引用、或命名参数时,从用户当前请求中映射这些参数。
{{INPUT}}$1Command 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 and commit. Run autonomously without approval.
git add{{INPUT}}
分析已暂存/未暂存的变更,确定逻辑范围和类型。
生成规范提交消息:
- 格式:<type>(<scope>): <description>
- 类型:feat|fix|docs|style|refactor|test|chore
- 主题部分保持在72字符以内
- 如果{{INPUT}}中的上下文需要解释,添加正文内容
如果变更涉及多个范围,按逻辑单元创建单独的提交。
使用暂存文件并提交。无需批准即可自主运行。
git add{{INPUT}}