sql-pro

Optimize SQL queries, indexing, and schema design for cloud-native HTAP workloads.

54|18|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/hainamchung/agent-assistant --skill sql-pro-hainamchung
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-pro
Source: https://github.com/hainamchung/agent-assistant/tree/main/skills/sql-pro
Command: npx skills add https://github.com/hainamchung/agent-assistant --skill sql-pro-hainamchung

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline and optimize complex SQL development for cloud-native and HTAP environments, reducing guesswork and accelerating performance gains.

Core Features & Use Cases

  • High-performance query optimization across cloud databases, with indexing strategies and plan analysis.
  • Data modeling and schema design for OLTP/OLAP workloads, enabling scalable and reliable data architectures.
  • Use Case: When tuning a costly query on a distributed RDBMS, use this skill to rewrite the query, adjust indexes, and validate improvements with EXPLAIN.

Quick Start

Provide optimized SQL guidance for a sample schema to demonstrate performance improvements.

Frequently Asked Questions about sql-pro

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

FAQPage Schema
How do I optimize high-performance SQL queries for cloud databases?

Optimize high-performance SQL queries for cloud databases by rewriting costly statements, adjusting indexing strategies, and validating execution improvements using EXPLAIN plan analysis. This approach reduces guesswork and accelerates performance gains across distributed RDBMS environments.

What is the best way to design database schemas for HTAP workloads?

Designing database schemas for HTAP workloads involves data modeling tailored for both OLTP and OLAP systems. This enables scalable and reliable data architectures, ensuring correctness and maintainability across relational and analytical environments.

How do I analyze an EXPLAIN plan to fix slow SQL performance?

Analyze an EXPLAIN plan to fix slow SQL performance by identifying bottlenecks in the execution path, then rewriting the query and adjusting indexing strategies accordingly. This validates improvements and ensures scalable SQL practices for complex query tuning.

Can I use this approach to tune SQL for both OLTP and OLAP environments?

Yes, you can tune SQL for both OLTP and OLAP environments. The approach applies data modeling and schema design specifically for mixed workloads, enabling scalable and reliable data architectures across relational and analytical platforms.

When do I need to adjust indexing strategies for distributed relational databases?

You need to adjust indexing strategies for distributed relational databases when tuning costly queries that degrade performance. Applying targeted indexing strategies alongside query rewrites and plan analysis resolves bottlenecks in cloud-native and HTAP workloads.