Skip to content

fix(hooks): correct hooks.json schema in three vertical plugins#100

Open
ali5996610-dot wants to merge 1 commit intoanthropics:mainfrom
ali5996610-dot:fix/hooks-json-schema
Open

fix(hooks): correct hooks.json schema in three vertical plugins#100
ali5996610-dot wants to merge 1 commit intoanthropics:mainfrom
ali5996610-dot:fix/hooks-json-schema

Conversation

@ali5996610-dot
Copy link
Copy Markdown

Summary

The hooks.json files for three plugins (equity-research, financial-analysis, private-equity) contain an empty array [] at the root, but the Claude Code plugin loader expects an object with a hooks key. All three plugins fail to load on install with:

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

This change updates the three files to match the format already used by the working investment-banking plugin: {"hooks": {}}.

What changed

  • plugins/vertical-plugins/equity-research/hooks/hooks.json: []{"hooks": {}}
  • plugins/vertical-plugins/financial-analysis/hooks/hooks.json: []{"hooks": {}}
  • plugins/vertical-plugins/private-equity/hooks/hooks.json: []{"hooks": {}}

How to reproduce the bug

  1. claude plugin marketplace add anthropics/financial-services-plugins
  2. claude plugin install financial-analysis@financial-services-plugins
  3. claude plugin list — plugin shows ✘ failed to load with the schema error above.

Test plan

  • Install one of the affected plugins from this branch and confirm claude plugin list shows ✔ enabled.
  • Confirm investment-banking (already passing) still loads without regression.

🤖 Generated with Claude Code

The hooks.json files for equity-research, financial-analysis, and
private-equity contained an empty array `[]` at the root, but the
plugin loader expects an object with a "hooks" key. All three plugins
failed to load with:

  Hook load failed: expected object, received array

Updated to match the working format used by investment-banking:

  {"hooks": {}}

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@arjunadeltoso
Copy link
Copy Markdown

wealth-management/hooks/hooks.json

also needs this

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.

2 participants