Skip to content

Fix empty hooks.json files that fail Claude Code plugin load#192

Open
teknightstick wants to merge 1 commit into
anthropics:mainfrom
teknightstick:fix/empty-hooks-schema
Open

Fix empty hooks.json files that fail Claude Code plugin load#192
teknightstick wants to merge 1 commit into
anthropics:mainfrom
teknightstick:fix/empty-hooks-schema

Conversation

@teknightstick
Copy link
Copy Markdown

Summary

Four vertical plugins ship hooks/hooks.json as [], which the Claude Code 2.1.x plugin loader rejects:

Hook load failed: [{"expected":"object","code":"invalid_type","path":[],"message":"Invalid input: expected object, received array"}]

The sibling investment-banking plugin ships the correct shape ({"hooks": {}}) and loads fine, so this PR aligns the other four with that same placeholder shape.

Affected plugins

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

Repro

claude plugin marketplace add anthropics/financial-services
claude plugin install financial-analysis@claude-for-financial-services
claude plugin list   # status: ✘ failed to load

After this patch all four load cleanly:

✔ enabled  financial-analysis@claude-for-financial-services
✔ enabled  equity-research@claude-for-financial-services
✔ enabled  private-equity@claude-for-financial-services
✔ enabled  wealth-management@claude-for-financial-services

Likely introduced in #81 ("Restructure repo and add named agents").

Test plan

  • claude plugin install succeeds for all four
  • claude plugin list shows all four ✔ enabled
  • CI / python3 scripts/check.py passes

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.
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.

1 participant