AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Pbi Semantic Layer Tmdl

skill-luccapinto-agentic-data-kit-pbi-semantic-layer-tmdl · by luccapinto

Edit the Power BI semantic model as code by authoring TMDL files in a PBIP project (offline, Desktop closed). Covers structure, syntax, and post-edit verification.

No reviews yet
0 installs
16 views
0.0% view→install

Install

$ agentstack add skill-luccapinto-agentic-data-kit-pbi-semantic-layer-tmdl

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-luccapinto-agentic-data-kit-pbi-semantic-layer-tmdl)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
28d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Pbi Semantic Layer Tmdl? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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 .SemanticModel folder, 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

  1. Ask the user to open the .pbip in Desktop and wait for the field list to populate.
  2. View → Diagnostics — report any error/warning shown.
  3. For each new/changed measure, drop it on a Card and confirm the value (no red error icon).
  4. On error: re-read the edited TMDL, find the syntax/reference issue, propose the fix.
  5. Run the pbi-quality-rules skill (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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.