Back to skills
SKILL.md
Commitlint
ASecuritycommitlint checks commit messages against conventional commit format (`type(scope): description`). Pairs with husky for Git hooks and standard-version/changesets for automated changelogs.
- 67 stars
- 0 votes
- 0 copies
- 0 views
- Added November 10, 2026
Works with
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add ComeOnOliver/skillshub --skill commitlint --agent claude-codeAre you the author of Commitlint?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/comeonoliver-commitlint)# commitlint
## Overview
commitlint checks commit messages against conventional commit format (`type(scope): description`). Pairs with husky for Git hooks and standard-version/changesets for automated changelogs.
## Instructions
### Step 1: Setup
```bash
npm install -D @commitlint/cli @commitlint/config-conventional husky
npx husky init
echo 'npx --no -- commitlint --edit "$1"' > .husky/commit-msg
```
### Step 2: Configure
```javascript
// commitlint.config.js — Commit message rules
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore']],
'scope-case': [2, 'always', 'kebab-case'],
'subject-max-length': [2, 'always', 72],
},
}
```
### Step 3: Valid Commits
```bash
git commit -m "feat(auth): add Google OAuth login" # valid
git commit -m "fix(api): handle null response from /users" # valid
git commit -m "updated stuff" # rejected
```
## Guidelines
- Conventional commits enable automated changelog generation and semantic versioning.
- Use with husky to enforce at commit time, not just in CI.
- Types: feat (minor bump), fix (patch bump), BREAKING CHANGE (major bump).
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.