databricks/databricks-agent-skills/databricks-aibi-dashboards
Claude Code and agent skill by databricks/databricks-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install databricks/databricks-agent-skills/databricks-aibi-dashboardsSKILL.md
The same SKILL.md was published earlier as databricks/databricks-agent-skills/databricks-aibi-dashboards.
AI/BI Dashboard Skill
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) → pick widgets from the Widget catalog → read 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 for filters → build the JSON, test every query, deploy (Step 4, Step 5).
Widget catalog
Wrong version = broken widget! The #1 cause of dashboard errors: use thevbelow inspec.version. Spec = where the widget's exact JSON is (a section named after it): 1 1-widget-specifications.md, 2 2-advanced-widget-specifications.md, F 3-filters.md, 6 6-custom-visualizations.md. Anchored index: 1- § Widget Index.
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).
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?.
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 withdatabricks-apps(it brings indatabricks-app-design). Linking an "Ask Genie" space to this dashboard stays here (see Linking a Genie Space below).
Quick Reference
| 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) | |
| 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) | |
| Publish / unpublish | databricks lakeview publish DASHBOARD_ID --warehouse-id WH --embed-credentials / databricks lakeview unpublish DASHBOARD_ID: --embed-credentials runs viewers' queries as the publisher so /published works without table access; resets on every publish. New dashboard: pass it unless queries must run as each viewer (RLS / individual permissions). Republish: keep the current mode (Updating). | |
| List / get / delete | databricks lakeview list / databricks lakeview get DASHBOARD_ID / databricks lakeview trash DASHBOARD_ID | |
| Tag after creation (default; tracks this skill's resources) | databricks workspace-entity-tag-assignments create-tag-assignment dashboards DASHBOARD_ID aidevkit_project --tag-value ai-dev-kit |
`--warehouse` flag: ifaitools tools queryfails withunknown flag: --warehouseon your CLI version, drop the flag and setDATABRICKS_WAREHOUSE_ID=WHin the environment (picked up automatically).
NEW DASHBOARD CREATION WORKFLOW
You MUST test ALL SQL queries via CLI BEFORE deploying. Follow the overall logic in these steps for new dashboard - Skipping validation causes broken dashboards.
Step 1: Get Warehouse ID if not already known
Step 2: Discover Table Schemas and existing data pattern
Know the data first: this exploration drives the Step 4 design (which widgets, filters, groupings).
Use discover-schema as the default — one call returns columns, types, sample rows, null counts, and row count. If you only know the schema, list tables first with query "SHOW TABLES IN ...".
databricks experimental aitools tools discover-schema catalog.schema.orders catalog.schema.customers
Then probe with aggregate SQL (cardinality, top values, distributions, trend grain, story confirmation) before designing; fan independent probes out in one multi-query call (--output json, check each statement's state): 7-dashboard-design.md § Profiling the data.
Dashboard queries are different: inside the dashboard JSON use bare table names (✅FROM trips, ❌FROM samples.nyctaxi.trips); a hardcoded prefix wins over the dataset flags and isn't portable (Dataset architecture).
Step 3: Verify Data Matches Story
Before finalizing, run the SQL Queries you intend to add in each dataset to confirm that they run properly and that the result are valid. Widgets render the query output, so the values must also make sense at a business level.
If values don't match expectations, ensure the query is correct, fix the data if you can, or adjust the story before creating the dashboard.
Step 4: Plan and build the dashboard JSON
- Plan the widgets: pick each one from the Widget catalog, map it to a dataset, and note which filter fields it needs (example plan).
- Read [4-examples.md](references/4-examples.md) end to end before writing any JSON. It's a complete working dashboard exercising every construct (dataset measures +
MEASURE(), sparkline counters, forecast-line with annotations, pivot with conditional cells, symbol-map, histogram, range-slider filter, theme). Keep its structure; swap the tables, metrics, palette, and narrative for the user's data and story. - Read the spec section of every widget you picked (catalog Spec column) for its exact JSON and version, and 3-filters.md for filters.
- Check the filters: every dataset you want filtered must contain the filter field (typically group by it). A pre-aggregated table without dates WON'T be date-filtered.
- Build the dashboard JSON as a local working file (intermediate step, not the deliverable), following the skeleton and the implementation guidelines.
Step 5: Deploy
Now deploy the JSON with databricks lakeview create (below). The task isn't complete until it succeeds and returns a dashboard ID; the JSON file is only an intermediate artifact.
Give the user the dashboard link (host: databricks auth env -o json → .env.DATABRICKS_HOST; note the v3, plain /sql/dashboards/ is the legacy path):
- Draft:
https://<host>/sql/dashboardsv3/<DASHBOARD_ID> - Published: append
/published(only valid once you've rundatabricks lakeview publish DASHBOARD_ID)
After deploying, the Quick Reference lakeview commands manage the lifecycle (list, get, update, publish, unpublish, trash, tag).
UPDATING AN EXISTING DASHBOARD
To change a dashboard that already exists, build the updated JSON with the creation workflow above, then deploy it with update + publish on the same DASHBOARD_ID — never re-run create/import. Commands: Quick Reference (update must re-pass --dataset-catalog / --dataset-schema).
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/databricks-aibi-dashboards/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/databricks/databricks-agent-skills/databricks-aibi-dashboards)