Skip to content

feat: build a ChatGPT plugin archive from a plugin folder - #4

Merged
billlyzhaoyh merged 1 commit into
mainfrom
feat/chatgpt-archive
Nov 18, 2026
Merged

billlyzhaoyh merged 1 commit into
mainfrom
feat/chatgpt-archive

Conversation

@billlyzhaoyh

@billlyzhaoyh billlyzhaoyh commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This brings the commit of pull request 2 to main. That pull request was merged into feat/scaffold-and-linter after pull request 1 had already been merged, so it never reached main.

What and why

The plugin folders in this repository are laid out for one assistant's marketplace. Charities also use ChatGPT, which takes a plugin as an uploaded archive in the portable Agent Plugins layout. Keeping a second copy of each plugin by hand would drift, so this adds a build step that writes the archive from the one source.

scripts/build_chatgpt_archive.py <plugin> writes dist/<plugin>-chatgpt-<version>.zip holding:

  • plugin.json at the root, made from the plugin's own manifest, with the listing text ChatGPT shows taken from plugins/<plugin>/platforms/chatgpt.json;
  • skills/, without the eval folders and hidden files;
  • mcp.json naming the hosted Kindtech connector as one remote server with no sign-in, only when --connector-url is given;
  • the licence.

It refuses a plugin with no skill, a skill that breaks the Agent Skills specification, listing text over OpenAI's published length limits, and a connector address that is not plain https. The same source always gives the same archive, byte for byte.

This branch sits on top of the scaffold branch and should be merged after it.

How I tested it

  • uv run pytest: 42 tests pass, 11 of them new. They build an archive from a small invented plugin and check the file list, the manifest, the connector entry, the refusals above and that two builds are identical.
  • uv run ruff format --check ., uv run ruff check . and uv run python scripts/lint_skills.py pass.
  • Built an archive from uk-open-data with the first skill present (on a local merge with the skill branch) and read the file list and plugin.json by eye.
  • Not run: an upload to ChatGPT. The layout follows OpenAI's build and submission pages and the Agent Plugins 1.0.0 specification as read on 18 November 2026. Three things in them could not be confirmed and are the first to check if an upload fails: whether the files belong at the archive root or inside one folder, the accepted values of category and capabilities, and the placement of the no-sign-in setting inside the server entry.

Tools that helped

Claude Code wrote this change.

Checklist

  • The change is about one thing and is small enough to review
  • Tests and docs are updated where behaviour changed
  • Commits are signed off (git commit -s). They are not: an agent made them, and the sign-off is a person's statement.
  • No personal data about real people in code, tests, examples or this description

scripts/build_chatgpt_archive.py writes a plugin in the portable Agent
Plugins layout that ChatGPT reads: plugin.json at the root, the skills
without their eval folders, and mcp.json for the hosted connector when
its address is given. The listing text comes from
plugins/<plugin>/platforms/chatgpt.json. The same source always gives
the same archive.
@billlyzhaoyh billlyzhaoyh self-assigned this Nov 18, 2026
@billlyzhaoyh
billlyzhaoyh merged commit e44e5a4 into main Nov 18, 2026
1 check passed
@billlyzhaoyh
billlyzhaoyh deleted the feat/chatgpt-archive branch November 18, 2026 22:47
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.

1 participant