Consume @ai-plugin-marketplace toolkit (Phase B cutover) - #7
Conversation
Remove the in-repo toolkit (src/, schemas/, tests/, scripts/, templates/, build config) and depend on @ai-plugin-marketplace/cli + core. The template now holds plugin sources only; build/validate/scaffold run through the `aipm` CLI. Migrate skill-evaluator to declare its support envelope (aipm.config.ts) and schemaVersion; drop non-v0.1.0 codex artifacts; track toolkit-generated hooks JSON. CI runs `aipm build` then `aipm validate` (freshness). Verified end-to-end against the packed toolkit; deps pinned to ^0.1.0 (resolves once the toolkit is published to npm).
There was a problem hiding this comment.
Pull request overview
This PR cuts the template over from carrying its own toolkit source to depending on the published @ai-plugin-marketplace/cli and @ai-plugin-marketplace/core packages. It is almost entirely a deletion + small additions: all src/, tests/, scripts/, schemas/, templates/, the Codex marketplace, root marketplace.json, and build config (tsconfig.json, eslint.config.mjs, .remarkrc.mjs, pnpm-workspace.yaml) are removed; in their place the repo now has a thin package.json, a per-plugin aipm.config.ts support envelope, schemaVersion: "0.1.0" on every manifest, and committed toolkit-generated artifacts (hooks/*.json).
Changes:
- Remove all in-repo toolkit source/tests/schemas/templates and the Codex marketplace; root
package.jsonnow only declares two@ai-plugin-marketplace/*devDeps and three thin scripts. - Add
aipm.config.tsenvelope per plugin,schemaVersion: "0.1.0"to every manifest (including committeddist/copies), and track toolkit-generatedhooks/claude.json/hooks/hooks.json. - Rewrite CI to
aipm build→ working-tree-clean freshness check →aipm validateon Node 24; rewrite README/CONTRIBUTING/LICENSE as consumer-focused docs.
Reviewed changes
Copilot reviewed 36 out of 41 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/**, tests/**, scripts/codex-acceptance.ts, schemas/**, templates/** |
Deleted; logic now lives in published @ai-plugin-marketplace/* packages. |
tsconfig.json, eslint.config.mjs, .remarkrc.mjs, pnpm-workspace.yaml, .mcp.json |
Deleted; build/lint config moves into the toolkit. |
marketplace.json, .agents/plugins/marketplace.json, plugins/skill-evaluator/.codex-plugin/plugin.json |
Deleted (open-format registry + Codex are not v0.1.0 targets). |
package.json |
Pared down to two devDeps and build/check/scaffold scripts delegating to aipm. |
.github/workflows/ci.yml |
Replaced multi-step pipeline with aipm build + working-tree-clean freshness + aipm validate; Node bumped 22→24. |
.gitignore |
Stops ignoring plugins/*/hooks/*.json (now tracked toolkit artifacts). |
plugins/skill-evaluator/aipm.config.ts |
New support envelope declaring targets claude/cursor/gemini/kiro/vercel. |
plugins/skill-evaluator/hooks/{claude,hooks}.json |
Newly tracked, generated hook artifacts with _generated provenance. |
plugins/skill-evaluator/{POWER.md,gemini-extension.json,.claude-plugin/plugin.json,.cursor-plugin/plugin.json} and dist/{kiro,gemini}/skill-evaluator/* |
Add schemaVersion: "0.1.0". |
README.md, CONTRIBUTING.md, LICENSE |
Rewritten/added as consumer-focused docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Cuts the template over from carrying its own toolkit source to depending on the published
@ai-plugin-marketplace/*packages. This is the structural win described in the architecture spec §1.2.What changed
Removed (toolkit source that now lives in
ai-plugin-marketplace/tools):src/,schemas/,tests/,scripts/,templates/tsconfig.json,eslint.config.mjs,.remarkrc.mjs,pnpm-workspace.yaml.agents/) andplugins/skill-evaluator/.codex-plugin/(not a v0.1.0 target)marketplace.json(platform-specific registries kept)Added/changed:
package.json: two devDependencies (@ai-plugin-marketplace/cli+@ai-plugin-marketplace/core), three scripts (build/check/scaffold→aipm)plugins/skill-evaluator/aipm.config.ts— support envelope declarationschemaVersion: "0.1.0"on every manifesthooks/claude.json+hooks/hooks.json— now tracked (toolkit-generated artifacts per §P5)pnpm-lock.yaml— resolves@ai-plugin-marketplace@0.1.0from npmaipm build→ freshness check →aipm validateLICENSE,CONTRIBUTING.md,README.md(consumer-focused)Verified
End-to-end against the published
0.1.0packages:pnpm installresolves from npm ✅aipm validate→OK — no findings.✅aipm build→Built 1 plugin(s), 19 artifact(s). OK — no findings.✅Upgrade story for forks
After merging:
pnpm up @ai-plugin-marketplace/cli @ai-plugin-marketplace/core→ upgrades the entire toolkit. No more being stranded on a frozen fork.