CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

databricks-dbsql

This guide summarizes Databricks SQL capabilities including scripting, stored procedures, transactions, materialized views, geospatial functions, AI functions, and file ingestion. It provides SQL examples for common patterns and guidance on modeling, performance, and testing. Reference files are listed for deeper syntax and feature details.

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

The canonical home for this skill is databricks-dbsql in databricks/databricks-agent-skills

SKILL.md
Quality
Evals
Security

Quality

Content

82%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, highly actionable quick-reference skill: complete executable SQL patterns covering every advertised feature, disciplined token usage, and clean one-level-deep disclosure into real reference files. The remaining gaps are minor: version-gated details inline in the overview table, no general validation-loop guidance for batch operations, and two organizational loose ends (cross-skill links inside a reference file, orphaned assets).

Suggestions

Rewrite the links in references/ai-functions.md that point outside the bundle (../../databricks-ai-functions/references/*.md) to either inline the needed model-discovery/contract details or reference files within this skill, so navigation stays one level deep and does not depend on a sibling skill being installed.

Reference the assets/ files (databricks.png, databricks.svg) from SKILL.md where they are meant to be used, or remove them, so the bundle contains no orphaned files.

Add a short explicit validation loop for batch/destructive patterns (e.g., run MERGE/MV-refresh SQL via 'databricks experimental aitools tools query' with LIMIT/row-count checks on a staging target before promoting), generalizing the test-before-deploy guideline beyond the single stored-procedure example.

DimensionReasoningScore

Conciseness

The body is efficient: a compact Quick Reference table, code examples whose comments are purposeful ('-- safety limit', '-- Set up connection first (one-time)'), and terse guideline bullets, with no explanation of concepts Claude already knows. Minor trimmable elements keep it below anchor 5: the 'Since' column embeds version numbers (DBR 16.3+, 17.0+) outside any deprecation/old-patterns section, and a few longer examples (the ~23-line H3 proximity query, the stored procedure) could be tightened or pushed to references.

4 / 5

Actionability

All 11 patterns are complete, executable SQL (a full CREATE PROCEDURE with EXIT HANDLER and SIGNAL, a scheduled materialized view, read_files with schemaHints and pathGlobFilter, http_request including one-time connection setup) that cover the common case for each feature. The testing guideline is fully concrete, giving the exact CLI command ('databricks experimental aitools tools query') plus a version-compatible fallback (set DATABRICKS_WAREHOUSE_ID), matching the copy-paste-ready anchor.

5 / 5

Workflow Clarity

The lookup workflow (feature -> Quick Reference row -> inline pattern -> reference file for full syntax) is unambiguous, and validation checkpoints are present for the risky patterns: the upsert procedure embeds SQLEXCEPTION handling with a re-raisable SIGNAL, and the guidelines mandate 'Test SQL via CLI ... before deploying'. It falls short of anchor 5 because there is no explicit stepwise develop/validate/iterate sequence or feedback-loop guidance for the batch patterns (MERGE, scheduled refreshes) beyond the single embedded example.

4 / 5

Progressive Disclosure

The overview is well split: bulk detail (39 H3 functions, 80+ ST functions, full option lists) lives in six real, directly-linked reference files, each row and the Reference Files table signaling contents and 'When to Read'. Verified all six referenced files exist and are one level deep, but two gaps hold it below anchor 5: references/ai-functions.md links out of the bundle to '../../databricks-ai-functions/references/*.md' (an external cross-skill dependency that adds a hop and breaks if the sibling skill is absent), and the assets/ files (databricks.png, databricks.svg) are never referenced from the body.

4 / 5

Total

17

/

20

Passed

Description

91%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description with explicit what/when structure and an exceptionally thorough, synonym-aware trigger list in third-person voice. The main improvement lever is that the capability statement is domain-generic ('advanced features and capabilities') rather than action-based, and a few generic SQL trigger terms create slight misfire risk outside Databricks contexts.

DimensionReasoningScore

Specificity

The what-statement 'Databricks SQL (DBSQL) advanced features and SQL warehouse capabilities' is domain-level rather than action-based, but the trigger list explicitly enumerates concrete capability areas (SQL scripting, stored procedures, materialized views, pipe syntax, geospatial H3/ST, collations, AI functions, http_request, remote_query, read_files, recursive CTEs, transactions, temp tables), giving broad and specific coverage. It exceeds anchor 3 (only 1-2 concrete actions) but the capability sentence itself is not phrased as concrete actions, so anchor 5 is not fully met.

4 / 5

Completeness

Both what and when are explicit: 'Databricks SQL (DBSQL) advanced features and SQL warehouse capabilities' states the what, and 'This skill MUST be invoked when the user mentions: [concrete phrase list]' plus 'SHOULD also invoke when the user asks about SQL best practices...' gives maximally explicit when-guidance with concrete trigger phrases. This clearly matches the both-answered-with-concrete-triggers anchor rather than the anchor-4 case where 'when' could be more explicit.

5 / 5

Trigger Term Quality

The 25+ term list comprehensively covers natural user phrasings including synonyms and syntax variants ('temp table'/'temporary view', 'pipe syntax'/'|>'/'pipe operator', 'materialized view'/'CREATE MATERIALIZED VIEW', 'recursive CTE'/'WITH RECURSIVE', both function names like 'ai_query' and category phrases like 'AI function'). These are exactly the phrases a user would say when needing this skill, matching the comprehensive-with-synonyms anchor; no meaningful natural term is missing.

5 / 5

Distinctiveness Conflict Risk

The niche is clear (DBSQL-specific triggers like 'DBSQL', 'SQL warehouse', 'ai_query', 'Lakehouse Federation', 'h3_longlatash3' family) with minimal conflict against unrelated skills. However, several MUST-invoke terms are generic SQL vocabulary ('stored procedure', 'temp table', 'collation', 'materialized view', 'multi-statement transaction') that could fire on non-Databricks questions, creating minor overlap risk with closely related SQL or databricks-core skills; this fits 'mostly distinct; minor overlap risk' better than the clear-niche anchor 5.

4 / 5

Total

18

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

databricks/databricks-agent-skills

Path

plugins/databricks/antigravity/skills/databricks-dbsql/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.