|
3 | 3 | > [!NOTE] |
4 | 4 | > This extension is currently in beta (pre-v1.0), and may see breaking changes until the first stable release (v1.0). |
5 | 5 |
|
6 | | -This Gemini CLI extension provides a set of tools to interact with [Cloud SQL for PostgreSQL](https://cloud.google.com/sql/docs/postgres) instances. It allows you to manage your databases, execute queries, explore schemas, and troubleshoot issues directly from the [Gemini CLI](https://google-gemini.github.io/gemini-cli/), using natural language prompts. |
| 6 | +This Gemini CLI extension provides a set of skills to interact with [Cloud SQL for PostgreSQL](https://cloud.google.com/sql/docs/postgres) instances. It allows you to manage your databases, execute queries, explore schemas, and troubleshoot issues directly from the [Gemini CLI](https://google-gemini.github.io/gemini-cli/), using natural language prompts. |
7 | 7 |
|
8 | 8 | Learn more about [Gemini CLI Extensions](https://github.com/google-gemini/gemini-cli/blob/main/docs/extensions/index.md). |
9 | 9 | > [!IMPORTANT] |
@@ -58,7 +58,7 @@ You will be prompted to configure the following settings during installation. Th |
58 | 58 | * `CLOUD_SQL_POSTGRES_IP_TYPE`: (Optional) Type of the IP address: `PUBLIC`, `PRIVATE`, or `PSC`. Defaults to `PUBLIC`. |
59 | 59 |
|
60 | 60 | > [!NOTE] |
61 | | -> This configuration is primarily for the Data Plane tools (querying). The Admin toolset does not strictly require these to be pre-set if you provide them in your prompts, but it is recommended for a smoother experience. |
| 61 | +> This configuration is primarily for the Data Plane skills (querying). The Admin skillset does not strictly require these to be pre-set if you provide them in your prompts, but it is recommended for a smoother experience. |
62 | 62 |
|
63 | 63 | To view or update your configuration: |
64 | 64 |
|
@@ -87,7 +87,7 @@ export CLOUD_SQL_POSTGRES_IP_TYPE="PUBLIC" # Optional: `PUBLIC`, `PRIVATE`, `PSC |
87 | 87 | > [!NOTE] |
88 | 88 | > * Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. |
89 | 89 | > * If your Cloud SQL for PostgreSQL instance uses private IPs, you must run Gemini CLI in the same Virtual Private Cloud (VPC) network. |
90 | | -> * See [Troubleshooting](#troubleshooting) for debugging your configuration. |
| 90 | +> * See [Troubleshooting](#troubleshooting) for debugging your configuration. |
91 | 91 |
|
92 | 92 | ### Start Gemini CLI |
93 | 93 |
|
@@ -116,43 +116,12 @@ Interact with Cloud SQL for PostgreSQL using natural language: |
116 | 116 | * **Generate Code:** |
117 | 117 | * "Generate a Python dataclass to represent the 'customers' table." |
118 | 118 |
|
119 | | -## Supported Tools |
120 | | - |
121 | | -* **Admin:** |
122 | | - * `clone_instance`: Creates a clone for an existing Cloud SQL for PostgreSQL instance. |
123 | | - * `create_backup`: Creates a backup on a Cloud SQL instance. |
124 | | - * `create_instance`: Use this tool to create an Postgres instance. |
125 | | - * `create_user`: Use this tool to create Postgres-BUILT-IN or IAM-based users. |
126 | | - * `create_database`: Creates a new database in a Cloud SQL instance. |
127 | | - * `get_instance`: Use this tool to get details about an Postgres instance. |
128 | | - * `list_instances`: Use this tool to list instances in a given project and location. |
129 | | - * `list_databases`: Lists all databases for a Cloud SQL instance. |
130 | | - * `restore_backup`: Restores a backup of a Cloud SQL instance. |
131 | | - * `wait_for_operation`: Use this tool to poll the operations API until the operation is done. |
132 | | - |
133 | | -* **Data:** |
134 | | - * `list_tables`: Use this tool to lists tables in the database. |
135 | | - * `database_overview`: Use this tool to fetches the current state of the PostgreSQL server. |
136 | | - * `execute_sql`: Use this tool to executes a SQL query. |
137 | | - * `list_active_queries`: Use this tool to list currently running queries. |
138 | | - * `list_available_extensions`: Use this tool to list available extensions for installation. |
139 | | - * `list_installed_extensions`: Use this tool to list installed extensions. |
140 | | - * `get_query_plan`: Use this tool to get query plan. |
141 | | - * `list_autovacuum_configurations`: Use this tool to list autovacuum configurations and its value. |
142 | | - * `list_database_stats`: Use this tool to lists the key performance and activity statistics for each database in the postgreSQL instance. |
143 | | - * `list_indexes`: Use this tool to list available user indexes in a PostgreSQL database. |
144 | | - * `list_memory_configurations`: Use this tool to list memory configurations and its value. |
145 | | - * `list_pg_settings`: Use this tool to list configuration parameters for the PostgreSQL server. |
146 | | - * `list_publication_tables`: Use this tool to list publication tables in a PostgreSQL database. |
147 | | - * `list_replication_slots`: Use this tool to list replication slots. |
148 | | - * `list_roles`: Use this tool to lists all the user-created roles in PostgreSQL database. |
149 | | - * `list_schemas`: Use this tool to lists schemas in the database. |
150 | | - * `list_sequences`: Use this tool to list sequences in a PostgreSQL database. |
151 | | - * `list_tablespaces`: Use this tool to lists tablespaces in the database. |
152 | | - * `list_top_bloated_tables`: Use this tool to list top bloated tables. |
153 | | - * `list_triggers`: Use this tool to lists triggers in the database. |
154 | | - * `list_views`: Use this tool to lists views in the database from pg_views with a default limit of 50 rows. |
155 | | - * `list_invalid_indexes`: Use this tool to list invalid indexes. |
| 119 | +## Supported Skills |
| 120 | + |
| 121 | +This extension provides the following skills: |
| 122 | + |
| 123 | +* [Cloud SQL for PostgreSQL Admin](skills/cloudsql-postgres-admin/SKILL.md) - Manage Cloud SQL instances, databases, and users. |
| 124 | +* [Cloud SQL for PostgreSQL](skills/cloudsql-postgres/SKILL.md) - Query databases and manage extensions. |
156 | 125 |
|
157 | 126 | ## Additional Extensions |
158 | 127 |
|
|
0 commit comments