~/CLIRank
HookVerified

Pre-commit Lint Hook

Automatically lint and fix code before every commit.

Install
Add to .claude/hooks/pre-commit.sh

About

Configure Claude Code to run your linter (ESLint, Prettier, etc.) before every commit. Catches formatting issues, unused imports, and style violations before they enter your git history. Runs only on staged files for speed. Pairs well with the /commit skill to ensure clean, consistent code with every commit.

Tags

lintpre-commiteslintprettierquality

Score Breakdown

CLI Score Breakdown9/11
Official SDK on npm/pip+2
Env var authentication (no browser OAuth)+2
Works in headless/CI environments+2
CLI tool available+1
JSON response for piping/parsing+1
Docs have curl/CLI examples0
Reasonable rate limits for scripted use+1
Machine-readable pricing (md/JSON/static)0
Quality Score Breakdown
npm weekly downloads0
GitHub stars30k
Days since last release11d
Issue close ratio85%
TypeScript typesYes
Docs qualitygood
Breaking changesrare

Scores

CLI
9
Quality
8
AuthorCommunity
Weekly installs0
Last updated3/20/2026

Related

HookVerified
0/wk

Test on Change Hook

Automatically run relevant tests when source files change.

CLI
9
Quality
8
Add to .claude/hooks/post-edit.sh
Hook
0/wk

Security Scan Hook

Scan for secrets, vulnerabilities, and security issues before committing.

CLI
8
Quality
8
Add to .claude/hooks/pre-commit-security.sh
HookVerified
0/wk

Auto-format Hook

Format code with Prettier/Black after every Claude Code edit.

CLI
9
Quality
8
Add to .claude/hooks/post-edit-format.sh