Agent之skills:google/skills的简介、安装和使用方法、案例应用之详细攻略
目录
google/skills的简介
1、特点
2、核心内容
google/skills的安装和使用方法
1、安装
2、使用方法
Google Skills的案例应用
案例一:安装 Google Skills 仓库—安装 Google 官方 Agent Skills
案例二:安装 Google Cloud 基础 Skills— 构建 Google Cloud 开发能力
案例三:安装 Well-Architected Framework Skills— 引入 Google Cloud Well-Architected Framework 能力
google/skills的简介
Google Skills 是 Google 官方开源的 Agent Skills 仓库,包含面向 Google 产品与技术(包括 Google Cloud)的可复用 Agent Skills。项目目前仍处于持续开发(Active Development)阶段,旨在为 AI Agent 提供针对 Google 云平台及相关技术栈的专业能力,使 Agent 能够更高效地完成 Google 产品相关任务。
整个仓库围绕 Google Cloud 生态组织 Skills,涵盖 Agent Platform API、Google Cloud 基础服务以及 Well-Architected Framework 等多个方向。目前提供的 Skills 包括 Gemini API on Agent Platform、Managed Agents API、Skill Registry API,以及 AlloyDB、BigQuery、Cloud Run、Cloud SQL、Firebase、Google Kubernetes Engine(GKE)等基础能力,同时还提供 Google Cloud 入门、身份认证、网络可观测性等 Recipe。
项目采用 Apache 2.0 License 发布,并支持通过 Skills CLI 按需安装所需 Skills。安装过程中,开发者可以选择整个仓库中的部分 Skill,而无需一次性安装全部内容,从而根据实际开发需求构建适合自己的 Google 技术能力集合。
Github地址:https://github.com/google/skills
1、特点
特点 | 详细说明 |
Google 官方维护 | 由 Google 官方维护,提供面向 Google 产品和技术的 Agent Skills。 |
面向 Google Cloud | Skills 主要围绕 Google Cloud 产品及服务构建,包括数据库、计算、容器及开发平台等。 |
持续开发 | README 明确说明仓库仍处于 Active Development 状态,将持续扩展新的 Skills。 |
支持按需安装 | 使用 Skills CLI 安装时,可选择需要的 Skill,而非全部安装。 |
覆盖 Agent Platform API | 提供 Gemini API、Gemini Interactions API、Managed Agents API、Skill Registry API 等相关 Skills。 |
提供 Google Cloud 基础 Skills | 包括 AlloyDB、BigQuery、Cloud Run、Cloud SQL、Firebase、GKE 等基础能力。 |
提供 Recipe 类 Skills | 包含 Google Cloud 入门、身份认证、Network Observability 等实践型 Recipe。 |
覆盖 Well-Architected Framework | 包括 Security、Reliability、Cost Optimization、Operational Excellence、Performance Optimization、Sustainability 等主题。 |
开源许可 | 项目采用 Apache 2.0 License,可按照许可证进行复制、修改和分发。 |
2、核心内容
注意,从整体来看,google/skills 更偏向Google Cloud 官方知识与最佳实践的 Agent 化封装:它并非提供大量通用开发技能,而是围绕 Google Cloud 产品、Agent Platform API、实践指南以及 Well-Architected Framework,将 Google 官方文档和实践经验组织成可按需安装、可复用的 Agent Skills,帮助 AI Agent 在 Google 技术栈相关任务中获得更专业、更聚焦的能力。
Skill类别 | Skill名称 | 功能定位 | 主要能力 | 适用场景 | 适用对象 |
Agent 开发 | Gemini API on Agent Platform | Agent Platform 中 Gemini API 的开发能力 | 提供 Gemini API 在 Agent Platform 中的开发与使用能力 | 开发基于 Gemini 的 Agent | AI Agent 开发者 |
Gemini Interactions API on Agent Platform | Gemini Interactions API 能力 | 支持 Agent 与 Gemini Interactions API 的交互 | 多轮 Agent 交互开发 | AI 应用开发者 | |
Managed Agents API on Agent Platform | 托管 Agent API | 使用 Managed Agents API 构建和管理 Agent | 企业级 Agent 管理 | Agent 平台开发人员 | |
Skill Registry API on Agent Platform | Skill Registry 管理 | 管理、注册和发现 Agent Skills | 构建 Skill Registry | Agent 平台维护人员 | |
Google Cloud 产品 | AlloyDB Basics | AlloyDB 基础能力 | 提供 AlloyDB 基础知识及使用能力 | 使用 AlloyDB 数据库 | 数据库开发人员 |
BigQuery Basics | BigQuery 基础能力 | BigQuery 基础开发能力 | 数据分析、数据仓库 | 数据工程师 | |
Cloud Run Basics | Cloud Run 基础能力 | Cloud Run 服务开发与部署 | Serverless 应用开发 | 云原生开发人员 | |
Cloud SQL Basics | Cloud SQL 基础能力 | Cloud SQL 使用能力 | 云数据库开发 | 后端开发人员 | |
Firebase Basics | Firebase 基础能力 | Firebase 平台开发 | 移动应用、Web 应用 | 全栈开发人员 | |
Kubernetes Engine (GKE) Basics | Kubernetes 基础能力 | GKE 集群使用 | Kubernetes 容器管理 | DevOps、平台工程师 | |
云平台实践 | Onboarding to Google Cloud | Google Cloud 入门 | 帮助开发者快速了解 Google Cloud | 新用户上手 | Google Cloud 初学者 |
Authenticating to Google Cloud | 身份认证实践 | Google Cloud 身份认证流程 | 配置身份认证 | 云平台开发人员 | |
Google Cloud Network Observability | 网络可观测性 | Google Cloud 网络观测实践 | 网络监控、故障排查 | 运维工程师 | |
云架构最佳实践 | Security | 安全最佳实践 | Google Cloud 安全架构 | 云安全设计 | 云架构师、安全工程师 |
Reliability | 高可靠架构 | 提升系统可靠性 | 高可用系统建设 | 架构师 | |
Cost Optimization | 成本优化 | 优化 Google Cloud 资源成本 | 成本治理 | 云平台管理员 | |
Operational Excellence | 运维卓越 | 提高系统运维效率 | DevOps 建设 | 运维团队 | |
Performance Optimization | 性能优化 | 提升系统性能 | 高性能架构设计 | 云架构师 | |
Sustainability | 可持续性 | 提高资源利用效率 | 云资源规划 | 企业 IT 管理者 |
google/skills的安装和使用方法
1、安装
Google Skills 使用 Skills CLI 进行安装。
安装命令:
npx skills add google/skills执行安装命令后,可在安装过程中选择希望安装的具体 Skill,而无需安装整个仓库中的全部 Skills。
2、使用方法
README 中说明,Google Skills 提供的是可供 AI Agent 使用的 Agent Skills。
完成安装后,可根据实际需求选择并使用相应 Skill,例如:
| 能力方向 | 覆盖内容 | 对应Skill | 价值 |
|---|---|---|---|
| Agent 开发 | Agent Platform API | Gemini API、Gemini Interactions API、Managed Agents API、Skill Registry API | 帮助 AI Agent 使用 Google Agent Platform 能力 |
| Google Cloud 产品 | Google Cloud 核心产品 | AlloyDB、BigQuery、Cloud Run、Cloud SQL、Firebase、GKE | 为 Agent 提供 Google Cloud 产品知识 |
| 云平台实践 | Google Cloud Recipes | Onboarding、Authentication、Network Observability | 提供典型实践流程 |
| 云架构最佳实践 | Well-Architected Framework | Security、Reliability、Cost、Operational Excellence、Performance、Sustainability | 为 Agent 提供 Google Cloud 官方架构指导 |
开发者可根据实际项目需求安装和调用对应 Skill,以获得针对 Google 产品和 Google Cloud 技术的专业能力支持。
Google Skills的案例应用
案例一:安装 Google Skills 仓库—安装 Google 官方 Agent Skills
使用 Skills CLI 安装仓库:
npx skills add google/skills安装过程中,根据提示选择所需 Skill,即可将对应能力添加到 AI Agent 中,而无需安装全部 Skills。
案例二:安装 Google Cloud 基础 Skills—构建 Google Cloud 开发能力
在安装过程中选择所需的 Google Cloud 基础 Skills,例如:
BigQuery Basics Cloud Run Basics Cloud SQL Basics Firebase Basics Kubernetes Engine (GKE) Basics完成安装后,AI Agent 即可使用这些与 Google Cloud 基础服务相关的 Skills。
案例三:安装 Well-Architected Framework Skills—引入 Google Cloud Well-Architected Framework 能力
安装过程中选择 Well-Architected Framework 相关 Skills,包括:
Security Reliability Cost optimization Operational excellence Performance optimization Sustainability这些 Skills 对应 Google Cloud Well-Architected Framework 的不同主题,可根据实际需求选择安装,为 AI Agent 提供相关指导能力。