sql-pro

Design, review, and optimize SQL queries for correctness and performance.

22|2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/jshsakura/awesome-opencode-skills --skill sql-pro-jshsakura
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-pro
Source: https://github.com/jshsakura/awesome-opencode-skills/tree/main/skills/sql-pro
Command: npx skills add https://github.com/jshsakura/awesome-opencode-skills --skill sql-pro-jshsakura

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SQL design, review, and migration analysis are common bottlenecks in data-driven projects. This Skill helps produce correct, efficient queries, debug schema-related issues, and evaluate migrations with minimal risk.

Core Features & Use Cases

  • Query design & optimization: craft efficient SELECTs, joins, filters, and aggregations for production workloads.
  • Schema-aware debugging: diagnose issues arising from schema changes, data types, and constraints.
  • Migration analysis & safety: assess backward compatibility, data migration risks, and rollback plans for schema changes.
  • Code review & best practices: enforce standards for readability, maintainability, and performance.

Quick Start

Design or review a SQL query to retrieve the top 5 customers by total order value from a sales schema.

Frequently Asked Questions about sql-pro

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

FAQPage Schema
What is the best way to optimize SQL queries for production workloads?

To optimize SQL queries for production workloads, you must design efficient SELECTs, joins, filters, and aggregations. This approach ensures your queries satisfy requirements for correctness, performance, safety, and auditability across relational databases.

How do I debug SQL schema issues caused by data types and constraints?

To debug SQL schema issues, you perform schema-aware debugging to diagnose problems arising from schema changes, data types, and constraints. This targets the root cause of data anomalies within your relational database structure.

How do I assess database migration risks and backward compatibility?

You assess database migration risks by performing migration analysis to evaluate backward compatibility, data migration risks, and rollback plans for schema changes. This minimizes risk and ensures safety during production database transitions.

How do I review existing SQL for correctness and performance best practices?

To review existing SQL for correctness and performance, you enforce standards for readability, maintainability, and performance. This code review process validates query design and identifies schema-related issues before production deployment.

Can I use this for schema-aware debugging across any relational database?

Yes, you can apply schema-aware debugging across relational databases to diagnose issues arising from schema changes, data types, and constraints. It ensures correctness and performance regardless of the specific relational database platform.