databricks-ai-function…
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Discover, explore, and query Databricks data via Genie — the CLI equivalent of the Genie One MCP. MUST be invoked whenever the user asks to find or locate data ('what tables are in X', 'where does X live', 'which catalog/schema has Y'), answer a natural-language question about
Claude Code
$ npx -y skills add databricks/databricks-agent-skills --skill databricks-data-discovery --agent claude-code
Codex
$ npx skills add databricks/databricks-agent-skills --skill databricks-data-discovery -a codex -y
Cursor
$ npx skills add databricks/databricks-agent-skills --skill databricks-data-discovery -a cursor -y
Gemini CLI
$ npx skills add databricks/databricks-agent-skills --skill databricks-data-discovery -a gemini-cli -y
GitHub Copilot
$ npx skills add databricks/databricks-agent-skills --skill databricks-data-discovery -a github-copilot -y
OpenCode
$ npx skills add databricks/databricks-agent-skills --skill databricks-data-discovery -a opencode -y
Windsurf
$ npx skills add databricks/databricks-agent-skills --skill databricks-data-discovery -a windsurf -y
name: databricks-data-discovery
description: "Discover, explore, and query Databricks data via Genie — the CLI equivalent of the Genie One MCP. MUST be invoked whenever the user asks to find or locate data ('what tables are in X', 'where does X live', 'which catalog/schema has Y'), answer a natural-language question about the data, or write a SQL query."
compatibility: Requires databricks CLI >= v1.9.0 for `databricks genie ask` (older CLIs fall back to the deprecated `databricks experimental genie ask` alias)
metadata:
version: "0.1.0"
parent: databricks-coreThis skill **routes data work** — decide first:
generating SQL → delegate to **Genie One**: `databricks genie ask -s <session-label> "..."` (see Routing below).
Genie One just needs an authenticated CLI profile (the parent `databricks-core` skill covers auth/profiles if you need it) — but route the data request to Genie first; don't detour into manual catalog browsing.
**Route to Genie when the request is about the data:**
live?", which catalog/schema holds something. Let Genie resolve a fuzzy or partial name across all your data instead of guessing or grepping catalogs yourself.
most…", trends, breakdowns.
into a file.
**Route to your own coding agent (do NOT use Genie) for everything else:**
Genie finds the data and produces the SQL; *you* write the file.
**Key principle:** data discovery, data questions, and query generation → Genie One. Everything else → your coding agent.
Genie runs *inside the Databricks data plane* with governed, first-hand access to the org's Unity Catalog metadata, metric views, and curated semantic context — context you do **not** have when reverse-engineering schemas with ad-hoc SQL. For data questions it is often higher-quality and more performant than doing the discovery yourself, and it keeps improving as a managed Databricks capability. Don't default to writing your own discovery SQL just because you can.
Always pass a session label with `-s`, and prefer reusing the **same** one: a follow-up can only continue a conversation if the first ask set the session label, and reusing it lets later questions build on everything asked so far ("summarize all of the above"). Use a fresh session label only to start a deliberately separate session, or distinct session labels to run several in parallel.
The command is `databricks genie ask` (CLI >= v1.9.0). On an older CLI it lives under `databricks experimental genie ask` — same flags and behavior; use that exact fallback if `databricks genie ask` is not found.
# Always pass a session label, and reuse the SAME one so follow-ups build on each other
databricks genie ask -s trips "How many bookings were there last week?"
databricks genie ask -s trips "Break that down by destination"
databricks genie ask -s trips "Summarize all of the above"
# --include-sql also prints the SQL Genie ran (use it to generate a query, too)
databricks genie ask -s trips "Write SQL for the top 5 destinations by revenue" --include-sql
# --output json gives a parseable result
databricks genie ask -s trips "Top 5 destinations by revenue" --output json
# → {"status":"completed","conversation_id":"…","text":"…","tool_calls":[{"name":"execute_sql","sql":"…","title":"…"}]}
# Older CLI (< v1.9.0) — same command under the deprecated experimental alias:
# databricks experimental genie ask -s trips "How many bookings were there last week?"Genie searches across all the data you can see, runs SQL, and streams a grounded answer — rendered with the executed SQL and, where it helps, a terminal chart. It auto-resolves a SQL warehouse (override with `--warehouse-id`); nothing to pick or set up.
they arrive. Answers usually take ~5–30s; a stalled stream (no data for ~10 min) fails with a clear message, and Ctrl-C or `kill` (SIGTERM) cancels cleanly.
per-shell session. Default to reusing one session label so follow-ups keep full context; use a fresh one only for a deliberately separate session. An expired session label just starts fresh on the next ask. No id to copy around.
(`-s q1`, `-s q2`, …) — independent session labels don't interfere. Within a single session label keep calls sequential: send a follow-up after the previous turn returns, and never fire two asks at once on the *same* session label (they'd split into two conversations and only one mapping would survive).
tool_calls[]}`, where `tool_calls` includes the SQL Genie executed; `--raw` dumps the raw event stream. Note `--output json` buffers and prints once at the end (no live streaming) — use it for parsing, the default text output for interactive use.
response (it's in the answer text, and `--i
Build on Databricks with AI coding agents such as Claude Code, Cursor, Codex, GitHub Copilot, and many others. This repository provides the skills and agent plugins for Databricks AI Tools.
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Databricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on Databricks…
Create Databricks AI/BI dashboards. Must use when creating, updating, or deploying Lakeview dashboards as Databricks Dashboard…
Design the UX of custom-code Databricks Apps (AppKit/React) data screens — KPI/overview pages, reports, charts, tables, and…
Python backend for Databricks Apps — FastAPI (default), Flask, Dash, Streamlit, Gradio, Reflex. **Default for a new Databricks…
Build apps on Databricks Apps platform. Use when asked to create data apps, analytics tools, or custom interactive…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…