validate-pbi

validate-pbi is a command for Claude Code from luccapinto/agentic-data-kit. It costs 35 tokens per session (564 once invoked), scanned A, original, MIT.

A command that checks a Power BI project containing a semantic model, the data structure behind reports, charts, and calculations.

In plain words
What is it for?
Use it to validate a PBIP project, run Best Practice Analyzer checks, review TMDL files, and produce a Markdown report listing errors, warnings, and documentation coverage.
Why use it?
It helps find model, calculation, relationship, naming, and documentation problems before the project is published. It also reports isolated tables and potentially confusing relationship designs.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to validate a PBIP project, run Best Practice Analyzer checks, review TMDL files, and produce a Markdown report listing errors, warnings, and documentation coverage.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/luccapinto/agentic-data-kit/validate-pbi
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.

Clone the repo
git clone --depth 1 https://github.com/luccapinto/agentic-data-kit

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 validate-pbi

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/luccapinto/agentic-data-kit/validate-pbi"><img src="https://agentmods.dev/badge/commands/luccapinto/agentic-data-kit/validate-pbi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 564 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.00035 $0.00564
Opus 5.5 $0.00014 $0.00226
Sonnet 5.5 $0.00007 $0.00113
Haiku 4.5 $0.00003 $0.00056

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

Security

Grade A, and why

validate-pbi 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 8d 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.

.claude/commands/validate-pbi.md · 51 lines

What it actually says

Workflow: /validate-pbi

Usage: /validate-pbi [path/to/project.pbip]

Answers "is my Power BI project healthy?". If no path is given, use the project in the current folder; if there are several, ask which one.

Steps

  1. Locate the project (.pbip + <Name>.SemanticModel/ + <Name>.Report/). If none is found, report it and stop.
  2. Make disk current. If Power BI Desktop has the project open, ask the user to save (Ctrl+S). Desktop does not need to be closed — the checks read the files Desktop saved.
  3. Model — BPA (pbi-quality-rules): python3 <pbi-quality-rules>/scripts/run_bpa.py <project> --format json. Record every error and warning and which engine ran (Tabular Editor 2 or Python fallback).
  4. Report — PBIR (pbi-report-layer-pbir): python3 <pbi-report-layer-pbir>/scripts/validate_pbir.py <project> --format json. Record errors and warnings and whether powerbi-report-author or the structural fallback ran.
  5. Structural review of the TMDL:
    • Doc coverage: tables/measures with a /// description vs. total.
    • Relationships: island tables, bidirectional filters, many-to-many joins.
  6. Report — a short Markdown summary:
# Validation Report — <Project>
**Date:** <today> | **BPA engine:** Tabular Editor 2 | **PBIR check:** powerbi-report-author

## Summary
| Area | Errors | Warnings |
|------|--------|----------|
| Model — DAX | 1 | 1 |
| Model — Naming | 0 | 2 |
| Model — Docs | 0 | 2 |
| Report (PBIR) | 0 | 0 |

## Errors (fix before publishing)
- [DAX_EMPTY_EXPRESSION] Measure 'Sales'[Forecast] — empty expression

## Doc coverage
- Tables: 3/4 described (75%) · Measures: 3/4 described (75%)
  1. Offer fixes. Offer to fix every error (model fixes through the Modeling MCP when Desktop is open, otherwise in TMDL); ask before addressing warnings and missing descriptions.
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. 8d ago Changed · +4 lines · +8 tokens per session af52d05ada41
  2. 2mo ago First seen · 47 lines · 27 tokens per session scan A f284ca2ca3b1

Subscribe to this mod's changes

validate-pbi is a command published in the GitHub repository luccapinto/agentic-data-kit (7 stars, last pushed 3d ago), licensed MIT. It adds 35 tokens to every session and 564 once invoked, about $0.0001 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

validate-pbi compared with commands from other repositories

validate-pbi next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
validate-pbiluccapinto/agentic-data-kitCommand73d agoMITA35Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot
ios-buildNagarjuna2997/ios-agent-skillCommand408d agoMITA19Claude Code
test-reviewkatalon-labs/true-skillsCommand1017d agoMITA126GitHub Copilot
5_gofer_implementeai-support/eai-goferCommand15d agoApache-2.0A22Claude Code
gofer:check-workspaceeai-support/eai-goferCommand15d agoApache-2.0A24Claude Code
reviewGuillemRoca/agent-skills-androidCommand51mo agoMITA0Claude Code