Loading...
Loading...
Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, and baseline placeholders you can edit before publishing or testing. Use when Codex needs to create a new local plugin, add optional plugin structure, or generate or update repo-root `.agents/plugins/marketplace.json` entries for plugin ordering and availability metadata.
npx skill4agent add openai/plugins plugin-creator # Plugin names are normalized to lower-case hyphen-case and must be <= 64 chars.
# The generated folder and plugin.json name are always the same.
# Run from repo root (or replace .agents/... with the absolute path to this SKILL).
# By default creates in <repo_root>/plugins/<plugin-name>.
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py <plugin-name><plugin-path>/.codex-plugin/plugin.json[TODO: ...]# marketplace.json always lives at <repo-root>/.agents/plugins/marketplace.json
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin --with-marketplacepython3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin --path <parent-plugin-directory> \
--with-skills --with-hooks --with-scripts --with-assets --with-mcp --with-apps --with-marketplace<parent-plugin-directory><plugin-name>~/code/plugins/<parent-plugin-directory>/<plugin-name>//<parent-plugin-directory>/<plugin-name>/.codex-plugin/plugin.jsoninterface<repo-root>/.agents/plugins/marketplace.json--with-marketplacenameinterface.displayName<plugin-name>My Pluginmy-pluginMy--Pluginmy-plugin-skills/hooks/scripts/assets/.mcp.json.app.jsonmarketplace.json<repo-root>/.agents/plugins/marketplace.jsonnameinterface.displayNameplugins[]displayNameinterfaceplugins[]policy.installationpolicy.authenticationcategorypolicy.installation: "AVAILABLE"policy.authentication: "ON_INSTALL"policy.installationNOT_AVAILABLEAVAILABLEINSTALLED_BY_DEFAULTpolicy.authenticationON_INSTALLON_USEpolicy.products{
"name": "plugin-name",
"source": {
"source": "local",
"path": "./plugins/plugin-name"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}--force<repo-root>/.agents/plugins/marketplace.json"name""interface""displayName"plugins{
"name": "[TODO: marketplace-name]",
"interface": {
"displayName": "[TODO: Marketplace Display Name]"
},
"plugins": [
{
"name": "plugin-name",
"source": {
"source": "local",
"path": "./plugins/plugin-name"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}
]
}plugin.json"name".codex-plugin/plugin.json--forceinterface.displayNamepolicy.installationpolicy.authenticationcategorypolicy.productssource.path./plugins/<plugin-name>references/plugin-json-spec.mdSKILL.mdpython3 <path-to-skill-creator>/scripts/quick_validate.py .agents/skills/plugin-creator