agentsclimarketplace

Cloud sql mysql data

Skill gemini-cli-extensions/cloud-sql-mysql/skills/cloud-sql-mysql-data

Use these skills when you need to explore your database schema, execute SQL queries to interact with your data, and inspect how MySQL plans to execute your statements.From its SKILL.md

Install
npx -y skills add gemini-cli-extensions/cloud-sql-mysql --skill cloud-sql-mysql-data

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

  • 12 stars12 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

2.6 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

execute_sql

Use this skill to execute SQL.

Parameters

NameTypeDescriptionRequiredDefault
sqlstringThe sql to execute.Yes

get_query_plan

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.

Parameters

NameTypeDescriptionRequiredDefault
sql_statementstringThe sql statement to explain.Yes

list_active_queries

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.

Parameters

NameTypeDescriptionRequiredDefault
min_duration_secsintegerOptional: Only show queries running for at least this long in secondsNo0
limitintegerOptional: The maximum number of rows to return.No100

list_tables

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.

Parameters

NameTypeDescriptionRequiredDefault
table_namesstringOptional: A comma-separated list of table names. If empty, details for all tables will be listed.No``
output_formatstringOptional: Use 'simple' for names only or 'detailed' for full info.Nodetailed

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.