claude-code-hooks

Configure Claude Code hooks in project settings.json for tool events.

9|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/gwenwindflower/dotfiles --skill claude-code-hooks-gwenwindflower
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-code-hooks
Source: https://github.com/gwenwindflower/dotfiles/tree/main/dot_agents/exact_skills/claude-code-hooks
Command: npx skills add https://github.com/gwenwindflower/dotfiles --skill claude-code-hooks-gwenwindflower

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configures Claude Code hooks in settings.json to automate responses to Claude tool events.

Core Features & Use Cases

  • Automates event-driven actions for Claude tool events (PreToolUse, PostToolUse, SessionStart, Stop).
  • Simplifies maintaining project-level configurations by centralizing hook settings.

Quick Start

Edit the project-level .claude/settings.json to enable and customize the hooks property for your Claude workflows.

Frequently Asked Questions about claude-code-hooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Claude Code hooks in settings.json?

Claude Code hooks support four event types: PreToolUse, PostToolUse, SessionStart, and Stop. You configure these event-driven behaviors by updating the hooks property in your project-level .claude/settings.json file.

How do I set up PreToolUse and PostToolUse events in Claude projects?

You configure PreToolUse and PostToolUse events by editing the hooks property in your project-level .claude/settings.json file. This enables automated, event-driven actions tied to Claude tool events during your workflows.

What is the best way to configure Claude Code project settings for automation?

The best way to configure Claude Code project settings for automation is by centralizing hook configurations in the .claude/settings.json file. This approach simplifies maintaining project-level configurations and enables desired event-driven behaviors.

Does Claude Code work with project-level settings.json for hook automation?

Yes, Claude Code works with project-level settings.json for hook automation. You edit the .claude/settings.json file to enable and customize the hooks property, allowing you to automate actions tied to tool events within that specific project.

Can I trigger automated actions on SessionStart and Stop events in Claude Code?

Yes, you can trigger automated actions on SessionStart and Stop events in Claude Code. You configure these specific event-driven behaviors by updating the hooks property in your project's .claude/settings.json file.