agentsclimarketplace

Cloud sql postgres admin

Skill gemini-cli-extensions/cloud-sql-postgresql/skills/cloud-sql-postgres-admin

Use these skills when you need to provision new Cloud SQL instances, create databases and users, clone existing environments, and monitor the progress of long-running operations.From its SKILL.md

Install
npx -y skills add gemini-cli-extensions/cloud-sql-postgresql --skill cloud-sql-postgres-admin

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

5.0 KB, as published. Nobody here has run it

Usage

All scripts can be executed using Node.js. Replace <param_name> and <param_value> with actual values.

Bash: node <skill_dir>/scripts/<script_name>.js '{"<param_name>": "<param_value>"}'

PowerShell: node <skill_dir>/scripts/<script_name>.js '{\"<param_name>\": \"<param_value>\"}'

Note: The scripts automatically load the environment variables from various .env files. Do not ask the user to set vars unless skill executions fails due to env var absence.

Scripts

clone_instance

Clone an existing Cloud SQL instance into a new instance. The clone can be a direct copy of the source instance, or a point-in-time-recovery (PITR) clone from a specific timestamp. The call returns a Cloud SQL Operation object. Call wait_for_operation tool after this, make sure to use multiplier as 4 to poll the opertation status till it is marked DONE.

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
sourceInstanceNamestringThe name of the instance to be cloned.Yes
destinationInstanceNamestringThe name of the new instance that will be created by cloning the source instance.Yes
pointInTimestringThe timestamp in RFC 3339 format to which the source instance should be cloned.No
preferredZonestringThe preferred zone for the new instance.No
preferredSecondaryZonestringThe preferred secondary zone for the new instance.No

create_database

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
instancestringThe ID of the instance where the database will be created.Yes
namestringThe name for the new database. Must be unique within the instance.Yes

create_instance

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
namestringThe name of the instanceYes
databaseVersionstringThe database version for Postgres. If not specified, defaults to the latest available version (e.g., POSTGRES_17).NoPOSTGRES_17
rootPasswordstringThe root password for the instanceYes
editionPresetstringThe edition of the instance. Can be Production or Development. This determines the default machine type and availability. Defaults to Development.NoDevelopment

create_user

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
instancestringThe ID of the instance where the user will be created.Yes
namestringThe name for the new user. Must be unique within the instance.Yes
passwordstringA secure password for the new user. Not required for IAM users.No
iamUserbooleanSet to true to create a Cloud IAM user.Yes

get_instance

Parameters

NameTypeDescriptionRequiredDefault
projectIdstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
instanceIdstringThe instance IDYes

list_databases

Lists all databases for a Cloud SQL instance.

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
instancestringThe instance IDYes

list_instances

Lists all type of Cloud SQL instances for a project.

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No

wait_for_operation

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
operationstringThe operation IDYes

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.