Fix hooks.json schema in 4 vertical plugins#84
Closed
phschultz1 wants to merge 1 commit into
Closed
Conversation
Four vertical plugins ship hooks/hooks.json as an empty JSON array `[]`,
which fails Claude Code's manifest schema validation:
Hook load failed: [
{
"expected": "object",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected object, received array"
}
]
Result: financial-analysis, equity-research, private-equity, and
wealth-management install successfully but show "✘ failed to load" in
`claude plugin list`, and their skills/commands never become available
in the session.
investment-banking already has the correct shape — `{"hooks": {}}` —
this PR aligns the other four with that convention.
Reproduces on Claude Code 2.1.128.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Collaborator
|
Thanks for catching this and taking the time to send a fix! 🙏 This was reported by many contributors — the underlying bug is now resolved in #232, which repairs all four broken |
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 an empty JSON array ([]), which fails Claude Code's manifest schema validation:Result:
financial-analysis,equity-research,private-equity, andwealth-managementinstall successfully but show✘ failed to loadinclaude plugin list, and their skills/commands never surface in the session.investment-bankingalready has the correct shape ({"hooks": {}}); this PR aligns the other four with that convention.Files changed
plugins/vertical-plugins/financial-analysis/hooks/hooks.jsonplugins/vertical-plugins/equity-research/hooks/hooks.jsonplugins/vertical-plugins/private-equity/hooks/hooks.jsonplugins/vertical-plugins/wealth-management/hooks/hooks.jsonEach goes from
[]to:{ "hooks": {} }Reproduces on
claude plugin marketplace add anthropics/claude-for-financial-servicesfollowed byclaude plugin install <plugin>@claude-for-financial-servicesTest plan
claude plugin install financial-analysis@claude-for-financial-services→Status: ✘ failed to loadbefore the fix~/.claude/plugins/cache/.../hooks/hooks.json→Status: ✔ enabled, slash commands surface in next sessioninvestment-banking(already correct)python3 scripts/check.pyshould pass (no new content added — only manifest shape correction)🤖 Generated with Claude Code