
Description
sql-pro is an agent skill from the jeffallan claude-skills collection for optimising SQL queries, designing database schemas and troubleshooting performance problems. It is used when someone asks why a query is slow, needs help writing complex SQL, or wants a schema designed. Its workflow has five stages. The agent reviews the database structure, indexes, query patterns and bottlenecks. It designs set-based operations using common table expressions, window functions and appropriate joins rather than row-by-row logic. It optimises by reading execution plans, adding covering indexes and removing table scans. The verification step runs EXPLAIN ANALYZE and confirms there are no sequential scans on large tables, and if the query does not reach the sub-100-millisecond target, the agent changes the index choice or rewrites the query before continuing. The final step documents the explanation, the index rationale and the performance measurements. The skill is useful for developers and analysts who maintain SQL-backed applications and reports and want the agent to explain its changes with measured results. Because the target and the measurements depend on the database and data, the skill asks for evidence rather than assuming a fix works. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection. Its Gen Agent Trust Hub audit is marked as failing, which the FAQ lists, while Socket and Snyk pass. Install it with npx skills add https://github.com/jeffallan/claude-skills --skill sql-pro.…
Highlights
- Slow query diagnosis
- Set-based SQL with CTEs and window functions
- Covering indexes and scan removal
- EXPLAIN ANALYZE verification
- Sub-100 ms query target
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate sql-pro.
People also visit

database-optimizer
Optimizes database queries and improves performance across PostgreSQL

sql-code-review
Comprehensive SQL security, performance, and quality analysis across MySQL

postgresql-code-review
PostgreSQL code review assistant covering JSONB, arrays, custom types
sql-pro FAQ
What does this skill do?
It helps an agent diagnose slow queries, write complex SQL, design schemas and document performance changes.
What is the performance target?
The workflow uses a sub-100-millisecond target and checks it with EXPLAIN ANALYZE.
What does it check for?
Sequential scans on large tables, and whether an index or rewrite brings the query within target.
How do I install it?
Run npx skills add https://github.com/jeffallan/claude-skills --skill sql-pro.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Fail, Socket Pass and Snyk Pass. A Warn or Fail is worth reading before you install.
How popular is it?
The page shows about 6.2K installs, and the claude-skills repository has 11.9K GitHub stars.
What are the best sql-pro alternatives?
Popular alternatives to sql-pro include database-optimizer, sql-queries and sql-code-review. See all sql-pro alternatives















