What problem does it solve? Translating natural language questions into correct SQLite queries is error-prone: ambiguous column names, evidence hints that must be followed exactly, and subtle choices like DISTINCT vs COUNT(*) often break accuracy. This Skill gives an AI agent the tools and expert knowledge to explore a database, apply proven SQL-generation tips, and pick the best query among multiple candidates. ## Core Features & Use Cases - SQL Execution & Schema Probing: Run read-only queries against a SQLite database to inspect schema, verify row counts, and preview values, with automatic statistical summaries for large results. - Deterministic Tip Selection: Retrieve relevant expert SQL tips (evidence enforcement, string matching, aggregation, joins) selected by rule-based logic matched to the question and evidence. - Reward-Model Candidate Ranking: Generate several SQL candidates and score them with a trained reward model to pick the best one for in-distribution datasets like BIRD. - Use Case: Given a BIRD benchmark question such as "What is the highest free meal count for K-12 schools in Alameda County?", the agent probes the frpm table, pulls tips about exact column usage, drafts candidate queries, ranks them, and outputs a JSON object with selected tables, columns, and the final SQL. ## Quick Start Ask the agent to answer a natural language question over a SQLite database and return the final SQL as a JSON object with selected tables and columns.