power-bi-governancelisted
Install: claude install-skill mudassir09/pbi-enterprise-cli
# power-bi-governance
## Quick Reference
```bash
# Run governance checks
pbi govern check --pbip "C:/Reports/MyReport"
# Output as JSON for CI integration
pbi govern check --json
# Auto-fix safe violations
pbi govern fix --auto
# Initialize governance config
pbi govern init
# Check only specific rules
pbi govern check --rules naming,measures
# BPA (Best Practice Analyzer) — run community rules without Tabular Editor
pbi govern bpa check # fetch Microsoft community rules live
pbi govern bpa check --file ./BPARules.json # local rule file
pbi govern bpa check --url https://example.com/BPARules.json # custom URL
pbi govern bpa check --severity error # filter by severity (info|warning|error)
pbi govern bpa check --category Performance # filter by category name
pbi --backend mock --json govern bpa check --file ./BPARules.json # JSON output for CI
```
---
## governance.json Configuration
Created by `pbi govern init` at the project root:
```json
{
"version": "1.0",
"rules": {
"naming": {
"tables": {
"pattern": "^[A-Z][a-zA-Z0-9 ]+$",
"examples": ["Sales", "Date", "Product"],
"forbidden": ["tbl_", "Tbl", "fact_", "dim_"]
},
"measures": {
"pattern": "^[A-Z][a-zA-Z0-9 %#$]+$",
"examples": ["Total Sales", "Profit %", "Units Sold #"],
"forbidden": ["Measure", "measure_", "_calc", "test"]
},
"columns": {
"pattern": "^[A-Z][a