Give every hook plugin an on/off setting per the hook-enablement convention
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- json, shell, yaml
- Bereich
- developer-experience, documentation, tooling
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Shell
- Sterne
- 22
- Forks
- 2
- Ø Merge
- 2 Std. 1 Min.
- Gemergte PRs (30 T.)
- 972
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus melodic-software/claude-code-plugins
-
session-owned
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
melodic-software/claude-code-plugins#19371 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
melodic-software/claude-code-plugins#19225 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
melodic-software/claude-code-plugins#17779 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
melodic-software/claude-code-plugins#19380 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
melodic-software/claude-code-plugins#19379 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in melodic-software/claude-code-plugins
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
The-AIOS/aios#405 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
dracut-ng/dracut#2843 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
luainkernel/lunatik#2752 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
DaoCloud/public-image-mirror#46361 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
jdx/jactionlint#360 ·
Maintainer antworten meist innerhalb von 1 Tag