---
catalog_id: "R-112"
kind: "repo"
domain: "agent"
domain_label: "Agent 编排 / Agent Systems"
date: "2026-11-28"
title: "google/skills"
verdict: "极简索引按需路由 220 技能，双清单打通多宿主插件分发"
summary: "Google 官方 Apache-2.0 产品技能与插件中央仓库：收录 220 个官方验证技能（Cloud 196 / Ads 15 / Developers 4 / Analytics 2 / Identity 2 / Platform-Devices 1，其中 48 个自带 Python/Shell 诊断脚本），首创 75KB index.json + finding-google-skills 按需拉取路由器（含 TLS 证书防绕过铁律与 CLOUDSDK 技能归因协议），并通过双清单（.claude-plugin + .agents/plugins）与 16 个 Git Submodule 为 Claude Code、Codex 与 Antigravity 分发 18 个官方产品插件。"
summary_en: "Catalog of 220 official Google skills featuring a 75KB lazy-loading index.json router and dual manifests across Claude, Codex, and Antigravity."
canonical_url: "https://oumuatown.com/repos/google__skills/"
markdown_url: "https://oumuatown.com/repos/google__skills.md"
og_image_zh: "https://oumuatown.com/og/zh/R-112.png"
og_image_en: "https://oumuatown.com/og/en/R-112.png"
cite_count: 35
repo: "google/skills"
github_url: "https://github.com/google/skills"
commit: "10c799e"
tags:
  - "agent-skills"
  - "google-cloud"
  - "skill-catalog"
  - "lazy-loading-router"
  - "mcp-plugins"
  - "git-submodules"
github_repos:
  - "https://github.com/google/skills/tree/10c799e"
  - "https://github.com/anthropics/claude-plugins-official/tree/0fbfda5"
---

# R-112 · google/skills

> **结论 / Verdict**: 极简索引按需路由 220 技能，双清单打通多宿主插件分发
> **EN Summary**: Catalog of 220 official Google skills featuring a 75KB lazy-loading index.json router and dual manifests across Claude, Codex, and Antigravity.

## Provenance & Evidence

