Git commit helper
Skill bokuwalily/claude-code-skills/skills/git-commit-helper
75 battle-tested Claude Code skills from shipping 20+ apps solo — macOS, Next.js, Vercel, iOS/Expo, Cloudflare, Phaser, local AI media & more
npx -y skills add bokuwalily/claude-code-skills --skill git-commit-helperAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Conventional Commits 形式(feat/fix/docs/style/refactor/perf/test/chore/ci/build/revert)で commit message を作成・検証する。発火: git commit 失敗 (validator 弾き)、複雑な変更を分割 commit する時、PR タイトル設計時
SKILL.md
2.6 KB, 849 tokens by cl100k_base, as published. Nobody here has run it
git-commit-helper
ユーザー環境では ~/.git-hooks/commit-msg で Conventional Commits を強制している。この validator を通すための定型手順。
Procedure
git diff --cached --statで staged 内容を確認- 変更を 機能スコープ単位 に分類:
feat新機能 /fixバグ修正 /docsドキュメントstyle整形のみ /refactor振る舞い変えず再構成 /perf性能改善testテスト /chore雑務 /ciCI 設定 /buildビルド /revert取り消し
- メッセージ形式:
<type>(<scope>): <subject 72字以内>- 例:
feat(scraper): add Uniqlo MediaRSS feed parser
- 例:
- body (optional): なぜ変更したかを 2-3 行で。
-mを追加して空行で区切る - footer (optional):
BREAKING CHANGE: <内容>Closes #N/Refs #NCo-Authored-By: Name <email>
- 実行例:
複数行はヒアドキュメント:git commit -m "feat(closet-os): add UNIQLO scraper" -m "MediaRSS endpoint へ切替。HTML スクレイプ失敗の代替経路。"git commit -m "$(cat <<'EOF' refactor(memory): split MEMORY.md by domain index ファイルが肥大化したので feedback_/project_/reference_ プレフィックスで分割。 EOF )"
Pitfalls
<type>は 小文字必須。Feat:は validator NG- scope に長い文字列(20字超)を入れると弾かれることがある → 短いスラッグで
- 1 commit に複数 type 混在(例: feat + test)は分割推奨。validator は通っても粒度が崩れる
--no-verifyで hook をスキップしない(CLAUDE.md / global ルールで禁止)- emoji prefix(✨🐛 など)は validator 弾き
- subject 末尾の句点(
.。)は付けない - body は subject から 空行 1 行 開ける(
-mを 2 回使えば自動で空行になる)
Verification
git log -1 --format='%s'で format を目視確認- hook 単体ベリファイ:
exit 0 なら通過git log -1 --format='%B' > /tmp/last-msg && ~/.git-hooks/commit-msg /tmp/last-msg && echo OK - 複数 commit を後追いで確認:
git log --format='%h %s' origin/main..HEAD
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.