Google Cloud 官方插件用 marketplace 装,不要 npx skills add
marketplace add google/skills,再 plugin add google-cloud-developer@google-plugins。这是技能加 Developer Knowledge MCP,不是把 SKILL.md 拷进 ~/.codex/skills。
Google 把认证、项目上手和 gcloud 护栏打成 Agent Plugins 捆,并带上只读的 Developer Knowledge MCP(https://developerknowledge.googleapis.com/mcp),用来查官方文档,不是给你的 GCP 项目写资源。
google/skills 仓库很大。只装这一份插件时,用稀疏检出,避免整仓 clone:
codex plugin marketplace add google/skills --sparse .agents/plugins --sparse plugins/cloud/google-cloud-developer --json
codex plugin add google-cloud-developer@google-plugins
codex plugin list
codex mcp list
marketplace 清单在 .agents/plugins/marketplace.json,名字是 google-plugins。本地插件源是 ./plugins/cloud/google-cloud-developer,所以两条 --sparse 都要。清单里其它数据库插件多半是外链 Git,不会跟着这次稀疏检出进来。
0.154 起当前会话通常会刷新。/plugins 里应看到 google-cloud-developer@google-plugins;/mcp 里应有 developer-knowledge。没有就新开会话。exec 里审批插件 MCP 必须写带 marketplace 后缀的键,不要只写 google-cloud-developer。
不要用 npx skills add google/skills 当 Codex 插件安装器:那是给技能目录拷 SKILL.md 的另一条路,不会装这份 MCP。也不要手拷到 ~/.codex/skills。IDE 扩展没有 /plugins。
BigQuery / Spanner 这类 Data Cloud 插件是另一个 marketplace:GoogleCloudPlatform/data-agent-kit,不要和 google/skills 抄成同一个源。