commit
4
总安装量
2
周安装量
#48271
全站排名
安装命令
npx skills add https://github.com/aravhawk/claude-code-utils --skill commit
Agent 安装分布
opencode
2
cursor
2
codex
2
claude-code
2
amp
1
kimi-cli
1
Skill 文档
Git Commit Command
Create atomic git commits following Conventional Commits.
Flow
-
Check state:
git status --porcelain- Empty â STOP, report “No changes to commit”
- Merge conflict markers â STOP, report conflict
-
Verify .gitignore excludes: secrets/
.env, build artifacts, OS files (.DS_Store), IDE configs -
Stage:
git add -A(or specific files for atomic commits) -
Analyze:
git diff --cached --statandgit diff --cached- If unrelated changes exist, split into separate commits via
git reset HEAD <file>
- If unrelated changes exist, split into separate commits via
-
Commit: Use Conventional Commits format
<type>(<scope>): <summary>
[body: what/why, wrap 72 chars]
[footer: BREAKING CHANGE: or Fixes #123]
Types: feat | fix | docs | style | refactor | perf | test | build | ci | chore
Summary rules: imperative mood (e.g., “add”, “fix”, “refactor”), lowercase, no period, max 72 chars
- Confirm:
git log -1 --onelineâ report hash and summary
Output
Success: Committed: <hash> <type>(<scope>): <summary>
Failure: explain why and required action