Automatically formats code files after Claude writes or edits them using Prettier, Black, or other formatters
Key capabilities and functionality
Hook configuration and script content
Setup instructions and requirements
~/.claude/config.json
%APPDATA%\Claude\config.json
~/.config/claude/config.json
Common scenarios and applications
Prerequisites and dependencies
Common issues and solutions
jq command not found
Install jq: brew install jq (macOS) or apt-get install jq (Ubuntu)
Prettier not found in PATH
Install Prettier: npm install -g prettier
Black formatter not found
Install Black: pip install black
Go formatting tools not available
Install Go development tools and ensure gofmt is in PATH
Rust formatting tools not available
Install Rust toolchain: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Ruff not found
Install Ruff: pip install ruff
September 19, 2025