Skip to content
Muse SkillsIndependent
Submit a skill

SQL Explainer

Paste a query; get a plain-English walkthrough of what it does.

Tested in Museprompt packDev & automationprompt-text

by Muse Skills editors · Written for this directory

View source

Ready to copy.

What it does

SQL Explainer is a prompt pack for inherited queries. Paste the query, and it walks through each clause in execution order: what it filters, joins, or computes: then flags performance problems like unindexed joins and suggests a rewrite when one matters.

What it includes

  • Clause-by-clause walkthrough in execution order
  • One-sentence summary of what the query answers
  • Performance red-flag scan with a suggested rewrite

Example

Input: a 40-line reporting query with three joins and a subquery.

Output (abridged):

Summary: monthly revenue per region, excluding refunds.

Execution order:
1. FROM orders, full table scan (red flag: no date filter before join)
2. JOIN customers on id: indexed, fine
...

Red flags: the refund exclusion happens in a subquery after the
big join: filter earlier and this runs ~10x faster.

What this one touches

Explains the query you paste. Never runs it against a database and never asks for credentials.

Install

Copy this block and paste it into your Muse chat. Muse does the install and confirms when it's done.

Install prompt

Full source

This is the exact text Muse installs. Read it. That's the whole trust model.

SKILL.md
This prompt pack turns any SQL query into a plain-English walkthrough.
Paste it into Muse along with your query.

> Explain this SQL query in plain English. Walk through it
> clause by clause in execution order (not written order):
> what each part filters, joins, or computes, and what the
> final result set looks like. Then give: (1) a one-sentence
> summary of what the query answers, (2) any performance
> red flags you see: full table scans, unindexed joins,
> SELECT *, N+1 patterns, and (3) one suggested rewrite if
> a red flag is serious. Assume I know basic SQL. Do not
> run the query; explain it from the text.
  • Release Notes Writer

    Turns commits and merged PRs since the last tag into a changelog draft worth shipping.

    skillinstructionsworkflowchangelog-templatemigration-notes

    by Muse Skills editors · Written for this directory

    View
  • Release Radar

    Watches the repos you name and summarizes new releases, skipping the noise.

    skillinstructionsworkflowrepo-watch-list

    by Muse Skills editors · Written for this directory

    View
  • Dependency Update Triage

    Turns a scary outdated-dependencies list into safe-now, review, and hold buckets.

    Tested in Museskillinstructionsworkflowreport

    by Muse Skills editors · Written for this directory

    View
  • Git Commit Writer

    Your diff in, conventional-commit message out.

    Tested in Museprompt packprompt-text

    by Muse Skills editors · Written for this directory

    View