Skip to content

Add npx plugins compatibility via root marketplace.json - #5

Merged
mike-north merged 1 commit into
mainfrom
mnorth/npx-plugins-compatibility
May 29, 2026
Merged

mike-north merged 1 commit into
mainfrom
mnorth/npx-plugins-compatibility

Conversation

@mike-north

Copy link
Copy Markdown
Collaborator

Summary

  • Adds marketplace.json at the repo root — the canonical discovery path checked first by npx plugins add owner/repo
  • Keeps .claude-plugin/ and .cursor-plugin/ manifests untouched (native tool features preserved)
  • Validate script now checks all three marketplace files stay in sync
  • Scaffold script keeps all three marketplace files in sync when adding new plugins

Background

The Vercel plugins CLI supports a universal open-plugin format for installing plugins into Claude Code, Cursor, and Codex via a single command:

npx plugins add owner/repo

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 build passes (25/25 checks, now validates root marketplace.json)
  • pnpm test passes (48/48 tests)
  • npx plugins discover . still finds skill-evaluator correctly

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json at the repo root mirroring the existing tool-specific manifests.
  • src/validate.ts and src/scaffold.ts now include the root manifest in their sync/validation flow, with a corresponding test in tests/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
mike-north force-pushed the mnorth/npx-plugins-compatibility branch from 0b881ed to ed70579 Compare May 29, 2026 16:26
@mike-north
mike-north merged commit 844c46d into main May 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants