powerbi-pbi-cli

powerbi-pbi-cli is a skill for Claude Code, Codex from santoshkanthety/powerbi-agent. It costs 149 tokens per session (2,476 once invoked), scanned A, original, MIT.

A command-line tool for editing Power BI Desktop reports and PBIR report folders, including visuals, fields, filters, bookmarks, formatting, and the underlying model. PBIR is Power BI's folder-based report format.

In plain words
What is it for?
Use it to connect to Power BI Desktop, edit models and report JSON, bind visual fields, set aggregations, batch changes, and manage report-layer settings from the terminal.
Why use it?
It allows report and model changes to be scripted and helps avoid mistakes such as treating a data column as a calculated measure. It also explains the differences between its commands and related tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to connect to Power BI Desktop, edit models and report JSON, bind visual fields, set aggregations, batch changes, and manage report-layer settings from the terminal.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/santoshkanthety/powerbi-agent/powerbi-pbi-cli
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 santoshkanthety/powerbi-agent --skill powerbi-pbi-cli
Clone the repo
git clone --depth 1 https://github.com/santoshkanthety/powerbi-agent

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 powerbi-pbi-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/santoshkanthety/powerbi-agent/powerbi-pbi-cli/github.svg)](https://agentmods.dev/skills/santoshkanthety/powerbi-agent/powerbi-pbi-cli)
Your own site
<a href="https://agentmods.dev/skills/santoshkanthety/powerbi-agent/powerbi-pbi-cli"><img src="https://agentmods.dev/badge/skills/santoshkanthety/powerbi-agent/powerbi-pbi-cli/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 powerbi-pbi-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/santoshkanthety/powerbi-agent/powerbi-pbi-cli"><img src="https://agentmods.dev/badge/skills/santoshkanthety/powerbi-agent/powerbi-pbi-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,476 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.00149 $0.02476
Opus 5.5 $0.00060 $0.00990
Sonnet 5.5 $0.00030 $0.00495
Haiku 4.5 $0.00015 $0.00248

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

Security

Grade A, and why

powerbi-pbi-cli 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 16d 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/powerbi-pbi-cli/SKILL.md · 197 lines

How it starts

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

The pbi CLI

pbi-cli (Mina Saad, MIT) drives Power BI Desktop and PBIR report folders from the terminal: semantic model edits over the local Analysis Services instance, and report-layer edits written straight into PBIR JSON. It overlaps pbi-agent deliberately — use whichever is installed, and know the differences below, because the failure modes are not the same.

Target version: ≥ 3.12.0. Earlier versions wrap every bound field as a Measure, which silently produces broken slicers and tables. Check with pbi --version — and note that --version itself only became trustworthy in 3.12.0, where it reads from package metadata instead of a hardcoded constant that had drifted.

Two entry points, and it matters

Entry point Owns
pbi all model and report work — connect, model, measure, report, visual, filters, bookmarks, format, database
pbi-cli only skill management: pbi-cli skills install / list / uninstall

pbi skills install does not exist. Claude Code integration is opt-in by design: pbi connect does not write to ~/.claude/.

pipx install pbi-cli
pbi-cli skills install        # opt in to the skill pack
pbi connect                   # attach to the open Desktop instance

pbi visual bind — the part that costs people a day

Binding a field writes a field reference into visual.json. Whether it is written as a Column or a Measure, and whether it is wrapped in an aggregation, decides whether the visual renders at all.

How the kind is resolved (3.12.0+)

In order:

  1. The TMDL or model.bim that the report's definition.pbir points at — on disk, no connection needed.
  2. The live model via pbi connect, opened only for fields missing on disk.
  3. A per-visual role default; slicers default to Column.

Names are canonicalised to the model's casing, and a measure referenced under the wrong table is rewritten against its home table. A field found in neither place produces a warnings entry rather than a silent guess — read the warnings. A warning here means the visual will render empty, and reading it now is cheaper than opening Desktop to find out.

Read the full file on GitHub · 197 lines

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. 16d ago First seen · 197 lines · 0 tokens per session scan A 00cea9ecaa8e

Subscribe to this mod's changes

powerbi-pbi-cli is a skill published in the GitHub repository santoshkanthety/powerbi-agent (3 stars, last pushed 17d ago), licensed MIT. It adds 149 tokens to every session and 2,476 once invoked, about $0.0006 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-10-07.

Related

Other skills, from other repositories

seshat-bi

Route a BI project through Seshat BI's governed seven-stage readiness flow. Use when a user asks to inspect a retail source, initialize a Seshat project, find the truthful next action, validate readiness evidence, or stop at the correct human approval gate.

Kemetra/Seshat-BI · 58 tokens

powerbi-workflows

Route guarded Power BI work -- design, native report authoring, semantic-model operations, published queries, QA, bounded formatting, and PBIP adoption -- to the correct Seshat or official Microsoft surface under Seshat BI's gates.

Kemetra/Seshat-BI · 53 tokens

dbt-workflows

Route dbt intent to Seshat's governed shadow workflow or the official dbt Labs competence and execution owner, without bypassing readiness or evidence.

Kemetra/Seshat-BI · 35 tokens

dagster-workflows

Route Dagster intent to Seshat's governed medallion workflow or the official Dagster competence owner without bypassing readiness, approvals, or evidence.

Kemetra/Seshat-BI · 36 tokens

pbi-mcp-doctor

Use when a user asks whether or how to wire Microsoft's official Power BI MCP servers into a Seshat BI workspace: run the read-only environment doctor, map a task to the governed Power BI surface (including the official report-authoring skill), generate a safe read-only config template, or run the mocked read-only…

Kemetra/Seshat-BI · 73 tokens

bi-analyst-knowledge

Use Seshat's public analyst-judgment knowledge to derive decision-questions, choose an analytical framing, and order a story from approved metric contracts and a committed source-profile.

Kemetra/Seshat-BI · 43 tokens