# Claude Code hook examples

Example hook scripts from the Claude Code repository\.

Canonical: https://claudelist.com/listings/hooks-examples

Category: Hooks

Source: official · Anthropic

Source checked: 2026-10-14

Website: https://github.com/anthropics/claude-code/tree/main/examples/hooks

Browse runnable hook examples and adapt them to project or user settings.

## Install or set up

1. Pick a hook from the source examples, inspect its command and permissions, then adapt it into `.claude/settings.json` via `/hooks`. These are templates rather than an installable bundle.

Installation guide: https://github.com/anthropics/claude-code/tree/main/examples/hooks
