Use this skill when creating, improving, or publishing Claude Code hooks. Provides essential guidance on hook format, event handling, I/O conventions, and package structure.
| Location | .claude/hooks/ | | Format | Executable file (shell, TypeScript, Python, etc.) | | Permissions | Must be executable (chmod +x) | | Shebang | Required (#!/bin/bash or #!/usr/bin/env node) | | Input | JSON via stdin | | Output | Text via stdout (shown to user) | | Exit Codes | 0 = success, 2 = block, other = error |
| Event | When It Fires | Common Use Cases |
Da utilizzare durante la creazione o la pubblicazione di hook Claude Code: copre formato eseguibile, tipi di eventi, I/O JSON, codici di uscita, requisiti di sicurezza e struttura del pacchetto PRPM Fonte: pr-pm/prpm.