metric-views-patterns

Create Databricks Metric Views from YAML definitions with schema validation.

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/prashsub/vibe_coding_lakehouse_starter_repo --skill metric-views-patterns-prashsub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metric-views-patterns
Source: https://github.com/prashsub/vibe_coding_lakehouse_starter_repo/tree/main/data_product_accelerator/skills/semantic-layer/01-metric-views-patterns
Command: npx skills add https://github.com/prashsub/vibe_coding_lakehouse_starter_repo --skill metric-views-patterns-prashsub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation and management of Databricks Metric Views, ensuring semantic consistency and optimizing them for natural language queries by AI tools like Genie.

Core Features & Use Cases

  • Metric View Creation: Generates Metric Views with proper YAML structure and Databricks SQL syntax.
  • Schema Validation: Validates schema references before deployment to prevent common errors.
  • Join Implementation: Supports direct and snowflake schema join patterns.
  • Genie Optimization: Structures definitions and comments for effective natural language querying.
  • Use Case: When building a new semantic layer for a data product, use this Skill to define standardized metric views that business users can query using natural language.

Quick Start

Use the metric-views-patterns skill to create a new metric view definition in YAML format.

Frequently Asked Questions about metric-views-patterns

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

FAQPage Schema
How do I create Databricks Metric Views using YAML definitions?

Databricks Metric Views are created by defining semantic metadata in YAML format and generating proper Databricks SQL syntax. This approach standardizes metric view creation while ensuring schema validation and proper structure for AI/BI integration.

How do I optimize Databricks Metric Views for Genie natural language queries?

To optimize Metric Views for Genie, structure YAML definitions and comments specifically for natural language querying. This ensures AI/BI tools can accurately interpret and retrieve data from the semantic layer.

What is the best way to validate schema references before deploying a Databricks Metric View?

Validating schema references before deployment prevents common errors in Databricks Metric Views. Use a semantic layer standardization process to check schema references against the Databricks Metric View Specification v1.1 before deployment.

Can I implement snowflake schema join patterns in Databricks Metric Views?

Yes, Databricks Metric Views support both direct and snowflake schema join patterns. You can define these complex join implementations within your YAML semantic metadata to structure relationships across multiple tables.

Why does my Databricks Metric View fail during schema validation or join implementation?

Metric View creation often fails due to incorrect YAML structure or unvalidated schema references. Standardizing semantic metadata and troubleshooting against the Databricks Metric View Specification v1.1 resolves these common deployment errors.

Do I need YAML definitions to build a semantic layer for a Databricks data product?

YAML definitions are required to standardize semantic metadata for Databricks data products. They provide the structure needed to generate Metric Views that business users can successfully query using natural language via Genie.