diff --git a/.cursor/hooks.json b/.cursor/hooks.json index f46121b8..56969a1f 100644 --- a/.cursor/hooks.json +++ b/.cursor/hooks.json @@ -15,6 +15,11 @@ } ], "beforeShellExecution": [ + { + "command": "npx block-no-verify@1.1.2", + "event": "beforeShellExecution", + "description": "Block git hook-bypass flag to protect pre-commit, commit-msg, and pre-push hooks from being skipped" + }, { "command": "node .cursor/hooks/before-shell-execution.js", "event": "beforeShellExecution", diff --git a/hooks/hooks.json b/hooks/hooks.json index a3d23262..d3432a2f 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -2,6 +2,16 @@ "$schema": "https://json.schemastore.org/claude-code-settings.json", "hooks": { "PreToolUse": [ + { + "matcher": "Bash", + "hooks": [ + { + "type": "command", + "command": "npx block-no-verify@1.1.2" + } + ], + "description": "Block git hook-bypass flag to protect pre-commit, commit-msg, and pre-push hooks from being skipped" + }, { "matcher": "Bash", "hooks": [