alloydb-basics
它能做什么
这个技能帮你的 AI 智能体设置和运行 AlloyDB,这是 Google Cloud 上的托管 PostgreSQL 数据库。适合需要带有 AI 搜索功能的可靠数据库的开发者。
适用场景
- ✓当你需要在 Google Cloud 上创建 AlloyDB 集群或主实例时。
- ✓当你想为 AlloyDB 数据库设置备份时。
- ✓当你想为 PostgreSQL 数据库添加向量或 AI 搜索功能时。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/database/alloydb-basics/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的应用在 us-central1 创建一个 AlloyDB 集群,并把命令展示给我。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用 Google Cloud 的 gcloud 命令创建集群和实例,并为更深入的主题指向参考说明。它还会解释 AlloyDB 提供的额外 AI 功能。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AlloyDB Basics
AlloyDB for PostgreSQL is a managed, PostgreSQL-compatible database service designed for enterprise-grade performance and availability. It utilizes a disaggregated compute and storage architecture to scale resources independently. It also provides AlloyDB AI, a collection of features that includes AI-powered search (vector, hybrid search, and AI functions), natural language capabilities, conversational analytics, and inference features like forecasting and model endpoint management to help developers build AI apps faster.
Quick Start
Enable the AlloyDB API:
gcloud services enable alloydb.googleapis.com --quietCreate a Cluster:
gcloud alloydb clusters create my-cluster --region=us-central1 \ --password=my-password --network=my-vpc \ --quietNote: For production, we recommend using IAM database authentication instead of passwords. If passwords must be used, use secure secret management (e.g., Secret Manager) instead of passing passwords in cleartext.
Create a Primary Instance:
gcloud alloydb instances create my-primary --cluster=my-cluster \ --region=us-central1 --instance-type=PRIMARY --cpu-count=2 \ --quiet
Reference Directory
Core Concepts: Architecture, disaggregated storage, and performance features.
CLI Usage: Essential
gcloud alloydbcommands for cluster and instance management.Client Libraries & Connectors: Connecting to AlloyDB using Python, Java, Node.js, and Go.
MCP Usage: Using the AlloyDB remote MCP server and Gemini CLI extension.
Infrastructure as Code: Terraform configuration and deployment examples.
IAM & Security: Predefined roles, service agents, and database authentication.
If you need product information not found in these references, use the
Developer Knowledge MCP server search_documents tool.
常见问题
我需要 Google Cloud 账号吗?
需要。你需要一个已启用 AlloyDB API 的 Google Cloud 项目。
它与 PostgreSQL 兼容吗?
兼容。AlloyDB 兼容 PostgreSQL,因此可以使用熟悉的 PostgreSQL 工具和代码。
密码是最安全的登录方式吗?
该技能建议在生产环境中使用 IAM 数据库身份验证,而不是密码。
详情
作者的原始描述
Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB MCP tools for automated database operations including AI-powered search and vector capabilities.
热度
- GitHub 星标
- 33k
- 排名
- #8713
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。