From cloud-sql-mysql
Executes SQL queries, explores MySQL schemas, analyzes query execution plans, and monitors active queries. Helps debug performance and understand database structure.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cloud-sql-mysql:cloud-sql-mysql-dataThe 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 `<param_value>` with actual values.
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.
Use this skill to execute SQL.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| sql | string | The sql to execute. | Yes |
Provide information about how MySQL executes a SQL statement. Common use cases include: 1) analyze query plan to improve its performance, and 2) determine effectiveness of existing indexes and evalueate new ones.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| sql_statement | string | The sql statement to explain. | Yes |
Lists top N (default 10) ongoing queries from processlist and innodb_trx, ordered by execution time in descending order. Returns detailed information of those queries in json format, including process id, query, transaction duration, transaction wait duration, process time, transaction state, process state, username with host, transaction rows locked, transaction rows modified, and db schema.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| min_duration_secs | integer | Optional: Only show queries running for at least this long in seconds | No | 0 |
| limit | integer | Optional: The maximum number of rows to return. | No | 100 |
Lists detailed schema information (object type, columns, constraints, indexes, triggers, comment) as JSON for user-created tables (ordinary or partitioned). Filters by a comma-separated list of names. If names are omitted, lists all tables in user schemas.
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| table_names | string | Optional: A comma-separated list of table names. If empty, details for all tables will be listed. | No | `` |
| output_format | string | Optional: Use 'simple' for names only or 'detailed' for full info. | No | detailed |
npx claudepluginhub gemini-cli-extensions/cloud-sql-mysql --plugin cloud-sql-mysqlTroubleshoots slow queries, analyzes system-level PromQL metrics, and identifies structural performance issues like table fragmentation or missing unique indexes for Cloud SQL MySQL.
Provides MySQL and MariaDB patterns for schema design, indexing, query optimization, migrations, and production database configuration. Includes version-specific guidance and best practices.
Guides MySQL and MariaDB schema design, indexing, query tuning, migrations, connection pools, and production configuration with version-aware patterns.