Skip to content

Commit ef83214

Browse files
committed
regenrate skills
1 parent 1cc8514 commit ef83214

65 files changed

Lines changed: 2881 additions & 1106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

skills/cloudsql-postgres-admin/SKILL.md

Lines changed: 10 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: cloudsql-postgres-admin
3-
description: skill for performing administrative operations on cloudsql postgres
3+
description: Use these tools when you need to provision new Cloud SQL instances, create databases and users, clone existing environments, and monitor the progress of long-running operations.
44
---
55

66
## Usage
@@ -15,6 +15,7 @@ All scripts can be executed using Node.js. Replace `<param_name>` and `<param_va
1515

1616
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.
1717

18+
1819
## Scripts
1920

2021

@@ -26,30 +27,14 @@ Clone an existing Cloud SQL instance into a new instance. The clone can be a dir
2627

2728
| Name | Type | Description | Required | Default |
2829
| :--- | :--- | :--- | :--- | :--- |
29-
| project | string | The project ID | Yes | |
30+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
3031
| sourceInstanceName | string | The name of the instance to be cloned. | Yes | |
3132
| destinationInstanceName | string | The name of the new instance that will be created by cloning the source instance. | Yes | |
3233
| pointInTime | string | The timestamp in RFC 3339 format to which the source instance should be cloned. | No | |
3334
| preferredZone | string | The preferred zone for the new instance. | No | |
3435
| preferredSecondaryZone | string | The preferred secondary zone for the new instance. | No | |
3536

3637

37-
---
38-
39-
### create_backup
40-
41-
Creates a backup on a Cloud SQL instance.
42-
43-
#### Parameters
44-
45-
| Name | Type | Description | Required | Default |
46-
| :--- | :--- | :--- | :--- | :--- |
47-
| project | string | The project ID | Yes | |
48-
| instance | string | Cloud SQL instance ID. This does not include the project ID. | Yes | |
49-
| location | string | Location of the backup run. | No | |
50-
| backup_description | string | The description of this backup run. | No | |
51-
52-
5338
---
5439

5540
### create_database
@@ -60,7 +45,7 @@ Creates a backup on a Cloud SQL instance.
6045

6146
| Name | Type | Description | Required | Default |
6247
| :--- | :--- | :--- | :--- | :--- |
63-
| project | string | The project ID | Yes | |
48+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
6449
| instance | string | The ID of the instance where the database will be created. | Yes | |
6550
| name | string | The name for the new database. Must be unique within the instance. | Yes | |
6651

@@ -75,7 +60,7 @@ Creates a backup on a Cloud SQL instance.
7560

7661
| Name | Type | Description | Required | Default |
7762
| :--- | :--- | :--- | :--- | :--- |
78-
| project | string | The project ID | Yes | |
63+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
7964
| name | string | The name of the instance | Yes | |
8065
| databaseVersion | string | The database version for Postgres. If not specified, defaults to the latest available version (e.g., POSTGRES_17). | No | `POSTGRES_17` |
8166
| rootPassword | string | The root password for the instance | Yes | |
@@ -92,7 +77,7 @@ Creates a backup on a Cloud SQL instance.
9277

9378
| Name | Type | Description | Required | Default |
9479
| :--- | :--- | :--- | :--- | :--- |
95-
| project | string | The project ID | Yes | |
80+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
9681
| instance | string | The ID of the instance where the user will be created. | Yes | |
9782
| name | string | The name for the new user. Must be unique within the instance. | Yes | |
9883
| password | string | A secure password for the new user. Not required for IAM users. | No | |
@@ -109,7 +94,7 @@ Creates a backup on a Cloud SQL instance.
10994

11095
| Name | Type | Description | Required | Default |
11196
| :--- | :--- | :--- | :--- | :--- |
112-
| projectId | string | The project ID | Yes | |
97+
| projectId | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
11398
| instanceId | string | The instance ID | Yes | |
11499

115100

@@ -123,7 +108,7 @@ Lists all databases for a Cloud SQL instance.
123108

124109
| Name | Type | Description | Required | Default |
125110
| :--- | :--- | :--- | :--- | :--- |
126-
| project | string | The project ID | Yes | |
111+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
127112
| instance | string | The instance ID | Yes | |
128113

129114

@@ -137,42 +122,7 @@ Lists all type of Cloud SQL instances for a project.
137122

138123
| Name | Type | Description | Required | Default |
139124
| :--- | :--- | :--- | :--- | :--- |
140-
| project | string | The project ID | Yes | |
141-
142-
143-
---
144-
145-
### postgres_upgrade_precheck
146-
147-
Analyzes a Cloud SQL PostgreSQL instance for major version upgrade readiness. Results are provided to guide customer actions:
148-
ERROR: Action Required. These are critical issues blocking the upgrade. Customers must resolve these using the provided actions_required steps before attempting the upgrade.
149-
WARNING: Review Recommended. These are potential issues. Customers should review the message and actions_required. While not blocking, addressing these is advised to prevent future problems or unexpected behavior post-upgrade.
150-
INFO: No Action Needed. Informational messages only. This pre-check helps customers proactively fix problems, preventing upgrade failures and ensuring a smoother transition.
151-
152-
#### Parameters
153-
154-
| Name | Type | Description | Required | Default |
155-
| :--- | :--- | :--- | :--- | :--- |
156-
| project | string | The project ID | Yes | |
157-
| instance | string | The name of the instance to check | Yes | |
158-
| targetDatabaseVersion | string | The target PostgreSQL version for the upgrade (e.g., POSTGRES_18). If not specified, defaults to the PostgreSQL 18. | No | `POSTGRES_18` |
159-
160-
161-
---
162-
163-
### restore_backup
164-
165-
Restores a backup on a Cloud SQL instance.
166-
167-
#### Parameters
168-
169-
| Name | Type | Description | Required | Default |
170-
| :--- | :--- | :--- | :--- | :--- |
171-
| target_project | string | The project ID | Yes | |
172-
| target_instance | string | Cloud SQL instance ID of the target instance. This does not include the project ID. | Yes | |
173-
| backup_id | string | Identifier 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 it | Yes | |
174-
| source_project | string | GCP project ID of the instance that the backup belongs to. Only required if the backup_id is a BackupRun ID. | No | |
175-
| source_instance | string | Cloud SQL instance ID of the instance that the backup belongs to. Only required if the backup_id is a BackupRun ID. | No | |
125+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
176126

177127

178128
---
@@ -185,7 +135,7 @@ Restores a backup on a Cloud SQL instance.
185135

186136
| Name | Type | Description | Required | Default |
187137
| :--- | :--- | :--- | :--- | :--- |
188-
| project | string | The project ID | Yes | |
138+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
189139
| operation | string | The operation ID | Yes | |
190140

191141

skills/cloudsql-postgres-admin/scripts/clone_instance.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
18-
1917
const { spawn, execSync } = require('child_process');
2018
const path = require('path');
2119
const fs = require('fs');
2220

2321
const toolName = "clone_instance";
24-
const configArgs = ["--prebuilt", "cloud-sql-postgres-admin"];
22+
const configArgs = ["--prebuilt", "cloud-sql-postgres"];
2523

2624
function getToolboxPath() {
2725
if (process.env.GEMINI_CLI === '1') {
@@ -74,12 +72,15 @@ function getEnv() {
7472
}
7573

7674
let env = process.env;
75+
let userAgent = "skills";
7776
if (process.env.GEMINI_CLI === '1') {
7877
env = getEnv();
78+
userAgent = "skills-geminicli";
7979
}
8080

8181
const args = process.argv.slice(2);
82-
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, ...args];
82+
83+
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...args];
8384

8485
const child = spawn(toolboxBinary, toolboxArgs, { stdio: 'inherit', env });
8586

skills/cloudsql-postgres-admin/scripts/create_database.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
18-
1917
const { spawn, execSync } = require('child_process');
2018
const path = require('path');
2119
const fs = require('fs');
2220

2321
const toolName = "create_database";
24-
const configArgs = ["--prebuilt", "cloud-sql-postgres-admin"];
22+
const configArgs = ["--prebuilt", "cloud-sql-postgres"];
2523

2624
function getToolboxPath() {
2725
if (process.env.GEMINI_CLI === '1') {
@@ -74,12 +72,15 @@ function getEnv() {
7472
}
7573

7674
let env = process.env;
75+
let userAgent = "skills";
7776
if (process.env.GEMINI_CLI === '1') {
7877
env = getEnv();
78+
userAgent = "skills-geminicli";
7979
}
8080

8181
const args = process.argv.slice(2);
82-
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, ...args];
82+
83+
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...args];
8384

8485
const child = spawn(toolboxBinary, toolboxArgs, { stdio: 'inherit', env });
8586

skills/cloudsql-postgres-admin/scripts/create_instance.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
18-
1917
const { spawn, execSync } = require('child_process');
2018
const path = require('path');
2119
const fs = require('fs');
2220

2321
const toolName = "create_instance";
24-
const configArgs = ["--prebuilt", "cloud-sql-postgres-admin"];
22+
const configArgs = ["--prebuilt", "cloud-sql-postgres"];
2523

2624
function getToolboxPath() {
2725
if (process.env.GEMINI_CLI === '1') {
@@ -74,12 +72,15 @@ function getEnv() {
7472
}
7573

7674
let env = process.env;
75+
let userAgent = "skills";
7776
if (process.env.GEMINI_CLI === '1') {
7877
env = getEnv();
78+
userAgent = "skills-geminicli";
7979
}
8080

8181
const args = process.argv.slice(2);
82-
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, ...args];
82+
83+
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...args];
8384

8485
const child = spawn(toolboxBinary, toolboxArgs, { stdio: 'inherit', env });
8586

skills/cloudsql-postgres-admin/scripts/create_user.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
18-
1917
const { spawn, execSync } = require('child_process');
2018
const path = require('path');
2119
const fs = require('fs');
2220

2321
const toolName = "create_user";
24-
const configArgs = ["--prebuilt", "cloud-sql-postgres-admin"];
22+
const configArgs = ["--prebuilt", "cloud-sql-postgres"];
2523

2624
function getToolboxPath() {
2725
if (process.env.GEMINI_CLI === '1') {
@@ -74,12 +72,15 @@ function getEnv() {
7472
}
7573

7674
let env = process.env;
75+
let userAgent = "skills";
7776
if (process.env.GEMINI_CLI === '1') {
7877
env = getEnv();
78+
userAgent = "skills-geminicli";
7979
}
8080

8181
const args = process.argv.slice(2);
82-
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, ...args];
82+
83+
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...args];
8384

8485
const child = spawn(toolboxBinary, toolboxArgs, { stdio: 'inherit', env });
8586

skills/cloudsql-postgres-admin/scripts/get_instance.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
18-
1917
const { spawn, execSync } = require('child_process');
2018
const path = require('path');
2119
const fs = require('fs');
2220

2321
const toolName = "get_instance";
24-
const configArgs = ["--prebuilt", "cloud-sql-postgres-admin"];
22+
const configArgs = ["--prebuilt", "cloud-sql-postgres"];
2523

2624
function getToolboxPath() {
2725
if (process.env.GEMINI_CLI === '1') {
@@ -74,12 +72,15 @@ function getEnv() {
7472
}
7573

7674
let env = process.env;
75+
let userAgent = "skills";
7776
if (process.env.GEMINI_CLI === '1') {
7877
env = getEnv();
78+
userAgent = "skills-geminicli";
7979
}
8080

8181
const args = process.argv.slice(2);
82-
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, ...args];
82+
83+
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...args];
8384

8485
const child = spawn(toolboxBinary, toolboxArgs, { stdio: 'inherit', env });
8586

skills/cloudsql-postgres-admin/scripts/list_databases.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
18-
1917
const { spawn, execSync } = require('child_process');
2018
const path = require('path');
2119
const fs = require('fs');
2220

2321
const toolName = "list_databases";
24-
const configArgs = ["--prebuilt", "cloud-sql-postgres-admin"];
22+
const configArgs = ["--prebuilt", "cloud-sql-postgres"];
2523

2624
function getToolboxPath() {
2725
if (process.env.GEMINI_CLI === '1') {
@@ -74,12 +72,15 @@ function getEnv() {
7472
}
7573

7674
let env = process.env;
75+
let userAgent = "skills";
7776
if (process.env.GEMINI_CLI === '1') {
7877
env = getEnv();
78+
userAgent = "skills-geminicli";
7979
}
8080

8181
const args = process.argv.slice(2);
82-
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, ...args];
82+
83+
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...args];
8384

8485
const child = spawn(toolboxBinary, toolboxArgs, { stdio: 'inherit', env });
8586

skills/cloudsql-postgres-admin/scripts/list_instances.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
18-
1917
const { spawn, execSync } = require('child_process');
2018
const path = require('path');
2119
const fs = require('fs');
2220

2321
const toolName = "list_instances";
24-
const configArgs = ["--prebuilt", "cloud-sql-postgres-admin"];
22+
const configArgs = ["--prebuilt", "cloud-sql-postgres"];
2523

2624
function getToolboxPath() {
2725
if (process.env.GEMINI_CLI === '1') {
@@ -74,12 +72,15 @@ function getEnv() {
7472
}
7573

7674
let env = process.env;
75+
let userAgent = "skills";
7776
if (process.env.GEMINI_CLI === '1') {
7877
env = getEnv();
78+
userAgent = "skills-geminicli";
7979
}
8080

8181
const args = process.argv.slice(2);
82-
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, ...args];
82+
83+
const toolboxArgs = ["--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...args];
8384

8485
const child = spawn(toolboxBinary, toolboxArgs, { stdio: 'inherit', env });
8586

0 commit comments

Comments
 (0)