sql-pro

Analyze SQL execution plans and optimize slow queries across PostgreSQL, MySQL, SQL Server, and Oracle.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/Tnemo65/template --skill sql-pro-tnemo65
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-pro
Source: https://github.com/Tnemo65/template/tree/main/.cursor/skills/02-data-engineering/sql-pro
Command: npx skills add https://github.com/Tnemo65/template --skill sql-pro-tnemo65

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Optimize complex SQL queries, design efficient schemas, and tune performance across PostgreSQL, MySQL, SQL Server, and Oracle to deliver scalable, reliable database systems.

Core Features & Use Cases

  • Analyze and optimize slow queries with execution-plan inspection
  • Design effective indexes and schemas for cross-platform workloads
  • Apply best practices for performance, reliability, and data integrity across RDBMS
  • Use Case: a legacy analytics workload that must run within strict SLAs

Quick Start

Analyze a slow workload, identify bottlenecks, and implement optimizations to achieve consistent sub-100ms query times.

Frequently Asked Questions about sql-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify the root cause of slow SQL queries using execution plans?

To optimize slow SQL queries, you analyze their execution plans to pinpoint root causes like missing indexes or inefficient joins. This inspection reveals performance bottlenecks, guiding cross-platform query rewriting and index design strategies for measurable improvement.

What is the best way to tune SQL query performance across multiple database platforms?

The best way to tune SQL performance is by analyzing execution plans and applying cross-platform optimization techniques like query rewriting and index design. This approach improves workload performance consistently across PostgreSQL, MySQL, SQL Server, and Oracle.

Does this query optimization approach work with PostgreSQL and MySQL?

Yes, this query optimization approach supports PostgreSQL and MySQL, alongside SQL Server and Oracle. It applies cross-platform optimization techniques including index design and query rewriting to improve performance and reliability across these RDBMS environments.

How do I design effective indexes for high workload database schemas?

To design effective indexes for high workloads, you analyze execution plans and query patterns to determine optimal index structures. This schema design improves database performance and reliability by ensuring queries retrieve data efficiently across different RDBMS platforms.

How do I validate SQL query tuning improvements with measurable metrics?

To validate SQL query tuning improvements, you measure query execution times before and after applying optimizations like index design or query rewriting. This validation ensures changes achieve target SLAs, such as consistent sub-100ms query times for analytics workloads.

Why does my SQL query execution plan show a full table scan instead of an index seek?

A SQL query execution plan shows a full table scan instead of an index seek due to missing indexes, outdated statistics, or non-sargable query predicates. Analyzing the execution plan helps identify these root causes for targeted query rewriting and index design.