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에서 보기