alloydb-basics
Skill này làm gì
Skill này giúp AI của bạn thiết lập và vận hành AlloyDB, một cơ sở dữ liệu PostgreSQL được quản lý trên Google Cloud. Nó dành cho lập trình viên cần một cơ sở dữ liệu đáng tin cậy có tìm kiếm bằng AI.
Khi nào nên dùng
- ✓Khi bạn cần tạo một cụm AlloyDB hoặc primary instance trên Google Cloud.
- ✓Khi bạn muốn thiết lập sao lưu cho cơ sở dữ liệu AlloyDB.
- ✓Khi bạn muốn thêm tìm kiếm vector hoặc tìm kiếm bằng AI vào cơ sở dữ liệu PostgreSQL.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/database/alloydb-basics/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy tạo một cụm AlloyDB ở us-central1 cho ứng dụng của tôi và chỉ cho tôi các lệnh.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng các lệnh gcloud của Google Cloud để tạo cụm và instance, đồng thời chỉ đến các ghi chú tham khảo cho những chủ đề sâu hơn. Nó cũng giải thích các tính năng AI bổ sung mà AlloyDB cung cấp.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Tôi có cần tài khoản Google Cloud không?
Có. Bạn cần một dự án Google Cloud đã bật API AlloyDB.
Nó có tương thích với PostgreSQL không?
Có. AlloyDB tương thích với PostgreSQL, nên có thể dùng các công cụ và code PostgreSQL quen thuộc.
Mật khẩu có phải là cách đăng nhập an toàn nhất không?
Skill khuyên dùng xác thực cơ sở dữ liệu IAM cho môi trường production thay vì mật khẩu.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8713
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.