本仓库是 AiCode 的插件索引仓库,仅维护一个 index.json,用于描述可用插件及其发布信息。
插件源码与安装包不存放在本仓库。插件可以分别维护在独立仓库,也可以由多个插件共享一个 GitHub monorepo;每个插件通过源码仓库的 Release 发布自己的安装包。
.
├── index.json
├── schema/
│ └── index.schema.json
├── scripts/
│ └── validate_index.py
└── .github/
└── workflows/
└── validate-index.yml
index.json:插件索引的唯一数据文件。schema/index.schema.json:索引的 JSON Schema,用于编辑器和校验工具检查格式。scripts/validate_index.py:本地与 CI 共用的校验脚本。.github/workflows/validate-index.yml:推送到main或提交 PR 时自动校验。
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
schema_version |
integer | 是 | 索引格式版本,当前固定为 1 |
plugins |
array | 是 | 插件条目列表 |
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id |
string | 是 | 插件唯一标识,必须与包内 plugin.json 的 id 一致,格式为 发布者.插件名 |
name |
string | object | 是 | 插件展示名称,可写成字符串或语言映射 |
description |
string | object | 是 | 插件简介,可写成字符串或语言映射 |
author |
string | 是 | 发布者标识,必须与包内 plugin.json 的 publisher 一致 |
repository |
string | 是 | 插件源码仓库,必须为 GitHub 仓库地址;多个插件可以填写同一个仓库 |
logo |
string | 否 | 插件图标地址,必须为 https URL |
homepage |
string | 否 | 项目主页地址,必须为 https URL |
license |
string | 否 | 许可证标识,例如 MIT |
tags |
array | 否 | 分类标签;填写时 1–4 个且不可重复 |
version |
string | 否 | 当前版本,SemVer,不能以 v 开头;未填写时默认最新版 |
min_plugin_api_version |
string | 否 | 最低插件接口版本,SemVer 格式;与宿主实现的插件接口版本比较,未填写时不限 |
min_app_version 已废弃,App 不再读取;请改用 min_plugin_api_version。
tags 可选值:
provider、tool、skill、agent、mcp、ui、integration、editor、other。
name 与 description 可以写成两种形式:
- 单一字符串:对所有语言生效;
- 语言标签到文本的映射,可含
default键:{"default": "Demo Kit", "zh-CN": "演示套件"}。
取值顺序:完整标签(zh-CN)→ 语言部分(zh)→ default → en → 第一项。标签统一为小写、- 分隔,zh_CN 与 zh-cn 视为同一个;标签必须是 zh、zh-cn 这类语言标签,最多 16 种。name 最多 120 字符且不允许换行,description 最多 2000 字符且允许换行。
{
"schema_version": 1,
"plugins": [
{
"id": "author-name.aicode-sample-plugin",
"name": { "default": "AiCode Sample Plugin", "zh-CN": "AiCode 示例插件" },
"description": { "default": "An AiCode sample plugin.", "zh-CN": "一个 AiCode 示例插件。" },
"author": "author-name",
"repository": "https://github.com/author-name/aicode-sample-plugin",
"logo": "https://raw.githubusercontent.com/author-name/aicode-sample-plugin/main/logo.png",
"homepage": "https://github.com/author-name/aicode-sample-plugin",
"license": "MIT",
"tags": ["tool"],
"version": "1.0.0",
"min_plugin_api_version": "1.1.0"
}
]
}- 资产文件名为
{id}_{version}.zip;同一个 Release 或同一个仓库可以同时发布多个插件资产。
- 一个插件对应
plugins数组中的一个对象;多个对象可以共享同一个repository。 - 每个上架 PR 最多新增、更新或删除一个插件。即使多个插件共享源码仓库,也要分别提交 PR。
- 新增插件时将条目追加到
plugins数组末尾;更新时保留原有id。删除插件或更换源码仓库地址时,PR 作者必须是原仓库的个人所有者。请用源码仓库所有者的个人 GitHub 账号发起 PR;索引的author是插件发布者标识,不作为 GitHub 账号凭据。 - PR 会检查索引格式和 ID 唯一性;新增或更新条目会检查仓库归属、Release 资产,以及包内
plugin.json的id、version、publisher、repository与name/description。删除或更换仓库时还会检查原仓库归属。 - 更改 ID、组织仓库上架或代提交,请联系商店维护者处理。
- 推送到
main或手动触发工作流时,执行全量索引校验。 - 索引中出现的每种语言文本必须与包内清单一致;索引未覆盖的语言只给出警告。
- 提交前可在本地运行
python3 scripts/validate_index.py,需要先安装依赖:python3 -m pip install jsonschema。