Power BI Visuals

Power BI Visuals is a skill for Claude Code, Codex from MinaSaad1/pbi-cli. It costs 148 tokens per session (2,645 once invoked), scanned A, original, MIT.

A workflow for adding and managing charts, cards, tables, slicers, and other visuals in Power BI report pages by editing their JSON files with `pbi-cli`. Power BI is Microsoft's tool for interactive data reports.

In plain words
What is it for?
Use it to add visuals, set their positions and sizes, connect them to existing model measures, and manage many visuals at once.
Why use it?
It removes the need to create every report visual manually and makes layouts and data bindings reproducible in files.

Skill for Claude CodeCodex

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

Good fit Use it to add visuals, set their positions and sizes, connect them to existing model measures, and manage many visuals at once.

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

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 Power BI Visuals

README.md
[![agentmods](https://agentmods.dev/badge/skills/minasaad1/pbi-cli/power-bi-visuals/github.svg)](https://agentmods.dev/skills/minasaad1/pbi-cli/power-bi-visuals)
Your own site
<a href="https://agentmods.dev/skills/minasaad1/pbi-cli/power-bi-visuals"><img src="https://agentmods.dev/badge/skills/minasaad1/pbi-cli/power-bi-visuals/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 Power BI Visuals

Your own site · 80×15
<a href="https://agentmods.dev/skills/minasaad1/pbi-cli/power-bi-visuals"><img src="https://agentmods.dev/badge/skills/minasaad1/pbi-cli/power-bi-visuals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,645 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00148 $0.02645
Opus 5 $0.00074 $0.01323
Sonnet 5 $0.00030 $0.00529
Haiku 4.5 $0.00015 $0.00265

Measured 9d ago against content hash b215a7571f5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Power BI Visuals 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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

src/pbi_cli/skills/power-bi-visuals/SKILL.md · 269 lines

How it starts

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

Power BI Visuals Skill

Create and manage visuals on PBIR report pages. No Power BI Desktop connection is needed -- these commands operate directly on JSON files.

Adding Visuals

# Add by alias (pbi-cli resolves to the PBIR type)
pbi visual add --page page_abc123 --type bar
pbi visual add --page page_abc123 --type card --name "Revenue Card"

# Custom position and size (pixels)
pbi visual add --page page_abc123 --type scatter \
    --x 50 --y 400 --width 600 --height 350

# Named visual for easy reference
pbi visual add --page page_abc123 --type combo --name sales_combo

Each visual is created as a folder with a visual.json file inside the page's visuals/ directory. The template includes the correct schema URL and queryState roles for the chosen type.

Prerequisite: Measures Must Exist in the Semantic Model

visual bind writes field references into the visual JSON. It does not create measures — it only records that a measure should exist. If the measure is missing from the TMDL, every visual bound to it will show an error in Desktop.

Before binding any visual to a measure, verify the measure exists:

# Option A: create it via pbi-cli (requires pbi connect)
pbi connect
pbi measure create "Total Revenue" -e "SUM(Fact_Sales[Total_Revenue])" -t Fact_Sales

# Option B: check existing measures in the TMDL file directly
# Look for `measure '...' =` lines in SemanticModel/definition/tables/*.tmdl

After adding measures directly to a TMDL file (without pbi connect): close and reopen the .pbip file in Power BI Desktop. Desktop only reads TMDL on file open — it does not hot-reload TMDL changes made on disk.

Checklist before opening Desktop:

  • Every --field, --value, --indicator reference points to a real measure or column in the TMDL
  • Table names match exactly (case-sensitive in PBIR): "Fact_Sales""fact_sales"
  • Measure names match exactly: "Total Revenue""Total_Revenue"

Binding Data

Visuals start empty. Use visual bind with Table[Column] notation to connect them to your semantic model. The bind options vary by visual type -- see the type table below.

Read the full file on GitHub · 269 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. 9d ago First seen · 269 lines · 148 tokens per session scan A b215a7571f5b

Subscribe to this mod's changes

Power BI Visuals is a skill published in the GitHub repository MinaSaad1/pbi-cli (452 stars, last pushed today), licensed MIT. It adds 148 tokens to every session and 2,645 once invoked, about $0.0007 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-30.

Related

Other skills, from other repositories

powerbi-expert

Expert-level Power BI, DAX, M language, data modeling, Power Query, report design, and paginated reports. Use when the user mentions DAX, Power Query, BI, Microsoft platforms, analytics, or data modeling, or when the task involves DAX Fundamentals, Advanced DAX, Row-Level Security, or Report Design.

personamanagmentlayer/pcl · 73 tokens

powerbi-modeling

Power BI semantic models - DAX measures, star schemas, relationships, RLS, and performance tuning via MCP. Use when creating data models, writing DAX, or configuring table relationships in Power BI.

PracticalSwan/agent-skills · 46 tokens

pbi-check-loop

Closes the verify loop for Power BI Desktop development: reloads a .pbip so Desktop re-reads TMDL/PBIR changed on disk, and captures the window so a model can see what rendered. Power BI has no reload command of its own. Use whenever working on a .pbip project - editing measures, TMDL, relationships, M, visual.json…

C-QY/pbi-check-loop · 276 tokens

mcp-engine-dax-performance

Use when a DAX query, measure, or visual is slow, when interpreting analyze timings, Storage Engine / Formula Engine splits, or query plans, when VertiPaq storage size or cardinality drives cost, or when the user wants a tuning pass or before/after benchmark. For wrong values, use mcp-engine-dax-debugging; for writing…

maxanatsko/mcp-engine-public · 101 tokens

mcp-engine-onboarding

Use when a user types onboarding, asks to set up SemanticOps MCP, wants help choosing Free vs Pro, or wants licensing, modes, masking, guardrails, preferences, model safety, tests, reporting, diagnostics, RLS testing, or Enterprise posture tailored to their workflow. For changing security, policy, or masking on an…

maxanatsko/mcp-engine-public · 86 tokens

mcp-engine-bootstrap

Use when starting a SemanticOps MCP session, connecting to a Power BI model, checking the current connection, applying saved preferences, composing bulk or write payloads, or recovering from empty results, stale metadata, or argument validation errors. For task work after the session is healthy, use the matching…

maxanatsko/mcp-engine-public · 87 tokens