agentsclimarketplace

Cloud sql sqlserver lifecycle

Skill gemini-cli-extensions/cloud-sql-sqlserver/skills/cloud-sql-sqlserver-lifecycle

Use these skills when you need to manage the lifecycle and durability of your data, including creating backups, restoring from existing backups, and cloning instances for testing or migration.From its SKILL.md

Install
npx -y skills add gemini-cli-extensions/cloud-sql-sqlserver --skill cloud-sql-sqlserver-lifecycle

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

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.3 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_backup

Creates a backup on 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
instancestringCloud SQL instance ID. This does not include the project ID.Yes
locationstringLocation of the backup run.No
backup_descriptionstringThe description of this backup run.No

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_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

restore_backup

Restores a backup on a Cloud SQL instance.

Parameters

NameTypeDescriptionRequiredDefault
target_projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
target_instancestringCloud SQL instance ID of the target instance. This does not include the project ID.Yes
backup_idstringIdentifier of the backup being restored. Can be a BackupRun ID, backup name, or BackupDR backup name. Use the full backup ID as provided, do not try to parse itYes
source_projectstringGCP project ID of the instance that the backup belongs to. Only required if the backup_id is a BackupRun ID.No
source_instancestringCloud SQL instance ID of the instance that the backup belongs to. Only required if the backup_id is a BackupRun ID.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.