Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Translates natural language to SQL, optimizes query performance, and interprets EXPLAIN plans for SQLite and PostgreSQL.
14% 82%+68 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 3 of 22 without it.
3 of 3 safety checks passed
24 agent runs
SQL query assistant — natural language to SQL translation, query optimization analysis, and EXPLAIN plan interpretation.
| Feature | Description |
|---|---|
| Schema Extraction | Extracts database table structure (columns, types, indexes, foreign keys, sample data) to provide context for NL→SQL |
| Natural Language → SQL | Translates natural language descriptions into SQL queries using schema context |
| Query Optimization Analysis | Detects SQL anti-patterns based on 13 rules and provides optimization suggestions |
| EXPLAIN Interpretation | Runs EXPLAIN and interprets the query plan, identifying full table scans, missing indexes, and more |
schema command to extract the database table structureoptimize command to check if the generated SQL can be improvedexplain command to verify the query execution plan# Step 1: Extract schema (compact mode, suitable for LLM context)
python3 scripts/sql_query_helper.py --db-path data.db schema --compact
# Step 2: Analyze SQL optimization suggestions
python3 scripts/sql_query_helper.py optimize "SELECT * FROM orders WHERE user_id = 100"
# Step 3: View EXPLAIN execution plan
python3 scripts/sql_query_helper.py --db-path data.db explain "SELECT * FROM orders WHERE user_id = 100"
# Extract full schema (JSON format, with sample data)
python3 scripts/sql_query_helper.py --db-path data.db schema
Next to this one in the catalogue, plus more from the same author.