Install
$ agentstack add skill-luccapinto-agentic-data-kit-pbi-semantic-layer-tmdl ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Skill: pbi-semantic-layer-tmdl
Author and edit the semantic model (tables, columns, measures, relationships, RLS) by writing TMDL files directly. TMDL is the GA, human-readable text format for tabular models — great diffs, one file per table, fully scriptable.
Hard precondition
Power BI Desktop must be CLOSED before saving. Desktop keeps the model in memory and overwrites disk on save, so editing live corrupts files or loses work.
.SemanticModel structure
.SemanticModel/
definition.pbism ← pointer (do not hand-edit)
definition/
model.tmdl ← model-level definition, lists tables
database.tmdl ← compatibility level / annotations
tables/.tmdl ← ONE table per file (golden rule)
relationships.tmdl ← all relationships
expressions.tmdl ← shared M expressions / parameters
cultures/ ← translations
roles.tmdl ← RLS
.pbi/ ← local cache/settings — NEVER edit (localSettings.json, cache.abf)
Edit .tmdl files only. One table per file — never define every table inside model.tmdl.
TMDL syntax reference
table 'Sales'
description: "Primary sales fact."
measure 'Total Sales' = SUM(Sales[Amount])
formatString: "#,##0.00"
displayFolder: "Financials"
description: "Sum of sales amount."
column 'Amount'
dataType: decimal
sourceColumn: BaseAmount
relationship Sales_Date
fromColumn: Sales.DateId
toColumn: Date.DateId
fromCardinality: many
toCardinality: one
Serialization rules: keep functional properties (dataType, sourceColumn) before cosmetic ones; match the file's existing indentation; for multi-line DAX, break with \ at the end of the line.
Tooling
- Tabular Editor 2 (free) can open the
.SemanticModelfolder, validate, batch-edit, and
re-serialize clean TMDL. Use it to sanity-check non-trivial edits.
- Optional: Microsoft's
powerbi-modeling-mcp(preview) edits the same PBIP/TMDL files and
is handy for bulk operations. File editing remains the default, accessible path.
Post-edit verification
- Ask the user to open the
.pbipin Desktop and wait for the field list to populate. - View → Diagnostics — report any error/warning shown.
- For each new/changed measure, drop it on a Card and confirm the value (no red error icon).
- On error: re-read the edited TMDL, find the syntax/reference issue, propose the fix.
- Run the
pbi-quality-rulesskill (BPA) after significant changes.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: luccapinto
- Source: luccapinto/agentic-data-kit
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.