CLI Tools
bash
Intermediate
Git Commit Message Enforcer
commit-msg hook that enforces Conventional Commits format.
bash
#!/bin/bash
# .git/hooks/commit-msg
COMMIT_MSG=$(cat "$1")
PATTERN='^(feat|fix|docs|style|refactor|test|chore)(\(.+\))?: .{1,72}'
if ! echo "$COMMIT_MSG" | grep -qP "$PATTERN"; then
echo 'ERROR: Commit must follow Conventional Commits format.'
echo 'Example: feat(auth): add JWT refresh endpoint'
exit 1
fi
Prerequisites
- bash
- git
Pro Tips
- → Use commitlint for team-wide enforcement via CI.
Commercial Licensing
Acquire a production access token or template license for enterprise deployment.
Module Info
- Language
- bash
- Level
- Intermediate
- Read time
- 2 min
- Published
- Sep 2026
- License
- Commercial License
Newsletter
New modules every week, directly to your inbox.
Similar Modules
Rich Progress Bar Script
Display a beautiful progress bar in the terminal using Rich.
python
·
Beginner
System Info Dashboard
Print a compact system summary: CPU, RAM, disk, OS and uptime in one script.
bash
·
Beginner
Environment Switcher Script
Switch between named environment profiles stored in ~/.envs/ and export to shell.
bash
·
Intermediate