openai/skills

plugin-creator

生成插件骨架并维护本地市场入口

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

plugin-creator 是什么?

为Codex生成本地插件目录和必须的.codex-plugin/plugin.json,可选添加Skills、hooks、脚本、MCP、Apps及市场条目。生成结果带待填写字段,主要解决结构搭建,不代表插件功能已实现或已发布。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 要在 Codex 仓库中创建或调整插件骨架、插件清单,或登记 .agents/plugins/marketplace.json 元数据。

这些情况不适合

  • 期待脚手架自动实现插件的业务功能、完成账号认证或发布插件;来源生成的是可继续编辑的目录与基线文件。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 plugin-creator,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 plugin-creator

请在 Codex 的当前工作环境中安装并检查 plugin-creator 这个 Skill。

项目身份:openai/skills / plugin-creator
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.system/plugin-creator/SKILL.md
已定位的源文件:skills/.system/plugin-creator/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 明确插件名称、仓库内还是用户目录、所需能力;附带Python脚本需在真实安装位置解析。

会得到什么

  • 插件骨架及可选市场条目、仍待实现和填写的字段清单。

实际使用顺序

  1. 名称规范化为小写连字符并保持目录与manifest同名;先确认目标目录,避免无意覆盖。
  2. 用create_basic_plugin.py创建基本结构,按需要添加可选目录;manifest占位内容留给明确的后续填写。
  3. 需要UI市场入口时更新根目录.agents/plugins/marketplace.json,保留既有显示名与排序,写入安装/认证策略和分类,核对相对路径。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用 plugin-creator 在当前仓库plugins/release-notes下建立插件骨架,只启用skills和scripts,不添加MCP或Apps,也不生成marketplace条目。先核对目录是否存在;已有内容不覆盖,不用force。返回创建文件和待填写字段,不声称插件可直接使用。
预期结果

预期得到命名一致且包含plugin.json的骨架;本站未执行。

使用前先看这些限制

使用条件与边界

  • AVAILABLE等市场元数据说明可用策略,不证明插件完成测试或获得服务认证。
针对这个 Skill 的疑问

常见问题

生成完就能发布插件吗?

不行。骨架包含占位值,需要补充实际功能、manifest和验证,创建市场条目也不等于公开发布。

--force可以随便加吗?

来源只允许在有意替换已有文件或同名市场条目时使用,不能为了消除冲突直接覆盖。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/.system/plugin-creator/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

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.

查看源文件章节 / Source sections
  • 原文:Plugin Creator
  • 快速开始 / Quick Start
  • 原文:What this skill creates
  • 原文:Marketplace workflow
  • 原文:Required behavior
  • 原文:Reference to exact spec sample
  • 原文:Validation
快速开始 / Quick Start

1. Run the scaffold script: ```bash # 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> ``` 2. Open `<plugin-path>/.codex-plugin/plugin.json` and replace `[TODO: ...]` placeholders. 3. Generate or update the repo marketplace entry when the plugin should appear in Codex UI ordering: ```bash # 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: ```bash python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin \ --path ~/plugins \ --marketplace-path ~/.agents/plugins/marketplace.json \ --with-marketplace ``` 4. Generate/adjust optional companion folders as needed: ```bash 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 `interface` section. - Creates or updates `<repo-root>/.agents/plugins/marketplace.json` when `--with-marketplace` is set. - If the marketplace file does not exist yet, seed top-level `name` plus `interface.displayName` placeholders before adding the first plugin entry. - `<plugin-name>` is normalized using skill-creator naming rules: - `My Plugin` → `my-plugin` - `My--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.json` always 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.json` plus `./plugins/<plugin-name>`. - Marketplace root metadata supports top-level `name` plus optional `interface.displayName`. - Treat plugin order in `plugins[]` as render order in Codex. Append new entries unless a user explicitly asks to reorder the list. - `displayName` belongs inside the marketplace `interface` object, not individual `plugins[]` entries. - Each generated marketplace entry must include all of: - `policy.installation` - `policy.authentication` - `category` - Default new entries to: - `policy.installation: "AVAILABLE"` - `policy.authentication: "ON_INSTALL"` - Override defaults only when the user explicitly specifies another allowed value. - Allowed `policy.installation` values: - `NOT_AVAILABLE` - `AVAILABLE` - `INSTALLED_BY_DEFAULT` - Allowed `policy.authentication` values: - `ON_INSTALL` - `ON_USE` - Treat `policy.products` as an override. Omit it unless the user explicitly requests product gating. - The generated plugin entry shape is: ```json { "name": "plugin-name", "source": { "source": "local", "path": "./plugins/plugin-name" }, "policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" }, "category": "Productivity" } ``` - Use `--force` only when intentionally replacing an existing marketplace entry for the same plugin name. - If `<repo-root>/.agents/plugins/marketplace.json` does not exist yet, create it with top-level `"name"`, an `"interface"` object containing `"displayName"`, and a `plugins` array, then add the new entry. - For a brand-new marketplace file, the root object should look like:

本段为节选,完整内容见源文件。

原文:Required behavior

- Outer folder name and `plugin.json` `"name"` are always the same normalized plugin name. - Do not remove required structure; keep `.codex-plugin/plugin.json` present. - Keep manifest values as placeholders until a human or follow-up step explicitly fills them. - If creating files inside an existing plugin path, use `--force` only when overwrite is intentional. - Preserve any existing marketplace `interface.displayName`. - When generating marketplace entries, always write `policy.installation`, `policy.authentication`, and `category` even if their values are defaults. - Add `policy.products` only when the user explicitly asks for that override. - Keep marketplace `source.path` relative to repo root as `./plugins/<plugin-name>`.

原文:Reference to exact spec sample

For the exact canonical sample JSON for both plugin manifests and marketplace entries, use: - `references/plugin-json-spec.md`

原文:Validation

After editing `SKILL.md`, run: ```bash python3 <path-to-skill-creator>/scripts/quick_validate.py .agents/skills/plugin-creator ```

文件 SHA256:3b43cb214f458a1ae13e1b93a69e493241d8e12c5a474afe8ae81ae0507aa216

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

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.

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.system/plugin-creator/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源