{ "permissions": { "deny": [ "Read(./secrets/**)", "Edit(./secrets/**)", "Write(./secrets/**)", "Edit(./.claude/**)", "Write(./.claude/**)", "Edit(**/appsettings.Production.json)", "Bash(git push:*)" ] }, "hooks": { "PreToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "powershell.exe", "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", "${CLAUDE_PROJECT_DIR}/.claude/hooks/guard-secrets.ps1"] } ] }, { "matcher": "Bash", "hooks": [ { "type": "command", "command": "powershell.exe", "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", "${CLAUDE_PROJECT_DIR}/.claude/hooks/guard-commands.ps1"] } ] } ], "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "powershell.exe", "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", "${CLAUDE_PROJECT_DIR}/.claude/hooks/check-edit.ps1"], "timeout": 60 } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "powershell.exe", "args": ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", "${CLAUDE_PROJECT_DIR}/.claude/hooks/stop-checks.ps1"], "timeout": 300 } ] } ] } }