Claude Code slash command that reads git status and diff, reviews the changes and commits them in conventional commit format, split into separate commits if needed.
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*) description: Create a git commit --- ## Context - Current git status: !`git status` - Current git diff (staged and unstaged changes): !`git diff HEAD` - Current branch: !`git branch --show-current` - Recent commits: !`git log --oneline -10` ## Your task Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits.
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*) description: 创建一个 git 提交 --- ## 上下文 - 当前 git 状态:!`git status` - 当前 git 差异(已暂存和未暂存的更改):!`git diff HEAD` - 当前分支:!`git branch --show-current` - 最近提交记录:!`git log --oneline -10` ## 你的任务 审查现有更改,然后按照约定式提交(conventional commit)格式创建一个 git 提交。如果你认为存在多个不同的更改,可以创建多个提交。