Shopify-AI-Toolkit icon indicating copy to clipboard operation
Shopify-AI-Toolkit copied to clipboard

Generate a compact plugin artifact with shared validator runtimes

Open TyceHerrman opened this issue 3 months ago • 1 comments

Summary

The plugin currently contains 13 generated validate.mjs files. Several appear to repeatedly bundle the same GraphQL, UI-validation, and telemetry code.

Self-contained validators make sense for standalone skill installation, but the combined plugin could share those runtimes.

Proposal

Produce two build outputs:

  1. Self-contained skills for standalone installation.
  2. A compact plugin artifact with:
    • shared validator modules at the plugin root;
    • small per-skill wrapper scripts;
    • only skill-specific schemas and assets duplicated where necessary.

OpenAI's plugin format supports complete ZIP, Git subdirectory, and npm artifacts, so the compact plugin need not match the standalone-skill layout:

https://developers.openai.com/plugins/build/plugins#marketplace-metadata

use real files and wrappers rather than symlinks, since Codex plugin archives reject links.

Expected result

  • Standalone skills remain self-contained.
  • Plugin validators retain existing behavior.
  • Shared runtime code is stored once.
  • Installed and cached plugin size is substantially reduced.

TyceHerrman avatar Aug 06 '26 18:08 TyceHerrman

Finish and fix

thewholedonuts-beep avatar Aug 30 '26 13:08 thewholedonuts-beep