pbir-cli
Skill1 starsChanged 55 days agoMITView on GitHub
Use when running the pbir CLI (install via uv tool install pbir-cli) to inspect or edit local Power BI PBIR reports. Covers path syntax (Report.Report/Page.Page/Visual.Visual with required type suffixes, glob patterns, property dot-notation), verb noun groups — report / page / visual / filter / bookmark / theme / dax / fields / schema / profile / annotation / model — plus discovery verbs (ls / tree / find / cat / get / schema describe) that should run before any mutation, property get/set with glob bulk edits requiring -f, validation and publish flows, download/publish to Fabric workspaces, and batch runs. Detailed per-command flags and arguments live in references/REFERENCE.md. Invoke whenever the user mentions pbir <verb>, pbir-cli, pbir set/get/ls/add/new/rm/validate/publish, or any specific pbir subcommand.
In this repository62 other files it gives its agents.
- claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- author-skillSkill
- drift-auditSkill
- drift-handoffSkill
- drift-updateSkill
- test-skillSkill
- triageSkill
- fabric-activatorSkill
- fabric-ai-functionsSkill
- fabric-authSkill
- fabric-catalog-governanceSkill
- fabric-cicdSkill
- fabric-cliSkill
- fabric-copy-jobSkill
- fabric-data-agentSkill
- fabric-databaseSkill
- fabric-dataflowSkill
- fabric-data-pipelineSkill
- fabric-deployment-pipelinesSkill
- fabric-error-handlingSkill
- fabric-eventhouseSkill
- fabric-event-schema-setSkill
- fabric-eventstreamSkill
- fabric-gotchasSkill
- fabric-graphSkill
- fabric-mirroringSkill
- fabric-mlvSkill
- fabric-ontologySkill
- fabric-operations-agentSkill
- fabric-realtime-dashboardSkill
- fabric-rest-apiSkill
- fabric-securitySkill
- fabric-semantic-model-ai-instructionsSkill
- fabric-semantic-model-auditSkill
- fabric-spark-monitoringSkill
- fabric-sparkSkill
- fabric-tmdl-apiSkill
- fabric-tmdlSkill
- fabric-variable-librarySkill
- fabric-warehouse-monitoringSkill
- fabric-warehouseSkill
- learnSkill
- pbid-tom-liveSkill
- pbip-project-structureSkill
- pbir-bookmarksSkill
- pbir-conditional-formattingSkill
- pbir-filtersSkill
- pbir-pagesSkill
- pbir-report-workflowSkill
- pbir-themesSkill
- pbir-visual-jsonSkill
- powerbi-report-authoringSkill
- powerbi-report-designSkill
- linkedin-highlightsSkill
- msix-packagingSkill
- code-reviewSkill
- commitSkill
- find-sessionSkill
- landSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 58
Always run these first — they tell you what already exists before you mutate anything:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
pbir CLI — Verb Index
Agent-first CLI for manipulating local Power BI reports in PBIR format. Install separately: uv tool install pbir-cli. Verify with pbir --version.
Run discovery before every mutation. pbir schema describe <type>.<container> is the canonical way to confirm a property exists before pbir set. Run pbir validate after every mutation.
Path Syntax
Report.Report/Page.Page/Visual.Visual- Type suffixes (
.Report,.Page,.Visual) are REQUIRED - Glob patterns:
**/*.Visual,**/card*.Visual - Property dot-notation after path:
Visual.Visual.title.fontSize - Reports must be local PBIR — use
pbir downloadto fetch from Fabric first
Global Flags
| Flag | Purpose |
--quiet / -q | Suppress animations, tips, spinners (prefer for scripts) |
--debug | Tracebacks, timing, path resolution to stderr |
--version / -V | Show version |
--show-legacy | Include legacy non-PBIR reports in listings |
Verb–Noun Groups
| Group | Entry commands | Detail |
| Discovery | pbir ls, pbir tree, pbir find, pbir cat, pbir get | references/REFERENCE.md § Discovery |
| Schema | pbir schema types, pbir schema containers, pbir schema describe, pbir schema check, pbir schema upgrade | references/REFERENCE.md § Schema |
| Property get/set | pbir set, pbir get, pbir visuals properties, pbir visuals format | references/REFERENCE.md § Property |
| Report | pbir new report, pbir report rebind, pbir report convert, pbir report merge, pbir validate, pbir backup, pbir restore | references/REFERENCE.md § Report |
| Pages | pbir pages …, pbir add page | references/REFERENCE.md § Pages |
| Visuals | pbir add visual, pbir visuals … | references/REFERENCE.md § Visuals |
| Conditional formatting | pbir visuals cf …, pbir visuals format-field, pbir visuals format-state | references/REFERENCE.md § CF |
| Filters | pbir filters …, pbir add filter | references/REFERENCE.md § Filters |
| Fields | pbir fields … | references/REFERENCE.md § Fields |
| Theme | pbir theme … | references/REFERENCE.md § Theme |
| DAX | pbir dax measures …, pbir dax viscalcs … | references/REFERENCE.md § DAX |
| Bookmarks & annotations | pbir bookmarks …, pbir annotations …, pbir add annotation | references/REFERENCE.md § Bookmarks |
| Connection / publish | pbir connect, pbir profile, pbir download, pbir publish, pbir open | references/REFERENCE.md § Connection |
| Model inspection | pbir model … | references/REFERENCE.md § Model |
| Removal | pbir rm | references/REFERENCE.md § Removal |
| Batch | pbir batch run, pbir validate | references/REFERENCE.md § Batch |
Discovery Quickstart
Always run these first — they tell you what already exists before you mutate anything:
pbir ls # All reports with counts
pbir ls --tree # Tree view
pbir ls "Sales.Report" # Pages, filters, theme
pbir ls "Sales.Report/Overview.Page" # Visuals on page
pbir tree "Sales.Report" -v # Tree with field bindings
pbir find "**/*.Visual" --count # Count visuals
pbir find "**/card*.Visual" --json # Glob + JSON
pbir cat "Sales.Report/Overview.Page" # Raw page JSON
pbir cat "Sales.Report/theme" # Theme JSON
pbir schema types # List visual types
pbir schema describe card.title # Properties, types, rangesSee references/REFERENCE.md § Discovery and references/REFERENCE.md § Schema for the full flag set.
Gotchas
| Issue | Cause | Fix |
pbir: command not found | Not installed | uv tool install pbir-cli |
| Glob pattern returns nothing | Missing -f flag on set | Add -f for glob selectors |
| "Report not found" | Missing .Report type suffix | Paths require Name.Report, Name.Page, Name.Visual |
set fails with "unknown property" | Property not discovered first | Run pbir schema describe <type>.<container> |
| Publish fails after local edits | Structure invalid | Run pbir validate before publish |
pbir validate floods SCHEMA_DEGRADED warnings | Declared visualContainer schema version isn't bundled with the CLI; a fallback schema was used | Cosmetic, one per file — only errors block. Note schema-valid ≠ engine-valid: verify hand-authored SQExpr shapes against Desktop-serialized reports (e.g. microsoft/BCApps); see pbir-filters § TopN |
| UnicodeEncodeError on Windows | cp1252 stdout encoding | Set PYTHONIOENCODING=utf-8 |
| Theme changes not applied per visual | Visual has inline override | pbir visuals clear-formatting --only-containers -f |
pbir download fails | fab CLI not authenticated | Run fab auth login first |
| Visual overlaps existing header | Placed coordinates without measuring scaffold | Inspect the scaffolded page.json before laying out |
pbir new report creates new theme each time | Default is sqlbi | Do NOT re-apply unless user requests different theme |
See also
- references/REFERENCE.md — full per-command flag and argument reference
pbir-report-workflow— end-to-end report creation with this CLIpbir-pages— page.json structure consumed bypbir pages …pbir-visual-json— visual.json structure consumed bypbir visuals …pbir-themes— theme JSON structure consumed bypbir theme …
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

