/powerbi-custom-visuals:pbiviz-scaffold <visual name> [--mapping categorical|table|matrix|single] [--lib d3|react|none] [--api 5.11.0]from powerbi-custom-visuals
Scaffolds a Power BI custom visual project with pbiviz, configures data mapping, rendering library, and API version for the modern format pane.
Ships in powerbi-custom-visuals. Installing the plugin adds it to Claude Code.
Create a buildable visual project and tailor it to the user's intended chart.
References: ${CLAUDE_PLUGIN_ROOT}/skills/powerbi-custom-visuals/references/project-structure.md and the examples under ${CLAUDE_PLUGIN_ROOT}/skills/powerbi-custom-visuals/examples/.
A full .pbiviz is not always the fastest path. If the user just needs inline sparklines/KPIs, a declarative chart, or no-code, point them at the lighter options first (${CLAUDE_PLUGIN_ROOT}/skills/powerbi-custom-visuals/references/building-approaches.md): SVG-via-DAX, Deneb (Vega/Vega-Lite), HTML Content, or Charticulator. Proceed with scaffolding when they need lifecycle control, a custom format pane, advanced interactivity, or AppSource distribution.
Parse the name and flags. Establish:
--mapping or infer (charts → categorical, grids → table, hierarchies → matrix, KPI → single).--lib (d3 default, react for a React + TypeScript visual, or none).--api (default a 5.1+ value for the modern format pane).pbiviz new <name> in the target directory.cd <name> and run npm install.--lib d3, add d3 and @types/d3 to package.json and install.Edit pbiviz.json: set displayName, visualClassName (match the class), a four-part version, apiVersion (5.1+), and author. Leave description for /pbiviz-package but note it is required before packaging.
capabilities.json for the chosen mapping (use ${CLAUDE_PLUGIN_ROOT}/skills/powerbi-custom-visuals/examples/capabilities-json.md), including "privileges": [].src/settings.ts (formatting model) with card/slice names matching the capabilities objects (use the formatting-settings example).src/visual.ts implementing IVisual with the Rendering Events API, DataView parsing for the mapping, and getFormattingModel (use the bar-chart example as the template, adapted to the mapping).npx eslint . --ext .js,.jsx,.ts,.tsx and fix issues.pbiviz start (or run /pbiviz-debug) to view the Developer Visual.visualClassName, the class name, and capabilities/settings names consistent.update and pair with a landing page when appropriate.externalJS (unsupported) — use npm dependencies.Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub thelobbi/claude-m --plugin powerbi-custom-visuals11 commands in this plugin
/pbiviz-capabilitiesAuthor or edit capabilities.json — data roles, dataView mappings, conditions, Format-pane objects, privileges, and feature flags — keeping it consistent with the visual code./pbiviz-certifyAudit a custom visual against Power BI certification requirements and prepare the AppSource / Partner Center submission, with a pass/fail readiness report./pbiviz-dataviewDesign a dataView mapping and generate the matching DataView-parsing code in visual.ts for categorical, table, matrix, or single mappings.Other plugins' commands for the same job