publish-plugin
Adds an already-packaged plugin to a marketplace repository (cyberuni/marketplace by default) by
opening a pull request that updates every vendor marketplace file the repository carries.
Listing a plugin in a shared repository is not the only way to distribute it: a repository can carry
its own catalog and let users add it directly as a marketplace. That is the marketplace
skill; the two compose, and neither replaces the other.
The four steps
Section titled “The four steps”- Locate — work out which of the two repos in play (the plugin, and the marketplace) the current directory is, rather than assuming.
- Pre-flight — validate the plugin’s
plugin.jsoncarries the required metadata, that each targeted vendor manifest exists and passedplugin build, and that any shipped skills have valid frontmatter. Nothing proceeds until every check passes. - Prepare entries — build the entry for each vendor marketplace file that exists. The source
shape (
url,github,git-subdir, ornpm) is decided from how the plugin actually ships — a monorepo subdirectory needsgit-subdir, not a root-cloneurlthat resolves nothing — andmarketplace validatechecks the drafted entries before anything is committed. - Submit PR — one pull request that updates every detected marketplace file, with a checklist covering the vendor manifests, hook casing, version format, and license identifier.
Common failure modes
Section titled “Common failure modes”| Problem | Fix |
|---|---|
| Hook events silently don’t fire | Re-run plugin build; check its warnings for a handler type that vendor cannot run |
| Codex rejects manifest | version and description are required by Codex |
| Entry installs nothing for a monorepo plugin | Source was url/root-clone instead of git-subdir |
marketplace validate fails | Fix the reported shape before opening the PR |
See also
Section titled “See also”marketplace— the repository’s own catalog, distinct from a shared marketplace listing- Local marketplace — the
marketplace validatecommand this skill runs before opening a PR