Skip to content

fix: correct malformed JSON in yuque-personal/group plugin manifests#70

Merged
chen201724 merged 1 commit into
yuque:mainfrom
shutcode:fix/plugin-json-syntax
May 27, 2026
Merged

fix: correct malformed JSON in yuque-personal/group plugin manifests#70
chen201724 merged 1 commit into
yuque:mainfrom
shutcode:fix/plugin-json-syntax

Conversation

@shutcode

Copy link
Copy Markdown
Contributor

Problem

plugins/yuque-personal/.claude-plugin/plugin.json and plugins/yuque-group/.claude-plugin/plugin.json both contain malformed JSON: an extra "name": "yuque" key plus an unmatched closing brace after the author block. Example (yuque-personal):

"author": {
    "name": "yuque"
  },
  "name": "yuque"        // ← orphan key
},                        // ← extra closing brace, terminates root object early
"homepage": "...",        // ← now outside the JSON object → invalid

Reproduction

curl -s https://raw.githubusercontent.com/yuque/yuque-ecosystem/main/plugins/yuque-personal/.claude-plugin/plugin.json | python3 -m json.tool
# Extra data: line 9 column 4 (char 182)

claude plugin marketplace add yuque/yuque-ecosystem
claude plugin install yuque-personal@yuque
# ✘ Failed to install plugin "yuque-personal@yuque": Plugin … has a corrupt manifest file …
# JSON parse error: JSON Parse error: Unable to parse JSON string

yuque-group fails identically.

Fix

Remove the orphan "name" key and the extra closing brace, leaving a single well-formed author object.

   "author": {
-      "name": "yuque"
-    },
-    "name": "yuque"
+    "name": "yuque"
   },

After the fix, python3 -m json.tool parses cleanly and claude plugin install yuque-personal@yuque / yuque-group@yuque both succeed.

Verification

python3 -c "import json; json.load(open('plugins/yuque-personal/.claude-plugin/plugin.json'))"
python3 -c "import json; json.load(open('plugins/yuque-group/.claude-plugin/plugin.json'))"
# both return without error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants