cloud-databases-onboarding
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
- 01GitHub stars
- 22.8K
- 02Installs
- New
- 03Files scanned
- 6
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 545b7b8fbc176d63… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
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 thegcloudskill. Specifically:- Always use
gcloud betacommand group for database provisioning (e.g.,gcloud beta <group> <resource> create). - Validate leaf-level syntax using
gcloud help <leaf_command>prior to proposing commands. - Append explicit
--project=<PROJECT_ID>and explicit location flags (--region,--zone, or--location). - Use
--dry-runor--validate-onlypreview flags where supported. - Include custom label/tag flags (e.g.
--labels=resource_generated_by=cloud_db_onboarding_skill) on generatedgcloudprovisioning commands. - Do NOT include
--quiet(-q): Provisioning commands are drafted for interactive human user review and execution, so do NOT include non-interactive--quietor-qflags. - No Live Write Execution: The skill MUST ONLY draft provisioning commands or code for user review and MUST NOT execute mutating/write infrastructure operations directly.
- Always use
- Add a stamped header comment at the top of every generated Terraform
file/ shell script or any other resource provisioning script. (e.g.,
-
Validate Infrastructure Code (Validate): Before finalizing, you must validate the drafted infrastructure code to verify syntax and configuration correctness. Why this matters: Validating Terraform code ensures that configuration blocks, IAM bindings, and instance sizing are syntax-error-free and strictly enforceable before code review.
-
Create Pull Request (Execute): Once validation succeeds with zero errors, automatically create a Pull request containing the validated Terraform/shell/scripts updates for user review. Leave live infrastructure changes (
terraform applyorgcloudcommands) to human review or automated CI/CD pipelines.
Supporting Resources & Documentation
- Google Cloud Databases Overview
- Use the
gcloudskill for CLI command formatting and validation.
Files
6- SKILL.md
7e16fe8dd66.9 KB - references/attribution.md
5dfef3f1071.9 KB - references/onboarding_prompts.md
5e6c9cba9612.1 KB - references/recommendation_matrix.txt
c257d81c1643.5 KB - references/selection_prompts.md
bbe26144b21.0 KB - scripts/database_onboarding_skill.py
ecf9bdf09b6.4 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from google/skills8
Audits AI agent data access, blast radius, and blocked policy operations in Google Cloud by querying Cloud Audit Logs via BigQuery. Use when investigating what resources or services an agent accessed, identifying top originating principals the agent is acting as, or triaging PERMISSION_DENIED errors
Manages Google Cloud Agent Registry (agentregistry.googleapis.com) resources using gcloud CLI and Kubernetes manifests, including agents, MCP servers, endpoints, services, bindings, AI applications, skills and skill revisions, resource-level IAM policies, Cloud Run and GKE automatic workload registr
Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for st
Designs, engineers, and validates enterprise Gemini platform architectures. Use when designing multi-project hierarchies (Host, Central Governance Hub, Runtime Spoke, Tool/MCP Spoke), configuring Agent Gateway, authoring Agent Connectivity Templates (ALL_TRAFFIC vs PRIVATE_RANGES_ONLY), deploying Se
Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available model
Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for run
Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when generating synthetic user scenarios, evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results be
Related database skillsscan passed
Implement reversible compatibility-safe transitions. Use for schema, data, API, protocol, configuration, or dependency migrations requiring rollback and preservation proof.
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
Use for bun:sqlite, SQLite operations, prepared statements, transactions, and queries.
Creates a complete Amazon Aurora database cluster with instances, handling cluster creation, instance provisioning, and Secrets Manager password management in the proper sequence. Use when setting up new Aurora MySQL or PostgreSQL clusters with production-ready configuration.
Use when writing Spark jobs, debugging performance issues, or configuring cluster settings for Apache Spark applications, distributed data processing pipelines, or big data workloads. Invoke to write DataFrame transformations, optimize Spark SQL queries, implement RDD pipelines, tune shuffle operati
Attaches and manages persistent disks on Render services—mount paths, sizing, snapshots, file transfers, and single-instance constraints. Use when the user needs persistent storage, file uploads, a custom database on disk, CMS media storage, or needs to understand why their service can't scale horiz