From 42d9f73f6ed58b3982ab83efbbd1064eb1cb3a61 Mon Sep 17 00:00:00 2001 From: kimyouknow Date: Tue, 21 Apr 2026 23:49:05 +0900 Subject: [PATCH] fix(plugin): move marketplace.json to repo root so GitHub install works MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 '/.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 /.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 --scope local → ✓ Added claude plugin install react-design-philosophy@... → ✓ Installed, enabled --- .../plugin/.claude-plugin => .claude-plugin}/marketplace.json | 2 +- packages/plugin/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {packages/plugin/.claude-plugin => .claude-plugin}/marketplace.json (89%) diff --git a/packages/plugin/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json similarity index 89% rename from packages/plugin/.claude-plugin/marketplace.json rename to .claude-plugin/marketplace.json index 10f87bb2..8b3741fd 100644 --- a/packages/plugin/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -7,7 +7,7 @@ "plugins": [ { "name": "react-design-philosophy", - "source": "./" + "source": "./packages/plugin" } ] } diff --git a/packages/plugin/README.md b/packages/plugin/README.md index b942d342..9e522324 100644 --- a/packages/plugin/README.md +++ b/packages/plugin/README.md @@ -7,7 +7,7 @@ React design philosophy plugin for Claude Code. Includes skills for reviewing an ```bash # 1. Add this plugin's marketplace (sparse-checkout keeps the clone minimal) claude plugin marketplace add https://github.com/toss/react-simplikit \ - --sparse packages/plugin + --sparse .claude-plugin packages/plugin # 2. Install the plugin claude plugin install react-design-philosophy@react-design-philosophy