cloud-databases-onboarding
Skill này làm gì
Skill này giúp bạn chọn một dịch vụ cơ sở dữ liệu Google Cloud và chuẩn bị sẵn thiết lập khởi đầu. Skill dành cho những người chưa chắc dịch vụ nào phù hợp với dự án của họ.
Khi nào nên dùng
- ✓Khi bạn hỏi nên dùng dịch vụ cơ sở dữ liệu Google Cloud nào cho dự án của mình.
- ✓Khi bạn muốn chọn cơ sở dữ liệu bằng cách mô tả dữ liệu, quy mô và nhu cầu của mình.
- ✓Khi bạn sẵn sàng tạo một cơ sở dữ liệu mới trên Google Cloud và cần mã thiết lập khởi đầu.
Liên kết skill
https://github.com/google/skills/blob/main/skills/cloud/cloud-databases-onboarding/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
“Tôi đang xây một ứng dụng có tài khoản người dùng và đơn hàng. Tôi nên dùng cơ sở dữ liệu Google Cloud nào?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill hỏi về dữ liệu và nhu cầu của bạn, dùng một hướng dẫn quyết định để gợi ý dịch vụ cơ sở dữ liệu, rồi soạn mã thiết lập để bạn xem lại trước khi chạy bất cứ thứ gì.
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.
Google Cloud Database Onboarding Skill
This skill provides domain instructions, decision matrices, and Infrastructure-as-Code workflows to guide users through discovering their exact database requirements, selecting an optimal Google Cloud database service, and drafting starter resource provisioning code for user review.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:cloud-databases-onboarding)"
and append agent-skills/1.0 (skill:cloud-databases-onboarding) to User-Agent headers.
Validation & Progressive Disclosure
A validation script is provided to verify the skill's reference files and formatting:
python3 scripts/database_onboarding_skill.py --verify
- Reading / Progressive Disclosure: When interacting with a user during a conversation, load reference files progressively. Follow the Just-in-Time (JiT) loading instructions outlined in the phases below.
Workflow & Just-in-Time (JiT) Instructions
This workflow operates in three distinct sequential phases. Evaluate the active conversation history to determine the current phase and follow the corresponding instructions:
Phase 1: Requirement Discovery & Information Gathering
When a user asks "What database should I use?" or requires guidance on Google
Cloud database selection, you must initiate the Discovery phase.
- Load Discovery Instructions (JiT): Read the complete contents of
references/onboarding_prompts.mdusingview_file. - Execute Discovery: Follow the detailed Phase 1 instructions in
onboarding_prompts.mdto gather core requirements (data model, workload, scale, and migration context) using user-friendly phrasing and enforcing constraints (such as the 90% confidence rule) before proposing any recommendation.
Phase 2: Recommendation Analysis & Matrix Consultation
Once you have gathered sufficient explicit discovery context, you must determine the optimal Google Cloud database recommendation.
- Consult Matrix & Formulate Recommendation (JiT): Follow the Phase 2
instructions in
references/onboarding_prompts.md. This involves distilling requirements, calling the database selection tool (or consultingreferences/recommendation_matrix.txtdirectly if the tool is unavailable), and formulating a single recommendation. - Deliver Recommendation: Deliver the recommendation to the user, mapping
destination codes to plain English, explaining the reasoning, and offering
to help with provisioning as detailed in
onboarding_prompts.md.
Phase 3: Implementation & Provisioning (Plan-Validate-Execute Pattern)
When the user accepts the recommendation and requests to provision or modify
cloud resources, follow the Phase 3 instructions in
references/onboarding_prompts.md using a strict Plan-Validate-Execute pattern.
Limit your actions to creating and validating draft artifacts for user review.
Analyze the Workspace: Scan the user's workspace/open files/related directories with database resources scripts.
Obtain User Confirmation: If the target infrastructure files are not clear, ask the user explicitly to confirm the file paths or target directory before modifying anything.
Draft Infrastructure Plan (Plan): Create or edit the necessary Terraform configuration files or any other relevant scripts necessary to provision the resources. When creating or editing Terraform files or any other database resource provisioning script, you MUST:
- Add a stamped header comment at the top of every generated Terraform
file/ shell script or any other resource provisioning script. (e.g.,
# Generated with cloud onboarding skills selector @date, replacing@datewith the current date/timestamp). - Add a custom default tag like
resource_generated_by = "cloud db onboarding skill"under thedefault_tagsblock or as a resource label/tag. - gcloud CLI Generation: When drafting
gcloudCLI commands or shell scripts, you MUST follow the instructions in thegcloudskil
- Add a stamped header comment at the top of every generated Terraform
file/ shell script or any other resource provisioning script. (e.g.,
Câu hỏi thường gặp
Skill có tạo cơ sở dữ liệu cho tôi không?
Skill soạn mã thiết lập để bạn xem lại, nên bạn quyết định những gì sẽ chạy.
Skill có quản lý cơ sở dữ liệu hiện có không?
Không. Skill dành cho việc chọn và khởi tạo cơ sở dữ liệu mới, không dành cho bảo trì chung.
Skill hỏi gì trước?
Skill hỏi về yêu cầu của bạn trước, rồi thu thập thêm chi tiết khi cuộc trò chuyện tiến triển.
Chi tiết
Mô tả gốc của tác giả
Guides users through discovering their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in database creation. Use when a user asks 'What database service should I use?', 'Help me pick a database', or when a user wants to create a new database on Google Cloud. Don't use for general Google Cloud maintenance, managing existing databases, or database migrations.
repo: google/skills
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10235
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
finding-google-skills
22kGiúp agent của bạn tìm hướng dẫn Google phù hợp cho việc thiết lập, như hosting, cơ sở dữ liệu, lưu trữ, đăng nhập hoặc phục vụ mô hình AI.
gcloud
22kGiúp agent của bạn viết và kiểm tra các lệnh gcloud của Google Cloud, tra cứu cú pháp chính xác trước khi chạy bất cứ thứ gì để không đoán các flag.
google-cloud-recipe-auth
22kHướng dẫn agent của bạn qua quản lý danh tính và quyền truy cập của Google Cloud, gồm cách con người và dịch vụ đăng nhập và những quyền họ nhận được.
google-cloud-recipe-onboarding
22kHướng dẫn một lập trình viên mới qua các bước đầu tiên trên Google Cloud, gồm chọn dự án, liên kết thanh toán và triển khai tài nguyên đầu tiên.
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ủ.