claude-hooks

📁 89jobrien/steve 📅 Jan 24, 2026
15
总安装量
11
周安装量
#22973
全站排名
安装命令
npx skills add https://github.com/89jobrien/steve --skill claude-hooks

Agent 安装分布

claude-code 9
opencode 9
antigravity 8
windsurf 8
gemini-cli 8

Skill 文档

Claude Hooks Skill

Creates and configures hooks for Claude Code to automate workflows and extend functionality.

What This Skill Does

  • Creates PreToolUse validation hooks
  • Sets up PostToolUse logging/cleanup
  • Configures notification hooks
  • Implements custom automation
  • Documents hook patterns

When to Use

  • Tool execution validation
  • Audit logging
  • Custom notifications
  • Workflow automation
  • Security controls

Reference Files

  • references/CLAUDE_HOOK.template.md – Hook configuration examples and patterns

Hook Events

Event Trigger Use Case
PreToolUse Before tool executes Validation, blocking
PostToolUse After tool completes Logging, cleanup
Notification Claude sends notification Alerts
Stop Claude stops Final reports

Configuration Location

Hooks are configured in ~/.claude/settings.json under the hooks key.

Best Practices

  • Keep hooks fast (< 1 second)
  • Handle errors gracefully
  • Use specific matchers
  • Test hooks independently
  • Avoid verbose output