fix: correct .claude-plugin manifest schema (skills field, repository field) - #2
Open
christushealth wants to merge 1 commit into
Open
Conversation
marketplace.json's plugins[0].skills declared per-skill objects
({name, path, invoke}), but the marketplace schema expects a flat
array of relative path strings (matching every other marketplace's
usage, e.g. box, coursera, netsuite). plugin.json's repository field
used the npm-style {type, url} object; the schema expects a plain
URL string (matching ast-grep/impeccable/context-mode's plugin.json).
Both mismatches make `claude plugin validate` fail, which surfaces to
installers as a generic "This plugin uses a source type your Claude
Code version does not support" error rather than a real schema error
-- confirmed via `claude plugin install astria@astria` failing on the
latest Claude Code (2.1.210) and `claude plugin validate .` pinpointing
both fields. Verified fixed: validate passes and a real
`claude plugin marketplace add` + `claude plugin install` round-trip
succeeds.
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
.claude-plugin/marketplace.json:plugins[0].skillswas an array of{name, path, invoke}objects. The marketplace schema expects a flat array of relative path strings (as used by other marketplaces registered in Anthropic's official/knowledge-work catalogs, e.g.box,coursera,netsuite). Changed to["./astria-api", "./prompt-writing", ...]..claude-plugin/plugin.json:repositoryused the npm-style{type, url}object. The plugin schema expects a plain URL string (as used byast-grep,impeccable,context-mode'splugin.json). Changed to a bare string.Why this matters
Both fields fail
claude plugin validateon current Claude Code (tested on 2.1.210). Because validation fails before a useful error can be shown,/plugin install astria@astriasurfaces a generic, misleading message: "This plugin uses a source type your Claude Code version does not support. Update Claude Code and try again." — implying the CLI is out of date, when it's actually these two manifest fields. Right now nobody can install this plugin via the marketplace flow.Test plan
claude plugin validate .passes on the branch (was failing withplugins.0.skills: Invalid input, thenrepository: Invalid input: expected string, received object, before each respective fix)claude plugin marketplace add <path> --scope local+claude plugin install astria@astriasucceeds end-to-end and the plugin appears inclaude plugin list