Skip to content

hooks/hooks.json ships as [] in 3 plugins, fails Claude Code schema validation #218

@ahujasachin92

Description

@ahujasachin92

Summary

Three plugins in this marketplace ship a hooks/hooks.json file whose contents are the literal value [] (an empty JSON array). Claude Code's plugin loader expects this file to be an object, so it rejects all three at load time and surfaces the error in /doctor.

Affected plugins

  • equity-research (plugins/vertical-plugins/equity-research/hooks/hooks.json)
  • private-equity (plugins/vertical-plugins/private-equity/hooks/hooks.json)
  • financial-analysis (plugins/vertical-plugins/financial-analysis/hooks/hooks.json)

All three files contain the same content:

[]

What /doctor reports

Plugin (equity-research @ equity-research@claude-for-financial-services): Hook load failed: [
  {
    "expected": "object",
    "code": "invalid_type",
    "path": [],
    "message": "Invalid input: expected object, received array"
  }
]

Identical error for private-equity and financial-analysis.

Expected

If no hooks are intended for these plugins, the file should either:

  1. Be an empty object: {}, or
  2. Be omitted entirely (no hooks/ directory shipped).

Repro

  1. Install the marketplace: /plugin marketplace add anthropics/financial-services
  2. Enable any of the three affected plugins
  3. Run /doctor
  4. Observe the three "Hook load failed" entries

Environment

  • Claude Code: latest
  • Platform: macOS (Darwin 25.5.0)
  • Plugin version observed: 0.1.0 (cache path ~/.claude/plugins/cache/claude-for-financial-services/<plugin>/0.1.0/hooks/hooks.json)

Suggested fix

Replace [] with {} in all three hooks/hooks.json files, or remove the files. Either change is a one-line patch per plugin.

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