Skip to content

fix: correct hooks.json format, remove explicit hooks path, and improve install docs#4

Merged
giancarloerra merged 1 commit intomainfrom
fix/plugin-hooks-and-install-docs
Mar 16, 2026
Merged

fix: correct hooks.json format, remove explicit hooks path, and improve install docs#4
giancarloerra merged 1 commit intomainfrom
fix/plugin-hooks-and-install-docs

Conversation

@giancarloerra
Copy link
Owner

Summary

Fix the plugin hooks loading error reported by /doctor and improve Claude Code install instructions in README.

Changes

  • Wrap hooks/hooks.json events under a "hooks" key as required by Claude Code's plugin loader
  • Remove explicit "hooks": "./hooks/hooks.json" path from plugin.json (auto-discovered from default location)
  • Add shell commands (claude plugin marketplace add / claude plugin install) alongside the in-Claude /plugin commands in both Quick Start and Configuration sections

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • Documentation update

Testing

  • claude plugin validate . passes
  • claude --plugin-dir . loads without hook errors
  • /doctor shows no socraticode errors for the inline plugin

Checklist

Related issues

Fixes hook load error: "Invalid input: expected record, received undefined"

@giancarloerra giancarloerra self-assigned this Mar 16, 2026
@giancarloerra giancarloerra merged commit 17eedd6 into main Mar 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant