CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

databricks-ai-functions

Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar, ai_gen, ai_analyze_sentiment, ai_similarity, ai_parse_document, ai_prep_search, ai_query, ai_forecast) to add AI capabilities directly to SQL and PySpark pipelines without managing model endpoints. Also covers document parsing and building custom RAG pipelines (parse → prep_search → index → query).

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Quality

Content

93%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.

An exemplary content body: executable SQL for every pattern, a staged document-processing pipeline with explicit error checkpoints, and clean one-level progressive disclosure into three real reference files. The only gap is the lack of an explicit fix-and-retry feedback loop for failed rows in the batch pipeline.

DimensionReasoningScore

Conciseness

The body is dense and lean: it assumes competence (colon operator for VARIANT, is_variant_null for JSON null, SDP-vs-notebook swap stated in one sentence) and never explains basic concepts. The 14-row function table carries real per-cell information (inputs, outputs, extra prereqs), and cost/version warnings are single lines. Nothing beyond one orienting sentence could be trimmed.

5 / 5

Actionability

Every pattern ships copy-paste-ready SQL: the chained enrichment SELECT, PySpark expr()/selectExpr forms, ai_mask, the ai_similarity self-join with threshold, the ai_forecast table-valued call, and full 3-stage SDP and RAG pipelines with real paths and parameters. Common Issues gives concrete fixes such as failOnError => false and the explode/variant_get cast.

5 / 5

Workflow Clarity

The document pipeline is clearly sequenced (Stage 1 parse + filter parse errors, Stage 2 classify, Stage 3 extract) with explicit validation checkpoints: is_variant_null(parsed:error_status) filtering, retained result:error_message / extract_error columns, and the JSON-null vs SQL NULL nuance. It falls short of anchor 5 only because error handling stops at retaining/routing rows to a sidecar table — there is no fix-and-retry feedback loop.

4 / 5

Progressive Disclosure

SKILL.md is a true overview: a function table, patterns, and pipelines inline, with bulk detail split into three one-level-deep reference files (verified to exist, with per-function anchors resolving to real headers and no further nesting — references link only back to SKILL.md and one external doc). The Reference Files section annotates each file's purpose, making navigation easy.

5 / 5

Total

19

/

20

Passed

Description

75%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 highly specific, well-scoped description that enumerates every function and names the exact pipeline stages for RAG. Its main weakness is the absence of an explicit "Use when..." trigger clause, which leaves the activation conditions implied rather than stated.

Suggestions

Add an explicit trigger clause such as "Use when adding AI/LLM processing to Databricks SQL or PySpark pipelines, or when a task needs classification, extraction, summarization, PII masking, translation, sentiment, or forecasting" to raise completeness.

Include plain-language task keywords users would naturally say ("PII redaction", "sentiment analysis", "translate", "forecast", "parse PDFs") alongside the function names to strengthen trigger term coverage.

DimensionReasoningScore

Specificity

Enumerates all 14 function names (ai_classify, ai_decide, ai_extract, ... ai_forecast) plus concrete capabilities: "add AI capabilities directly to SQL and PySpark pipelines without managing model endpoints", "document parsing and building custom RAG pipelines (parse → prep_search → index → query)". This is comprehensive concrete coverage, exceeding the 'minor gaps' of anchor 4.

5 / 5

Completeness

The "what" is clear and specific, but there is no "Use when..." clause or equivalent explicit trigger guidance — the "when" is only weakly implied by the function list and the "Also covers" sentence. Per the guideline, a missing explicit trigger clause caps completeness at 3.

3 / 5

Trigger Term Quality

Natural terms present: "Databricks", "AI Functions", the function names themselves (ai_summarize, ai_translate, ai_forecast), "SQL", "PySpark", "RAG", "document parsing". However, plain-language task synonyms users would say (e.g. "PII masking", "sentiment analysis", "translation", "forecasting") appear only implicitly inside function names, so a few natural terms are missing relative to anchor 5's comprehensive synonym coverage.

4 / 5

Distinctiveness Conflict Risk

Clear niche: Databricks built-in AI Functions called from SQL/PySpark, explicitly "without managing model endpoints", which distinguishes it from sibling skills like databricks-model-serving. The unique function names are distinct triggers with minimal conflict risk.

5 / 5

Total

17

/

20

Passed

Validation

87%

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

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

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

Warning

relative_links

Relative link issues: 3 suspicious

Warning

Total

14

/

16

Passed

Repository

databricks/databricks-agent-skills

Path

plugins/databricks/claude/skills/databricks-ai-functions/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.