Agent skill · Databases

sql-query-optimizer

Analyzes and optimizes SQL queries across different data warehouse platforms (Snowflake, BigQuery, Redshift, Databricks) with platform-specific recommendations.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill sql-query-optimizer --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.0.0
Allowed tools: ReadGrepGlobBashWebFetch
Path: library/specializations/data-engineering-analytics/skills/sql-query-optimizer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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,

What's inside
Steps it walks through
  1. Overview
  2. Capabilities
  3. Input Schema
  4. Output Schema
  5. Usage Examples
  6. Basic Query Optimization
  7. With Execution Plan Analysis
  8. With Table Statistics
  9. Platform-Specific Optimizations
  10. Snowflake
  11. BigQuery
  12. Redshift
  13. Databricks
  14. Common Anti-Patterns Detected
Ships with 1 file
  • README.md
More from babysitter
All skills →
About this skill
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.

Keep going