Skip to content

fix: correct hooks.json shape from [] to {"hooks":{}} in four plugins#124

Closed
Hammad64-bits wants to merge 1 commit into
anthropics:mainfrom
Hammad64-bits:fix/hooks-json-empty-array
Closed

fix: correct hooks.json shape from [] to {"hooks":{}} in four plugins#124
Hammad64-bits wants to merge 1 commit into
anthropics:mainfrom
Hammad64-bits:fix/hooks-json-empty-array

Conversation

@Hammad64-bits

Copy link
Copy Markdown

Fixes #123

The plugin loader expects an object with a record key, not an array. Four vertical plugins were scaffolded with an empty [] placeholder instead of the correct {"hooks":{}} shape, causing 'Hook load failed' on install.

Affected plugins:

  • financial-analysis
  • equity-research
  • private-equity
  • wealth-management

investment-banking already had the correct shape and is unchanged.

Fixes anthropics#123

The plugin loader expects an object with a  record key, not an
array. Four vertical plugins were scaffolded with an empty [] placeholder
instead of the correct {"hooks":{}} shape, causing 'Hook load failed' on
install.

Affected plugins:
- financial-analysis
- equity-research
- private-equity
- wealth-management

investment-banking already had the correct shape and is unchanged.
@mihilmy

mihilmy commented May 18, 2026

Copy link
Copy Markdown
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 hooks.json files ([]{"hooks": {}}) and adds a plugin-validate CI check (the official claude plugin validate) so a malformed manifest can't regress again. Closing as superseded by #232. Really appreciate the contribution.

@mihilmy mihilmy closed this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Several plugin hooks.json files ship as [], causing 'Hook load failed' on install

3 participants