databricks-widget-json-rules

Enforce Databricks Lakeview widget JSON rules for valid dashboard formats.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/bspt628/databricks-lakeview-skills --skill databricks-widget-json-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-widget-json-rules
Source: https://github.com/bspt628/databricks-lakeview-skills/tree/main/widget-json-rules
Command: npx skills add https://github.com/bspt628/databricks-lakeview-skills --skill databricks-widget-json-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces the absolute rules for Databricks Lakeview widget JSON across all widget types, preventing invalid formats during creation or editing.

Core Features & Use Cases

  • Provides a canonical reference for spec/encodings and common formatting pitfalls so developers don't invent non-existent structures.
  • Guides widget reuse by copy-from-existing patterns and applying a templated workflow to add, modify, or delete widgets in dashboards.
  • Helps teams document and validate widget JSON to reduce runtime errors and inconsistent visuals.

Quick Start

Copy the spec/encodings structure from an existing widget and adapt it to create a new one following the Absolute Rules.

Frequently Asked Questions about databricks-widget-json-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Databricks Lakeview widget JSON before adding it to a dashboard?

To validate Databricks Lakeview widget JSON, apply absolute rules to the spec.encodings structure to prevent invalid formats during widget creation and editing. This ensures deterministic JSON generation and reduces runtime errors across all widget types like table, pivot, and filter.

What is the correct spec.encodings structure for Lakeview dashboard widgets?

The correct spec.encodings structure for Lakeview dashboard widgets follows absolute formatting rules that prevent non-existent structures. Developers should copy the spec/encodings structure from an existing widget and adapt it, ensuring safe, deterministic widget JSON generation rather than inventing new formats.

How do I safely clone and modify existing widgets in a Databricks Lakeview dashboard?

To safely clone and modify existing widgets in a Databricks Lakeview dashboard, use a copy-from-existing pattern and apply a templated workflow. This approach guides you in adapting the spec.encodings structure while following absolute rules to prevent invalid JSON formats during widget edits.

Why does my Databricks Lakeview widget JSON throw runtime errors during creation?

Databricks Lakeview widget JSON throws runtime errors during creation when developers invent non-existent spec.encodings structures. To resolve this, follow absolute formatting rules and use a canonical reference to validate the JSON, ensuring the structure matches existing widget patterns.

Do I need a specific template to create pivot or filter widgets in Lakeview?

You need a templated workflow to safely create pivot or filter widgets in Lakeview. This template enforces absolute rules for the spec.encodings structure, preventing invalid formats and ensuring consistent visuals across all widget types during dashboard generation and editing.

Can I use copy-from-existing patterns for all Databricks Lakeview widget types?

Yes, you can use copy-from-existing patterns for all Databricks Lakeview widget types, including table, pivot, filter, and line widgets. This pattern guides developers to safely adapt the spec.encodings structure, ensuring deterministic widget JSON generation and reducing formatting pitfalls.