Claude Code hook system for pre/post tool execution. Triggers on: hooks, PreToolUse, PostToolUse, hook script, tool validation, audit logging.
PostToolUse audit logging hook
Config file location
50%
50%
PostToolUse event
100%
100%
Bash matcher
100%
100%
Command type
100%
100%
Timeout field
0%
100%
stdin read pattern
100%
100%
jq parsing
0%
100%
CLAUDE_PROJECT_DIR usage
100%
100%
Quoted variables
100%
100%
jq error handling
50%
100%
PreToolUse blocking hook with security validation
PreToolUse event
100%
100%
Command type and field
100%
100%
stdin read pattern
100%
100%
jq to extract input
0%
100%
Exit code 2 for blocking
100%
100%
Exit code 0 for allowing
100%
100%
Stderr error message
100%
100%
Path traversal check
100%
100%
Quoted variables
100%
100%
jq error handling
0%
100%
Session lifecycle hooks (SessionStart and SessionEnd)
Config file location
25%
50%
SessionStart event
0%
100%
SessionEnd event
0%
100%
No matcher on session events
26%
100%
Command type
100%
100%
CLAUDE_PROJECT_DIR in commands
100%
100%
Timeout set
0%
0%
Quoted variables in scripts
100%
100%
Correct array structure
100%
100%
f772de4
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.