Use when modifying dbt metrics or semantic models to ensure mathematical correctness and backwards compatibility.
Scanned 5/29/2026
Install to Claude Code
npx -y skills add yeaight7/agent-powerups --skill semantic-layer-change-review --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/yeaight7-semantic-layer-change-review)More formats (shields.io, HTML) on the badges page.
---
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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!