databricks-solutions/ai-dev-kit/sql-correctness

Claude Code and agent skill by databricks-solutions/ai-dev-kit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

SQL evaluation criteria for Databricks. Load when the trace contains execute_sql tool calls or SQL code in responses. Covers syntax validity, Unity Catalog patterns, and Databricks-specific SQL features.

Install

npx vskill@latest install databricks-solutions/ai-dev-kit/sql-correctness

SKILL.md

The same SKILL.md was published earlier as databricks-solutions/ai-dev-kit/sql-correctness.

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.default unless appropriate)
2. Modern DDL Syntax
  • Use CREATE OR REPLACE instead of DROP IF EXISTS + CREATE
  • Use ALTER TABLE ... SET TBLPROPERTIES for table properties
  • Use COMMENT ON for documentation
3. Tool Selection
  • Must use mcp__databricks__execute_sql for SQL execution
  • Must NOT use Bash with databricks sql CLI as a workaround
  • Must NOT use notebook execution for simple queries
4. Databricks SQL Features
  • Use Delta-specific syntax where appropriate (MERGE INTO, OPTIMIZE, VACUUM)
  • Use IDENTIFIER() function for dynamic table references
  • Use SELECT * FROM read_files() for file ingestion, not COPY INTO (unless streaming)
5. Syntax Validity
  • SQL must be syntactically valid for Databricks SQL (Spark SQL dialect)
  • String literals use single quotes, identifiers use backticks if needed
  • Semicolons at statement boundaries
6. Safety
  • No string interpolation for user-provided values in SQL
  • Use parameterized queries where applicable
  • No DROP operations unless explicitly requested

See detailed patterns for specific syntax examples.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,581
Repository forks
343
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Jul 2026, 4 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/databricks-solutions/ai-dev-kit/sql-correctness/badge)](https://verified-skill.com/skills/databricks-solutions/ai-dev-kit/sql-correctness)

Something wrong with this skill or its page? Tell us.