In brief
Creating and explaining SQL Cloud instances and databases for MySQL, PostgreSQL or SQL Server. Cloud SQL manages these engines as Google Cloud resources: backups, high availability, secure connectivity, for a classic relational load. A "open source" PostgreSQL thus provided becomes a cloud instance SQL for PostgreSQL, distinct from alloyDB. The skill includes a postgreSQL rapi start and a reference directory. To choose the engine, cloud-databases-onboarding is more upstream; AlloyDB, Spanner and Bigtable have their own bases.
What it does
- Helps to create an SQL Cloud instance (MySQL, PostgreSQL or SQL Server) and a database, with the usual requirements (project, network, billing).
- Recalls what the service manages (safeguards, high availability, connectivity) in relation to a self-hosted base.
- Can rely on the documented PostgreSQL course, while covering all three service engines.
- Returns AlloyDB, Spanner, Bigtable and the initial engine choice to the corresponding skills.
Who it is for, and an example
Developers who need a relational instance managed MySQL, PostgreSQL or SQL Server, not a Spanner or AlloyDB cluster.
Example request: "Creates a PostgreSQL SQL Cloud instance with a database, explains backups and HA, and does not switch to AlloyDB unless asked. »
The SKILL.md provides and explains SQL Cloud (MySQL, PostgreSQL, SQL Server), distinct from AlloyDB and other Google Cloud engines. Example written by iadujour.fr from the SKILL.md, not tested.
Install
npx skills add google/skills, then select the skill, target agents and range (README).
npx skills add google/skillsLevel: Intermediate
Suppose a Google Cloud project and control of SQL or Python for data.
SKILL.md excerpt
The original description, which the agent reads to decide whether to load the skill (in English):
This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. […]
Quoted from SKILL.md at commit 793c036 . The folder also contains 8 extra files (references/).
The SKILL.md has 133 lines and 4 main sections:
- Attribution
- Prerequisites
- Quick Start (PostgreSQL)
- Reference Directory
Licence: Apache 2.0
Checked on 10 November 2026 : repository LICENSE file .
The licence allows reuse: the full SKILL.md text is reproduced below, unmodified, with its licence notice.
Full SKILL.md text
Reproduced unmodified from google/skills (commit 793c036) , © Google, under licence Apache 2.0 (original licence file ).
Show the original SKILL.md (133 lines, in English)
---
name: cloud-sql-basics
metadata:
version: "1.0.1"
category: Databases
description: >-
This file generates or explains Cloud SQL resources. Use this file when the
user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or
SQL Server.
Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as
resources in Cloud SQL. For example, when Cloud SQL creates an open-source
MySQL instance, the resulting resource is a Cloud SQL for MySQL instance that
Google Cloud manages.
Cloud SQL handles backups, high availability, and secure connectivity for
relational database workloads.
---
# Cloud SQL Basics
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.
## Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read [Usage Attribution](references/attribution.md). 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-sql-basics)"`
and append `agent-skills/1.0 (skill:cloud-sql-basics)` to `User-Agent` headers.
## 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:**
```bash
gcloud services enable sqladmin.googleapis.com --quiet
```
2. **Create an Instance:**
```bash
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`:
```bash
gcloud sql users set-password postgres \
--instance=INSTANCE_NAME --password=PASSWORD \
--quiet
```
4. **Create a database:**
```bash
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:
```bash
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:
```bash
./cloud-sql-proxy INSTANCE_CONNECTION_NAME
```
With the proxy running, connect using `psql` in another terminal:
```bash
psql "host=127.0.0.1 port=5432 user=postgres dbname=DATABASE_NAME password=PASSWORD sslmode=disable"
```
## Reference Directory
- [Core Concepts](references/core-concepts.md): Cloud SQL editions (Enterprise
& Enterprise Plus), instance architecture, read pools, high availability (HA),
and supported database engines.
- [CLI Usage](references/cli-usage.md): Essential `gcloud sql` commands for
instance, database, and user management.
- [Client Libraries & Connectors](references/client-library-usage.md):
Connecting to Cloud SQL using Python, Java, Node.js, and Go.
- [MCP Usage](references/mcp-usage.md): Using the Cloud SQL remote MCP
server and Gemini CLI extension.
- [Infrastructure as Code](references/iac-usage.md): Terraform
configuration for instances, databases, and users.
- [IAM & Security](references/iam-security.md): Predefined roles, SSL/TLS
certificates, and Auth Proxy configuration.
- [Disaster Recovery & Backups](references/dr-backups.md): Backup types,
Point-in-Time Recovery (PITR), replicas, read pools comparison, and Enterprise Plus Advanced DR.
*If you need product information not found in these references, use the
Developer Knowledge MCP server `search_documents` tool.*
Comments.
A field note, a question, a precision on this skill? Comments are reviewed before publication.
Published comments
Loading comments…
Leave a comment
Moderation charter. Every comment is reviewed before publication. We refuse hate speech, insulting or discriminatory language, advertising, spam and promotional links, off-topic posts and other people’s personal data.