hook-recipeslisted
Install: claude install-skill Tibsfox/gsd-skill-creator
# Hook Recipes
A curated collection of ready-to-use Claude Code hook configurations. Each recipe is a complete JSON snippet you can add to your `.claude/settings.json` or project-level `.claude/settings.local.json`.
## Hook Types Reference
| Hook Type | Fires When | Common Use |
|-----------|-----------|------------|
| `PreToolUse` | Before any tool executes | Block dangerous commands, inject context |
| `PostToolUse` | After any tool executes | Log actions, format output, validate results |
| `Notification` | Claude wants to notify the user | Custom notification routing |
| `Stop` | Claude is about to stop responding | Enforce checklists, add summaries |
### Tool Names for Matching
| Tool Name | What It Does |
|-----------|-------------|
| `Bash` | Shell command execution |
| `Read` | File reading |
| `Write` | File writing (full file) |
| `Edit` | File editing (partial) |
| `Glob` | File pattern matching |
| `Grep` | Content searching |
| `WebFetch` | HTTP requests |
## Safety Hooks
### Block Destructive Git Commands
Prevents accidental force pushes, hard resets, and branch deletions.
```json
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "intercept",
"command": "bash -c '[[ \"$CLAUDE_TOOL_INPUT\" =~ (git\\s+push\\s+--force|git\\s+push\\s+-f|git\\s+reset\\s+--hard|git\\s+clean\\s+-f|git\\s+checkout\\s+\\.|git\\s+restore\\s+\\.) ]]'",
"timeout": 5000,
"descr