Free tool

Claude Code hook builder

Choose what Claude Code should never run, test real commands against your rules as you type, then copy a ready-to-use PreToolUse hook and settings.json. Everything runs in your browser.

1 · Rules

2 · Test a command

3 · Install

  1. Save the script as .claude/hooks/guard-bash.py in your repository.
  2. Merge the JSON into .claude/settings.json, or create the file.
  3. Restart Claude Code and run /hooks to confirm it's active.

      

Want the full, tested set?

Keelwork adds a secret scanner that blocks commits containing API keys, file protection for .env and lockfiles, auto-formatting, notifications, 10 workflow skills, 3 subagents and 5 CLAUDE.md templates, all installed with one command.

Get Keelwork — $24 →   How the hook works →