`create-plugin-scaffold` documents unsupported `marketplace.json` metadata fields

未关闭 适合新手
#281 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
92/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, json, markdown

调研方向

将 create-plugin/skills/create-plugin-scaffold/SKILL.md 的第 6 步与 schemas/marketplace.schema.json 和 schemas/plugin.schema.json 一起阅读。更新文档中的 Marketplace 字段,并明确 plugin manifest 字段,然后运行 scripts/validate-plugins.mjs;当说明仅描述 schema 支持的 Marketplace 属性且验证通过时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Description

The create-plugin-scaffold skill instructs users to add keywords, category and tags as optional metadata on entries in .cursor-plugin/marketplace.json:

6. If repository uses `.cursor-plugin/marketplace.json`, add plugin entry:
   - `name`
   - `source`
   - optional metadata (`description`, `keywords`, `category`, `tags`)

This conflicts with the marketplace schema. A marketplace plugin entry has additionalProperties: false and permits only:

  • name
  • source
  • description
  • minClientVersions

The keywords, category and tags fields are supported by .cursor-plugin/plugin.json, not by an individual marketplace.json plugin entry.

Affected files

  • create-plugin/skills/create-plugin-scaffold/SKILL.md, lines 50–53
  • schemas/marketplace.schema.json, lines 54–79
  • schemas/plugin.schema.json, lines 59–71
  • scripts/validate-plugins.mjs, lines 34–49

Steps to reproduce

  1. Add a plugin entry containing one of the documented fields to .cursor-plugin/marketplace.json:

    {
      "name": "example-plugin",
      "source": "example-plugin",
      "keywords": ["example"]
    }
    
  2. Run the repository validator.

  3. Validation fails because keywords is an additional property:

    marketplace.json schema validation failed:
      /plugins/0: must NOT have additional properties
    

The same failure occurs with category or tags.

Expected behavior

The scaffold instructions should produce a marketplace entry that conforms to schemas/marketplace.schema.json.

Actual behavior

Following the skill as written can generate an invalid marketplace entry that fails repository validation.

Proposed fix

Update step 6 of create-plugin-scaffold/SKILL.md to state that a marketplace plugin entry accepts:

  • Required: name, source
  • Optional: description, minClientVersions

Clarify that keywords, category and tags belong in the plugin's .cursor-plugin/plugin.json manifest.

Acceptance criteria

  • The skill no longer recommends unsupported properties in a marketplace plugin entry.
  • The skill clearly distinguishes marketplace entry metadata from plugin manifest metadata.
  • An entry created by following the documented instructions passes scripts/validate-plugins.mjs.
主要语言
TypeScript
星标
8.2k
派生
751
平均合并
12 小时 1 分钟
30 天内合并 PR
43

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cursor/plugins 的其他 Issue

查看 cursor/plugins 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。