Skip to content

Fix plugin.json schema for correct Claude Code installation#10

Merged
nguyendlp merged 1 commit intomainfrom
develop
Mar 22, 2026
Merged

Fix plugin.json schema for correct Claude Code installation#10
nguyendlp merged 1 commit intomainfrom
develop

Conversation

@nguyendlp
Copy link
Owner

Summary

  • Remove hooks field from plugin.json — Claude Code v2.1+ auto-loads hooks/hooks.json by convention; declaring it explicitly causes a duplicate error that silently breaks plugin discovery
  • Add explicit agents array listing all 4 agent file paths — the validator rejects directory paths for agents
  • Add commands and skills as arrays — required format per validator

Root cause

The hooks declaration was causing the plugin manifest to fail validation, which caused claude plugin install to report "Plugin not found in marketplace" even though the marketplace itself was found correctly.

Test plan

  • claude plugin marketplace add nguyendlp/specforge succeeds
  • claude plugin install specforge@nguyendlp/specforge installs successfully
  • All 10 commands, 4 agents, and 3 skills are available after install

🤖 Generated with Claude Code

- Remove `hooks` field — Claude Code auto-loads hooks/hooks.json by
  convention; declaring it explicitly causes a duplicate error
- Add explicit `agents` array with all 4 agent file paths (validator
  rejects directory paths for agents)
- Add `commands` and `skills` as arrays (required format)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nguyendlp nguyendlp merged commit 94c2f69 into main Mar 22, 2026
2 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