databricks-ai-function…
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Create Databricks AI/BI dashboards. Must use when creating, updating, or deploying Lakeview dashboards as Databricks Dashboard have a unique json structure. CRITICAL: You MUST test ALL SQL queries via CLI BEFORE deploying. Follow guidelines strictly.
Claude Code
$ npx -y skills add databricks/databricks-agent-skills --skill databricks-aibi-dashboards --agent claude-code
Codex
$ npx skills add databricks/databricks-agent-skills --skill databricks-aibi-dashboards -a codex -y
Cursor
$ npx skills add databricks/databricks-agent-skills --skill databricks-aibi-dashboards -a cursor -y
Gemini CLI
$ npx skills add databricks/databricks-agent-skills --skill databricks-aibi-dashboards -a gemini-cli -y
GitHub Copilot
$ npx skills add databricks/databricks-agent-skills --skill databricks-aibi-dashboards -a github-copilot -y
OpenCode
$ npx skills add databricks/databricks-agent-skills --skill databricks-aibi-dashboards -a opencode -y
Windsurf
$ npx skills add databricks/databricks-agent-skills --skill databricks-aibi-dashboards -a windsurf -y
name: databricks-aibi-dashboards description: "Create Databricks AI/BI dashboards. Must use when creating, updating, or deploying Lakeview dashboards as Databricks Dashboard have a unique json structure. CRITICAL: You MUST test ALL SQL queries via CLI BEFORE deploying. Follow guidelines strictly." compatibility: Requires databricks CLI (>= v1.0.0) metadata: version: "0.2.3" parent: databricks-core
Create Databricks AI/BI dashboards (formerly Lakeview dashboards). A dashboard should be showing something relevant for a human, typically some KPI on the top, and based on the story, some graph (often temporal), and we see "something happens". **Follow these guidelines strictly.**
> **Building a dashboard, in order:** profile the data ([Steps 1-3](#new-dashboard-creation-workflow)) → pick widgets from the [Widget catalog](#widget-catalog) → read [4-examples.md](references/4-examples.md) end to end (a complete dashboard JSON) → read the spec section of each widget you picked (catalog Spec column) and [3-filters.md](references/3-filters.md) for filters → build the JSON, test every query, deploy ([Step 4](#step-4-plan-and-build-the-dashboard-json), [Step 5](#step-5-deploy)).
> **Wrong version = broken widget!** The #1 cause of dashboard errors: use the `v` below in `spec.version`. Spec = where the widget's exact JSON is (a section named after it): **1** [1-widget-specifications.md](references/1-widget-specifications.md), **2** [2-advanced-widget-specifications.md](references/2-advanced-widget-specifications.md), **F** [3-filters.md](references/3-filters.md), **6** [6-custom-visualizations.md](references/6-custom-visualizations.md). Anchored index: [1- § Widget Index](references/1-widget-specifications.md#widget-index-version--where-documented).
| Widget (`widgetType`) | Use for | v | Spec | |---|---|---|---| | text (markdown) | titles, section headers, notes; no spec block | – | 1 | | `counter` | a KPI number, with sparkline and period-over-period delta | 2 | 1 | | `table` | row-level detail, high-cardinality lists | 2 | 1 | | `bar`, `line` | comparisons across categories; trends over time (stacked/grouped, horizontal, annotations) | 3 | 1 | | `pie` | share of a few categories | 3 | 1 | | `area` | trends showing volume or stacked composition | 3 | 2 | | `scatter` | relationship between two measures; bubble = size by a third | 3 | 2 | | `combo` | bar + line on one chart, metrics with different scales (dual axis) | 1 | 2 | | `pivot` | cross-tab (dimensions on rows and columns) with conditional cell styling; cohort retention | 3 | 2 | | `histogram` | frequency distribution of a numeric column | 3 | 2 | | `heatmap` | "X by Y" matrix, color = aggregate | 3 | 2 | | `box` | distribution (median, quartiles, outliers) across categories | 1 | 2 | | `funnel` | stage-by-stage conversion | 1 | 2 | | `waterfall` | positive/negative deltas to a total (P&L bridge, MoM walk) | 1 | 2 | | `sankey` | flow between two or more stages | 1 | 2 | | `forecast-line` | history continued by a forecast band (`AI_FORECAST` SQL) | 1 | 2 | | `gantt` | schedules and events with a start and end | 1 | 2 | | `symbol-map` | lat/lon points (bubble map) | 2 | 1 | | `choropleth-map` | regions (countries, states) colored by value | 1 | 2 | | `path-map` | routes and ordered tracks | 1 | 2 | | `filter-single-select`, `filter-multi-select`, `filter-date-range-picker`, `filter-date-picker`, `filter-text-entry` | global or page-level filters | 2 | F | | `range-slider` | numeric range filter | 2 | F | | `custom-vega-viz` | what standard widgets can't draw (bullet, layered, gauge, radar, sunburst) | 1 | 6 |
There is no `cohort` widget (use `pivot` with a color-scale cell style) and no Genie widget (see [Linking a Genie Space](#linking-a-genie-space-optional)).
**Standard or custom?** Use standard widgets by default. Use Vega-Lite when the required visualization cannot be expressed with standard widgets. A different aggregation, color palette, tooltip, reference line, or small multiple usually does not require a custom specification. Case-by-case guide: [6-custom-visualizations.md § Standard widget or custom Vega-Lite?](references/6-custom-visualizations.md#standard-widget-or-custom-vega-lite).
For custom charts, confirm the required marks and transforms are supported by **Vega-Lite**. It does not support every Vega example or chart type. Keep joins and business calculations in dataset SQL; the custom specification controls how the returned data is drawn.
> **When a custom app fits better:** dashboards are for read-only KPIs, charts, and filters over governed tables. For write-back / data entry, UI or interactions beyond the grid, embedded or auth-gated workflows, or a Genie/chat assistant as the main surface, build a Databricks App with `databricks-apps` (it brings in `databricks-app-design`). Linking an "Ask Genie" space to *this* dashboard stays here (see Linking a Genie Space below).
| Task | Command | |------|---------| | List warehouses | `databricks warehouses list` | | List tables | `databricks experimental aitools tools query --warehouse WH "SHOW TABLES IN catalog.schema"` | | Get schema | `databricks experimental aitools tools discover-schema catalog.schema.table1 catalog.schema.table2` | | Test query | `databricks experimental aitools tools query --warehouse WH "SELECT..."` | | Create dashboard | `databricks lakeview create --display-name "X" --warehouse-id "WH" --dataset-catalog CATALOG --dataset-schema SCHEMA --serialized-dashboard "$(cat file.json)" --json '{"parent_path": "/Workspace/Users/<you>/path"}'` (flag-only vs JSON-only fields: [Step 5](#step-5-deploy)) | | Update dashboard | `databricks lakeview update DASHBOARD_ID --dataset-catalog CATALOG --dataset-schema SCHEMA --serialized-dashboard "$(cat file.json)"`: **re-pass both dataset flags** (update replaces the dashboard; omitting them nulls the defaults and breaks every bare-table query) | |
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…
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…
Databricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection, and…
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,…