/pbip:pbir-formatfrom pbip
Reference for Power BI Enhanced Report (PBIR) JSON schemas and patterns. Helps diagnose PBIR metadata issues like visuals not rendering, formatting changes not applying, or Missing_References errors.
Ships in pbip. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Skill that teaches Claude about the Power BI Enhanced Report (PBIR) JSON format to read and use it. Doesn't support legacy report.json or layout report metadata. To convert from legacy to PBIR format, users have to open and save their reports in Power BI Desktop.
Follow within reason the mental model when working with reports.
WARNING: The PBIR format is brittle and easily corrupted. Direct JSON file modification can lead to corruption. Prefer using the pbir CLI tool if available (uv tool install pbir-cli or pip install pbir-cli on macOS and Windows; on Linux run the pbir-cli skill's bin/install-linux.sh, which installs the Windows build under Wine), as it has built-in safeguards against breaking report files. Only fall back to direct JSON modification if the user explicitly requests it or if pbir is not available.
ExportTo REST API rather than calling the edit done on a green validate; the recipe is in fabric-cli:fabric-cli, references/reports.md.pbir validate is necessary, not sufficient: it is a schema and reference checker. A UTF-8 BOM, duplicate filter names across pages, a missing "Schema": "extension", a format property nested inside show, and active: true on a tableEx projection all pass it and all break the report. The enumerated list is in validation.md; treat the first Desktop or service open after a hand edit as part of the change.Set-Content -Encoding utf8 emits one, so the usual advice is inverted here: write from Python, or use -Encoding utf8NoBOM on PowerShell 7 and later. Check with head -c 3 file.json | xxd.additionalProperties: false, so an invented or misplaced key breaks Desktop file-open instead of being ignored; see schemas.mdReport.Report/
+-- .pbi/localSettings.json # Local-only, gitignored
+-- .platform # Fabric Git integration
+-- definition.pbir # Semantic model connection (byPath or byConnection) can open this file in Power BI Desktop to open the report
+-- mobileState.json # PBIR-Legacy artifact only; current PBIR stores phone layout per-visual in mobile.json
+-- semanticModelDiagramLayout.json # Model diagrams
+-- CustomVisuals/ # Private custom visuals only
+-- definition/
| +-- version.json # REQUIRED -- PBIR version
| +-- report.json # REQUIRED -- report-level config, including theme, report filters, settings
| +-- reportExtensions.json # Extension measures and visual calculations (report- and visual-level DAX)
| +-- pages/
| | +-- pages.json # Page order, active page
| | +-- [PageName]/ # Power BI Desktop may generate names with spaces; recommend no spaces for human-authored names
| | +-- page.json # Page-level properties, including size, background, filters
| | +-- visuals/
| | +-- [VisualName]/
| | +-- visual.json # Visual config, formatting, and field data bindings <-- most important and complex file for report dev and formatting
| | +-- mobile.json # Mobile formatting of the visual (niche)
| +-- bookmarks/ # Bookmarks are a bad practice and should be avoided if possible!
| +-- bookmarks.json # Bookmark order and groups
| +-- [id].bookmark.json # Individual bookmark state containing a snapshot of the report basically
+-- StaticResources/
+-- RegisteredResources/ # Custom themes, images
+-- [ThemeName].json # Custom theme <-- second most important and complex file for formatting
+-- SharedResources/BaseThemes/ # Microsoft base themes
Follow within reason the mental model when reviewing or providing feedback on reports.
byConnection), use fab, pbir, or te CLI tools to explore the model. For byPath, connect to the local model in Power BI Desktop. Understanding the model reveals available fields and calculation logicpbir new if the pbir CLI is available; otherwise, check the example reports thoroughlydefinition.pbir is configured properly (byPath or byConnection)report.json or page.json; see filter pane referenceFor detailed report design guidance (layout, spacing, visual hierarchy, color, accessibility), see the pbi-report-design skill. Key rules enforced during validation:
"bad", "good")altText for accessibility. Name visuals descriptively (revenue_bar_chart not a1b2c3d4)| Task | Read |
|---|---|
| Add or modify a visual | references/visual-json.md -- expression syntax, field references, query roles, position, objects vs visualContainerObjects, selectors |
| Change formatting or colors | references/visual-container-formatting.md (container chrome) + references/theme.md (theme-level formatting). Prefer theme changes over bespoke visual formatting |
| Add conditional formatting | references/schema-patterns/conditional-formatting.md + references/measures.md (extension measures for CF) |
| Add or configure filters | references/filter-pane.md -- all 7 filter types, default values, filter discovery |
| Work with the theme | references/theme.md -- inheritance, wildcards, visual-type overrides, filter pane styling, inspecting and modifying with jq |
| Push visual formatting to theme | references/theme.md -- promote bespoke visual formatting into theme defaults for that visual type (copy from visual.json objects/visualContainerObjects into theme visualStyles) |
| Change page layout/background | references/page.md -- dimensions, background, wallpaper, visualInteractions |
| Create a tooltip page | references/page.md -- tooltip page setup (type, size, visibility) + visualTooltip opt-in on visuals |
| Create a drillthrough page | references/page.md -- drillthrough filter in page filterConfig |
| Change report settings | references/report.md -- themeCollection, resourcePackages, settings, outspacePane |
| Hand-author a report.json from scratch | references/report.md -- Hand-authoring report.json: themeCollection is required on schema 3.3.0 and needs a populated baseTheme plus its resourcePackages entry |
| Add extension measures | references/measures.md -- reportExtensions.json structure, DAX patterns, referencing |
| Add annotations / metadata | references/annotations.md -- custom name-value metadata on reports, pages, and visuals for deployment scripts, documentation, and external tooling |
| Add images or SVGs | references/images.md -- RegisteredResources, base64 in themes, SVG measures |
| Add or modify textboxes | references/textbox.md -- paragraphs, textRuns, textStyle |
| Sort a visual | references/sort-visuals.md -- sortDefinition inside query; an extension measure in a sort needs "Schema": "extension" too |
| Bind a field parameter | references/visual-json.md -- Field Parameters: expanded projections plus the sibling fieldParameters array; measure wells only |
| Clone a page or a visual | references/page.md -- regenerate every name id, filterConfig filter names included, then grep definition/bookmarks/ |
| Add or remove a page or visual by hand | references/pbir-structure.md -- visuals are discovered from their folders; pages must also be listed in pages.json pageOrder |
| Format a slicer (dropdown, header, height) | references/visual-json.md -- Slicer Formatting: objects.data mode, the slicer object set, the 76px floor; the list slicer's boolean dropdownMode |
Bind or format the native Gantt (ganttChart) | references/visual-json.md -- Gantt Chart: roles, level and column selectors, row height, colour cascade, category rows without bars, axis units |
| Bind or format a card's trend chart (Trend axis) | references/visual-json.md -- Card Trend Chart: the TrendVisualCategory role, the trend objects, series selectors, the shape map resource |
| Set an axis title | references/visual-json.md -- Axis Titles: the property is titleText, not axisTitle |
| A formatting change did nothing | references/visual-container-formatting.md (What Goes Wrong) + references/schema-patterns/selectors.md (a missing {"id": "default"} selector) |
A slicer, button, navigator, bookmark or shape renders wrong though pbir validate passes | references/silent-render-traps.md -- slicer object sets, button states, navigator page ids, data bookmarks, theme wildcard reach, textbox heights, project-file blank opens |
| Write PBIR or TMDL from a script | references/validation.md -- no UTF-8 BOM, and what a clean validate does not prove |
| Sync slicers across pages | references/visual-json.md -- syncGroup (groupName, fieldChanges, filterChanges) |
| Edit visual interactions | references/visual-json.md + references/page.md -- visualInteractions in page.json (Default, DataFilter, HighlightFilter, NoFilter) |
| Change table/matrix column widths | references/visual-json.md -- columnWidth with metadata selector |
| Group visuals | references/visual-json.md -- visualGroup, parentGroupName, groupMode |
| Hide visuals or fields | references/visual-json.md -- isHidden at root level, query projection control |
| Format chart elements (labels, markers, lines) | references/visual-json.md -- labels, markers, lineStyles, dataPoint |
| Add analytics lines (reference, trend, error, forecast) | references/visual-json.md -- y1AxisReferenceLine, trend, error, forecast |
| Work with bookmarks | references/bookmarks.md -- bookmark state, filter snapshots, visual show/hide |
| Find model fields | references/semantic-model/finding-fields.md -- pbir model, te, fab commands |
| Rebind to different model | references/semantic-model/report-rebinding.md -- byPath vs byConnection conversion |
| Understand schema versions | references/schemas.md -- all schema types and current versions |
| Validate or check conformance | references/validation.md -- conformance dimensions, pbir validate categories, name and required-field rules, audit and discovery commands, what a clean validate does not prove, and how to verify rendering with or without Desktop |
| Understand how visuals generate DAX queries | references/semantic-model/inferring-queries-from-visuals.md -- visual metadata → SUMMARIZECOLUMNS mapping, data roles, IGNORE() context |
| Build or verify DAX query patterns | references/semantic-model/model-queries.md -- SUMMARIZECOLUMNS patterns, ROW(), query execution methods |
| Rename a table or field across visual JSON | references/rename-patterns.md -- Entity/Property/queryRef patterns in visual.json, filterConfig, reportExtensions |
| Fix broken field references after model changes | references/how-to/fix-broken-field-references.md -- diagnosis, repair workflow for renamed/moved/removed fields, slicer value pitfalls |
| Convert legacy report.json to PBIR format | references/how-to/convert-legacy-to-pbir.md -- format differences, step-by-step conversion, projections-to-queryState mapping, validation |
| Understand reportExtensions.json schema | references/report-extensions.md -- file schema structure, entities, visual calculations; see references/measures.md for DAX authoring patterns |
| Set dynamic (measure-driven) alt text | references/visual-container-formatting.md -- altText as a Measure expression under visualContainerObjects.general |
| Add a dynamic text run to a textbox | references/textbox.md -- measure-bound textRuns; round-trip from Desktop required |
| Understand drill-down cross-filter behavior | references/visual-json.md -- drillFilterOtherVisuals vs visualInteractions |
| Register a custom visual (AppSource, org-store, private .pbiviz) | references/report.md -- publicCustomVisuals, organizationCustomVisuals, resourcePackages |
| Understand schema version coupling | references/schemas.md -- parent/embedded schema sets, copying fragments between reports |
| Set up mobile (phone) layout | references/pbir-structure.md -- mobile.json per-visual, coordinate space, git hygiene |
| Git hygiene for a PBIR project | references/pbir-structure.md -- what to track, ignore, and leave to Desktop |
A report must be connected to a semantic model. There are two ways to do this:
{"byPath": {"path": "../Model.SemanticModel"}} (schema 2.0.0){"byConnection": {"connectionString": "Data Source=powerbi://..."}} (schema 2.0.0)pbip -- PBIP project operations: rename cascades, project forking, report JSON patternstmdl -- TMDL file format, authoring, and editingFetching Docs: To retrieve current Power BI developer/report format docs, use microsoft_docs_search + microsoft_docs_fetch (MCP) if available, otherwise search https://learn.microsoft.com and fetch the relevant pages. Search based on the user's request and run multiple searches as needed to ensure sufficient context before proceeding.
Examples:
examples/K201-MonthSlicer.Report/ -- Real PBIR report with 7 visual types (slicer, advancedSlicerVisual, kpi, lineChart, scatterChart, tableEx, textbox), extension measures, bookmarks, conditional formattingexamples/visuals/ -- 54 standalone visual.json examples; see examples/visuals/__index.md for a catalog. Split into default/ (minimal, theme-only) and formatted/ (bespoke formatting, conditional formatting, gradients, filters)Core references:
references/visual-json.md -- visual.json: expressions, field refs, query roles, position, objects vs vCO, selectors, sorting, filters, drill-down propagationreferences/desktop-bridge.md -- Verifying PBIR edits via pbir desktop reload + screenshot; Desktop Bridge setting; locating the open PBIPreferences/pbir-structure.md -- PBIR folder structure, adding or removing a page or visual by hand (folder discovery vs pages.json pageOrder), mobile.json storage mechanics, git hygienereferences/schemas.md -- Schema versions, URLs, and embedded schema couplingreferences/validation.md -- Conformance dimensions and how to validate (schema, names and ids, required fields, fields, enums, roles, layout, theme, semantic); pbir validate categories; audit and discovery commands; the failures a clean validate misses, the no-BOM rule, and verifying the render with or without Desktopreferences/silent-render-traps.md -- Per-visual PBIR that validates and still renders wrong: slicers, buttons, navigators, bookmarks, shapes, textboxes, container objects, theme wildcards, blank opens from entry-point filesreferences/enumerations.md -- Valid property enumerationsreferences/version-json.md -- version.json format (concise)references/platform.md -- .platform file format (concise)references/bookmarks.md -- Bookmark structure and state snapshotsFormatting & expressions:
references/theme.md -- Theme wildcards, inheritance, color system, filter pane styling, visual-type overrides, and whether the base theme file exists on disk. Includes jq patterns for inspecting and modifying theme JSON directlyreferences/schema-patterns/ -- Expressions, selectors, conditional formatting, visual calculationsreferences/visual-container-formatting.md -- objects vs visualContainerObjects deep-dive; dynamic (measure-driven) altTextreferences/measures-vs-literals.md -- When to use measure expressions vs literal valuesreferences/measures.md -- Extension measure patternsVisual & page configuration:
references/textbox.md -- Textbox visual format; dynamic (measure-bound) text runsreferences/page.md -- Page configuration and backgrounds; cloning a page or a visual without duplicating idsreferences/report.md -- Report-level settings; hand-authoring a report.json from scratch (a populated themeCollection is required on schema 3.3.0); custom visual registration (AppSource, org-store, private .pbiviz)references/wallpaper.md -- Report wallpaper/canvas backgroundreferences/filter-pane.md -- Filter pane formattingreferences/sort-visuals.md -- Visual sort configuration; extension measures in sortDefinitionreferences/images.md -- Static images, base64 in themes, SVG measuresreferences/report-extensions.md -- reportExtensions.json format; the two-key references block (measures, unrecognizedReferences, and no columns array)references/annotations.md -- Custom metadata on reports, pages, and visualsSemantic model integration:
references/semantic-model/ -- Field references, model structure, report rebinding, query inferenceHow-to guides:
references/how-to/ -- Advanced conditional formatting, SVG in visuals, fix broken field references, convert legacy to PBIRexamples/K201-MonthSlicer.Report/StaticResources/RegisteredResources/SqlbiDataGoblinTheme.json (opens in a new tab)examples/K201-MonthSlicer.Report/StaticResources/SharedResources/BaseThemes/CY24SU10.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition.pbir (opens in a new tab)examples/K201-MonthSlicer.Report/definition/bookmarks/54698b9cd0a0c57906b7.bookmark.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/bookmarks/71abeb475381792b035d.bookmark.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/bookmarks/82ce9a7f49847d03190a.bookmark.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/bookmarks/8f5a4883bde0d3bd075d.bookmark.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/bookmarks/958f29ad733c047ee0b8.bookmark.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/bookmarks/bookmarks.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/bookmarks/e5b8aa0b8e0565be9ce0.bookmark.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/page.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/visuals/ButtonSlicer_TopCenter.Visual/visual.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/visuals/ButtonSlicer_TopCenter_2.Visual/visual.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/visuals/KPI_TopLeft.Visual/visual.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/visuals/LineChart_TopLeft.Visual/visual.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/visuals/ScatterChart_MiddleLeft.Visual/visual.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/visuals/Table_TopCenter.Visual/visual.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/AfterReport.Page/visuals/Textbox_TopLeft.Visual/visual.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/Before Report.Page/page.json (opens in a new tab)examples/K201-MonthSlicer.Report/definition/pages/Before Report.Page/visuals/KPI_TopLeft.Visual/visual.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub insightfulanalytics/pbi_agentic_dev --plugin pbip3 skills in this plugin
/pbipExpert guidance for the Power BI Project (PBIP) file format; project structure, cross-cutting operations (renames, forking), and PBIX extraction/conversion. Automatically invoke when the user mentions PBIP, PBIX, .pbip/.pbism/.platform files, or asks about "PBIP project structure", "PBIP vs PBIX", "thin report vs thick report", "rename a table", "cascade rename", "fork a PBIP project", "convert pbix to pbip", "extract pbix", "what files are in a PBIP", "PBIP encoding", "definition.pbir", or discusses project-level file structure and post-rename verification./tmdlDirect TMDL file authoring and BIM-to-TMDL conversion for semantic models in PBIP projects. Automatically invoke when the user asks to "edit TMDL", "add a measure in TMDL", "TMDL syntax", "fix formatString", "fix summarizeBy", "TMDL indentation", "convert BIM to TMDL", "add a column description", "create a calculated column in TMDL", or mentions .tmdl file editing or BIM-to-TMDL migration.Other plugins' skills for the same job