sql-pro

Analyzes and optimizes complex PostgreSQL queries for improved performance.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/united-software-platform/req-control --skill sql-pro-united-software-platform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-pro
Source: https://github.com/united-software-platform/req-control/tree/main/.claude/skills/sql-pro
Command: npx skills add https://github.com/united-software-platform/req-control --skill sql-pro-united-software-platform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL often struggles with complex queries, leading to high latency and poor throughput. This skill provides expert guidance to analyze, rewrite, and index SQL queries to achieve predictable, low-latency performance.

Core Features & Use Cases

  • Advanced query optimization strategies for PostgreSQL
  • Index design, plan analysis, and bottleneck detection
  • Use Case: Tuning a slow analytics dashboard query on a large star-schema database.

Quick Start

Analyze the current slow PostgreSQL queries in your database and propose concrete optimizations.

Frequently Asked Questions about sql-pro

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

FAQPage Schema
How do I optimize slow PostgreSQL queries on large analytics workloads?

To optimize slow PostgreSQL queries, you analyze query plans, detect bottlenecks, and apply indexing or safe query rewrites. This skill provides expert guidance to tune complex queries for predictable, low-latency performance on large data volumes.

What is the best way to design indexes for a slow PostgreSQL analytics dashboard?

The best way to design indexes for a slow PostgreSQL dashboard is to analyze query plans and identify bottlenecks in your star-schema database. This skill applies advanced index design strategies to achieve low-latency performance for analytics workloads.

How does PostgreSQL query plan analysis work for detecting performance bottlenecks?

PostgreSQL query plan analysis works by examining execution paths to identify performance bottlenecks like missing indexes or inefficient joins. This skill performs plan analysis and proposes concrete optimizations including safe query rewrites to improve throughput.

Can I use ANSI SQL compatible query rewrites to improve PostgreSQL performance?

Yes, you can use ANSI SQL compatible query rewrites to safely improve PostgreSQL performance. This skill meets requirements for ANSI SQL compatibility while applying optimization strategies to complex queries without altering their logic.

Does PostgreSQL query tuning work for evolving schemas and large data volumes?

Yes, PostgreSQL query tuning works for evolving schemas and large data volumes. This skill analyzes and optimizes complex queries specifically designed for analytics workloads, adapting to schema changes while maintaining low-latency performance.

Why does my PostgreSQL query have high latency despite existing indexes?

Your PostgreSQL query has high latency because existing indexes may not match the query plan requirements, causing bottlenecks. This skill detects plan analysis issues and proposes concrete optimizations like advanced index design or safe rewrites.