~/CLIRank
HookVerified

Auto-format Hook

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

Install
Add to .claude/hooks/post-edit-format.sh

About

Automatically format code after every file edit by Claude Code. Runs Prettier (JS/TS/CSS), Black (Python), gofmt (Go), or your configured formatter on modified files. Ensures consistent formatting regardless of how Claude generates code. Eliminates formatting diffs in code review and keeps the codebase clean.

Tags

formattingprettierblackstyleautomation

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

Pre-commit Lint Hook

Automatically lint and fix code before every commit.

CLI
9
Quality
8
Add to .claude/hooks/pre-commit.sh
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

Notification Hook

Send Slack or desktop notifications when long-running tasks complete.

CLI
7
Quality
7
Add to .claude/hooks/post-task.sh