fix(plugin): move marketplace.json to repo root so GitHub install works#375
Merged
kimyouknow merged 1 commit intomainfrom Apr 21, 2026
Merged
Conversation
Follow-up to #374. The nested location (packages/plugin/.claude-plugin/marketplace.json) still prevented the GitHub-URL install flow because the CLI always looks for '<repo-root>/.claude-plugin/marketplace.json' — '--sparse' limits checkout scope but does not change the manifest lookup path. Evidence of the remaining bug after #374: $ claude plugin marketplace add https://github.com/toss/react-simplikit \ --sparse packages/plugin ✘ Failed to add marketplace: Marketplace file not found at <temp>/.claude-plugin/marketplace.json Changes: - Create .claude-plugin/marketplace.json at the repo root with 'source': './packages/plugin' pointing at the plugin - Delete the redundant packages/plugin/.claude-plugin/marketplace.json - Update the README install command to sparse-checkout both the root manifest and the plugin directory: --sparse .claude-plugin packages/plugin Verified locally (using the repo-root path, which mirrors what the clone looks like after merge): claude plugin validate . → ✓ Passed claude plugin marketplace add <repo-root> --scope local → ✓ Added claude plugin install react-design-philosophy@... → ✓ Installed, enabled
|
Contributor
|
Size Change: 0 B 🆕 Total Size: 0 B |
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
Follow-up to #374. The plugin is still not installable via the documented GitHub URL flow because
.claude-plugin/marketplace.jsonlives underpackages/plugin/, not at the repo root.claude plugin marketplace addalways looks for the manifest at<repo-root>/.claude-plugin/marketplace.json—--sparseonly limits checkout scope, not the manifest lookup path.Reproduction (on current main)
$ claude plugin marketplace add https://github.com/toss/react-simplikit \ --sparse packages/plugin ✘ Failed to add marketplace: Marketplace file not found at <tempdir>/.claude-plugin/marketplace.jsonChanges
.claude-plugin/marketplace.json(new at repo root)source: "./packages/plugin"at the pluginpackages/plugin/.claude-plugin/marketplace.jsonpackages/plugin/README.md--sparse .claude-plugin packages/pluginpackages/plugin/.claude-plugin/plugin.jsonMonorepo pattern
This matches the canonical monorepo marketplace layout:
Verified locally
claude plugin validate .claude plugin marketplace add <repo-root> --scope localclaude plugin install react-design-philosophy@react-design-philosophy(Local path install mirrors the post-clone state, so this proves the real install flow will work once merged.)
Test plan
claude plugin listwith statusenabled