# Semantic Metrics Layer

> Build a governed semantic/metrics layer: define each metric once as metrics-as-code (dbt Semantic Layer/MetricFlow) with explicit grain and filters, model entities/dimensions to prevent fan-out, and expose one contract every BI tool consumes — ending metric drift.

- Skill: `mcorbett51090/semantic-metrics-layer` (Agent Skill)
- Install (CLI): `npx get-skill add mcorbett51090/semantic-metrics-layer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mcorbett51090/semantic-metrics-layer/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: mcorbett51090 (https://skillmd.com/u/mcorbett51090)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/mcorbett51090/semantic-metrics-layer

---


# Semantic / Metrics Layer

## One definition per metric
Revenue, active user, churn, MRR — defined **once** as metrics-as-code, versioned, PR-reviewed. Two dashboards with two 'revenue's = trust gone.

## Explicit grain + filters
A metric needs its **grain** (per what?) and **filters** (which segment?) stated. Otherwise it's uninterpretable.

## Entities & dimensions
Model joins/grains in the layer so consumers can't fan-out or double-count.

## One contract
All BI tools query the same metrics — the semantic layer is the contract, not each tool's hidden calc. Significance -> `applied-statistics`.

