fabric-tmdl

fabric-tmdl is a skill for Claude Code from wardawgmalvicious/agent-config. It costs 129 tokens per session (3,497 once invoked), scanned A, original, MIT.

Guidelines for writing TMDL, the text format used to define Fabric and Power BI semantic models.

In plain words
What is it for?
Editing .tmdl files, adding measures and columns, defining relationships and calculation groups, configuring Direct Lake partitions, and debugging TMDL.
Why use it?
It helps avoid validation errors caused by incorrect indentation, naming, comments, or object properties.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Editing .tmdl files, adding measures and columns, defining relationships and calculation groups, configuring Direct Lake partitions, and debugging TMDL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wardawgmalvicious/agent-config/fabric-tmdl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wardawgmalvicious/agent-config --skill fabric-tmdl
Clone the repo
git clone --depth 1 https://github.com/wardawgmalvicious/agent-config

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fabric-tmdl

README.md
[![agentmods](https://agentmods.dev/badge/skills/wardawgmalvicious/agent-config/fabric-tmdl/github.svg)](https://agentmods.dev/skills/wardawgmalvicious/agent-config/fabric-tmdl)
Your own site
<a href="https://agentmods.dev/skills/wardawgmalvicious/agent-config/fabric-tmdl"><img src="https://agentmods.dev/badge/skills/wardawgmalvicious/agent-config/fabric-tmdl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fabric-tmdl

Your own site · 80×15
<a href="https://agentmods.dev/skills/wardawgmalvicious/agent-config/fabric-tmdl"><img src="https://agentmods.dev/badge/skills/wardawgmalvicious/agent-config/fabric-tmdl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00129 $0.03497
Opus 5.5 $0.00052 $0.01399
Sonnet 5.5 $0.00026 $0.00699
Haiku 4.5 $0.00013 $0.00350

Measured 1mo ago against content hash a9ca76174cae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fabric-tmdl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/power-bi/fabric-tmdl/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Two jobs have a reference of their own: read it before answering one.

The job Read first
Write the model's AI instructions, or edit a culture file's linguisticMetadata ai-instructions.md
Create, read or update the model's definition through the Fabric API definition-api.md

TMDL Authoring Rules

Syntax Rules

  • TMDL uses tab indentation — every nesting level is exactly one tab (\t), NOT spaces. Spaces cause validation errors.
    • PowerShell: use `t
    • Bash: use $'\t' or literal tabs
  • Objects declared by type + name: table Customer, column ProductId, measure 'Total Sales'
  • Names with spaces or special chars (., =, :, ') must be in single quotes: column 'Order Date'
  • Descriptions use /// placed ABOVE the object — do NOT use the description property
  • // comments are NOT supported in TMDL
  • Do NOT add lineageTag on new objects — it is auto-generated
    • Not at sync or refresh: the first portal commit after an edit in the service adds one to every table, column, measure and expression at once, and annotation PBI_ProTooling to model.tmdl (observed once, 2026-10-07). Review that commit as the tags plus the edit, not drift.
  • Multi-line DAX must be enclosed in triple backticks (```)
  • Place measures before columns in table definitions
  • formatString is required on every measure
  • Never set dataType on measures — it is inferred from DAX
  • Check a hand-authored definition/ offline before a sync with TOM's TmdlSerializer from the SqlServer module: syntax and references, not DAX (references/REFERENCE.md — BIM ↔ TMDL Conversion)

Naming Conventions

  • Tables: business-friendly, no Fact/Dim prefixes. Plural for facts (Sales), singular for dimensions (Product)
  • Columns: readable with spaces (Order Date, Unit Price)
  • Measures: clear patterns (Total Sales, # Customers). Time intelligence: [measure], [measure (ly)], [measure (ytd)])

Read the full file on GitHub · 257 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +15 lines · +25 tokens per session a9ca76174cae
  2. 1mo ago Changed cf7e596d7928
  3. 1mo ago Changed · +13 lines 030513a47c57
  4. 1mo ago Changed · -1 lines 6b7a6d46d3d5
  5. 1mo ago Changed · +3 lines 3dfa7e648e41
  6. 1mo ago Changed · +10 lines 90705da93a91
  7. 2mo ago Changed 03f3710f09aa
  8. 2mo ago Changed · +16 lines 4c38c823b805
  9. 3mo ago First seen · 201 lines · 104 tokens per session scan A 4b4d2a6a9233

Subscribe to this mod's changes

fabric-tmdl is a skill published in the GitHub repository wardawgmalvicious/agent-config (1 stars, last pushed 1mo ago), licensed MIT. It adds 129 tokens to every session and 3,497 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

fabric-tmdl compared with skills from other repositories

fabric-tmdl next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fabric-tmdlwardawgmalvicious/agent-configSkill11mo agoMITA129Claude Code
fabric-clidata-goblin/power-bi-agentic-developmentSkill1.1k5d agoGPL-3.0A133Claude Code
connect-pbiddata-goblin/power-bi-agentic-developmentSkill1.1k5d agoGPL-3.0A221Claude Code
pbir-clidata-goblin/power-bi-agentic-developmentSkill1.1k5d agoGPL-3.0A112Claude Code
audit-tenant-settingsdata-goblin/power-bi-agentic-developmentSkill1.1k5d agoGPL-3.0A40Claude Code
tmdldata-goblin/power-bi-agentic-developmentSkill1.1k5d agoGPL-3.0A108Claude Code
pbi-report-designdata-goblin/power-bi-agentic-developmentSkill1.1k5d agoGPL-3.0A116Claude Code