Skip to content

hooks/hooks.json format bug: [] should be {"hooks": {}} — 4 vertical plugins fail to load #223

@guanlixue09-bit

Description

@guanlixue09-bit

Bug

After running claude plugin install for all 17 plugins in this marketplace, 4 of them fail to load with:

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

Affected plugins

  • financial-analysis (the core base — most impactful, blocks downstream usage)
  • equity-research
  • private-equity
  • wealth-management

Root cause

The hooks/hooks.json file in these 4 plugins contains an empty array:

[]

But Claude Code's plugin loader expects an object with a hooks field:

{
  "hooks": {}
}

Other vertical plugins (e.g. investment-banking, fund-admin, operations) already use the correct format and load fine — so the fix is just normalizing these 4 files.

Reproduction

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

Suggested fix

Replace contents of these files from [] to {"hooks": {}}:

  • plugins/vertical-plugins/financial-analysis/hooks/hooks.json
  • plugins/vertical-plugins/equity-research/hooks/hooks.json
  • plugins/vertical-plugins/private-equity/hooks/hooks.json
  • plugins/vertical-plugins/wealth-management/hooks/hooks.json

After applying the fix locally, all 17 plugins load successfully.

Environment

  • Claude Code: 2.1.143
  • OS: macOS (Darwin 24.6.0)
  • Installed via claude plugin marketplace add anthropics/financial-services on 2026-05-17

Happy to send a PR if helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions