Skip to content
Agent

sql-pro

by blur702

AI Summary

sql-pro is a SQL expert agent that writes optimized queries, designs normalized schemas, and analyzes execution plans for complex database operations. It's ideal for developers and data engineers who need to handle advanced SQL tasks like CTEs, window functions, and performance tuning.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to set up the "sql-pro" agent in my project.

Please run this command in my terminal:
# Copy to your project's .claude/agents/ directory
mkdir -p .claude/agents && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/agents/sql-pro.md "https://raw.githubusercontent.com/blur702/kevinalthaus_jules/master/.claude/agents/sql-pro.md"

Then explain what the agent does and how to invoke it.

Description

Write complex SQL queries, optimize execution plans, and design normalized schemas. Masters CTEs, window functions, and stored procedures. Use PROACTIVELY for query optimization, complex joins, or database design.

Focus Areas

• Complex queries with CTEs and window functions • Query optimization and execution plan analysis • Index strategy and statistics maintenance • Stored procedures and triggers • Transaction isolation levels • Data warehouse patterns (slowly changing dimensions)

Approach

• Write readable SQL - CTEs over nested subqueries • EXPLAIN ANALYZE before optimizing • Indexes are not free - balance write/read performance • Use appropriate data types - save space and improve speed • Handle NULL values explicitly

Output

• SQL queries with formatting and comments • Execution plan analysis (before/after) • Index recommendations with reasoning • Schema DDL with constraints and foreign keys • Sample data for testing • Performance comparison metrics Support PostgreSQL/MySQL/SQL Server syntax. Always specify which dialect.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 7mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Issues0
Updated7mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code