โ Browse
format-code
karanb192 โ
524
This PostToolUse hook automatically formats Python files with ruff and JavaScript/TypeScript/JSON/Markdown/YAML/HTML files with prettier immediately after Claude writes or edits them. File paths are passed safely via argv to prevent shell injection, unsupported files are skipped silently, and all outcomes are logged to ~/.claude/hooks-logs/.
Install
> /plugin marketplace add karanb192/claude-code-hooks/tree/HEAD/plugins/format-code
> /plugin install format-code
Source: https://github.com/karanb192/claude-code-hooks/tree/HEAD/plugins/format-code
What it's made of
1 hook
- Commands
- 0
- Agents
- 0
- Skills
- 0
- MCP servers
- 0
- Hooks
- 1 ยท PostToolUse
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
node- Talks to
- nothing external detected
Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.
Is this your plugin?
Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (karanb192).