| What it is | Run tasks like formatters and linters against files staged in Git | Runs Prettier on only the files you changed, with a pre-commit mode | Fast and powerful Git hooks manager for any type of projects. | Lint commit messages against your team's commit convention |
| Features | - runs tasks on staged files only, filtered by glob
- any shell command: linters, formatters, tests
- backs up the original state before running
- stages changes made by tasks
- JS configuration files
| - runs Prettier on changed files only
- --staged pre-commit mode that formats and re-stages staged files
- compare changes with a branch
- filter files with glob patterns
- Git and Mercurial
| - parallel execution
- staged/pushed file lists
- glob filters
- lefthook.yml
- single binary
- npm/gem/pip/go installs
| - lints commit messages on the commit-msg git hook
- CI checks for every commit in a pull request (GitHub Actions and others)
- shareable npm configs, including a Conventional Commits preset
- configurable rules and plugins
- interactive prompt for writing a valid message
- agent skill and AGENTS.md instructions for coding agents
- Node.js, Bun and Deno
|