fabric-tmdl

fabric-tmdl is a skill for Claude Code from wardawgmalvicious/agent-config. It costs 104 tokens per session (2,801 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 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,801 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.00104 $0.02801
Opus 5 $0.00052 $0.01401
Sonnet 5 $0.00021 $0.00560
Haiku 4.5 $0.00010 $0.00280

Measured yesterday against content hash 03f3710f09aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 yesterday.

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/fabric/fabric-tmdl/SKILL.md · 217 lines

How it starts

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

TMDL Authoring Rules

Syntax Rules (MUST follow)

  • 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
  • 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

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)])

Column Rules

Property Rule
dataType Required. Use int64, decimal, string, dateTime, boolean. Avoid double
sourceColumn Must match partition source column name exactly
isHidden Set for ID columns, foreign keys, system columns
summarizeBy none for non-aggregatable numerics (IDs, postal codes, year numbers)
isAvailableInMdx false for hidden columns not used in sort-by or hierarchies
sortByColumn For text needing non-alphabetical sort (month names → month number)

Measure & DAX Rules

  • Always set formatString — Currency: $#,##0.00 | Percentage: 0.00% | Integer: #,##0 | Decimal: #,##0.00
  • Use DIVIDE() instead of / for safe division
  • Never use IFERROR — causes performance degradation
  • Prefix VAR names with _: VAR _totalSales = ...
  • Use displayFolder to organize measures into logical groups
  • Add /// descriptions to explain business logic

Read the full file on GitHub · 217 lines

Files

What ships with it

1 file 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. yesterday Changed 03f3710f09aa
  2. 7d ago Changed · +16 lines 4c38c823b805
  3. 11d 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 (0 stars, last pushed today), licensed MIT. It adds 104 tokens to every session and 2,801 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

drawio

WORKFLOW SKILL — Generate Azure architecture diagrams in .drawio via simonkurtz-MSFT MCP server (full Azure icon set, batch creation, transactional mode). Covers architecture, dependency, runtime-flow, and as-built diagrams. WHEN: 'draw.io diagram', 'Azure architecture diagram', 'as-built diagram', 'runtime flow…

jonathan-vella/apex-accelerator · 99 tokens

azure-artifacts

UTILITY SKILL — Artifact template structures, H2 compliance rules, and documentation styling for agent outputs (Steps 1-7). WHEN: "generate artifact", "check H2 structure", "artifact template", "step 7 as-built". USE FOR: generating any agent artifact, checking H2 structure compliance. DO NOT USE FOR: Azure resource…

jonathan-vella/apex-accelerator · 103 tokens

azure-bicep-patterns

UTILITY SKILL — Reusable Azure Bicep patterns: hub-spoke, private endpoints, diagnostics, AVM composition. WHEN: "hub-spoke Bicep", "private endpoint module", "diagnostic settings", "AVM Bicep composition". USE FOR: Bicep template design, hub-spoke networking, private endpoint patterns, AVM modules. DO NOT USE FOR…

jonathan-vella/apex-accelerator · 114 tokens

azure-governance-discovery

ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl. MG-inherited), definitions/exemptions, effect classification, emits governance-constraints JSON. WHEN: 'Azure policy discovery', 'effective policy assignments', 'governance constraints', '04g-Governance Phase 1', 'refresh governance JSON'. DO NOT…

jonathan-vella/apex-accelerator · 86 tokens

vendor-prompting

ANALYSIS SKILL — Audit-grade reference for Anthropic Claude and OpenAI GPT-5.6 prompting best practices. WHEN: "claude prompting", "gpt-5.6 prompting", "audit agent", "review prompt", "vendor best practices", "anthropic best practices", "openai prompting". DO NOT USE FOR: routine prompt edits where rules are already…

jonathan-vella/apex-accelerator · 94 tokens

copilot-customization

Authoritative reference for VS Code Copilot customization mechanisms: instructions, prompt files, custom agents, agent skills, MCP servers, hooks, and plugins. Use when deciding which customization type to use, creating new .instructions.md/.prompt.md/.agent.md/SKILL.md/mcp.json files from scratch, or debugging why a…

jonathan-vella/apex-accelerator · 90 tokens