HookHub

Discover Claude Code Hooks

Browse Hooks

Discover and explore open-source Claude Code hooks to enhance your workflow.

12 hooks found

Security

Dangerous Command Blocker

Blocks dangerous shell commands like rm -rf, git reset --hard, and prevents access to .env files

disler
View Repository
Formatting

Auto Prettier

Automatically formats TypeScript and JavaScript files after edits using Prettier

example
View Repository
Notifications

Desktop Notifier

Sends native desktop notifications when Claude needs input or completes a task

example
View Repository
Logging

Command Logger

Logs all executed commands to a file for compliance auditing and debugging

example
View Repository
Git

Commit Message Enforcer

Validates commit messages follow conventional commits format before allowing commits

EvanL1
View Repository
Validation

TypeScript Strict Checker

Runs TypeScript compiler in strict mode after file changes to catch type errors early

example
View Repository
Security

Secret Scanner

Scans code for accidentally committed secrets, API keys, and credentials before allowing commits

example
View Repository
Formatting

ESLint Auto-Fix

Automatically runs ESLint with --fix flag on modified JavaScript and TypeScript files

example
View Repository
Notifications

Slack Notifier

Posts updates to a Slack channel when Claude completes significant tasks or needs attention

example
View Repository
Git

Git Branch Protector

Prevents direct commits to main/master branch, enforcing pull request workflow

example
View Repository
Validation

JSON Validator

Validates JSON files for syntax errors and schema compliance before saving

example
View Repository
Logging

Session Logger

Creates detailed logs of all Claude interactions for debugging and audit trails

example
View Repository