Fix plugin.json so the plugin installs on current Claude Code#21
Open
bryan-anthropic wants to merge 1 commit into
Open
Fix plugin.json so the plugin installs on current Claude Code#21bryan-anthropic wants to merge 1 commit into
bryan-anthropic wants to merge 1 commit into
Conversation
The plugin failed to install via `claude plugin install` on recent
Claude Code releases (verified v2.1.170) due to three plugin.json
schema issues:
- author: string -> object ({"name": "MLflow Team"}); recent CLI
validates author as an object and rejects the string form.
- skills[]: add the "./" path prefix to each entry; without it the
loader rejects the entries at install time and no skills register.
- hooks: replace the bare script-path array with a reference to a
new hooks/hooks.json that wires mlflow-suggest-hook.py to the
UserPromptSubmit event.
Verified: installs cleanly and registers all 9 skills + the hook.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The plugin currently fails to install via
claude plugin installon recent Claude Code releases (verified on v2.1.170) because of threeplugin.jsonschema issues. This PR fixes them so the plugin installs and all 9 skills + the hook register.Changes
author— changed from a string to an object ({"name": "MLflow Team"}). Recent CLI versions validateauthoras an object and reject the string form.skills[]— added the./path prefix to each entry. Without it the loader rejects the entries at install time, so no skills register.hooks— replaced the bare script-path array with a reference to a newhooks/hooks.jsonconfig (added) that wires the existingmlflow-suggest-hook.pyto theUserPromptSubmitevent. Plugin hooks are configured via a hooks JSON file rather than a list of script paths.Verification
Installed the patched plugin from a local marketplace on Claude Code v2.1.170:
✘ Failed to install … Validation errors: author …, hooks …, skills …✔ Successfully installed—claude plugin details mlflowreports Skills (9) and Hooks (1, UserPromptSubmit).