thomazrossito/data-agents/databricks-aibi-dashboards
Claude Code and agent skill by thomazrossito/data-agents
- community
Checking that the SKILL.md file is still in the repository.
Create Databricks AI/BI dashboards. Use when creating, updating, or deploying Lakeview dashboards. CRITICAL: You MUST test ALL SQL queries via execute_sql BEFORE deploying. Follow guidelines strictly.
Install
npx vskill@latest install thomazrossito/data-agents/databricks-aibi-dashboardsSKILL.md
The same SKILL.md was published earlier as thomazrossito/data-agents/databricks-aibi-dashboards.
AI/BI Dashboard Skill
Create Databricks AI/BI dashboards (formerly Lakeview dashboards). Follow these guidelines strictly.
CRITICAL: MANDATORY VALIDATION WORKFLOW
You MUST follow this workflow exactly. Skipping validation causes broken dashboards.
WARNING: If you deploy without testing queries, widgets WILL show "Invalid widget definition" errors!
Available MCP Tools
| Tool | Description | |
|---|---|---|
get_table_stats_and_schema | STEP 1: Get table schemas for designing queries | |
execute_sql | STEP 3: Test SQL queries - MANDATORY before deployment! | |
manage_warehouse (action="get_best") | Get available warehouse ID | |
manage_dashboard | STEP 5: Dashboard lifecycle management (see actions below) |
manage_dashboard Actions
| Action | Description | Required Params | |
|---|---|---|---|
create_or_update | Deploy dashboard JSON (only after validation!) | display_name, parent_path, serialized_dashboard, warehouse_id | |
get | Get dashboard details by ID | dashboard_id | |
list | List all dashboards | (none) | |
delete | Move dashboard to trash | dashboard_id | |
publish | Publish a dashboard | dashboard_id, warehouse_id | |
unpublish | Unpublish a dashboard | dashboard_id |
Example usage:
Reference Files
| What are you building? | Reference | |
|---|---|---|
| Any widget (text, counter, table, chart) | 1-widget-specifications.md | |
| Dashboard with filters (global or page-level) | 2-filters.md | |
| Need a complete working template to adapt | 3-examples.md | |
| Debugging a broken dashboard | 4-troubleshooting.md |
Implementation Guidelines
1) DATASET ARCHITECTURE
- One dataset per domain (e.g., orders, customers, products)
- Exactly ONE valid SQL query per dataset (no multiple queries separated by
;) - Always use fully-qualified table names:
catalog.schema.table_name - SELECT must include all dimensions needed by widgets and all derived columns via
ASaliases - Put ALL business logic (CASE/WHEN, COALESCE, ratios) into the dataset SELECT with explicit aliases
- Contract rule: Every widget
fieldNamemust exactly match a dataset column or alias
2) WIDGET FIELD EXPRESSIONS
CRITICAL: Field Name Matching RuleThenameinquery.fieldsMUST exactly match thefieldNameinencodings.If they don't match, the widget shows "no selected fields to visualize" error!
Correct pattern for aggregations:
WRONG - names don't match:
Allowed expressions in widget queries (you CANNOT use CAST or other SQL in expressions):
For numbers:
For dates (use daily for timeseries, weekly/monthly for grouped comparisons):
Simple field reference (for pre-aggregated data):
If you need conditional logic or multi-field formulas, compute a derived column in the dataset SQL first.
3) SPARK SQL PATTERNS
- Date math:
date_sub(current_date(), N)for days,add_months(current_date(), -N)for months - Date truncation:
DATE_TRUNC('DAY'|'WEEK'|'MONTH'|'QUARTER'|'YEAR', column) - AVOID
INTERVALsyntax - use functions instead
4) LAYOUT (12-Column Grid, NO GAPS)
Every page must include `"layoutVersion": "GRID_V1"` alongside pageType.
Each widget has a position: {"x": 0, "y": 0, "width": 4, "height": 4}
CRITICAL: Each row must fill width=12 exactly. No gaps allowed.
Recommended widget sizes:
| Widget Type | Width | Height | Notes | |
|---|---|---|---|---|
| Text header | 12 | 1 | Full width; use SEPARATE widgets for title and subtitle | |
| Counter/KPI | 4 | 3-4 | NEVER height=2 - too cramped! | |
| Line/Bar chart | 6 | 5-6 | Pair side-by-side to fill row | |
| Pie chart | 6 | 5-6 | Needs space for legend | |
| Full-width chart | 12 | 5-7 | For detailed time series | |
| Table | 12 | 5-8 | Full width for readability |
Standard dashboard structure:
5) CARDINALITY & READABILITY (CRITICAL)
Dashboard readability depends on limiting distinct values:
| Dimension Type | Max Values | Examples | |
|---|---|---|---|
| Chart color/groups | 3-8 | 4 regions, 5 product lines, 3 tiers | |
| Filters | 4-10 | 8 countries, 5 channels | |
| High cardinality | Table only | customer_id, order_id, SKU |
Before creating any chart with color/grouping:
- Check column cardinality (use
get_table_stats_and_schemato see distinct values) - If >10 distinct values, aggregate to higher level OR use TOP-N + "Other" bucket
- For high-cardinality dimensions, use a table widget instead of a chart
6) QUALITY CHECKLIST
Before deploying, verify:
- All widget names use only alphanumeric + hyphens + underscores
- Every page has `"layoutVersion": "GRID_V1"`
- All rows sum to width=12 with no gaps
- KPIs use height 3-4, charts use height 5-6
- Chart dimensions have ≤8 distinct values
- All widget fieldNames match dataset columns exactly
- Field `name` in query.fields matches `fieldName` in encodings exactly (e.g., both
"sum(spend)") - Counter datasets: use
disaggregated: truefor 1-row datasets,disaggregated: falsewith aggregation for multi-row - Percent values are 0-1 (not 0-100)
- SQL uses Spark syntax (date_sub, not INTERVAL)
- All SQL queries tested via `execute_sql` and return expected data
Related Skills
- [databricks-unity-catalog](../databricks-unity-catalog/SKILL.md) - for querying the underlying data and system tables
- [databricks-spark-declarative-pipelines](../databricks-spark-declarative-pipelines/SKILL.md) - for building the data pipelines that feed dashboards
- [databricks-jobs](../databricks-jobs/SKILL.md) - for scheduling dashboard data refreshes
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/databricks-aibi-dashboards/SKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 20
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Nov 2026, 8 days ago.
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/thomazrossito/data-agents/databricks-aibi-dashboards)