Skip to content
Back to skills

Semantic Layer Change Review

ASecurity

Use when modifying dbt metrics or semantic models to ensure mathematical correctness and backwards compatibility.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
ai-agentsrustsqlexpress

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill semantic-layer-change-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Semantic Layer Change Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Semantic Layer Change Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-semantic-layer-change-review/badge)](https://www.skillsdirectory.com/skills/yeaight7-semantic-layer-change-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: semantic-layer-change-review
description: "Use when modifying dbt metrics or semantic models to ensure mathematical correctness and backwards compatibility."
---

# Semantic Layer Change Review

Changes to the semantic layer directly impact dashboards and business reporting. A silent drift in a metric definition destroys trust.

## Review Protocol

1. **Identify the Change Type**:
   - **Addition**: Safe. (Adding a new metric or dimension).
   - **Deprecation**: Requires communication. (Removing a metric).
   - **Modification**: High Risk. (Changing the SQL expression, aggregation, or filters of an existing metric).

2. **Evaluate Mathematical Soundness**:
   - Are we averaging an average?
   - Are we summing a distinct count?
   - Does adding this dimension cause a fan-out that inflates the metric?

3. **Check Backwards Compatibility**:
   - If an existing metric's logic is changed, you MUST flag it. The recommended path is to use dbt's metric versioning or create a new metric (e.g., `revenue_v2`) rather than silently altering historical numbers.

4. **Verify Entity Mapping**:
   - Ensure `entities` (primary/foreign keys) match the granularity of the underlying semantic model.

## Anti-Pattern
Do not approve a pull request that changes the `expr` of a core metric without explicitly confirming the business requested the restatement of historical data.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…