Skip to content
Development
Skill

/hook-scope-guide

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

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill hook-scope-guide --agent claude-code

SKILL.md

hook-scope-guide.SKILL.md
name: hook-scope-guide
description: 'Select hook scope (plugin, project, global) by audience. Use when authoring a hook.'
category: hook-development

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 the rationale traces through at

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

  • [ ] The selected scope's file location (`hooks/hooks.json`, `.claude/settings.json`, or

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

  • [ ] Plugin hooks do not add `"hooks": "./hooks/hooks.json"` to `plugin.json` (duplicate-load

guard); this absence is verified before the hook is deployed.

  • [ ] Global hooks are flagged with a security note confirming they apply to all Claude sessions

on this machine.

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about hook-scope-guide.

Which coding agents can use hook-scope-guide?
hook-scope-guide installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.