sql-query-optimizer
Analyzes and optimizes SQL queries across different data warehouse platforms (Snowflake, BigQuery, Redshift, Databricks) with platform-specific recommendations.
npx skills add a5c-ai/babysitter --skill sql-query-optimizer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# SQL Query Optimizer Analyzes and optimizes SQL queries across different data warehouse platforms with platform-specific recommendations. ## Overview This skill examines SQL queries to identify performance bottlenecks, suggest optimizations, and provide platform-specific recommendations for Snowflake, BigQuery, Redshift, and Databricks. It analyzes query execution plans, recommends indexes/clustering keys, and identifies anti-patterns. ## Capabilities - **Query execution plan analysis** - Parse and analyze EXPLAIN outputs - **Index recommendations** - Suggest clustering keys, sort keys, partition keys - **Join optimization** - Identify inefficient join patterns and suggest improvements - **Subquery elimination** - Convert correlated subqueries to CTEs or joins - **CTE optimization** - Materialize vs reference optimization - **Window function optimization** - Frame and partition optimization - **Predicate pushdown validation** - Verify filter pushdown effectiveness - **Clustering key recommendations** - Platform-specific clustering strategies - **Materialized view suggestions** - Identify candidates for materialized views - **Platform-specific optimizations** - Snowflake, BigQuery,
- Overview
- Capabilities
- Input Schema
- Output Schema
- Usage Examples
- Basic Query Optimization
- With Execution Plan Analysis
- With Table Statistics
- Platform-Specific Optimizations
- Snowflake
- BigQuery
- Redshift
- Databricks
- Common Anti-Patterns Detected
What does the sql-query-optimizer skill do?
Analyzes and optimizes SQL queries across different data warehouse platforms (Snowflake, BigQuery, Redshift, Databricks) with platform-specific recommendations.
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill sql-query-optimizer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
