mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
docs(skills): simplify plugin creator deeplink shape (#22240)
## Summary Plugin Creator now documents the shorter local-plugin handoff URL that the app can interpret directly. [#22221](https://github.com/openai/codex/pull/22221) teaches the skill to end marketplace-backed creation flows with named View and Share links; this follow-up updates those examples so the skill only emits the normalized plugin name, the absolute marketplace path, and optional share mode. The documented shape is: ```txt codex://plugins/<normalized-plugin-name>?marketplacePath=<absolute-marketplace-json-path> codex://plugins/<normalized-plugin-name>?marketplacePath=<absolute-marketplace-json-path>&mode=share ``` The skill text now states exactly where the normalized plugin name belongs, exactly where the absolute marketplace path belongs, and that it should not add `pluginName` or `hostId` query parameters. ## Testing Tests: plugin-creator skill validation.
This commit is contained in:
@@ -151,12 +151,15 @@ python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin \
|
||||
- Add `policy.products` only when the user explicitly asks for that override.
|
||||
- Keep marketplace `source.path` relative to the selected marketplace root as `./plugins/<plugin-name>`.
|
||||
- When the workflow created or updated a marketplace-backed plugin, end the final user-facing
|
||||
response with these two Markdown links, in this order, and do not add any text after them:
|
||||
- `[View <normalized plugin name>](codex://plugins/view-local?marketplacePath=<absolute marketplace.json path>&pluginName=<normalized plugin name>)`
|
||||
- `[Share <normalized plugin name>](codex://plugins/share-local?marketplacePath=<absolute marketplace.json path>&pluginName=<normalized plugin name>)`
|
||||
- Replace the link-label placeholder and both deeplink placeholders with the real normalized plugin
|
||||
name plus the real absolute marketplace path from the scaffolded plugin. URL-encode query
|
||||
parameter values when needed.
|
||||
response with a short Codex app handoff. Say `To view this in the Codex app:` and write
|
||||
`View <normalized plugin name>` and `Share <normalized plugin name>` as Markdown links, not raw
|
||||
URLs or code spans.
|
||||
- The View deeplink uses `codex://plugins/<normalized plugin name>?marketplacePath=<absolute marketplace.json path>`.
|
||||
The Share deeplink uses the same URL with `&mode=share`.
|
||||
- Replace the placeholders with the real normalized plugin name and absolute `marketplace.json`
|
||||
path from the scaffolded plugin. URL-encode the path segment and query value when needed.
|
||||
- Do not add `pluginName` or `hostId` query parameters to these deeplinks. Codex derives both after
|
||||
the user clicks the link.
|
||||
- Do not emit the `View <normalized plugin name>` or `Share <normalized plugin name>` links when no marketplace entry was
|
||||
created or updated.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user