format-hook
Formats every file your agent edits, using your project’s own formatter.
- What it does
- A small Node script plus an after-edit hook for the tools that document one (Claude Code, Cursor, Windsurf). After each edit it runs the formatter your project already has (Prettier, Biome, ruff, gofmt, rustfmt, …). It never blocks the agent and does nothing if no formatter is found.
- When it’s used
- Automatically, after every file edit in those tools. For other tools, use the optional pre-commit check.
- Example
- Nothing to trigger. Edited files simply come out formatted.
- Preset
- Recommended and Everything
- Needs
- Node.js 18+ (the hook is a small Node script); Your project's formatter (optional)