CtrlK
BlogDocsLog inGet started
Tessl Logo

claude-code-hooks

Claude Code hook system for pre/post tool execution. Triggers on: hooks, PreToolUse, PostToolUse, hook script, tool validation, audit logging.

63

Quality

75%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

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.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

20%

Bash Command Safety Guard for Claude Code

PreToolUse blocking hook with security validation

Criteria
Without this skill
With this skill

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%

95%

25%

Compliance Audit Hook for Claude Code

PostToolUse audit logging hook

Criteria
Without this skill
With this skill

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%

86%

37%

Session Lifecycle Hooks for Claude Code

Session lifecycle hooks (SessionStart and SessionEnd)

Criteria
Without this skill
With this skill

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%

Repository
NeverSight/learn-skills.dev
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.