hook-scope-guide

Solid

Select hook scope (plugin, project, global) by audience. Use when authoring a hook.

Code & Development 350 stars 43 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
85
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 - Writing the hook itself (use `abstract:hook-authoring`) - Scoring an existing hook (use `abstract:hooks-eval`) ## 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 - **abstract:hook-authoring** - For hook rule syntax and patterns - **abstract:validate-plugin** - For validating plugin structure including hooks ## References - [Claude Code Hooks Documentation](https://docs.anthropic.com/en/docs/claude-code/hooks) - [Settings Configuration](https://docs.anthropic.com/en/docs/claude-code/settings) ## Exit Criteria - [ ] A single scope (plugin / project / global) is selected and t...

Details

Author
athola
Repository
athola/claude-night-market
Created
12 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category