FREE HOOKS BUILDER

Valid hooks.json without hand-writing JSON

Pick event + command. Download. Drop into .cursor/hooks.json.

Builder
hooks.json
{
  "version": 1,
  "hooks": {
    "afterFileEdit": [
      {
        "matcher": "*.{ts,tsx}",
        "command": "npx prettier --write $FILE"
      }
    ]
  }
}

FAQ

I already have hooks. How do I know which CLAUDE.md rules still need one?

Run the Claude Code Hook Coverage Checker: paste your settings.json hooks array and your CLAUDE.md, and it flags every imperative rule ("never", "always", "must") that has no matching hook behind it yet.

By Rakshit Yadav · Published · Last updated . Next: describe a rule in plain English for Claude Code, check which CLAUDE.md rules still need a hook, lint your CLAUDE.md for bloat, or estimate what a multi-subagent run costs before you wire up a ceiling hook.

[ RUNS IN YOUR BROWSER • DROP A FILE OR TAP GENERATE • NO SIGNUP ]

Go further

Liked the free tool? Get the kits.

Engineering, Marketing, or Both: agents, skills, and slash commands you drop into any Cursor project.