hook-scope-guide
БесплатноБез исполняемых скриптовНе проверенSelect hook scope (plugin, project, global) by audience. Use when authoring a hook.
от athola★ 358 звёзд на GitHubОб этом скилле
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
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"toplugin.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.
Установить hook-scope-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hook-scope-guide?
Select hook scope (plugin, project, global) by audience. Use when authoring a hook.
Как установить скилл hook-scope-guide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hook-scope-guide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic