🛒 2026-05 v2.1.128-136

Claude Code Plugin Marketplace 2026 — 选型透明、依赖可控、卸载干净

Anthropic 官方 directory 上线 + /plugin 浏览面显示 token 成本估算 + 强制依赖管理 + claude project purge 全量清理。

官方 directory 与 marketplace.json 规范

Anthropic 维护的 anthropics/claude-plugins-official 仓库已上线,是官方高质量 plugin 目录。仓库根的 .claude-plugin/marketplace.json 是 marketplace 描述 schema:plugin 列表、依赖(含 semver 约束)、context cost 估算、permissions 声明。客户端从该 schema 拉数据填充 /plugin 浏览面。自建私有 marketplace 也按此 schema 走。

projected context cost 透明化

v2.1.x 起 /plugin 浏览面对每个 plugin 显示 projected context cost:per-turn token 估算与 per-invocation token 估算。重负载 plugin(如多 MCP server 捆绑)的成本一目了然,避免装上才发现 context window 被吃 40%。配合 Claude Code Fast Mode 默认 Opus 4.7 之后,token 预算更需要精细规划。

依赖管理 + 安全卸载

claude plugin disable 现在拒绝禁用被依赖的 plugin —— 给出 disable-chain hint(提示哪些依赖你也需要禁),避免破坏链式依赖。claude plugin enable 力推传递依赖(递归启用所有依赖)。plugin 可在 marketplace.json 用 semver 约束 dep,升级时锁版本不破坏使用者。claude project purge 是新加的项目级清理命令:transcripts、tasks、file history、config entry 一次清除,支持 --dry-run 与 -i 交互。

Anthropic 官方 vs SkillsMP vs claudemarketplaces.com

三类来源各有定位。Anthropic 官方 directory(github.com/anthropics/claude-plugins-official):审核过的高质量 plugin,质量保证最高但数量有限。SkillsMP(skillsmp.com):跨 Claude/Codex/ChatGPT 的 Agent Skills 聚合站,覆盖第三方 skill 发现。claudemarketplaces.com:社区 plugin/skill/MCP server 聚合,量大但需自行审查。生产环境建议:核心工作流走官方 directory,边缘探索走社区站。

FAQ

怎么自建团队私有 marketplace?

建一个 git 仓库,根目录放 .claude-plugin/marketplace.json,按 schema 列出团队内部 plugin。团队成员把仓库 URL 加到 ~/.claude/settings.json 的 marketplaces 数组即可。私有 marketplace 可在公司内网托管。

projected context cost 怎么算?

客户端基于 plugin manifest 中声明的 tool descriptions、system prompt 片段、MCP server 元数据估算 token 消耗。是经验值不是精确,但跨 plugin 横向比较已足够指导选型。

claude project purge 会误删什么吗?

会清掉 Claude Code 在该项目下产生的所有状态:会话 transcript、task 历史、Claude 自己的 file history 索引、config 中关于该项目的条目。源代码、git history、用户写的 hooks/skills 不动。建议先 --dry-run 看清单再执行。

通过 QCode 跑 Claude Code Plugin Marketplace

QCode 国内透明接入 Claude,所有官方与社区 marketplace 都能用,无需翻墙。

立即开通