Cloud SQL Basics
SkillDatabases & datacloud-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.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Have a Google Cloud project with Cloud SQL available for your databases.
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
- Have a Google Cloud project with Cloud SQL available for your databases.
- Add the cloud-sql-basics skill to your agent's available skills.
- Ask the agent to create or manage a Cloud SQL instance for MySQL, PostgreSQL, or SQL Server.
- 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)
-
Enable the API:
gcloud services enable sqladmin.googleapis.com --quiet -
Create an Instance:
gcloud sql instances create INSTANCE_NAME \ --database-version=POSTGRES_18 \ --cpu=2 \ --memory=7680MiB \ --region=REGION \ --quiet -
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 -
Create a database:
gcloud sql databases create DATABASE_NAME \ --instance=INSTANCE_NAME \ --quiet -
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 -
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_NAMEWith the proxy running, connect using
psqlin 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 sqlcommands 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
github.com/davila7/claude-code-templates
Related picks
Skill · a5c-ai
The pick for GCPgcp-config-connector
Skill · gke-labs
The pick for GCPmysql
Skill · bagelhole
The pick for MySQLsupabase-postgres-best-practices
Skill · supabase
The pick for Postgressupabase
Skill · supabase
More in Databases & dataconnect
Skill · composiohq
More in Databases & data