Hook scope guide

From athola/claude-night-market · View interactive version

Hook scope guide is an AI agent skill from the GitHub repository athola/claude-night-market. Select hook scope (plugin, project, global) by audience. Use when authoring a hook.

How to use this skill

Skill file

Hook Scope Decision Guide

Overview

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

When NOT To Use

Decision Framework

Three questions pick the scope: who needs this hook, should it be

version controlled, and how long should it persist. Plugin hooks

(hooks/hooks.json in the plugin) serve plugin users while the plugin

is enabled. Project hooks (.claude/settings.json) serve the team and

are committed. Global hooks (~/.claude/settings.json) serve only you,

in every session, and are never committed.

The question tree, per-scope configuration and examples, loading

precedence, security considerations, migration and troubleshooting are

written once, in

plugins/abstract/skills/hook-authoring/modules/scope-selection.md.

Read it before choosing. Agent-aware SessionStart hooks are covered in

abstract:hook-authoring under Hook Event Types.

Related Skills

References

Exit Criteria

least two of the three decision questions (audience, version control, persistence).

~/.claude/settings.json) is confirmed to exist or is created at the correct path.

guard). This absence is verified before the hook is deployed.

on this machine.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.