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

オープン 初心者向け
#281 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 フィールドを更新し、プラグインマニフェストのフィールドを明確にしてから、scripts/validate-plugins.mjs を実行してください。手順がスキーマでサポートされている 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分
マージ済み PR(30日)
43

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cursor/plugins のほかの issue

cursor/plugins の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。