- Primary Repository: https://github.com/google/skills (@10c799e)
- Referenced Repository: https://github.com/anthropics/claude-plugins-official/tree/0fbfda5
- Verified Source Citations (#Lxx): 35
- Web Reader: https://oumuatown.com/repos/google__skills/

# google/skills

> 仓库地址：https://github.com/google/skills · 审计版本：`google/skills@10c799e` · 审计日期：2026-11-28
> 来源文章：[关联文章](../articles/2026-11-28-0xmovez-20-google-agent-repos.md)

## 定位与解决的真问题

- **核心定位与目标用户**：Google 官方维护的 Agent Skills（[agentskills.io](https://agentskills.io) 规范）与产品插件聚合仓（Apache-2.0 许可，`LICENSE`、`README.md#L1-L7`, `#L303-L306`），面向在 AI 编码助手中构建、迁移、排障 Google Cloud（GCP）、Google Ads、Analytics、Identity、LiteRT Tensor 与 Google Home/Health 生态的开发者。
- **相比常规做法解决的关键痛点**：
  1. **解决“220 个企业级技能撑爆上下文”与幻觉指令难题**：不把数百个产品手册全量注入系统提示，而是通过自动生成的目录索引 `index.json`（~75 KB）+ `finding-google-skills` 懒加载路由技能，在需要时按字节精确拉取单条 `SKILL.md`（`skills/developers/finding-google-skills/SKILL.md#L20-L99`）；同时像 `gcloud` 这类基础技能强制先跑 `gcloud help <leaf_command>` 校验叶子参数，严禁用模型记忆或网页搜索猜测 CLI 语法（`skills/cloud/gcloud/SKILL.md#L17-L76`）。
  2. **统一企业级插件分发与混合形态包装**：在同一个仓库内兼容 `npx skills` 技能安装（单技能/全量）与 Claude Code / Codex / Antigravity 三端插件（技能 + 远程 Streamable-HTTP MCP Server + 发现规则），并用 Git Submodule 桥接 `agy` 尚不支持 marketplace 清单的过渡期限制（`plugins/cloud/data-cloud/README.md#L12-L28`）。

## 技术栈与核心目录结构

- **语言 / 运行时 / 关键依赖**：纯 Markdown（`SKILL.md` + `references/`）为主，辅以 Python 3 标准库脚本（48 个技能含 `scripts/`，多为零三方依赖标准库实现，如 `google-cloud-release-radar/scripts/release_radar.py#L15-L46`、`gke-kueue-troubleshooting/scripts/*.py`）与 Shell 诊断脚本；CI 依赖 GitHub Actions + `lycheeverse/lychee-action@v2` + Python 3（`.github/workflows/link-checker.yml#L24-L47`）。
- **关键目录树与职责划分**（`google/skills@10c799e`，实测统计 **220 个 `SKILL.md`**、215 个含 `references/`、48 个含 `scripts/`、31 个含 `assets/`）：
  - `skills/`（6 大产品域）：
    - `skills/cloud/`（**196 个**）：覆盖 GKE/TPU 故障排障（含 Kueue、MXLA Hang、VBAR OOM）、BigQuery/BQMS 迁移、AlloyDB/Spanner/Cloud SQL、Vertex/Gemini Enterprise Agent Platform（`agent-platform-*` 16 个、`gemini-api`/`gemini-interactions-api`/`gemini-live-api`/`gemini-agents-api`）、Genkit 4 语言（Dart/Go/JS/Python）、Cloud Run/Compute Engine/Filestore/SecOps/IAM/WAF 6 大支柱等。
    - `skills/ads/`（**15 个**）：Google Ads API、Data Manager API、Google Mobile Ads SDK、IMA SDK。
    - `skills/developers/`（**4 个**）：`finding-google-skills`、`retrieving-developer-knowledge`、`gerrit-code-review`、`migrate-to-rust`。
    - `skills/analytics/`（**2 个**）：GA4 Admin / Data API。
    - `skills/identity/`（**2 个**）：`dpop-adoption`、`sign-in-with-google-web`。
    - `skills/platform-devices/`（**1 个**）：`litert-google-tensor`（含端侧编译/基准/AI Pack 打包脚本）。
  - `plugins/`（**4 个本地插件目录 + 16 个上游 Submodule 占位**）：
    - `plugins/cloud/google-cloud-developer/`（本地完整插件：`plugin.json`、`mcp.json` 指向 `https://developerknowledge.googleapis.com/mcp`、`com.google.antigravity/mcp_config.json` 配置 `google_credentials` 鉴权、内嵌 `finding-google-skills`/`gcloud`/`google-cloud-recipe-{auth,onboarding}`/`retrieving-developer-knowledge` 与 `rules/google-cloud-discovery.md`）。
    - `plugins/cloud/data-cloud/`（16 个 `.gitmodules` 声明的上游数据库/数据插件，如 `alloydb`、`bigquery-data-analytics`、`spanner`、`looker`、`data-agent-kit-plugin` 等；主仓库浅克隆默认不检出子模块内容，`README.md` 与 `.gitmodules#L1-L64` 略有出入：README 表格列 15 个，`.gitmodules` 实有 16 个含 `cloud-bigtable-ecosystem`）。
    - `plugins/health/google-health-developer/`（指向 `https://healthdevelopers.googleapis.com/mcp`）。
    - `plugins/home/google-home-developer/`（指向 `https://homedevelopers.googleapis.com/mcp`）。
  - 根级索引与分发清单：`index.json`（自动生成全量 220 技能目录）、`.claude-plugin/marketplace.json`（18 个插件）、`.agents/plugins/marketplace.json`（Codex 18 个插件含 `category` 与 `policy`）、`lychee.toml` / `.lycheeignore`、`.github/workflows/link-checker.yml`。

## 核心实现源码级剖析（附文件路径与行号）

1. **`index.json` + `finding-google-skills` 懒加载路由与安全检索协议**（`index.json`、`skills/developers/finding-google-skills/SKILL.md#L1-L136`）：
   - 根目录 `index.json` 由内部流水线自动生成（`"generator": "This file is generated. Do not edit it by hand."`），收录全部 220 个技能的 `name`、`description`（同时编码触发条件与明确排除边界 `Don't use for...`）及精确的 `https://raw.githubusercontent.com/google/skills/main/skills/.../SKILL.md` 入口 URL。
   - `finding-google-skills` 作为低成本前置路由元技能，要求 Agent：**① 字节精确拉取**（`curl`/`wget`/`node fetch` 落盘或 `jq` 过滤，防止 75KB JSON 在工具返回预览时被按字母序截断导致误以为只有前几个云产品，`SKILL.md#L35-L49`）；**② 证书失败即终局失败**（明令禁止 `curl -k` / `--insecure` / `-SkipCertificateCheck`，未成功解析 JSON `skills` 数组前严禁凭记忆编造技能名或 URL，`#L55-L67`, `#L131-L136`）；**③ 最多精选 3 个**匹配技能再单点拉取并退出路由（`#L71-L85`）；**④ 会话内可复用、跨会话严禁持久化缓存**（`#L89-L99`）。失败兜底链为：`curl -sSL` 重试 → GitHub Trees API (`?recursive=1`) 扫路径 → 必须在给用户的回复中显式声明检索失败（`#L107-L130`）。

2. **多宿主插件分发架构与 Antigravity Submodule 桥接**（`.claude-plugin/marketplace.json#L1-L167`、`.agents/plugins/marketplace.json#L1-L248`、`plugins/cloud/data-cloud/README.md#L1-L66`）：
   - **技能包分发**：通过 Vercel `npx skills add google/skills` 与 `npx skills update` 安装/清理废弃技能（`README.md#L10-L30`）。
   - **插件双清单分发**：`.claude-plugin/marketplace.json`（供 Claude Code `claude plugin marketplace add google/skills`）与 `.agents/plugins/marketplace.json`（供 Codex CLI，额外附带 `policy: {installation: "AVAILABLE", authentication: "ON_INSTALL"}` 与 `category`）共同注册了 18 个官方插件——16 个以 `github`/`git-subdir` 指向 `GoogleCloudPlatform/*` 上游仓库固定 tag（如 `alloydb-plugin@0.2.0`、`db-context-enrichment@v0.7.2`），2 个本地路径（`./plugins/cloud/google-cloud-developer`、`./plugins/home/google-home-developer`；注意 `google-health-developer` 与 `data-cloud` 未出现在两个 `marketplace.json` 中）。
   - **Antigravity 专项兼容**：由于 `agy` 尚不支持从 marketplace 清单解析外部仓库（`plugins/cloud/data-cloud/README.md#L23-L26`），`google/skills` 将 16 个外部插件仓库以 Git Submodule 挂进 `plugins/cloud/data-cloud/<name>`，用户可用 `agy plugin install https://github.com/google/skills/plugins/cloud/data-cloud/alloydb` 直装；本地 MCP 插件则同时提供标准 `mcp.json`（`streamable-http`）与 Antigravity 专用的 `com.google.antigravity/mcp_config.json`（声明 `"authProviderType": "google_credentials"`，`plugins/cloud/google-cloud-developer/com.google.antigravity/mcp_config.json#L1-L7`）。

3. **安全护栏与内部归因遥测规范**（`skills/cloud/gcloud/SKILL.md#L17-L94`、`skills/cloud/gcloud/references/attribution.md#L1-L48`、`skills/cloud/google-cloud-release-radar/scripts/release_radar.py`）：
   - **`gcloud` 叶子命令前置验证与数据缩减**：强制在提议任何参数或执行命令前运行 `gcloud help <leaf_command>`，明令禁止用 `search_web` 替代帮助输出，并规范了 4 步计划模板（帮助校验 → 参数/dry-run 检查 → `--dry-run`/`--validate-only` → 高危禁令拒绝与人工授权，`gcloud/SKILL.md#L29-L76`）。
   - **Agent 命令行归因标记（Attribution）**：官方技能（如 `gcloud`、`release_radar.py#L64-L67`）在终端直调时要求按条内联注入 `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:<name>)"` 或 `User-Agent` 后缀以便 Google 统计技能调用量，同时**严禁写入生成的业务代码/Terraform** 且提供明确的用户 Opt-Out 规则（`attribution.md#L17-L48`）。
   - **高深度产品诊断脚本范例**：48 个带脚本技能并非玩具占位——例如 `gke-kueue-troubleshooting/scripts/` 包含 21 个模块（覆盖 `kueue_schema` 校验、工作负载时间线、快照提取与报告验证），`google-cloud-release-radar/scripts/release_radar.py` 用 1051 行纯标准库 Python 实现 370+ GCP 产品 Atom/RSS 并发抓取、`.md.txt` 原始文档富化与本地哈希增量去重。

4. **公开仓验证体系与上游源头真值机制**（`CONTRIBUTING.md#L5-L33`、`.github/workflows/link-checker.yml#L1-L246`）：
   - **公开仓仅保留外链自愈 CI，无公开 `skill-lint`**：`CONTRIBUTING.md#L5-L11` 明确说明**不接受外部 PR**（所有技能均经 Google 内部 Agent Skills Program 审核验证后单向同步出仓）。
   - **DevSite `.md.txt` 智能外链分诊器**：`.github/workflows/link-checker.yml` 每周一运行 Lychee 扫描全仓 Markdown；若发现 404，内嵌 Python 脚本自动探测 `docs.cloud.google.com` 路径裁剪/点号拼接/导航页回溯（`resolve_devsite_html_404`，`#L101-L145`）并检查是否存在 `.md.txt` 纯文本端点（`#L81-L99`），自动更新或关闭追踪 Issue `#240`（`#L233-L245`）。

## 亮点设计 vs 局限/坑点

- **值得借鉴的设计**：
  - **`index.json` + `finding-google-skills` 路由范式**：以 ~75 KB 索引替代 220 份全文预加载，且在 Router 内部内置“防 Preview 截断、防 TLS 降级绕过、防幻觉编造”三条硬性安全护栏，是大型技能库按需发现的参考模板。
  - **GCP 文档 `.md.txt` 端点利用与 DevSite 404 自动归因**：不论是 `release_radar.py` 还是 CI 的 `link-checker.yml`，都显式优先请求 `docs.cloud.google.com/...md.txt` 原始 Markdown 端点，大幅降低 HTML 解析噪声与 Token 消耗。
  - **混合脚本诊断深度**：Kueue/Filestore/Airflow/IAM/LiteRT 等运维诊断技能配备纯标准库脚本处理快照解析与基线校验，显著优于纯文字排查指南。
- **局限、隐含假设与潜在坑点**：
  - **单向只读镜像仓，无开源校验器**：外部无法直接向 `google/skills` 提 PR，且 `index.json` 生成器与内部技能格式 linter 并未随公开仓库放出（`CONTRIBUTING.md#L5-L33`、`index.json`）。
  - **Submodule 同步与清单覆盖不齐**：浅克隆主仓时 `plugins/cloud/data-cloud/*` 全为空目录，需额外 `git submodule update --init`；`google-health-developer` 插件位于 `plugins/health/` 下但未登记在两个顶层 `marketplace.json` 中，`.gitmodules`（16 项）与 `plugins/cloud/data-cloud/README.md` 表格（15 项）亦存在 1 项数量差（`cloud-bigtable-ecosystem` 已写入 `.gitmodules` 与 `marketplace.json` 但漏列于该表）。
  - **默认开启命令行归因变量**：`gcloud` 等技能默认提示 Agent 为命令行注入 `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION` / `User-Agent`，注重严格静默的用户需在提示中显式 Opt-Out（`attribution.md#L46-L48`）。

## 可复用的模块或设计模式

- **如何迁移到未来项目**：
  1. **`index.json` + 严格防幻觉 Router Skill**：当团队内部私有技能超过 30–50 个时，仿照 `google/skills` 自动生成精简 `index.json`（`name` + `when/when-not` 描述 + `entrypoint`）并配一个类似 `finding-google-skills` 的按需拉取元技能。
  2. **双清单元数据 + Submodule 兼容层**：同时维护 `.claude-plugin/marketplace.json`、`.agents/plugins/marketplace.json` 与 `plugins/...` 目录，并在原生插件尚未支持跨仓引用的宿主场景下通过 Git Submodule 固定版本 tag。
  3. **DevSite `.md.txt` 探测与 Lychee 自动分诊工作流**：文档链接巡检可直接借鉴 `.github/workflows/link-checker.yml#L43-L231` 的自动重定向/替代路径探测与单一 Issue 滚动更新机制。
- **关联 Pattern**：（由 `synthesizer` 补全）

## Cross-Referenced Specimens

- [A-020 · 用 5 层 20 个 Google 系 Agent 开源仓库武装 Gemini 4 Neon `/swarm`——从裸跑编排到技能、运行时与工具栈（先装 3 个而非 20 个）](https://oumuatown.com/articles/2026-11-28-0xmovez-20-google-agent-repos.md) — 二十款谷歌 Agent 仓实测：先装三件套与五处源码勘误
- [P-023 · Google 5 层 Agent 工程栈、协议互操作与运行时选型模式（Google 5-Layer Agent Stack, Protocols & Runtimes）](https://oumuatown.com/patterns/google-agent-stack-protocols-and-runtimes.md) — 五层谷歌 Agent 栈选型矩阵与全栈源码避坑清单
- [R-099 · anthropics/claude-plugins-official](https://oumuatown.com/repos/anthropics__claude-plugins-official.md) — 官方插件供应链：外链全锁SHA，配策略全审与CAS自动回退
