anthropics / anthropics/financial-services
hooks/hooks.json format bug: `[]` should be `{"hooks": {}}` — 4 vertical plugins fail to load
- Lingua principale
- Python
- Stelle
- 34.8k
- Fork
- 5.2k
- Merge medio
- 2h 2m
- PR unite (30g)
- 3
Descrizione
## 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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.