sql-correctness
БесплатноБез исполняемых скриптовНе проверенSQL evaluation criteria for Databricks. Load when the trace contains execute_sql tool calls or SQL code in responses. Covers syntax validity, Unity Catalog…
от databricks-solutions★ 2 000 звёзд на GitHubОб этом скилле
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
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
DROPoperations unless explicitly requested
See detailed patterns for specific syntax examples.
Установить sql-correctness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sql-correctness?
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.
Как установить скилл sql-correctness?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sql-correctness запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic