From dak
Creates backups, restores instances, and clones Cloud SQL MySQL instances for recovery and testing. Automates common database lifecycle operations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dak:cloud-sql-mysql-lifecycleThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
All scripts can be executed using Node.js. Replace `<param_name>` and
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.
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 skill after this, make sure to use multiplier as 4 to poll the opertation status till it is marked DONE.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The GCP project | No | |
| : : : ID. This is : : : | ||||
| : : : pre-configured; : : : | ||||
| : : : do not ask for : : : | ||||
| : : : it unless the : : : | ||||
| : : : user explicitly : : : | ||||
| : : : provides a : : : | ||||
| : : : different one. : : : | ||||
| sourceInstanceName | string | The name of the | Yes | |
| : : : instance to be : : : | ||||
| : : : cloned. : : : | ||||
| destinationInstanceName | string | The name of the | Yes | |
| : : : new instance : : : | ||||
| : : : that will be : : : | ||||
| : : : created by : : : | ||||
| : : : cloning the : : : | ||||
| : : : source : : : | ||||
| : : : instance. : : : | ||||
| pointInTime | string | The timestamp | No | |
| : : : in RFC 3339 : : : | ||||
| : : : format to which : : : | ||||
| : : : the source : : : | ||||
| : : : instance should : : : | ||||
| : : : be cloned. : : : | ||||
| preferredZone | string | The preferred | No | |
| : : : zone for the : : : | ||||
| : : : new instance. : : : | ||||
| preferredSecondaryZone | string | The preferred | No | |
| : : : secondary zone : : : | ||||
| : : : for the new : : : | ||||
| : : : instance. : : : |
Creates a backup on a Cloud SQL instance.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The GCP project | No | |
| : : : ID. This is : : : | ||||
| : : : pre-configured; : : : | ||||
| : : : do not ask for : : : | ||||
| : : : it unless the : : : | ||||
| : : : user explicitly : : : | ||||
| : : : provides a : : : | ||||
| : : : different one. : : : | ||||
| instance | string | Cloud SQL | Yes | |
| : : : instance ID. : : : | ||||
| : : : This does not : : : | ||||
| : : : include the : : : | ||||
| : : : project ID. : : : | ||||
| location | string | Location of the | No | |
| : : : backup run. : : : | ||||
| backup_description | string | The description | No | |
| : : : of this backup : : : | ||||
| : : : run. : : : |
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| projectId | string | The GCP project | No | |
| : : : ID. This is : : : | ||||
| : : : pre-configured; : : : | ||||
| : : : do not ask for : : : | ||||
| : : : it unless the : : : | ||||
| : : : user explicitly : : : | ||||
| : : : provides a : : : | ||||
| : : : different one. : : : | ||||
| instanceId | string | The instance ID | Yes |
Lists all type of Cloud SQL instances for a project.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The GCP project | No | |
| : : : ID. This is : : : | ||||
| : : : pre-configured; : : : | ||||
| : : : do not ask for : : : | ||||
| : : : it unless the : : : | ||||
| : : : user explicitly : : : | ||||
| : : : provides a : : : | ||||
| : : : different one. : : : |
Restores a backup on a Cloud SQL instance.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| target_project | string | The GCP project | No | |
| : : : ID. This is : : : | ||||
| : : : pre-configured; : : : | ||||
| : : : do not ask for : : : | ||||
| : : : it unless the : : : | ||||
| : : : user explicitly : : : | ||||
| : : : provides a : : : | ||||
| : : : different one. : : : | ||||
| target_instance | string | Cloud SQL | Yes | |
| : : : instance ID of : : : | ||||
| : : : the target : : : | ||||
| : : : instance. This : : : | ||||
| : : : does not : : : | ||||
| : : : include the : : : | ||||
| : : : project ID. : : : | ||||
| backup_id | string | Identifier of | Yes | |
| : : : 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 it : : : | ||||
| source_project | string | GCP project ID | No | |
| : : : of the instance : : : | ||||
| : : : that the backup : : : | ||||
| : : : belongs to. : : : | ||||
| : : : Only required : : : | ||||
| : : : if the : : : | ||||
| : : : backup_id is a : : : | ||||
| : : : BackupRun ID. : : : | ||||
| source_instance | string | Cloud SQL | No | |
| : : : instance ID of : : : | ||||
| : : : the instance : : : | ||||
| : : : that the backup : : : | ||||
| : : : belongs to. : : : | ||||
| : : : Only required : : : | ||||
| : : : if the : : : | ||||
| : : : backup_id is a : : : | ||||
| : : : BackupRun ID. : : : |
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The GCP project | No | |
| : : : ID. This is : : : | ||||
| : : : pre-configured; : : : | ||||
| : : : do not ask for : : : | ||||
| : : : it unless the : : : | ||||
| : : : user explicitly : : : | ||||
| : : : provides a : : : | ||||
| : : : different one. : : : | ||||
| operation | string | The operation | Yes | |
| : : : ID : : : |
3plugins reuse this skill
First indexed Jul 8, 2026
claude plugin install data-agent-kit-starter-pack@claude-plugins-officialManages Cloud SQL MySQL instance lifecycle: create backups, restore from backups, clone instances for recovery and testing.
Manages Cloud SQL SQL Server instance lifecycle: create backups, restore from backups, and clone instances for testing or migration.
Provisions new Cloud SQL PostgreSQL instances, creates databases and users, clones instances with point-in-time recovery, monitors operations.