plugin-creator
它能做什么
这项技能为新的 Codex 插件创建起始文件夹结构。适合想构建本地插件、并之后再添加可选部分的开发者。
适用场景
- ✓当你想根据现成结构开始一个新的本地 Codex 插件的时候。
- ✓当你需要为插件添加可选的技能、钩子、脚本或资源的时候。
- ✓当你希望插件出现在代码仓库的市场列表中的时候。
技能链接
https://github.com/openai/skills/blob/main/skills/.system/plugin-creator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我创建一个名为 notes-helper 的 Codex 插件,包含一个 skills 文件夹和一个市场条目。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行一个脚手架脚本,生成插件文件夹及其 plugin.json 文件,然后根据你的选择填写占位符和可选文件夹。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Plugin Creator
Quick Start
- Run the scaffold script:
# 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>
Open
<plugin-path>/.codex-plugin/plugin.jsonand replace[TODO: ...]placeholders.Generate or update the repo marketplace entry when the plugin should appear in Codex UI ordering:
# marketplace.json always lives at <repo-root>/.agents/plugins/marketplace.json
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin --with-marketplace
For a home-local plugin, treat <home> as the root and use:
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin \
--path ~/plugins \
--marketplace-path ~/.agents/plugins/marketplace.json \
--with-marketplace
- Generate/adjust optional companion folders as needed:
python3 .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> is the directory where the plugin folder <plugin-name> will be created (for example ~/code/plugins).
What this skill creates
- If the user has not made the plugin location explicit, ask whether they want a repo-local plugin or a home-local plugin before generating marketplace entries.
- Creates plugin root at
/<parent-plugin-directory>/<plugin-name>/. - Always creates
/<parent-plugin-directory>/<plugin-name>/.codex-plugin/plugin.json. - Fills the manifest with the full schema shape, placeholder values, and the complete
interfacesection. - Creates or updates
<repo-root>/.agents/plugins/marketplace.jsonwhen--with-marketplaceis set.- If the marketplace file does not exist yet, seed top-level
nameplusinterface.displayNameplaceholders before adding the first plugin entry.
- If the marketplace file does not exist yet, seed top-level
<plugin-name>is normalized using skill-creator naming rules:My Plugin→my-pluginMy--Plugin→my-plugin- underscores, spaces, and punctuation are converted to
- - result is lower-case hyphen-delimited with consecutive hyphens collapsed
- Supports optional creation of:
skills/hooks/scripts/assets/.mcp.json.app.json
Marketplace workflow
marketplace.jsonalways lives at<repo-root>/.agents/plugins/marketplace.json.- For a home-local plugin, use the same convention with
<home>as the root:~/.agents/plugins/marketplace.jsonplus./plugins/<plugin-name>. - Marketplace root metadata supports top-level
nameplus optionalinterface.displayName. - Treat plugin order in
plugins[]as render order in Codex. Append new entries unless a user explicitly asks to reorder the list. displayNamebelongs inside the marketplaceinterfaceobject, not individualplugins[]entries.- Each generated marketplace entry must include all of:
policy.installationpolicy.authenticationcategory
- Default new entries to:
policy.installation: "AVAILABLE"policy.authentication: "ON_INSTALL"
- Override defaults only when the user explicitly specifies another allowed value.
- Allowed
policy.installationvalues:NOT_AVAILABLEAVAILABLEINSTALLED_BY_DEFAULT
- Allowed
policy.authenticationvalues:ON_INSTALLON_USE
- Treat
policy.productsas an override. Omit it unless the user explicitly requests product gating. - The generated plugin entry shape is:
{
"name": "plugin-name",
"source": {
"source": "local",
"path": "./plugins/plugin-name"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}
Use
--forceonly when intentionally replacing an existing marketplace entry for the same plugin name.If
<repo-root>/.agents/plugins/marketplace.jsondoes not exist yet, create it with top-level"name", an"interface"object containing"displayName", and apluginsarray, then add the new entry.For a brand-new marketplace file, the root object should look like:
{
"name": "[TODO: marketplace-name]",
"interf
常见问题
唯一必需的文件是什么?
每个插件都需要 .codex-plugin/plugin.json 文件,该脚本会自动创建。
插件默认放在哪里?
默认会创建在代码仓库中的 plugins 文件夹里,但你也可以选择其他路径。
市场文件有什么用?
它控制插件在 Codex 界面中的排列顺序和可用性。
详情
作者的原始描述
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.
repo: openai/skills
热度
- GitHub 星标
- 28k
- 排名
- #9864
- 许可证
- —
- 更新时间
- 2026/10/28
评论
- …
同一仓库的更多技能
aspnet-core
28k帮你的智能体构建、审阅或升级 ASP.NET Core 网络应用,选择合适的应用类型,并遵循微软针对 .NET 的最新指导。
chatgpt-apps
28k帮你的智能体构建一个将 MCP 服务器与小组件界面配对的 ChatGPT 应用,涵盖工具设计、界面资源、元数据和本地设置。
cli-creator
28k帮你的智能体把 API 文档、规范或现有脚本转化为可复用的命令行工具,可在任何文件夹中运行,并返回稳定的 JSON。
define-goal
28k帮你的智能体在开始工作前,把模糊的意图转化为清晰、可衡量的目标,并明确成功标准、范围和停止条件。