# demo-priya/sql-explain

Explains what a SQL query does and why it may be slow, then suggests an index and a faster rewrite. Use when the user pastes a SQL query or an EXPLAIN plan and asks why it's slow.

- Author: Priya Raman (demo) (https://app.skillsync.com/demo-priya)
- Price: Free
- Version: 1

## Example requests

- "Why is this query slow?"
- "Explain this SQL and suggest an index"

## Result

What the query returns in plain words, the likely slow part, one CREATE INDEX and a rewrite.

## Files

- SKILL.md (1404 bytes)
- examples/slow-join.sql (234 bytes)
- patterns.md (446 bytes)

## How to use it

1. Connect the Skillsync MCP server: https://app.skillsync.com/mcp (OAuth sign-in).
2. Add it to your library: https://app.skillsync.com/demo-priya/sql-explain
3. Load it with the get_skill tool: `get_skill("demo-priya/sql-explain")`, then follow its instructions.
