/power-bi-docs
Auto-document Power BI semantic models by extracting metadata, generating documentation, and cataloging all model objects using pbi-cli. Invoke this skill whenever the user says "document this model", "what's in this model", "list everything", "data dictionary", "model
$ npx -y skills add MinaSaad1/pbi-cli --skill power-bi-docs --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/power-bi-docs
Context preview
The summary Claude sees to decide when to auto-load this skill.
Auto-document Power BI semantic models by extracting metadata, generating documentation, and cataloging all model objects using pbi-cli. Invoke this skill whenever the user says "document this model", "what's in this model", "list everything", "data dictionary", "model
SKILL.md
power-bi-docs.SKILL.mdname: Power BI Documentation
description: Auto-document Power BI semantic models by extracting metadata, generating documentation, and cataloging all model objects using pbi-cli. Invoke this skill whenever the user says "document this model", "what's in this model", "list everything", "data dictionary", "model inventory", "audit contents", "catalog", "describe the model", or wants to understand what objects exist in a semantic model.
tools: pbi-cli
Power BI Documentation Skill
Generate comprehensive documentation for Power BI semantic models.
Prerequisites
pipx install pbi-cli-tool
pbi-cli skills install
pbi connect
Quick Model Overview
pbi --json model get # Model metadata
pbi --json model stats # Table/measure/column counts
Catalog All Objects
# Tables and their structure
pbi --json table list
pbi --json table get Sales
pbi --json table schema Sales
# All measures
pbi --json measure list
# Individual measure details
pbi --json measure get "Total Revenue" --table Sales
# Columns per table
pbi --json column list --table Sales
pbi --json column list --table Products
# Relationships
pbi --json relationship list
# Security roles
pbi --json security-role list
# Hierarchies
pbi --json hierarchy list --table Date
# Calculation groups
pbi --json calc-group list
# Perspectives
pbi --json perspective list
# Named expressions (M queries)
pbi --json expression list
# Partitions
pbi --json partition list --table Sales
# Calendar/date tables
pbi --json calendar list
Export Full Model as TMDL
pbi database export-tmdl ./model-docs/
This creates a human-readable text representation of the entire model.
Workflow: Generate Model Documentation
Run these commands to gather all information needed for documentation:
# Step 1: Model overview
pbi --json model get > model-meta.json
pbi --json model stats > model-stats.json
# Step 2: All tables
pbi --json table list > tables.json
# Step 3: All measures
pbi --json measure list > measures.json
# Step 4: All relationships
pbi --json relationship list > relationships.json
# Step 5: Security roles
pbi --json security-role list > security-roles.json
# Step 6: Column details per table (loop through tables)
pbi --json column list --table Sales > columns-sales.json
pbi --json column list --table Products > columns-products.json
# Step 7: Full TMDL export
pbi database export-tmdl ./tmdl-export/
Then assemble these JSON files into markdown or HTML documentation.
Workflow: Data Dictionary
For each table, extract columns and their types:
# Get schema for key tables
pbi --json table schema Sales
pbi --json table schema Products
pbi --json table schema Calendar
Workflow: Measure Catalog
Create a complete measure inventory:
# List all measures with expressions
pbi --json measure list
# Export full model as TMDL (includes all measure definitions)
pbi database export-tmdl ./tmdl-export/
Culture Management
For multi-language models:
# List cultures (locales)
pbi --json advanced culture list
# Create a culture for localization
pbi advanced culture create "fr-FR"
# Delete a culture
pbi advanced culture delete "fr-FR"
Best Practices
- Always use `--json` flag for machine-readable output
- Export TMDL alongside JSON for complete documentation
- Run documentation generation as part of CI/CD pipeline
- Keep documentation in version control alongside TMDL exports
- Include relationship diagrams (generate from `pbi --json relationship list`)
- Document measure business logic, not just DAX expressions
- Tag measures by business domain using display folders
Read more
name: Power BI Documentation description: Auto-document Power BI semantic models by extracting metadata, generating documentation, and cataloging all model objects using pbi-cli. Invoke this skill whenever the user says "document this model", "what's in this model", "list everything", "data dictionary", "model inventory", "audit contents", "catalog", "describe the model", or wants to understand what objects exist in a semantic model. tools: pbi-cli
Power BI Documentation Skill
Generate comprehensive documentation for Power BI semantic models.
Prerequisites
pipx install pbi-cli-tool pbi-cli skills install pbi connect
Quick Model Overview
pbi --json model get # Model metadata pbi --json model stats # Table/measure/column counts
Catalog All Objects
# Tables and their structure pbi --json table list pbi --json table get Sales pbi --json table schema Sales # All measures pbi --json measure list # Individual measure details pbi --json measure get "Total Revenue" --table Sales # Columns per table pbi --json column list --table Sales pbi --json column list --table Products # Relationships pbi --json relationship list # Security roles pbi --json security-role list # Hierarchies pbi --json hierarchy list --table Date # Calculation groups pbi --json calc-group list # Perspectives pbi --json perspective list # Named expressions (M queries) pbi --json expression list # Partitions pbi --json partition list --table Sales # Calendar/date tables pbi --json calendar list
Export Full Model as TMDL
pbi database export-tmdl ./model-docs/
This creates a human-readable text representation of the entire model.
Workflow: Generate Model Documentation
Run these commands to gather all information needed for documentation:
# Step 1: Model overview pbi --json model get > model-meta.json pbi --json model stats > model-stats.json # Step 2: All tables pbi --json table list > tables.json # Step 3: All measures pbi --json measure list > measures.json # Step 4: All relationships pbi --json relationship list > relationships.json # Step 5: Security roles pbi --json security-role list > security-roles.json # Step 6: Column details per table (loop through tables) pbi --json column list --table Sales > columns-sales.json pbi --json column list --table Products > columns-products.json # Step 7: Full TMDL export pbi database export-tmdl ./tmdl-export/
Then assemble these JSON files into markdown or HTML documentation.
Workflow: Data Dictionary
For each table, extract columns and their types:
# Get schema for key tables pbi --json table schema Sales pbi --json table schema Products pbi --json table schema Calendar
Workflow: Measure Catalog
Create a complete measure inventory:
# List all measures with expressions pbi --json measure list # Export full model as TMDL (includes all measure definitions) pbi database export-tmdl ./tmdl-export/
Culture Management
For multi-language models:
# List cultures (locales) pbi --json advanced culture list # Create a culture for localization pbi advanced culture create "fr-FR" # Delete a culture pbi advanced culture delete "fr-FR"
Best Practices
- Always use `--json` flag for machine-readable output
- Export TMDL alongside JSON for complete documentation
- Run documentation generation as part of CI/CD pipeline
- Keep documentation in version control alongside TMDL exports
- Include relationship diagrams (generate from `pbi --json relationship list`)
- Document measure business logic, not just DAX expressions
- Tag measures by business domain using display folders
Power BI CLI - semantic models (.NET TOM) and PBIR reports for token-efficient AI agent usage, built for Claude Code
Repo: MinaSaad1/pbi-cli
Other skills on pbi-cli.
- /power-bi-custom-visuals
Vibe-code Power BI custom visuals end-to-end: scaffold a TypeScript project, iterate on src/visual.ts and capabilities.json, validate with the Power BI Visuals SDK toolchain, package to .pbiviz, and import into a PBIR report. Invoke this skill whenever the user mentions "custom
Open skill - /power-bi-dax
Write, execute, and optimize DAX queries and measures for Power BI semantic models using pbi-cli. Invoke this skill whenever the user mentions DAX, queries data in Power BI, writes calculations, creates measures, asks about EVALUATE, SUMMARIZECOLUMNS, CALCULATE, time
Open skill - /power-bi-deployment
Import and export TMDL/TMSL formats, manage model lifecycle with transactions, and version-control Power BI semantic models using pbi-cli. Invoke this skill whenever the user mentions "deploy", "export", "import", "TMDL", "TMSL", "version control", "git", "backup", "migrate",
Open skill - /power-bi-diagnostics
Troubleshoot Power BI model performance, trace query execution, manage caches, and verify the pbi-cli environment using pbi-cli. Invoke this skill whenever the user says "pbi not working", "setup issues", "connection failed", "slow query", "performance", "profiling", "tracing",
Open skill - /power-bi-filters
Add, remove, and manage page-level and visual-level filters on Power BI PBIR reports using pbi-cli. Invoke this skill whenever the user mentions "filter", "TopN filter", "top 10", "bottom 5", "relative date filter", "last 30 days", "categorical filter", "include values",
Open skill - /power-bi-modeling
Create and manage Power BI semantic model structure using pbi-cli -- tables, columns, measures, relationships, hierarchies, calculation groups, and date/calendar tables. Invoke this skill whenever the user says "create table", "add measure", "add column", "create relationship",
Open skill

