k
kritak
back to skills

SQL Explainer

by kritak

Paste a SQL query and get a plain-English breakdown — what tables it touches, what filters apply, what the output shape will be, and any obvious performance pitfalls.

/sql-explain

$ install

# Generic skill — works in any Claude-compatible host
# See your client's docs for skill installation paths

$ cat readme.md

What it does

Takes a SQL statement and produces:

  1. Plain-English narration of what the query does
  2. Table & column inventory — what's read, what's joined, what's filtered
  3. Output shape — rough description of the result set
  4. Performance notes — full table scans, missing indexes, cartesian risks

Useful for inheriting unfamiliar codebases or reviewing migrations.