Claude Code hook system for pre/post tool execution. Triggers on: hooks, PreToolUse, PostToolUse, hook script, tool validation, audit logging.
63
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./data/skills-md/0xdarkmatter/claude-mods/claude-code-hooks/SKILL.mdPreToolUse 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%
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%
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%
d725a6d
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.