hook-scope-guide

Installation
SKILL.md

Hook Scope Decision Guide

This skill helps you choose the right location for Claude Code hooks based on their purpose, audience, and persistence needs.

Important: Auto-Loading Behavior

hooks/hooks.json is automatically loaded by Claude Code when the plugin is enabled. Do NOT add "hooks": "./hooks/hooks.json" to your plugin.json - this causes duplicate load errors. The hooks field in plugin.json is only needed for additional hook files beyond the standard hooks/hooks.json.

The Three Scopes

Scope Location Audience Committed? Persistence
Plugin hooks/hooks.json in plugin Plugin users With plugin When plugin enabled
Project .claude/settings.json Team members Yes (repo) Per project
Global ~/.claude/settings.json Only you Never All sessions

Decision Framework

Related skills
Installs
13
GitHub Stars
278
First Seen
5 days ago