building-dbt-semantic-layer

Create and modify dbt Semantic Layer components using YAML specifications.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/niits/voz-company-crawler --skill building-dbt-semantic-layer-niits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-dbt-semantic-layer
Source: https://github.com/niits/voz-company-crawler/tree/main/.agents/skills/building-dbt-semantic-layer
Command: npx skills add https://github.com/niits/voz-company-crawler --skill building-dbt-semantic-layer-niits

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and modification of dbt Semantic Layer components, ensuring accurate and consistent business metrics.

Core Features & Use Cases

  • Define Semantic Models: Configure how dbt models map to business concepts.
  • Create Metrics: Define business calculations like revenue, order count, and conversion rates.
  • Manage Dimensions & Entities: Structure data for filtering, grouping, and joining.
  • Use Case: A data analyst needs to define a new metric for "Customer Lifetime Value" based on existing customers and orders dbt models. This Skill guides them through defining the necessary entities, dimensions, and the metric itself, ensuring it's correctly configured according to dbt's latest or legacy specifications.

Quick Start

Use the building-dbt-semantic-layer skill to define a new metric for total revenue on the orders model.

Frequently Asked Questions about building-dbt-semantic-layer

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

FAQPage Schema
How do I create a new metric in the dbt Semantic Layer?

To create a dbt Semantic Layer metric, define the business calculation in YAML using either the latest or legacy specification, configuring necessary entities, dimensions, and filters to ensure accurate grouping and validation.

What is a semantic model in dbt and when do I need one?

A dbt semantic model maps your existing dbt models to business concepts by defining entities and dimensions, needed when you want to structure data for consistent filtering, grouping, and joining across business metrics.

Does the dbt Semantic Layer support both legacy and latest YAML metric specifications?

Yes, the dbt Semantic Layer supports both the latest and legacy YAML specifications for metrics, and integrates with dbt-autofix to automatically resolve deprecation issues between the formats.

How do I define entities and dimensions for dbt metrics?

Define dbt metric entities and dimensions within your semantic model YAML to structure the underlying data, ensuring the correct relationships are established for filtering and grouping business calculations like revenue or order count.

Why are my dbt Semantic Layer metrics failing validation?

dbt Semantic Layer metrics fail validation due to common pitfalls like incorrect entity configuration or filter mismatches, requiring you to review your semantic model structure and metric definitions against the YAML specification.

Can I use dbt-autofix to update deprecated Semantic Layer YAML?

Yes, you can use dbt-autofix to automatically apply fixes for deprecated Semantic Layer YAML configurations, streamlining the transition between legacy and latest metric specifications without manual code changes.