数据分析

plugin-creator

试用

为 Codex 脚手架式生成插件目录,自带必需清单、可选配套目录和 marketplace 条目。

它能做什么

通过 scaffold 脚本生成 Codex 插件目录,自动创建必需的 `.codex-plugin/plugin.json`,并写入完整 schema 结构,字段全部保留为 `[TODO: ...]` 占位符,留待人工填充后再发布或测试。同时支持按需生成可选的 `skills/`、`hooks/`、`scripts/`、`assets/`、`.mcp.json`、`.app.json` 等配套目录。插件名称会规范化为小写连字符形式,长度上限 64 字符。带上 `--with-marketplace` 参数时,会写入或更新 `.agents/plugins/marketplace.json`,追加包含 `policy.installation`、`policy.authentication`、`category` 的条目;若该文件不存在,先用顶层的 `name` 与 `interface.displayName` 占位符初始化后再追加。

什么时候用它

  • 为新插件搭建 repo-local 目录结构和清单
  • 为已有插件补充 skills、hooks、scripts、assets、MCP、apps 等可选目录
  • 生成或向 `.agents/plugins/marketplace.json` 追加条目
  • 在 `~/plugins/` 下创建 home-local 插件并维护其 marketplace 元数据

技能文档

Plugin Creator

Quick Start

  1. 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 /plugins/.
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py 
  1. Open /.codex-plugin/plugin.json and replace [TODO: ...] placeholders.

  2. Generate or update the repo marketplace entry when the plugin should appear in Codex UI ordering:

# marketplace.json always lives at /.agents/plugins/marketplace.json
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin --with-marketplace

For a home-local plugin, treat `` 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
  1. Generate/adjust optional companion folders as needed:
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin --path  \
  --with-skills --with-hooks --with-scripts --with-assets --with-mcp --with-apps --with-marketplace

is the directory where the plugin folder 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 ///.
  • Always creates ///.codex-plugin/plugin.json.
  • Fills the manifest with the full schema shape, placeholder values, and the complete interface section.
  • Creates or updates /.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.
  • `` is normalized using skill-creator naming rules:
    • My Pluginmy-plugin
    • My--Pluginmy-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 /.agents/plugins/marketplace.json.
  • For a home-local plugin, use the same convention with `` as the root: ~/.agents/plugins/marketplace.json plus ./plugins/.
  • 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:
{
  "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 /.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:

{
  "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"
    }
  ]
}

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/.

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:

python3 /scripts/quick_validate.py .agents/skills/plugin-creator

常见问题

插件目录默认创建在哪里?
从 repo 根目录运行时默认放在 `/plugins/` 下。`--path` 参数可指定任意目录,例如 `~/code/plugins`;home-local 场景下 `--marketplace-path` 会把 marketplace 文件指向 `~/.agents/plugins/marketplace.json`。
生成的 marketplace 条目包含哪些字段?
每条条目始终包含 `name`、本地 `source`(路径为 `./plugins/plugin-name`)、`policy.installation`(默认 `"AVAILABLE"`)、`policy.authentication`(默认 `"ON_INSTALL"`)以及 `category`(默认 `"Productivity"`)。除非你显式要求产品门控,否则不会写入 `policy.products`。
占位符如何处理?
`plugin.json` 的所有字段都保留为 `[TODO: ...]`,新建 `marketplace.json` 时,顶层的 `name` 和 `interface.displayName` 同样保留为占位符,由人工或后续步骤在发布前补齐。

相关技能

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

通过托管 OAuth 代理网关对接 Airtable,对 Base、表和记录执行增删改查。

298 次安装15 星标

跨多个数据引擎检索加密新闻,返回带 AI 评分与中英双语摘要的结果。

833 次安装30 星标

通过 Maton 托管的 OAuth 代理读写 Zoho CRM 记录,所有写入操作均需用户确认。

463 次安装6 星标

通过托管 OAuth 代理连接 Notion 工作区,支持搜索、数据库查询与读取,写入需用户确认。

340 次安装8 星标

OpenAI 的更多技能

浏览全部技能

按当前 OpenAI 官方文档为 ChatGPT Apps SDK 生成 MCP server 与 widget 脚手架,并先做架构分类与工具规划。

作者 OpenAI26.8k 星标

从代码或描述出发,将完整页面构建为 Figma 屏幕,并引用文件内已发布的设计系统组件与变量。

作者 OpenAI26.8k 星标

按阶段编排与代码对齐的 Figma 设计系统构建流程,强制设置检查点与质量规则。

作者 OpenAI26.8k 星标

figma-use

官方

在 Figma 文件中通过 use_figma MCP 执行 Plugin API JavaScript 所需遵循的规则与编码约定。

作者 OpenAI26.8k 星标

hatch-pet

官方

为 Codex 生成 8x9 动画宠物图集,并附带 QA 联检表与 pet.json 打包。

作者 OpenAI26.8k 星标

imagegen

官方

为项目生成或编辑位图素材:网站资源、游戏精灵图、UI 草图、产品样图、信息图等。

作者 OpenAI26.8k 星标