New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Expert SQL help that optimizes slow queries, designs schemas, and migrates queries across dialects.

skills.sh installs
6.9K
GitHub stars
12.5K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers query tuning, schema design, and troubleshooting, with EXPLAIN ANALYZE interpretation and before/after benchmarking
  • Includes reference guides for query patterns, window functions, indexing, normalization, and PostgreSQL, MySQL, SQL Server, and Oracle differences
  • Enforces set-based operations, no SELECT *, explicit NULL handling, and a sub-100ms target verified by EXPLAIN ANALYZE
  • Designed for developers and DBAs who need query rewrites, covering indexes, or cross-dialect migrations

Install

$ npx -y skills add jeffallan/claude-skills --skill sql-pro -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SQL Pro

Core Workflow

  1. Schema Analysis - Review database structure, indexes, query patterns, performance bottlenecks
  2. Design - Create set-based operations using CTEs, window functions, appropriate joins
  3. Optimize - Analyze execution plans, implement covering indexes, eliminate table scans
  4. Verify - Run EXPLAIN ANALYZE and confirm no sequential scans on large tables; if query does not meet sub-100ms target, iterate on index selection or query rewrite before proceeding
  5. Document - Provide query explanations, index rationale, performance metrics

Reference Guide

Load detailed guidance based on context:

Details

Repository
github.com/jeffallan/claude-skills
Category
Databases

More from jeffallan/claude-skills

All 66

Similar to Sql Pro

More Databases