ai-plugin-marketplace/tools
Monorepo publishing the @ai-plugin-marketplace/* toolkit (consumed by the template repository) — and, dogfooding that toolkit, itself an AI plugin marketplace.
Install the agent plugin
This repo includes one plugin, marketplace-authoring, that equips your coding agent to turn any software repo into an AI plugin marketplace with this toolkit. Install it into your assistant through its native mechanism:
| Assistant | Install |
|---|
| Claude Code | /plugin marketplace add ai-plugin-marketplace/tools |
| Cursor | Dashboard → Settings → Plugins → Import → https://github.com/ai-plugin-marketplace/tools |
| Codex | codex plugin marketplace add ai-plugin-marketplace/tools |
| Gemini CLI | gemini extensions install https://github.com/ai-plugin-marketplace/tools |
| Kiro | Powers panel → "Add power from GitHub" → repo URL |
Or, cross-tool via the universal plugins CLI (it installs the native plugin where the tool supports it):
npx plugins add ai-plugin-marketplace/tools
The toolkit also emits a vendor-neutral Open Plugins target: a repo built with aipm that declares open-plugins publishes a repo-root marketplace.json (Open Plugins lookup position 1) alongside each plugin's root plugin.json manifest (Agent Plugins 1.0.0), so it is installable by any Open-Plugins-conformant host rather than only the hosts listed above.
Then ask your agent to "add AI plugin marketplace support to this repo" and the skill walks it through the rest.
Packages
Plugin authors depend only on @ai-plugin-marketplace/cli. The consumer flow:
# Generate a new plugins repo from the CLI (one-time)
aipm init my-plugins
cd my-plugins
# Add a plugin
aipm scaffold my-plugin
# Upgrade the toolkit — no plugin source changes required for minor/patch releases
pnpm up @ai-plugin-marketplace/cli
Embedding a marketplace in an existing repo
The flow above creates a dedicated marketplace repo. You can also turn a repo whose primary purpose is shipping software (a CLI, a library) into a marketplace for the agent plugins that drive it, so the software and its skills ship together. Add an optional aipm.repo.ts to relocate the plugins/dist roots off any names your repo already uses:
// aipm.repo.ts (repo root)
import { defineRepoConfig } from '@ai-plugin-marketplace/core';
export default defineRepoConfig({ pluginsRoot: 'agent-plugins', distDir: 'agent-plugins/dist' });
aipm scaffold / build / validate then operate against the relocated root. Full step-by-step: Embedding a marketplace in an existing software repo.
Published vs. contributor skills
aipm publishes the plugins under your plugins root. Skills meant only for the repo's own
contributors (for example under .claude/skills/) stay where the agent host loads them, and
aipm validate checks that they don't leak to users through install channels that scan the
repository. See Published vs. contributor skills.
Authoring hook handlers
Any plugin that authors hooks/claude.yaml also gets a generated hooks/payload-adapter: a static
sh + jq filter your handler pipes its stdin through to read one canonical payload shape
regardless of whether Claude Code or Codex invoked it, instead of re-deriving per-harness field
names by hand. See the payload-adapter spec for the full
normative contract, and Authoring hook handlers with the payload adapter
for the copy-runnable patterns, the per-field assertability table, and a worked permission-layer
example.
Architecture