Back to Hooks

Smart Formatting

Hooks development-tools 2,899

Smart code formatting based on file type. Automatically formats code using Prettier, Black, gofmt, rustfmt, and other language-specific formatters.

Install Command
npx claude-code-templates@latest --hook development-tools/smart-formatting
View on GitHub
claude-code — smart-formatting

Content

JSON
{
"description": "Smart code formatting based on file type. Automatically formats code using Prett..."
"hooks": {
"PostToolUse": [1 item]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.