{"data":{"slug":"github-google-skills-skills-cloud-cloud-databases-onboarding-10719bc16438","title":"Google Cloud Database Onboarding","summary":"Helps users discover their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in drafting infrastructure code for provisioning.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-cloud-databases-onboarding-10719bc16438","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-cloud-databases-onboarding-10719bc16438","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-cloud-databases-onboarding-10719bc16438.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-cloud-databases-onboarding-10719bc16438\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before executing any `gcloud`, REST API, or MCP command, you must read [Usage Attribution](references\/attribution.md). For commands executed directly in the terminal, 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.","instructions":"---\nname: cloud-databases-onboarding\nmetadata:\n  version: \"1.0.1\"\n  category: Databases\ndescription: >-\n  Guides users through discovering their database requirements, recommends a\n  Google Cloud database based on a recommendation matrix, and assists in database\n  creation. Use when a user asks 'What database service should I use?', 'Help me pick\n  a database', or when a user wants to create a new database on Google Cloud.\n  Don't use for general Google Cloud maintenance, managing existing databases, or database migrations.\n---\n\n# Google Cloud Database Onboarding Skill\n\nThis skill provides domain instructions, decision matrices, and\nInfrastructure-as-Code workflows to guide users through discovering their exact\ndatabase requirements, selecting an optimal Google Cloud database service, and\ndrafting starter resource provisioning code for user review.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\/attribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:cloud-databases-onboarding)\"`\nand append `agent-skills\/1.0 (skill:cloud-databases-onboarding)` to `User-Agent` headers.\n\n## Validation & Progressive Disclosure\n\nA validation script is provided to verify the skill's reference files and\nformatting:\n\n```bash\npython3 scripts\/database_onboarding_skill.py --verify\n```\n\n*   **Reading \/ Progressive Disclosure:** When interacting with a user during a\n    conversation, load reference files progressively. Follow the Just-in-Time\n    (JiT) loading instructions outlined in the phases below.\n\n--------------------------------------------------------------------------------\n\n## Workflow & Just-in-Time (JiT) Instructions\n\nThis workflow operates in three distinct sequential phases. Evaluate the active\nconversation history to determine the current phase and follow the corresponding\ninstructions:\n\n### Phase 1: Requirement Discovery & Information Gathering\n\nWhen a user asks `\"What database should I use?\"` or requires guidance on Google\nCloud database selection, you must initiate the Discovery phase.\n\n1.  **Load Discovery Instructions (JiT):** Read the complete contents of\n    `references\/onboarding_prompts.md` using `view_file`.\n2.  **Execute Discovery:** Follow the detailed Phase 1 instructions in\n    `onboarding_prompts.md` to gather core requirements (data model, workload,\n    scale, and migration context) using user-friendly phrasing and enforcing\n    constraints (such as the 90% confidence rule) before proposing any\n    recommendation.\n\n### Phase 2: Recommendation Analysis & Matrix Consultation\n\nOnce you have gathered sufficient explicit discovery context, you must determine\nthe optimal Google Cloud database recommendation.\n\n1.  **Consult Matrix & Formulate Recommendation (JiT):** Follow the Phase 2\n    instructions in `references\/onboarding_prompts.md`. This involves distilling\n    requirements, calling the database selection tool (or consulting\n    `references\/recommendation_matrix.txt` directly if the tool is unavailable),\n    and formulating a single recommendation.\n2.  **Deliver Recommendation:** Deliver the recommendation to the user, mapping\n    destination codes to plain English, explaining the reasoning, and offering\n    to help with provisioning as detailed in `onboarding_prompts.md`.\n\n### Phase 3: Implementation & Provisioning (Plan-Validate-Execute Pattern)\n\nWhen the user accepts the recommendation and requests to provision or modify\ncloud resources, follow the Phase 3 instructions in\n`references\/onboarding_prompts.md` using a strict **Plan-Validate-Execute** pattern.\nLimit your actions to creating and validating draft artifacts for user review.\n\n1.  **Analyze the Workspace:** Scan the user's workspace\/open files\/related\n    directories with database resources scripts.\n2.  **Obtain User Confirmation:** If the target infrastructure files are not\n    clear, ask the user explicitly to confirm the file paths or target directory\n    before modifying anything.\n3.  **Draft Infrastructure Plan (Plan):** Create or edit the necessary Terraform\n    configuration files or any other relevant scripts necessary to provision the\n    resources. When creating or editing Terraform files or any other database\n    resource provisioning script, you MUST:\n\n    *   Add a stamped header comment at the top of every generated Terraform\n        file\/ shell script or any other resource provisioning script. (e.g., `#\n        Generated with cloud onboarding skills selector @date`, replacing\n        `@date` with the current date\/timestamp).\n    *   Add a custom default tag like `resource_generated_by = \"cloud db\n        onboarding skill\"` under the `default_tags` block or as a resource\n        label\/tag.\n    *   **gcloud CLI Generation**: When drafting `gcloud` CLI commands or shell\n        scripts, you MUST follow the instructions in the `gcloud` skill\n        (`..\/gcloud\/SKILL.md`). Specifically:\n        *   Always use `gcloud beta` command group for database provisioning\n            (e.g., `gcloud beta <group> <resource> create`).\n        *   Validate leaf-level syntax using `gcloud help <leaf_command>` prior\n            to proposing commands.\n        *   Append explicit `--project=<PROJECT_ID>` and explicit location flags\n            (`--region`, `--zone`, or `--location`).\n        *   Use `--dry-run` or `--validate-only` preview flags where supported.\n        *   Include custom label\/tag flags (e.g.\n            `--labels=resource_generated_by=cloud_db_onboarding_skill`) on\n            generated `gcloud` provisioning commands.\n        *   **Do NOT include `--quiet` (`-q`)**: Provisioning commands are\n            drafted for interactive human user review and execution, so do NOT\n            include non-interactive `--quiet` or `-q` flags.\n        *   **No Live Write Execution**: The skill MUST ONLY draft provisioning\n            commands or code for user review and MUST NOT execute mutating\/write\n            infrastructure operations directly.\n\n4.  **Validate Infrastructure Code (Validate):** Before finalizing, you must\n    validate the drafted infrastructure code to verify syntax and configuration\n    correctness. *Why this matters:* Validating Terraform code ensures that\n    configuration blocks, IAM bindings, and instance sizing are\n    syntax-error-free and strictly enforceable before code review.\n\n5.  **Create Pull Request (Execute):** Once validation succeeds with zero\n    errors, automatically create a Pull request containing the validated\n    Terraform\/shell\/scripts updates for user review. Leave live infrastructure\n    changes (`terraform apply` or `gcloud` commands) to human review or\n    automated CI\/CD pipelines.\n\n--------------------------------------------------------------------------------\n\n## Supporting Resources & Documentation\n\n- [Google Cloud Databases Overview](https:\/\/cloud.google.com\/products\/databases.md.txt)\n-   [gcloud CLI Skill](..\/gcloud\/SKILL.md)\n","use_cases":["Choosing the right database service for a new application","Provisioning a database instance based on workload requirements","Selecting a database for a data-driven project"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/cloud-databases-onboarding\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-17","created_at":"2026-11-16T12:52:15.000000Z","updated_at":"2026-11-17T05:10:16.000000Z","seo_title":"Google Cloud Database Onboarding Guide","seo_description":"Select the right Google Cloud database for your needs with step-by-step guidance and provisioning support.","seo_keywords":["Google Cloud database selection","Cloud database provisioning","Google Cloud database setup","Database recommendation tool","Cloud database onboarding"]}}