Skip to main content

setup-conventional-commits

Enforce conventional commit format via a PreToolUse hook on Bash that intercepts git commit commands. Replaces commitlint + husky entirely. Use when setting up conventional commits, commit message validation, or enforcing commit format standards.

ソース情報

リポジトリ
redpanda-data/ui-harness
ソースの最終更新活動
2026年5月8日 11:21
検出された SKILL.md の言語
英語
スター
34
フォーク
4

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
4 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
setup-conventional-commits
description
Enforce conventional commit format via a PreToolUse hook on Bash that intercepts git commit commands. Replaces commitlint + husky entirely. Use when setting up conventional commits, commit message validation, or enforcing commit format standards.
# Setup Conventional Commits PreToolUse hook (Bash) intercept `git commit -m` -> validate format. Replace commitlint + husky (zero deps). ## Format ``` type(scope): description ``` - **type**: feat|fix|refactor|style|test|docs|chore|perf|ci|build|revert - **scope**: required, lowercase in parens -- `feat(webui):`, `fix(backend):` - **description**: lowercase first letter, no trailing period, 5-72 chars - **body**: optional, encourage feat/fix ## Steps 1. Copy `scripts/conventional-commits-check.sh` + `scripts/_hook-lib.sh` -> `.claude/hooks/`. `chmod +x`. 2. Add to `.claude/settings.json`: PreToolUse (Bash): `.claude/hooks/conventional-commits-check.sh` 3. Optional: `codex-compat` for Codex `.codex/hooks.json` ## Verify - [ ] Block: `git commit -m "bad message"`, `git commit -m "feat: missing scope"`, `git commit -m "feat(ui): A"` (uppercase) - [ ] Allow: `git commit -m "feat(ui): add button component"` - [ ] Ignore non-commit Bash commands
GitHubで見る