sql-correctness
Installation
SKILL.md
SQL Correctness Rubric
When evaluating SQL in agent traces, check these dimensions:
1. Unity Catalog Namespace
- Must use 3-level namespace:
catalog.schema.table - Never use unqualified table names
- Catalog/schema should match the user's context (not hardcoded
main.defaultunless appropriate)
2. Modern DDL Syntax
- Use
CREATE OR REPLACEinstead ofDROP IF EXISTS+CREATE - Use
ALTER TABLE ... SET TBLPROPERTIESfor table properties - Use
COMMENT ONfor documentation
3. Tool Selection
- Must use
mcp__databricks__execute_sqlfor SQL execution - Must NOT use
Bashwithdatabricks sqlCLI as a workaround - Must NOT use notebook execution for simple queries