Repository navigation
chore: move the Claude Code plugin into its own folder - #31
Merged
Merged
Conversation
The plugin was the repository root, so installing it copied the whole repository, and its package.json and lockfile put a dependency install on every user. Anthropic's plugin directory also checks everything in the plugin folder: the root holds more than 512 files, files over 256 KiB and binaries, which hold a submission for manual review. The plugin now lives in plugins/agent-commerce-gateway with its manifest, the agent-commerce skill and a README for the directory listing. It is renamed agent-commerce-gateway and the marketplace points at the folder; the skill keeps its name and content. The manifest gains displayName, documentationUrl and supportUrl, and the metadata check covers the two new links.
Revinand
approved these changes
Nov 6, 2026
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.
What changed
The Claude Code plugin moves from the repository root into its own folder,
plugins/agent-commerce-gateway:.claude-plugin/plugin.jsonmoves into the folder. The plugin is renamedagent-commerce-gatewayand gainsdisplayName,documentationUrlandsupportUrl, fields the Anthropic directory listing reads.skills/agent-commercemoves into the folder unchanged (100% renames). The skill keeps its name.README.mdin the folder describes the plugin, what it runs, sends and fetches, and its safety rules. The directory shows it as the listing description..claude-plugin/marketplace.jsonstays at the root and points at the folder.scripts/check-package-metadata.mjsreads the moved manifest and also checksdocumentationUrlandsupportUrl, so the support link cannot point outside this repository.tests/unit/cli/skill.test.tsreads the new paths and checks that the plugin folder holds the skill and a README but nopackage.json.Why
With the root as the plugin, installing it copied the whole repository, and Claude Code installed the dependencies from its lockfile. Installed from the current master into a clean Claude Code config, the plugin cache held all 637 repository files plus a 428 MB
node_modules, dev dependencies included. From this branch it holds the 7 plugin files (37 KB).The Anthropic plugin directory checks everything in the plugin folder. The root has more than 512 files, non-image files over 256 KiB (
architecture/agent-commerce.pdf,package-lock.json, forge-std'ssafeconsole.sol), binaries (.pdf,.wasm) and a lockfile besidepackage.json. Each of these holds a submission for manual review. The new folder avoids them.Compatibility
/plugin install agent-commerce-gateway@agent-commerce. An existing install ofagent-commerce@agent-commerceno longer finds its plugin in the marketplace and has to be reinstalled under the new name.npx skills add devlab-group/agent-commerce --skill agent-commercekeeps working: the skills CLI reads theskills/folder of each local plugin inmarketplace.json.skills/agent-commerceon GitHub stop resolving after the merge.devlab-group/agent-commerce/agent-commercemay need to be re-indexed after the merge. The ClawHub copy of the skill is uploaded separately and is not affected.LICENSE,README.md,package.jsonanddist/.How it was tested
Node 22.23.2, macOS:
npm run check:contract: contract surface unchanged.npm run lintandnpm run typecheck: clean.npm test: 3481 passed, 3 failed, 29 skipped. The same 3 fail on master on the same machine: the twogateway-entrypointtests because macOS ships bash 3.2 withoutmapfile, and theadapters413 test, which also passed on a second run. CI on master is green.npm run check:metadata: OK, and it exits 1 whensupportUrlpoints at another host.claude plugin validate .andclaude plugin validate ./plugins/agent-commerce-gateway(Claude Code 2.1.197): pass. The only warnings are that Claude Code itself does not readdocumentationUrlandsupportUrl.claude plugin marketplace addfrom this checkout, thenclaude plugin install agent-commerce-gateway@agent-commerce, in a separate config directory: installs version 2.6.0 with the 7 plugin files.npx skills@1.7.6 add <checkout> --listlists theagent-commerceskill, the same as on master.npm pack --dry-run: the same non-distfiles as master.Not covered
npm run test:e2ewas not run locally; this change does not touch the gateway.