power-bi-definitions
Installation
SKILL.md
power-bi-definitions
Most companies that point Claude at Snowflake or Databricks already have a Power BI model on the same tables, and that model already says what CAC, ROAS and "active customer" mean. A dashboard that re-invents those definitions disagrees with the report everyone else reads. This skill makes the dashboard use the model's definitions, so the two show the same number.
1. Get the model's definitions
Pick the first route that works:
| The user has | Do this |
|---|---|
| A PBIP folder on disk (Claude Code) | python3 scripts/metric_contract.py <folder> --format markdown (path relative to this skill's folder; in Claude Code use ${CLAUDE_SKILL_DIR}/scripts/metric_contract.py) |
A zip of the *.SemanticModel folder (claude.ai with code execution) |
Unzip it in the sandbox, then run the same script on it |
A .pbix only |
Ask them to open it in Power BI Desktop and File > Save as > Power BI Project (PBIP) with the TMDL format, then zip the .SemanticModel folder |
| Pasted TMDL, or a list of measures and their DAX | Read it directly and build the same table by hand |