pbi-quality-rules

pbi-quality-rules is a skill for Claude Code, Codex from luccapinto/agentic-data-kit. It costs 83 tokens per session (708 once invoked), scanned A, original, MIT.

A checker for Power BI semantic models, which define the tables, calculations, and relationships behind a report. It runs Tabular Editor's Best Practice Analyzer against the model using a shared set of rules.

In plain words
What is it for?
Use it to validate TMDL or model files, run checks in development or CI, and review violations from the team's BPA rules.
Why use it?
It finds model problems and reports them consistently, with errors, warnings, or informational results. Error findings can also make a command fail, which is useful in automated checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to validate TMDL or model files, run checks in development or CI, and review violations from the team's BPA rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luccapinto/agentic-data-kit/pbi-quality-rules
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 luccapinto/agentic-data-kit --skill pbi-quality-rules
Clone the repo
git clone --depth 1 https://github.com/luccapinto/agentic-data-kit

Made for: Claude Code, Codex.

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 pbi-quality-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/luccapinto/agentic-data-kit/pbi-quality-rules/github.svg)](https://agentmods.dev/skills/luccapinto/agentic-data-kit/pbi-quality-rules)
Your own site
<a href="https://agentmods.dev/skills/luccapinto/agentic-data-kit/pbi-quality-rules"><img src="https://agentmods.dev/badge/skills/luccapinto/agentic-data-kit/pbi-quality-rules/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 pbi-quality-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/luccapinto/agentic-data-kit/pbi-quality-rules"><img src="https://agentmods.dev/badge/skills/luccapinto/agentic-data-kit/pbi-quality-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 708 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.00083 $0.00708
Opus 5.5 $0.00033 $0.00283
Sonnet 5.5 $0.00017 $0.00142
Haiku 4.5 $0.00008 $0.00071

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

Security

Grade A, and why

pbi-quality-rules 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/bpa_fallback.py, scripts/run_bpa.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agent/skills/pbi-quality-rules/SKILL.md · 45 lines

How it starts

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

Skill: pbi-quality-rules

Two scripts in this skill's scripts/ folder (Python 3.9+, standard library only):

Script What it does
run_bpa.py <model> Runs the real BPA through Tabular Editor 2 (TabularEditor.exe <definition-folder> -A bpa-rules.json -V). If TE2 is not found, it runs the fallback and says so.
bpa_fallback.py <model> The same rules re-implemented in Python over the TMDL files (or model.bim). Approximate; rules it cannot evaluate are listed as SKIPPED, never as passed.

<model> = the .pbip, the project folder, <Name>.SemanticModel/, its definition/ folder, or a model.bim. Options: --format json, --rules <file>, and for run_bpa.py also --te <path> and --no-fallback. TE2 is looked up via --te, $TABULAR_EDITOR_PATH, PATH, then the default Windows install folders.

Exit codes: 0 no error-severity violations · 1 errors found · 2 bad path / TE2 failed.

Run it

python3 <skill>/scripts/run_bpa.py path/to/Sales.pbip
  1. Disk is the input. With Desktop open and MCP edits pending, ask the user to save (Ctrl+S) first — the BPA reads the TMDL Desktop wrote, not the live model.
  2. Present errors first, then warnings, grouped by category; omit info unless asked. Say which engine ran; for the fallback, recommend installing Tabular Editor 2 for exact results.
  3. For each error, offer a fix (through the Modeling MCP when Desktop is open — see pbi-semantic-layer-tmdl). Warnings: suggest, don't force.

Rule set — bpa-rules.json

Tabular Editor's native format (ID, Name, Category, Severity, Scope, Expression in Dynamic LINQ over the TOM). Severity 3 error · 2 warning · 1 info. It loads directly into TE2's BPA window too.

Adding a rule: add it to bpa-rules.json (TE2 picks it up at once), then add a predicate with the same ID to CHECKS in scripts/bpa_fallback.py so the fallback covers it; until then the fallback reports it as SKIPPED.

Read the full file on GitHub · 45 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 · +2 lines · +43 tokens per session 87b0baa1ae12
  2. 3mo ago First seen · 43 lines · 40 tokens per session scan A 72f3ba938c51

Subscribe to this mod's changes

pbi-quality-rules is a skill published in the GitHub repository luccapinto/agentic-data-kit (7 stars, last pushed 1mo ago), licensed MIT. It adds 83 tokens to every session and 708 once invoked, about $0.0003 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

pbi-quality-rules compared with skills from other repositories

pbi-quality-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pbi-quality-rulesluccapinto/agentic-data-kitSkill71mo agoMITA83Claude Code, Codex
spec-kitty-charter-doctrinePriivacy-ai/spec-kittySkill1.7k14d agoMITA135Claude Code, Codex
checking-freshnessastronomer/agentsSkill4664d agoApache-2.0A44Claude Code
322-frameworks-spring-boot-testing-integration-testsjabrena/plinthSkill4703d agoApache-2.0A123Claude Code, Codex
422-frameworks-quarkus-testing-integration-testsjabrena/plinthSkill4703d agoApache-2.0A190Claude Code, Codex
314-frameworks-spring-kafkajabrena/plinthSkill4703d agoApache-2.0A112Claude Code, Codex
al-memory-createjaviarmesto/ALDC-AL-Development-CollectionSkill1163d agoMITA40Claude Code