Add npx plugins compatibility via root marketplace.json - #5
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a root marketplace.json so the repo is discovered via the primary path used by npx plugins add owner/repo, while keeping the existing .claude-plugin/ and .cursor-plugin/ manifests intact. Validation and scaffolding scripts are updated to keep all three manifests in sync, and the README documents the new install path.
Changes:
- New
marketplace.jsonat the repo root mirroring the existing tool-specific manifests. src/validate.tsandsrc/scaffold.tsnow include the root manifest in their sync/validation flow, with a corresponding test intests/validate.test.ts.- README updated with compatibility row, installation instructions, directory layout, and manual-creation guidance.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| marketplace.json | New root manifest matching the existing Claude/Cursor variants. |
| src/validate.ts | Validates the new root manifest alongside tool-specific ones. |
| src/scaffold.ts | Scaffolder writes new plugin entries to the root manifest too. |
| tests/validate.test.ts | Adds a test confirming root marketplace.json is validated. |
| README.md | Documents npx plugins compatibility and updates the manual workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The Vercel `plugins` CLI (npx plugins add owner/repo) already discovered this repo's plugins via .claude-plugin/marketplace.json as a fallback. This change promotes that to the canonical open-plugin discovery path by adding a root marketplace.json, which the CLI checks first. - Add marketplace.json at repo root (mirrors .claude-plugin/marketplace.json) - Validate root marketplace.json in validate.ts alongside tool-specific variants - Update scaffold.ts to keep all three marketplace files in sync - Document npx plugins as a supported installation method in README - Add test coverage for root marketplace validation Committed-By-Agent: claude
mike-north
force-pushed
the
mnorth/npx-plugins-compatibility
branch
from
May 29, 2026 16:26
0b881ed to
ed70579
Compare
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
marketplace.jsonat the repo root — the canonical discovery path checked first bynpx plugins add owner/repo.claude-plugin/and.cursor-plugin/manifests untouched (native tool features preserved)Background
The Vercel
pluginsCLI supports a universal open-plugin format for installing plugins into Claude Code, Cursor, and Codex via a single command:Discovery falls back through:
marketplace.json→.plugin/marketplace.json→.claude-plugin/marketplace.json→.cursor-plugin/marketplace.json. This repo was already compatible via the.claude-plugin/fallback — this change moves us to the primary path without touching any tool-specific structure.Test plan
pnpm run buildpasses (25/25 checks, now validates rootmarketplace.json)pnpm testpasses (48/48 tests)npx plugins discover .still findsskill-evaluatorcorrectly