Skip to content

About

Claude Code PostToolUse format/lint dispatcher hook (Go; native JSON/shell/Go, external biome/prettier/taplo/markdownlint/sqlfluff/ruff/rustfmt/terraform)

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

claude-format-hooks

Go 1.27+ License: MIT CI

A Claude Code PostToolUse hook that formats a file right after Write/Edit/MultiEdit/NotebookEdit writes it


Single global Go binary (format-dispatch). Native JSON, shell, and Go; everything else shells out. No per-repo setup.

Installation

brew install rethunk-tech/tap/format-dispatch

Scoop, building from source, completions, config and uninstall: HUMANS.md.

Highlights

  • --check / --write — CI: exit 1 if formatting is needed, 2 on usage/I/O error.
  • --doctor — formatters, tools, and whether the hook is wired.
  • Prettier only with a project prettier config. Other tools honor theirs without requiring one to exist first.
  • Hook path silent on success, always exits 0. Failures reach the operator and, on Claude payloads, the model.

Documentation

Document Purpose
Humans guide Install, configuration, troubleshooting
Agents guide Architecture, layout, invariants
Contributing Build, test, and pull request workflow
Security Vulnerability reporting
Changelog Release history
Code of conduct Community standards
License MIT License

License

Copyright (c) 2026 Rethunk Tech. Licensed under the MIT License — see LICENSE.

About

Claude Code PostToolUse format/lint dispatcher hook (Go; native JSON/shell/Go, external biome/prettier/taplo/markdownlint/sqlfluff/ruff/rustfmt/terraform)

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages