Fix empty hooks.json files that fail Claude Code plugin load#192
Open
teknightstick wants to merge 1 commit into
Open
Fix empty hooks.json files that fail Claude Code plugin load#192teknightstick wants to merge 1 commit into
teknightstick wants to merge 1 commit into
Conversation
Four vertical plugins shipped `hooks/hooks.json` as `[]`, which the Claude
Code 2.1.x plugin loader rejects with:
Hook load failed: expected object, received array
The sibling `investment-banking` plugin ships the correct shape
(`{"hooks": {}}`) and loads successfully, so this aligns the other four
verticals with the same placeholder shape.
Affected plugins:
- financial-analysis
- equity-research
- private-equity
- wealth-management
Reproduce: `claude plugin install <name>@claude-for-financial-services`,
then `claude plugin list` shows status `failed to load` on these four.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Four vertical plugins ship
hooks/hooks.jsonas[], which the Claude Code 2.1.x plugin loader rejects:The sibling
investment-bankingplugin ships the correct shape ({"hooks": {}}) and loads fine, so this PR aligns the other four with that same placeholder shape.Affected plugins
financial-analysisequity-researchprivate-equitywealth-managementRepro
claude plugin marketplace add anthropics/financial-services claude plugin install financial-analysis@claude-for-financial-services claude plugin list # status: ✘ failed to loadAfter this patch all four load cleanly:
Likely introduced in #81 ("Restructure repo and add named agents").
Test plan
claude plugin installsucceeds for all fourclaude plugin listshows all four ✔ enabledpython3 scripts/check.pypasses