|
| 1 | +# Marketplace install implementation |
| 2 | + |
| 3 | +Date: 2026-10-19. Collaborator: purpshell. Agent: Codex, gpt-6.1-sol, through T3 Code. The thread identifier was not supplied to this session. This is a sanitized checkpoint of visible task instructions and tool results, not a complete transcript. No hidden reasoning, credentials, or customer data is included. |
| 4 | + |
| 5 | +## Scope and source revision |
| 6 | + |
| 7 | +The owner requested Claude and Codex repository marketplace installs, a Stripe-compatible docs skills endpoint builder, validator coverage, README instructions, and a PR against main. No merge, publication, workflow enablement, or automated review request is authorized. The fresh clone started from main at `09df11ff9ae6acecc76bea77e3d8fc9ebf5f0269`. No contribution guide or AGENTS.md exists in this repository. Work stayed in `~/.polymorfa-agent-work/agent-kit-marketplace/` on `feat/marketplace-installs`. |
| 8 | + |
| 9 | +The OpenAI Docs skill was loaded for official source research. The originating monorepo's writing and checkout preservation rules were supplied by the user. No implementation delegation or automated reviewer was used. Roadmap records were not supplied or reconciled; this checkpoint does not claim Linear or Notion synchronization. |
| 10 | + |
| 11 | +## Schema evidence |
| 12 | + |
| 13 | +- [Anthropic marketplace guide](https://code.claude.com/docs/en/plugin-marketplaces): `.claude-plugin/marketplace.json` requires a name, owner, and plugin entries with name and source. Relative sources resolve from the marketplace root. The entry here uses `./`. |
| 14 | +- [OpenAI packaging guide](https://developers.openai.com/plugins/build/plugins): `.agents/plugins/marketplace.json` declares the catalog; `source.path` resolves from its repository root. Root `plugin.json`, `mcp.json`, and `skills/` are supported portable components. No Codex overlay is needed. The guide documents `codex plugin marketplace add owner/repo` and Git ref selection. |
| 15 | +- [OpenAI plugin surfaces](https://learn.chatgpt.com/docs/plugins): Codex CLI supports marketplace plugins and requires a new session after installation. The IDE extension does not support plugins. |
| 16 | +- Installed `codex-cli 0.163.0`: `codex --help` lists `plugin`; `codex plugin marketplace add --help` accepts local paths, owner/repo with optional ref, HTTPS and SSH Git URLs; `codex plugin add --help` accepts `PLUGIN@MARKETPLACE`. |
| 17 | +- [Stripe's live index](https://docs.stripe.com/.well-known/skills/index.json) was fetched. Its shape is `{"skills":[{"name":"...","description":"...","files":["SKILL.md","references/..."]}]}`. Fetching [a listed skill](https://docs.stripe.com/.well-known/skills/stripe-best-practices/SKILL.md) returned Markdown frontmatter, confirming the relative file layout. Stripe content was not copied into this repository. |
| 18 | +- [Cursor plugin guide](https://cursor.com/docs/plugins): native marketplace install uses Customize and an Install action. Marketplace listing requires separate publication. This PR does not submit a listing. |
| 19 | + |
| 20 | +## Verification |
| 21 | + |
| 22 | +All installation writes used task-specific directories outside the user's real agent configuration. The local source is the fresh clone, including this patch. |
| 23 | + |
| 24 | +- `python3 scripts/validate.py`: passed. Rebuilds and validates the skills endpoint alongside existing plugin/MCP checks and the two catalogs. |
| 25 | +- Claude Code `2.1.303`, with `CLAUDE_CONFIG_DIR` set to the absolute task `claude-config` directory: |
| 26 | + - `claude plugin validate .`: passed without warnings. |
| 27 | + - `claude plugin validate .claude-plugin/plugin.json`: passed. |
| 28 | + - `claude plugin marketplace add <absolute-checkout>`: added `polymorfa`. |
| 29 | + - `claude plugin install polymorfa@polymorfa`: installed version 0.1.0. |
| 30 | + - `claude plugin details polymorfa`: reported two skills (`polymorfa`, `polymorfa-webhooks`) and one MCP server (`polymorfa-docs`). This is component inventory, not a live MCP search. |
| 31 | +- Codex CLI `0.163.0`, with `CODEX_HOME` set to the absolute task `codex-config` directory: |
| 32 | + - `codex plugin marketplace add <absolute-checkout> --json`: added `polymorfa`. |
| 33 | + - `codex plugin add polymorfa@polymorfa --json`: installed 0.1.0 into the isolated plugin cache. |
| 34 | + - `codex plugin list --json`: reported the plugin installed and enabled. |
| 35 | +- `skills` npm CLI `1.7.2`: `npx --yes skills --help` confirms project install is the default, `--agent` selects the target, `--copy` avoids symlinks, and `--yes` skips prompts. No `--global` option was used. |
| 36 | + - Copied `dist/well-known-skills/` to a task server root at `.well-known/skills/`. |
| 37 | + - `python3 -m http.server 18743 --bind 127.0.0.1 --directory <task-site-root>` served it. |
| 38 | + - From a throwaway task project, `npx --yes skills add http://localhost:18743 --agent codex --skill '*' --yes --copy` found and installed both skills under that project's `.agents/skills/`. |
| 39 | + - Both installed SKILL.md files matched repository source bytes. |
| 40 | +- Separate builder fixtures under the task directory: nested `references/guide.md` was included and copied; rebuilding removed a stale output file; validation rejected corrupted bytes; building rejected a source symlink. |
| 41 | +- `git diff --check`: passed. |
| 42 | + |
| 43 | +## Availability and handoff |
| 44 | + |
| 45 | +Generated `dist/well-known-skills/` is ignored. The docs build must run the script at a pinned agent-kit revision and copy the generated contents to `public/.well-known/skills/` or an equivalent static root. No docs deployment was performed. The domain install command remains gated on that deployment. Default-branch repository marketplace installs remain gated on merging this PR. |
| 46 | + |
| 47 | +Gemini and Cursor executables were absent. Their native installs were not tested. The existing extension/plugin files and all skill contents remain unchanged. API, SDK, CLI product behavior, Admin, authentication, billing, and customer data are unaffected by these packaging changes. No workflow files were changed or re-enabled. |
| 48 | + |
| 49 | +A useful optional engineering article would compare manifest validation with real isolated installs, using the Claude component inventory and HTTP skill-byte checks as evidence. It would keep unmerged and undeployed availability explicit. |
| 50 | + |
| 51 | +## Remote install checkpoint |
| 52 | + |
| 53 | +At pushed implementation revision `0bd7c800185c5c63d241dab3d001d5fb3fe1e369`, both Git-backed installs also passed in separate task configurations: |
| 54 | + |
| 55 | +```sh |
| 56 | +CLAUDE_CONFIG_DIR=<task>/claude-git-config claude plugin marketplace add 'https://github.com/polymorfa/agent-kit.git#feat/marketplace-installs' |
| 57 | +CLAUDE_CONFIG_DIR=<task>/claude-git-config claude plugin install polymorfa@polymorfa |
| 58 | +CLAUDE_CONFIG_DIR=<task>/claude-git-config claude plugin details polymorfa |
| 59 | +CODEX_HOME=<task>/codex-git-config codex plugin marketplace add polymorfa/agent-kit --ref feat/marketplace-installs --json |
| 60 | +CODEX_HOME=<task>/codex-git-config codex plugin add polymorfa@polymorfa --json |
| 61 | +``` |
| 62 | + |
| 63 | +Claude cloned the selected branch and reported two skills and the documentation MCP server. Codex fetched the branch, installed version 0.1.0, and its cache contained the root portable manifest, MCP configuration, and both skill files. Remote and local branch heads matched that SHA. |
| 64 | + |
| 65 | +The skills-only Git path also passed from a second throwaway project: `npx --yes skills add https://github.com/polymorfa/agent-kit --agent cursor --skill '*' --yes --copy` installed both skills. This checks the skills installer with Cursor selected, not the native Cursor runtime. |
0 commit comments