Cloud SQL Basics

SkillDatabases & data

cloud-sql-basics is a skill that lets an AI agent create and manage Cloud SQL instances for MySQL, PostgreSQL, and SQL Server on Google Cloud. It handles backups, high availability, and secure connectivity, so relational database workloads can be set up and maintained through the agent instead of by hand.

Use Cloud SQL Basics in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Cloud SQL Basics and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Cloud SQL Basics skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Have a Google Cloud project with Cloud SQL available for your databases.

Cloud SQL BasicsStart free

What your AI can do with it

  • Create Cloud SQL instances for MySQL, PostgreSQL, and SQL Server
  • Manage existing Cloud SQL instances
  • Configure backups for database instances
  • Set up high availability for relational database workloads
  • Establish secure connectivity to Cloud SQL databases

Getting started

  1. Have a Google Cloud project with Cloud SQL available for your databases.
  2. Add the cloud-sql-basics skill to your agent's available skills.
  3. Ask the agent to create or manage a Cloud SQL instance for MySQL, PostgreSQL, or SQL Server.
  4. Direct the agent to configure backups, high availability, or secure connectivity as needed.

What this skill tells your AI

The instructions your AI receives, as published by davila7/claude-code-templates in cli-tool/components/skills/database/cloud-sql-basics/SKILL.md and read by ahel’s review.

Cloud SQL is a fully managed relational database service for MySQL, PostgreSQL, and SQL Server. It automates time-consuming tasks like patches, updates, backups, and replicas, while providing high performance and availability for your applications.

Prerequisites

Ensure you have the necessary IAM permissions to create and manage Cloud SQL instances. The Cloud SQL Admin (roles/cloudsql.admin) role provides full access to Cloud SQL resources.

Quick Start (PostgreSQL)

  1. Enable the API:

    gcloud services enable sqladmin.googleapis.com --quiet
    
  2. Create an Instance:

    gcloud sql instances create INSTANCE_NAME \
      --database-version=POSTGRES_18 \
      --cpu=2 \
      --memory=7680MiB \
      --region=REGION \
      --quiet
    
  3. Set a password for the default user:

    Because this is a Cloud SQL for PostgreSQL instance, the default admin user is postgres:

    gcloud sql users set-password postgres \
      --instance=INSTANCE_NAME --password=PASSWORD \
      --quiet
    
  4. Create a database:

    gcloud sql databases create DATABASE_NAME \
      --instance=INSTANCE_NAME \
      --quiet
    
  5. Get the instance connection name:

    You need the instance connection name (which is formatted as PROJECT_ID:REGION:INSTANCE_NAME) to connect using the Cloud SQL Auth Proxy. Retrieve it with the following command:

    gcloud sql instances describe INSTANCE_NAME \
      --format="value(connectionName)" \
      --quiet
    
  6. Connect to the instance:

    The Cloud SQL Auth Proxy must be running to be able to connect to the instance. In a separate terminal, start the proxy using the connection name:

    ./cloud-sql-proxy INSTANCE_CONNECTION_NAME
    

    With the proxy running, connect using psql in another terminal:

    psql "host=127.0.0.1 port=5432 user=postgres dbname=DATABASE_NAME password=PASSWORD sslmode=disable"
    

Reference Directory

  • Core Concepts: Instance architecture, high availability (HA), and supported database engines.

  • CLI Usage: Essential gcloud sql commands for instance, database, and user management.

  • Client Libraries & Connectors: Connecting to Cloud SQL using Python, Java, Node.js, and Go.

  • MCP Usage: Using the Cloud SQL remote MCP server and Gemini CLI extension.

  • Infrastructure as Code: Terraform configuration for instances, databases, and users.

  • IAM & Security: Predefined roles, SSL/TLS certificates, and Auth Proxy configuration.

If you need product information not found in these references, use the Developer Knowledge MCP server search_documents tool.

Signals

GitHub stars
32k
Forks
4k
Last commit
Oct 2026

ahel review

  • K1binfo
    installs-packages (in references/client-library-usage.md)

Automated review, not a security audit. Ruleset v1+k2.

Questions

Which database engines are supported?
The skill works with Cloud SQL instances running MySQL, PostgreSQL, and SQL Server.
Does it handle backups?
Yes, backups are one of the tasks the skill handles for Cloud SQL instances.
Can it set up high availability?
Yes, the skill handles high availability for relational database workloads on Google Cloud.
What does it do about connectivity?
It handles secure connectivity so the agent's databases can be reached safely.
Advanced
Item type
skill
Key
cloud-sql-basics
Source
github.com/davila7/claude-code-templates