bruin-semantic-layer
Installation
SKILL.md
Bruin Semantic Layer
Workflow
- Find the repository root and inspect
semantic/before editing. Bruin loads every.ymland.yamlmodel under the repository-levelsemantic/directory next to.bruin.yml. - Use local source of truth before guessing:
docs/core-concepts/semantic-layer.md,docs/commands/query.md,docs/commands/semantic.md,semantic-engine/model.go,semantic-engine/engine.go,semantic-engine/graph.go, andsemantic-engine/checks.go. - Keep model names unique across the semantic catalog. New models should set
schema: v1, although omitted schema defaults tov1. - Prefer reusable, business-named metrics, dimensions, and segments. Avoid putting dashboard-specific logic into one large SQL query.
- Validate with
bruin semantic validate, runbruin semantic checkwhen a connection is available, then run the repository-required final checks before finishing.
Model Pattern
Create or edit files under semantic/:
schema: v1
name: orders
label: Orders
description: Revenue and order metrics