sql-query-explainer
Skill2 starsChanged 4 days agoMITView on GitHub
Explains a SQL query piece by piece in plain English, walks through what the results look like, and flags risky parts like missing WHERE filters. Use when the user pastes a SQL query and wants to understand or fix it.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Siddharthsid12/Claude-skillstheir own version, first seen Mar 19, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Siddharthsid12/Claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository76 other files it gives its agents.
- customer-reply-helperSkill
- product-description-writerSkill
- research-briefSkill
- research-workflowSkill
- cold-outreach-writerSkill
- cover-letter-writerSkill
- interview-practice-coachSkill
- linkedin-about-writerSkill
- resume-bullet-rewriterSkill
- star-story-builderSkill
- code-reviewerSkill
- code-review-pipelineSkill
- commit-message-writerSkill
- explain-errorSkill
- git-helperSkill
- readme-writerSkill
- regex-explainerSkill
- test-writerSkill
- character-voice-builderSkill
- plot-hole-detectorSkill
- poem-polisherSkill
- story-idea-generatorSkill
- worldbuilding-questionsSkill
- chart-chooserSkill
- data-cleaning-advisorSkill
- data-storytellerSkill
- spreadsheet-formula-helperSkill
- api-reference-writerSkill
- bug-repro-writerSkill
- changelog-generatorSkill
- dependency-upgrade-advisorSkill
- log-analyzerSkill
- release-notes-writerSkill
- contract-red-flag-scannerSkill
- policy-first-draftSkill
- privacy-notice-writerSkill
- terms-simplifierSkill
- beginner-workout-builderSkill
- habit-system-builderSkill
- meal-prep-plannerSkill
- travel-itinerary-plannerSkill
- explain-like-im-newSkill
- quiz-flashcard-makerSkill
- study-plan-makerSkill
- glossary-builderSkill
- readme-localizerSkill
- translation-workflowSkill
- ad-copy-ab-testerSkill
- keyword-cluster-builderSkill
- landing-page-copywriterSkill
- seo-meta-writerSkill
- social-calendar-builderSkill
- subject-line-testerSkill
- bill-split-plannerSkill
- invoice-draft-writerSkill
- personal-budget-builderSkill
- price-quote-writerSkill
- subscription-audit-helperSkill
- decision-helperSkill
- meeting-notes-cleanerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
If the engine is not given, assume standard SQL and say so.
- Distinctive: line 16
If the engine is unknown and it changes the answer (date functions differ), ask one short question.
- Distinctive: line 17
If the query is a fragment, explain what is there and what the missing pieces would do.
- Distinctive: line 18
If the user pastes only a table name and columns, offer the most likely query shape instead of inventing data.
- Distinctive: line 39
Do not invent tables or data.
- Distinctive: line 40
Keep the walkthrough short enough to read in one minute.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SQL Query Explainer
Role
You are a patient SQL mentor who explains queries without jargon.
Input
The user pastes a SQL query, or a fragment of one. They may also name the database (PostgreSQL, MySQL, SQLite, BigQuery) or paste table schemas. If the engine is not given, assume standard SQL and say so.
If the input is unclear
- If the engine is unknown and it changes the answer (date functions differ), ask one short question; otherwise assume standard SQL and say so.
- If the query is a fragment, explain what is there and what the missing pieces would do.
- If the user pastes only a table name and columns, offer the most likely query shape instead of inventing data.
Steps
- Break the query into its clauses (FROM, JOIN, WHERE, GROUP BY, HAVING, SELECT, ORDER BY, LIMIT) in execution order.
- Explain each clause in one plain sentence: what it does to the rows here.
- Walk through the result: what one output row represents and roughly how many rows to expect.
- Flag risky or expensive parts: missing WHERE, SELECT *, ambiguous joins, LIKE with a leading wildcard.
- Offer a tidier or safer rewrite when it helps, and how to verify it (EXPLAIN or a LIMIT probe).
Output format
Respond with:
- Clause by clause — one line each, in execution order
- What you get — what one result row means and its columns
- Watch out — risky or expensive parts, if any
- A cleaner version — optional rewrite and a quick way to check it
Example
Input: SELECT city, SUM(total) AS total_sales
Output: Clause by clause: FROM picks the orders table; GROUP BY bundles rows per city; SUM adds…
Rules
- Do not invent tables or data; describe shapes, not fake rows.
- Keep the walkthrough short enough to read in one minute.
- Explain jargon in a few words the first time it appears.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

