
Sql Pro
Reach for this when you're staring at a slow query or need to write something gnarly with window functions and CTEs. It walks you through schema analysis, query optimization with EXPLAIN plans, and covering index design across PostgreSQL, MySQL, SQL Server, and Oracle. The workflow enforces a sub-100ms target and won't let you move on until you've eliminated sequential scans on large tables. What I like is the before/after examples showing correlated subquery rewrites and the quick reference for interpreting EXPLAIN ANALYZE output. It's opinionated about set-based operations and will push you toward EXISTS over COUNT, filtering before joins, and avoiding cursors when a single query will do.
- skills.sh installs
- 6.8K
- GitHub stars
- 12.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add jeffallan/claude-skills --skill sql-pro --agent claude-codeInstalls into .claude/skills of the current project.
Files
SQL Pro
Core Workflow
- Schema Analysis - Review database structure, indexes, query patterns, performance bottlenecks
- Design - Create set-based operations using CTEs, window functions, appropriate joins
- Optimize - Analyze execution plans, implement covering indexes, eliminate table scans
- Verify - Run
EXPLAIN ANALYZEand confirm no sequential scans on large tables; if query does not meet sub-100ms target, iterate on index selection or query rewrite before proceeding - Document - Provide query explanations, index rationale, performance metrics
Reference Guide
Load detailed guidance based on context:
Sponsors
Details
More from jeffallan/claude-skills
All 66- Rust Engineer6.7K
- Security Reviewer6.5K
- Fastapi Expert6.4K
- Javascript Pro6.4K
- Database Optimizer6.3K
- Java Architect6.2K
- Nestjs Expert6.2K
- Pandas Pro6.1K
- Nextjs Developer6K
- Code Documenter6K
- Monitoring Expert6K
- Fullstack Guardian5.9K
- Prompt Engineer5.9K
- React Expert5.8K
- Terraform Engineer5.7K
- Test Master5.7K
- Cpp Pro5.6K
- Playwright Expert5.6K
- Kotlin Specialist5.4K
- Secure Code Guardian5.4K
- Debugging Wizard5.4K
- Sre Engineer5.4K
- Shopify Expert5.3K
- Microservices Architect5.2K