- name
SKILL.md
技能文件保留在发布者的仓库中。
在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill hook-scope-guide -a cursor -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill hook-scope-guide -a claude-code -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill hook-scope-guide -a codex -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill hook-scope-guide -a grok -y在 Grok Bot 聊天中发送复制的消息。Bot 会从 GitHub 获取这个 SKILL.md,并添加到你所有 Bot 共享的技能中。
Install this skill: https://github.com/athola/claude-night-market/tree/HEAD/plugins/abstract/skills/hook-scope-guide来自发布者
This skill helps you choose the right location for Claude Code hooks based on their purpose, audience, and persistence needs.
abstract:hook-authoring)abstract:hooks-eval)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.
hooks/hooks.json, .claude/settings.json, or
~/.claude/settings.json) is confirmed to exist or is created at the correct path."hooks": "./hooks/hooks.json" to plugin.json (duplicate-load
guard). This absence is verified before the hook is deployed.Select hook scope (plugin, project, global) by audience. Use when authoring a hook.
---name: hook-scope-guidedescription: Select hook scope (plugin, project, global) by audience. Use when authoring a hook.---# plugins/abstract/skills/hook-scope-guide/SKILL.md常见问题
从发布者处下载 plugins/abstract/skills/hook-scope-guide/SKILL.md,或复制路径后打开仓库。PlugMCP 只收录该技能,不托管文件。
发布者将它存放在 https://github.com/athola/claude-night-market。
Claude、Cursor、Codex 和 Grok Build 可以读取你从发布者仓库添加的 SKILL.md。在聊天中发送技能的 GitHub 文件夹链接,Grok Bot 就会安装它。