Give every hook plugin an on/off setting per the hook-enablement convention
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- json, shell, yaml
調査の方向性
Read docs/contracts/hook-enablement/README.md and ADR 0131 first for the precedence and default rules, then open a plugin that already complies (one of the 20 not listed) to copy its userConfig shape, hook-script resolution and test. Pick one listed plugin, e.g. plugins/toolchain/.claude-plugin/plugin.json plus its hooks/hooks.json and script, and repeat per hook. Done means the count script reports no plugin and each hook's test covers the three precedence cases.
索引モデルが issue の本文から書いたものです。
説明
Context
The hook-enablement convention (docs/contracts/hook-enablement/README.md, added by the pull request that refs this issue) requires every hook a plugin ships to have its own <name>_enabled on/off setting, at the user layer (userConfig) and the repository layer (docs/conventions/<plugin>.yaml), read by the hook's own script. Claude Code has no per-hook off switch, so without the setting an operator who wants one hook off must disable the whole plugin or every hook.
Of the 31 plugins under plugins/ that ship hooks/hooks.json, these 11 declare no *_enabled option in .claude-plugin/plugin.json:
- animation
- context-budget
- discovery
- display-redaction
- explainer-video
- multi-agent
- playwright
- plugin-profiles
- speech
- themes
- toolchain
Count from a script over plugins/*/hooks/hooks.json and each plugin's userConfig keys, run on main at 3b46e0b4c71 (2026-11-24).
Proposed work
For each plugin listed, one change per plugin:
- Add one boolean
<name>_enableduserConfigoption per hook it ships, with the default the convention's "The per-hook setting" section describes and the title textplugin-option-namingsets. - Make each hook's script resolve the plugin default, the user layer and the repository layer before doing any work, in the convention's precedence, and exit quietly when the result is off.
- Document the key in the plugin's config reference and repository-layer schema.
Acceptance criteria
Precedence follows the owner decision of 2026-11-24 recorded in ADR 0131: the user's explicit value wins for that user, and the repository value is the default for everyone who has not set their own.
- Each of the 11 plugins declares a
<name>_enabledoption for every hook in itshooks/hooks.json. - With the option set to
falseat the user layer, each hook does nothing, whateverdocs/conventions/<plugin>.yamlsays; with the user layer unset andfalseindocs/conventions/<plugin>.yaml, it does nothing; with the user layer unset andtruethere, it runs. - A test per hook covers those three cases.
- Rerunning the count script lists no plugin.
References
- Convention:
docs/contracts/hook-enablement/README.md - Decision:
docs/adr/0131-give-every-hook-its-own-on-off-setting-at-the-user-and-repository-layers.md - Hooks page, "Disable or remove hooks": https://code.claude.com/docs/en/hooks#disable-or-remove-hooks
- 主要言語
- Shell
- スター
- 22
- フォーク
- 2
- 平均マージ
- 2時間 1分
- マージ済み PR(30日)
- 972
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
melodic-software/claude-code-plugins のほかの issue
-
session-owned
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
melodic-software/claude-code-plugins#19371 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
melodic-software/claude-code-plugins#19225 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
melodic-software/claude-code-plugins#17779 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
melodic-software/claude-code-plugins#19380 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
melodic-software/claude-code-plugins#19379 ·
メンテナーはふだん 1 日以内に返信
melodic-software/claude-code-plugins の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
The-AIOS/aios#405 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dracut-ng/dracut#2843 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
luainkernel/lunatik#2752 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
DaoCloud/public-image-mirror#46361 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jdx/jactionlint#360 ·
メンテナーはふだん 1 日以内に返信