agentleFS
wardawgmalviciouswardawgmalvicious/agent-config/skills/powerbi/pbir-cli/SKILL.md

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.

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
  1. Distinctive:

    Always run these first — they tell you what already exists before you mutate anything:

    line 58

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 download to fetch from Fabric first

Global Flags

FlagPurpose
--quiet / -qSuppress animations, tips, spinners (prefer for scripts)
--debugTracebacks, timing, path resolution to stderr
--version / -VShow version
--show-legacyInclude legacy non-PBIR reports in listings

Verb–Noun Groups

GroupEntry commandsDetail
Discoverypbir ls, pbir tree, pbir find, pbir cat, pbir getreferences/REFERENCE.md § Discovery
Schemapbir schema types, pbir schema containers, pbir schema describe, pbir schema check, pbir schema upgradereferences/REFERENCE.md § Schema
Property get/setpbir set, pbir get, pbir visuals properties, pbir visuals formatreferences/REFERENCE.md § Property
Reportpbir new report, pbir report rebind, pbir report convert, pbir report merge, pbir validate, pbir backup, pbir restorereferences/REFERENCE.md § Report
Pagespbir pages …, pbir add pagereferences/REFERENCE.md § Pages
Visualspbir add visual, pbir visuals …references/REFERENCE.md § Visuals
Conditional formattingpbir visuals cf …, pbir visuals format-field, pbir visuals format-statereferences/REFERENCE.md § CF
Filterspbir filters …, pbir add filterreferences/REFERENCE.md § Filters
Fieldspbir fields …references/REFERENCE.md § Fields
Themepbir theme …references/REFERENCE.md § Theme
DAXpbir dax measures …, pbir dax viscalcs …references/REFERENCE.md § DAX
Bookmarks & annotationspbir bookmarks …, pbir annotations …, pbir add annotationreferences/REFERENCE.md § Bookmarks
Connection / publishpbir connect, pbir profile, pbir download, pbir publish, pbir openreferences/REFERENCE.md § Connection
Model inspectionpbir model …references/REFERENCE.md § Model
Removalpbir rmreferences/REFERENCE.md § Removal
Batchpbir batch run, pbir validatereferences/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, ranges

See references/REFERENCE.md § Discovery and references/REFERENCE.md § Schema for the full flag set.

Gotchas

IssueCauseFix
pbir: command not foundNot installeduv tool install pbir-cli
Glob pattern returns nothingMissing -f flag on setAdd -f for glob selectors
"Report not found"Missing .Report type suffixPaths require Name.Report, Name.Page, Name.Visual
set fails with "unknown property"Property not discovered firstRun pbir schema describe <type>.<container>
Publish fails after local editsStructure invalidRun pbir validate before publish
pbir validate floods SCHEMA_DEGRADED warningsDeclared visualContainer schema version isn't bundled with the CLI; a fallback schema was usedCosmetic, 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 Windowscp1252 stdout encodingSet PYTHONIOENCODING=utf-8
Theme changes not applied per visualVisual has inline overridepbir visuals clear-formatting --only-containers -f
pbir download failsfab CLI not authenticatedRun fab auth login first
Visual overlaps existing headerPlaced coordinates without measuring scaffoldInspect the scaffolded page.json before laying out
pbir new report creates new theme each timeDefault is sqlbiDo 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 CLI
  • pbir-pages — page.json structure consumed by pbir pages …
  • pbir-visual-json — visual.json structure consumed by pbir visuals …
  • pbir-themes — theme JSON structure consumed by pbir theme …

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.