Skip to content
← INDEX / Tags
TAG · 5 prompts

#hooks

Explore public prompts for hooks. Narrow the topic by medium or change the order.

Showing 1–5 of 5 · Page 1 / 1

Free01
TUTORIALClaude Code
Rohit Ghumare2026-06-08

Claude Code Hook Recipe: Auto Format + Lint After Every Edit (PostToolUse)

A PostToolUse hook that makes Claude Code automatically run a formatter (Prettier/Black/gofmt) plus a linter every time it edits or writes a file—permanently removing 'inconsistent formatting' as a code review chore.

Intermediate
Read

Free02
TUTORIALClaude Code
Karan Bansal2026-06-08

Claude Code Hook Recipe: Block Dangerous Bash with PreToolUse

A PreToolUse Bash hook that intercepts destructive commands like rm -rf, fork bombs, and curl|sh before the AI executes them—a last line of defense that holds even against --dangerously-skip-permissions.

Intermediate
Read

Free03
TUTORIALClaude Code
Rohit Ghumare2026-06-08

Claude Code Hook Recipe: Desktop Notification + Sound on Stop

A Stop hook that fires a desktop notification and plays a sound the moment Claude Code finishes running. You can freely switch to other windows—the AI will call you back when it's done, no need to keep staring at the terminal.

Beginner
Read

PRO04
TUTORIALClaude Code
GitHawkAI (Claude Code Output Style Migrator Contributors)2026-06-08

Claude Code Output Style Recovery: SessionStart Hook + Marketplace

After Claude Code removed its built-in output style feature, this uses a SessionStart hook to automatically inject a custom response style (tone / format / rules) into every session, with a local marketplace for managing, activating, and applying multiple styles.

Advanced
Read

PRO05
TUTORIALClaude Code
2026-06-08

Claude Code Hooks Builder: Auto Format/Lint/Tests After Every Edit

Uses hooks in .claude/settings.json to automatically run formatting, linting, type-checking, or tests at specific Claude Code lifecycle events (PostToolUse after an edit, PreToolUse before running a command, Stop when wrapping up)—producing correct JSON config plus an executable hook script, with exit code 2 hard-blocking dangerous actions.

Advanced
Read