Skip to content

Consume @ai-plugin-marketplace toolkit (Phase B cutover) - #7

Merged
mike-north merged 5 commits into
mainfrom
claude/consume-toolkit
Jun 1, 2026
Merged

mike-north merged 5 commits into
mainfrom
claude/consume-toolkit

Conversation

@mike-north

Copy link
Copy Markdown
Collaborator

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/
  • Build config: tsconfig.json, eslint.config.mjs, .remarkrc.mjs, pnpm-workspace.yaml
  • Codex marketplace (.agents/) and plugins/skill-evaluator/.codex-plugin/ (not a v0.1.0 target)
  • Root open-format marketplace.json (platform-specific registries kept)

Added/changed:

  • package.json: two devDependencies (@ai-plugin-marketplace/cli + @ai-plugin-marketplace/core), three scripts (build/check/scaffoldaipm)
  • plugins/skill-evaluator/aipm.config.ts — support envelope declaration
  • schemaVersion: "0.1.0" on every manifest
  • hooks/claude.json + hooks/hooks.json — now tracked (toolkit-generated artifacts per §P5)
  • pnpm-lock.yaml — resolves @ai-plugin-marketplace@0.1.0 from npm
  • CI: aipm build → freshness check → aipm validate
  • LICENSE, CONTRIBUTING.md, README.md (consumer-focused)

Verified

End-to-end against the published 0.1.0 packages:

  • pnpm install resolves from npm ✅
  • aipm validateOK — no findings.
  • aipm buildBuilt 1 plugin(s), 19 artifact(s). OK — no findings.
  • CI green ✅

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.

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).
Copilot AI review requested due to automatic review settings June 1, 2026 17:58

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

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.json now only declares two @ai-plugin-marketplace/* devDeps and three thin scripts.
  • Add aipm.config.ts envelope per plugin, schemaVersion: "0.1.0" to every manifest (including committed dist/ copies), and track toolkit-generated hooks/claude.json / hooks/hooks.json.
  • Rewrite CI to aipm build → working-tree-clean freshness check → aipm validate on 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.

@mike-north
mike-north enabled auto-merge June 1, 2026 19:40
@mike-north
mike-north merged commit 727e331 into main Jun 1, 2026
1 check passed
@mike-north
mike-north deleted the claude/consume-toolkit branch June 1, 2026 20:20
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