- 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 就會安裝它。