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.
npx agentmods add skills/luccapinto/agentic-data-kit/pbi-semantic-layer-tmdlnpx skills add luccapinto/agentic-data-kit --skill pbi-semantic-layer-tmdlgit clone --depth 1 https://github.com/luccapinto/agentic-data-kitWrote 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.
[](https://agentmods.dev/skills/luccapinto/agentic-data-kit/pbi-semantic-layer-tmdl)<a href="https://agentmods.dev/skills/luccapinto/agentic-data-kit/pbi-semantic-layer-tmdl"><img src="https://agentmods.dev/badge/skills/luccapinto/agentic-data-kit/pbi-semantic-layer-tmdl.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00691 |
| Opus 5 | $0.00022 | $0.00345 |
| Sonnet 5 | $0.00009 | $0.00138 |
| Haiku 4.5 | $0.00004 | $0.00069 |
Grade A, and why
pbi-semantic-layer-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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
<Project>.SemanticModel/
definition.pbism ← pointer (do not hand-edit)
definition/
model.tmdl ← model-level definition, lists tables
database.tmdl ← compatibility level / annotations
tables/<Table>.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.
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.
- 6d ago First seen · 70 lines · 44 tokens per session scan A c82cd2ce3cb6
pbi-semantic-layer-tmdl is a skill published in the GitHub repository luccapinto/agentic-data-kit (7 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 691 once invoked, about $0.0002 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.
Other skills, from other repositories
release-dbt-mcp
Release a new version of dbt-mcp to PyPi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
spec-kitty-charter-doctrine
Run charter interview, generation, context, and sync workflows for project governance in Spec Kitty 3.x. Access doctrine artifacts programmatically via DoctrineService. Resolve agent profiles. Load action-scoped governance context iteratively, not all at once. Triggers: "interview for charter", "generate charter"…
security-review
How to review PRs for security — credentials, injection, workflow permissions, supply chain, git operation safety.
managing-astro-local-env
Manage local Airflow environment with Astro CLI (Docker and standalone modes). Use when the user wants to start, stop, or restart Airflow, view logs, query the Airflow API, troubleshoot, or fix environment issues. For project setup, see setting-up-astro-project.
checking-freshness
Quick data freshness check. Use when the user asks if data is up to date, when a table was last updated, if data is stale, or needs to verify data currency before using it.