sql-analyst

Optimize SQL queries and design schemas for PostgreSQL, MySQL, and SQLite.

20|6|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/ginkida/rustyhand --skill sql-analyst-ginkida
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-analyst
Source: https://github.com/ginkida/rustyhand/tree/main/crates/rusty-hand-skills/bundled/sql-analyst
Command: npx skills add https://github.com/ginkida/rustyhand --skill sql-analyst-ginkida

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SQL performance bottlenecks and data modeling challenges across analytics and transactional workloads, addressed by targeted optimization, clear schema design, and actionable guidance.

Core Features & Use Cases

  • Query optimization for PostgreSQL, MySQL, SQLite, and other dialects with practical tuning patterns.
  • Schema design guidance for normalized, scalable data models suitable for analytics.
  • Use Case: refactor a slow-running join to use proper indexing and a more efficient join strategy.

Quick Start

Provide an optimized SQL query and a normalized schema design for a given business scenario.

Frequently Asked Questions about sql-analyst

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

FAQPage Schema
How do I optimize slow SQL queries in PostgreSQL?

To optimize slow SQL queries in PostgreSQL, use EXPLAIN ANALYZE for performance diagnostics, enforce explicit JOINs, avoid SELECT *, and apply proper indexing decisions to refactor inefficient join strategies.

What's the best way to design a scalable schema for analytics workloads?

Designing a scalable schema for analytics workloads requires normalized data modeling with clear schema design. Targeted optimization ensures data models remain scalable and readable for both transactional and analytical queries.

How do I use EXPLAIN ANALYZE for SQL query tuning?

Use EXPLAIN ANALYZE for SQL query tuning by running it before your target query to capture execution diagnostics. It reveals performance bottlenecks so you can adjust indexing decisions and refactor join strategies.

Does this SQL optimization approach work with MySQL and SQLite?

SQL optimization applies to PostgreSQL, MySQL, SQLite, and other SQL dialects. It handles query tuning, indexing decisions, and data modeling tasks consistently across different database platforms.

Why should I avoid SELECT * in SQL query optimization?

Avoid SELECT * in SQL query optimization because it degrades performance and reduces readability. Enforcing explicit column selection ensures targeted data retrieval and supports better indexing decisions.

When do I need indexing decisions for transactional vs analytical workloads?

Indexing decisions are needed when optimizing transactional and analytical workloads. Proper indexing refactors slow-running joins into efficient strategies, improving query performance across normalized, scalable data models.