What problem does it solve?
This Skill removes the uncertainty and manual effort of composing, validating, and executing SQL queries by guiding schema inspection, join planning, and safe execution so users can reliably retrieve and aggregate data without risking destructive operations.
Core Features & Use Cases
- Schema-aware query construction: Inspect table schemas to choose relevant columns and join keys.
- Simple and complex query workflows: Build single-table SELECTs, multi-table JOINs, aggregations, and subqueries with GROUP BY and ORDER BY.
- Validation and error recovery: Verify JOIN conditions and GROUP BY correctness, handle empty results, syntax errors, and timeouts, and apply safe defaults such as LIMIT.
- Use Case: Produce a revenue-by-country report by joining Invoice and Customer tables, aggregating totals, ordering by revenue, and limiting results.
Quick Start
Use the query-writing skill to generate and execute a SELECT query that returns the top 5 customers by total invoice amount joining the Invoice and Customer tables.