anthropics / anthropics/financial-services

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

Ouverte
#223 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
34.8k
Forks
5.2k
Merge moyen
2 h 2 min
PR mergées (30 j)
3

Description

## 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:

```json
[]
```

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

```json
{
"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

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.