From 05abbc86c2210d69bc246853f090f5ce1c84b038 Mon Sep 17 00:00:00 2001 From: Joey Luo Date: Fri, 15 May 2026 11:44:24 +0800 Subject: [PATCH] fix(hooks): use object schema in hooks.json across vertical plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vertical plugins financial-analysis, equity-research, private-equity, and wealth-management ship hooks/hooks.json as an empty array (`[]`), but Claude Code's plugin loader validates the file against an object schema and rejects it with: Invalid input: expected object, received array Captured via `claude --debug-file `: [ERROR] Failed to load hooks for financial-analysis: [ [ERROR] Failed to load hooks for wealth-management: [ [ERROR] Failed to load hooks for private-equity: [ [ERROR] Failed to load hooks for equity-research: [ [DEBUG] Plugin not available for MCP: ... - error type: hook-load-failed Consequences: - Plugins show as "failed to load" in `claude plugin list` - Bundled MCP servers (FactSet, S&P, Daloopa, etc.) are disabled - Skills and slash commands degrade — Claude falls back to LLM-inferred workflows rather than the canonical plugin skills `investment-banking` already uses the correct `{"hooks": {}}` schema and loads cleanly, confirming the desired format. This change aligns the four affected plugins with that schema so they load and expose their MCP servers, skills, and slash commands as intended. --- plugins/vertical-plugins/equity-research/hooks/hooks.json | 4 +++- plugins/vertical-plugins/financial-analysis/hooks/hooks.json | 4 +++- plugins/vertical-plugins/private-equity/hooks/hooks.json | 4 +++- plugins/vertical-plugins/wealth-management/hooks/hooks.json | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/plugins/vertical-plugins/equity-research/hooks/hooks.json b/plugins/vertical-plugins/equity-research/hooks/hooks.json index fe51488c..deffac97 100644 --- a/plugins/vertical-plugins/equity-research/hooks/hooks.json +++ b/plugins/vertical-plugins/equity-research/hooks/hooks.json @@ -1 +1,3 @@ -[] +{ + "hooks": {} +} diff --git a/plugins/vertical-plugins/financial-analysis/hooks/hooks.json b/plugins/vertical-plugins/financial-analysis/hooks/hooks.json index fe51488c..deffac97 100644 --- a/plugins/vertical-plugins/financial-analysis/hooks/hooks.json +++ b/plugins/vertical-plugins/financial-analysis/hooks/hooks.json @@ -1 +1,3 @@ -[] +{ + "hooks": {} +} diff --git a/plugins/vertical-plugins/private-equity/hooks/hooks.json b/plugins/vertical-plugins/private-equity/hooks/hooks.json index fe51488c..deffac97 100644 --- a/plugins/vertical-plugins/private-equity/hooks/hooks.json +++ b/plugins/vertical-plugins/private-equity/hooks/hooks.json @@ -1 +1,3 @@ -[] +{ + "hooks": {} +} diff --git a/plugins/vertical-plugins/wealth-management/hooks/hooks.json b/plugins/vertical-plugins/wealth-management/hooks/hooks.json index fe51488c..deffac97 100644 --- a/plugins/vertical-plugins/wealth-management/hooks/hooks.json +++ b/plugins/vertical-plugins/wealth-management/hooks/hooks.json @@ -1 +1,3 @@ -[] +{ + "hooks": {} +}