Написание и ревью хуков Claude Code
★ 8.0 · vibe-coding
claude-hook-writer is a Claude Code skill that provides expert guidance for writing secure, reliable, and performant Claude Code hooks, validating design decisions and enforcing best practices throughout development. It covers all hook lifecycle events — PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, SessionEnd, Notification, Stop, and PreCompact — along with correct exit codes (0, 1, 2), JSON input validation, path sanitization, sensitive file protection, and tool matcher configuration. The skill explains when to choose command hooks (milliseconds, deterministic) versus prompt hooks (LLM-powered, 2–10 seconds), and how to handle missing dependencies, edge cases with Unicode filenames or spaces in paths, and timeout settings. Use it when designing new hooks, reviewing or debugging existing ones, optimizing slow hooks, or preparing to publish them as PRPM packages.