pbir-cli
This skill should be used whenever the user mentions "pbir", "pbir-cli", "Power BI reports", or "PBI reports", works with .pbir, .pbip, or .pbix files, or wants to refresh, screenshot, or visually verify a report that is open in Power BI Desktop. Covers creating, exploring, formatting, validating, and publishing Power BI reports through the pbir CLI and object model, plus driving Power BI Desktop (canvas reload, page screenshots) and querying connected or local semantic models.
npx skills add data-goblin/power-bi-agentic-development --skill pbir-cli --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Conveys that the skill provides a CLI workflow for Power BI reports using the pbir toolset. It covers exploring, creating, formatting, validating, and publishing Power BI reports through the pbir CLI and its object model. It includes driving Power BI Desktop (canvas reload, page screenshots) and querying connected or local semantic models. It emphasizes using pbir commands for inspection and mutation, with read-only access via pbir cat/get if needed.
How it works
- The skill instructs the agent to perform report-related tasks exclusively through pbir commands; never edit report JSON files directly. If a mutation is not exposed by pbir, report the missing capability instead of editing files.
- It guides reading the mental model first, then exploring reports, discovering the model, planning changes, making changes via pbir, validating after coherent batches, and verifying rendering with the Desktop bridge when applicable.
- It defines a general workflow including: pbir desktop list to locate running Desktop instances, pbir ls and pbir tree for structure, pbir validate, pbir get, and pbir pages json for page dimensions; model discovery via pbir model/fields. It recommends using additional tooling like te for semantic-model mutations when needed.
- It specifies a sequence for visual rendering checks: pbir desktop refresh, pbir desktop screenshot, and inspection of the resulting PNGs after meaningful changes.
When to use it
- Use when the user mentions pbir, pbir-cli, Power BI reports, PBI reports, or file types .pbir/.pbip/.pbix, and when refreshing, screenshotting, or visually verifying a report open in Power BI Desktop is requested.
- Use as a workflow guide for creating, exploring, formatting, validating, and publishing Power BI reports through pbir, and for driving Desktop integration when available.
What it can touch
- pbir command surface: pbir desktop list, pbir desktop refresh, pbir desktop screenshot, pbir validate, pbir get, pbir set/add, pbir publish, pbir ls, pbir tree, pbir model, pbir fields, pbir new report, pbir add visual, pbir visuals format, etc.
- It also references tools and workflows that rely on the pbir CLI and its object model, and mentions optional integration with Tabular Editor CLI (te) for semantic-model mutations, and pbir components for workspace publishing.
Caveats
- The skill requires pbir CLI availability; if pbir is missing, the recommended installation paths are provided (uv tool install pbir-cli or pip install). It warns to avoid editing report JSON directly and to report missing capabilities rather than fallback to file edits.
- It notes platform limitations: pbir desktop is Windows-only; macOS/Linux should use publish-based verification via Fabric and browser rendering rather than Desktop bridge.
- It emphasizes validating after coherent batches and using --all for final passes, and it cautions that rendering verification with Desktop is necessary since validation may not catch rendering issues.
# Working with Power BI reports using `pbir` CLI for exploring, building, managing, formatting Power BI reports. All commands use `pbir`. **IMPORTANT:** ALWAYS use `pbir` CLI commands to inspect and modify reports. NEVER write, replace, copy, or patch report JSON files directly. If the CLI does not expose a required mutation, stop and report the missing capability; do not fall back to file editing. Reading JSON through `pbir cat`, `pbir get`, or read-only examples is allowed. **IMPORTANT:** FIRST Read and adhere to the mental model in [MENTAL-MODEL.md](important/MENTAL-MODEL.md). ## When `pbir` is missing Install it with `uv tool install pbir-cli` (or `pip install pbir-cli`). That is the route to use in every ordinary case, including when the command is missing entirely. `bin/fetch.sh` downloads a self-contained portable build instead. Reach for it **only** when `pbir` is not installed *and* installing it is not possible: no network access to PyPI, no Python, or a locked-down machine that forbids installs. A portable build does not update with `uv tool upgrade`, so preferring it when a normal install would have worked leaves the user on a stale CLI. If an install failed, fix the in
- When pbir is missing
- Keeping the Fabric CLI current
- Learning from Mistakes
- How to use pbir
- General workflow
- Path syntax
- Critical Rules
- Core Workflows
- Exploration and Analysis
- Model Discovery (Required Before Binding Fields)
- Semantic Model + Report Workflows (te + pbir)
- Desktop Integration (Refresh and Screenshot)
- Creating Reports
- Adding and Formatting Visuals
pbir desktop list # FIRST if Desktop is mentioned: instances (PID, open file) pbir ls # Find all reports pbir ls "Report.Report" # List pages/filters/theme pbir tree "Report.Report" -v # Full structure with fields pbir validate "Report.Report" # Health check pbir get "Report.Report" # Report properties pbir pages json "Report.Report/Page.Page" # Check page width/height pbir model "Report.Report" # Connection info (workspace, model, thick/thin) pbir model "Report.Report" -d # All tables, columns, measures pbir model "Report.Report" -d -t Sales # Filter to specific table
What does the pbir-cli skill do?
This skill should be used whenever the user mentions "pbir", "pbir-cli", "Power BI reports", or "PBI reports", works with .pbir, .pbip, or .pbix files, or wants to refresh, screenshot, or visually verify a report that is open in Power BI Desktop. Covers creating, exploring, formatting, validating, and publishing Power BI reports through the pbir CLI and object model, plus driving Power BI Desktop (canvas reload, page screenshots) and querying connected or local semantic models.
How do I install it?
Run `npx skills add data-goblin/power-bi-agentic-development --skill pbir-cli --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From data-goblin/power-bi-agentic-development, a repository with 833 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
