commitlint
Skill19 starsChanged 8 months agoMITView on GitHub
Validate commit messages against the Conventional Commits specification. Auto-detects and installs commitlint CLI if missing. Checks project config or falls back to sensible defaults. Use when validating commit messages, preparing PRs, or enforcing commit conventions.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- marcoscazaux/skillstheir own version, first seen Jun 12, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- marcoscazaux/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/skills/agent-rules/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- pkg/AGENTS.mdAGENTS.md
- agent-ready-goSkill
- agent-rulesSkill
- architecture-designerSkill
- cli-developerSkill
- cloudformation-to-pulumiSkill
- code-reviewerSkill
- commitSkill
- csharp-developerSkill
- decideSkill
- dep-upgradeSkill
- design-principlesSkill
- devops-engineerSkill
- flux-cliSkill
- flux-operator-cliSkill
- golang-proSkill
- go-nolint-auditSkill
- javascript-proSkill
- kubernetes-specialistSkill
- lint-fixSkill
- markdownlintSkill
- prSkill
- pull-request-msg-with-ghSkill
- pulumi-arm-to-pulumiSkill
- pulumi-automation-apiSkill
- pulumi-best-practicesSkill
- pulumi-cdk-to-pulumiSkill
- pulumi-cliSkill
- pulumi-componentSkill
- pulumi-escSkill
- pulumi-goSkill
- pulumi-neoSkill
- pulumi-pythonSkill
- pulumi-terraform-to-pulumiSkill
- pulumi-typescriptSkill
- python-proSkill
- reviewSkill
- roadmapSkill
- rust-async-patternsSkill
- rust-best-practicesSkill
- rust-engineerSkill
- scoutSkill
- security-auditSkill
- spring-boot-engineerSkill
- sre-engineerSkill
- sync-websiteSkill
- tailscale-installSkill
- tech-debtSkill
- the-foolSkill
- typescript-proSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
If not installed, install globally:
- Distinctive: line 44
If installation fails (permissions, no npm), stop validation and report the issue with remediation steps:
- Very specific: line 47
Use sudo npm install -g ...
- Distinctive: line 48
Use a Node version manager (nvm, volta, fnm)
- Distinctive: line 51
Do not silently skip validation.
- Very specific: line 60
Default config (see references/conventional-commits.md)
- Very specific: line 62
If no project config exists, create a temporary .commitlintrc.json using the default config from the reference document before running …
- Distinctive: line 113
If commitlint cannot be installed, report the error and provide remediation steps.
- Distinctive: line 118
When validation fails, report each error with:
- Distinctive: line 138
After reporting errors, suggest a corrected message and re-validate.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Copyright 2025-2026 Richard Shade. Licensed under Apache-2.0. --><!-- SPDX-License-Identifier: Apache-2.0 -->Commitlint
Validate commit messages follow the Conventional Commits specification. Enables automatic changelog generation, semantic versioning, and clean git history.
What this skill does
- Checks if
@commitlint/cliand@commitlint/config-conventionalare installed; installs them if missing. - Detects project-specific commitlint configuration or falls back to a sensible default config.
- Validates commit messages for type, scope, subject, body, and footer format.
- Reports errors with specific fixes and examples.
Installation check
# Check if commitlint is available
npx commitlint --version 2>/dev/nullIf not installed, install globally:
npm install -g @commitlint/cli @commitlint/config-conventionalIf installation fails (permissions, no npm), stop validation and report the issue with remediation steps:
- Use
sudo npm install -g ...or fix npm permissions - Use a Node version manager (nvm, volta, fnm)
- Install Node.js if not present
Do not silently skip validation.
Config detection priority
commitlint.config.jsin project root.commitlintrc.jsonin project root.commitlintrc.yamlin project root.commitlintrcin project rootcommitlintfield inpackage.json- Default config (see
references/conventional-commits.md)
If no project config exists, create a temporary .commitlintrc.json using
the default config from the reference document before running validation.
Validation workflow
1. Check commitlint installation
├─ Installed → continue
└─ Missing → install, then continue (fail if install fails)
2. Detect project config
├─ Found → use it
└─ Not found → use default config from references/
3. Run validation
├─ From a string:
│ echo "<message>" | npx commitlint
├─ From a file:
│ cat <file> | npx commitlint
└─ From last git commit:
git log -1 --format=%B | npx commitlint
4. Report results
├─ Valid → confirm and proceed
└─ Invalid → show errors, suggest fixes, re-validate after correctionValidation methods
Validate a commit message string
echo "feat(api): add login endpoint" | npx commitlintValidate contents of a file
cat path/to/message-file.txt | npx commitlintValidate the most recent git commit
git log -1 --format=%B | npx commitlintError handling
Install failure
If commitlint cannot be installed, report the error and provide remediation steps. Do not proceed with validation.
Invalid message
When validation fails, report each error with:
- The rule that failed (e.g.,
type-enum,header-max-length) - What was wrong (e.g., type
featureis not allowed) - A concrete fix (e.g., use
featinstead)
Example:
Validation failed:
1. type-enum: type 'feature' is not allowed
Allowed: feat, fix, docs, style, refactor, perf, test, build, ci,
chore, revert
Fix: use 'feat' instead of 'feature'
2. header-max-length: header is 72 characters (max 50)
Fix: shorten to 'feat: add user authentication with JWT'After reporting errors, suggest a corrected message and re-validate.
Format reference
See references/conventional-commits.md for the full Conventional Commits
format specification, type descriptions, rules, default config, and
examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

