跳到正文
Skillpedia
API 与服务器(后端)33k · #8713

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/database/alloydb-basics/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Enable the AlloyDB API:

    gcloud services enable alloydb.googleapis.com --quiet
    
  2. Create a Cluster:

    gcloud alloydb clusters create my-cluster --region=us-central1 \
        --password=my-password --network=my-vpc \
        --quiet
    

    Note: 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.

  3. 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

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.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8713
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能