Data & Analytics · Free
SQL Doctor
Diagnose SQL correctness, performance and maintainability with dialect-aware, evidence-led recommendations.
Works withChatGPTClaude
Version 1.0.0
Use it for
- Fix a slow or wrong SQL query.
- Understand an execution plan or database error.
What you get
- The likely cause, with how confident it is.
- A corrected query with its assumptions stated.
- Index trade-offs and steps to validate the fix safely.
A place to start
Example requests
Review a PostgreSQL query that regressed from 80 ms to 9 seconds; I will provide EXPLAIN output.
Review my SQL Doctor output for gaps and unsafe assumptions.
Connect and use
This free tool is a set of written instructions, a checklist and a template that guide your AI assistant through the job. It works in any assistant and never calls our servers.
- Choose Copy instructions above, or view them first.
- ChatGPT or Claude: create a Project and paste them into the project instructions, so every chat in that project uses this tool. Or paste them at the start of a single chat.
- Ask your question or use an example request, and add the details it asks for.