Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

commitlint

$ commitlint Community Low Risk
Conventional Changelog · Code & DevOps · MIT · macos / linux / windows

Standard Node.js linter validating commit messages against Conventional Commits or custom project rulesets. Supports non-interactive stdin piping, commit range validation (--from/--to), and hook-file checking (--edit), exiting non-zero on policy violations.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install commitlint
CLI vs MCP Decision CLI Only

Validates local commit messages in-repo against commitlint.config.*; no reason to wrap in MCP.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Accepts stdin, --from/--to, --edit, and --color=false non-interactively, though built-in output is formatted text unless a custom --format plugin is installed.

  • Stdin and --from/--to work deterministically in non-TTY shells
  • Default formatter emits text rather than native --json
Trust & Safety 24 / 25

Read-only commit message validator with zero repository or file writes.

  • Strictly validates commit text and returns exit codes
Setup & Portability 13 / 15

Cross-platform via npm/npx and Homebrew, though requires Node.js and usually a companion config package like @commitlint/config-conventional.

  • Requires Node.js runtime and config preset packages
Utility & Efficiency 11 / 15

Prevents CI/hook rejections by letting agents pre-flight commit messages before committing.

  • Fast stdin pre-check against project commit conventions
Maintenance & Lineage 8 / 10

Widely adopted open-source project (conventional-changelog/commitlint) under MIT.

  • Standard ecosystem tool under MIT license
Docs & Verifiability 8 / 10

Well-documented CLI flags and rule reference at commitlint.js.org.

  • Official CLI reference at commitlint.js.org/reference/cli

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Purely local commit message linter; no credentials stored or required.

Side Effects
Read-Only
Cost & Quotas

MIT open-source Node.js package; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# commitlint Agent Rules
- Pipe proposed commit messages through `commitlint` before running `git commit` in repos with commitlint configs.
- Use `--from main --to HEAD` to verify branch commit hygiene before opening a PR.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate a draft commit message via stdin
echo "feat(api): add pagination" | npx commitlint --color=false

Checks a candidate commit message against the repo's rules before running git commit.

Lint recent commits in a branch range
npx commitlint --from main --to HEAD --verbose

Audits every commit between main and HEAD without modifying git history.

Strengths for Agents

  • + Strictly read-only stdin and --from/--to checks let agents validate commit messages before git commit.
  • + Clear exit codes and concise rule failure messages.

Caveats & Pitfalls

  • ! No built-in --json flag out of the box without custom formatter modules.
  • ! Requires Node.js and project-level config/preset packages (@commitlint/config-conventional).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI