query-optimize

Installation
SKILL.md

Query Optimize

Requirements

Agent: any (read-only analysis) Tools used: sql_optimize, sql_analyze, sql_explain, altimate_core_equivalence, read, glob, schema_inspect, warehouse_list

Analyze SQL queries for performance issues and suggest concrete optimizations including rewritten SQL.

Workflow

  1. Get the SQL query -- Either:

    • Read SQL from a file path provided by the user
    • Accept SQL directly from the conversation
    • Read from clipboard or stdin if mentioned
  2. Determine the dialect -- Default to snowflake. If the user specifies a dialect (postgres, bigquery, duckdb, etc.), use that instead. Check the project for warehouse connections using warehouse_list if unsure.

  3. Run the optimizer:

    • Call sql_optimize with the SQL, dialect, and schema context if available
Related skills
Installs
2
GitHub Stars
555
First Seen
Apr 21, 2026