skills/power-bi-docs/SKILL.md
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.
npx skillsauth add julianobarbosa/claude-code-skills power-bi-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate comprehensive documentation for Power BI semantic models.
pipx install pbi-cli-tool
pbi-cli skills install
pbi connect
pbi --json model get # Model metadata
pbi --json model stats # Table/measure/column counts
# 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
pbi database export-tmdl ./model-docs/
This creates a human-readable text representation of the entire model.
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.
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
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/
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"
--json flag for machine-readable outputpbi --json relationship list)measure list returns DAX expressions but not display formatting: Format strings, display folders, and descriptions live on separate properties. To capture a complete measure inventory always pair --json measure list with a TMDL export — the JSON view alone misses metadata that authors care about.table schema ignores calculated columns at the schema level: They show up in column list but table schema reports only the storage-engine schema. Documenting a model from schema alone makes calculated columns invisible.relationship list does not report inactive relationships' purpose: isActive: false shows up but the reason (USERELATIONSHIP usage, role-playing dimension) lives in the measures that reference them. Grep USERELATIONSHIP across the TMDL export to find the consumers.--json outputs to files captures connection-time state: If someone edits the model between commands, your "documentation" mixes pre- and post-edit state. Wrap multi-command catalog runs in a single pbi transaction begin or do them after pbi disconnect / connect on a known model.advanced culture list shows cultures, not which strings are translated: A culture row in the list does not mean every label has a translation. Diff the per-culture string tables in the TMDL export to find gaps.expression list includes both shared parameters and full M queries: Both render as named expressions in the output. A parameter is just a single-line literal expression — easy to misclassify when generating a "data sources" section of docs.testing
Brief description of what this skill does. Include specific triggers - when should Claude use this skill? Example triggers, file types, or keywords that indicate this skill applies.
tools
Manage and troubleshoot PATH configuration in zsh. Use when adding tools to PATH (bun, nvm, Python venv, cargo, go), diagnosing "command not found" errors, validating PATH entries, or organizing shell configuration in .zshrc and .zshrc.local files.
tools
Zabbix monitoring system automation via API and Python. Use when: (1) Managing hosts, templates, items, triggers, or host groups, (2) Automating monitoring configuration, (3) Sending data via Zabbix trapper/sender, (4) Querying historical data or events, (5) Bulk operations on Zabbix objects, (6) Maintenance window management, (7) User/permission management
development
Operate YouTube Music via natural language. Search songs, artists, albums, playlists, lyrics, charts, recommendations, and control playback. Browse personal library, manage playlists, rate tracks, and inspect account info. Use this skill whenever the user asks about YouTube Music, wants to play music, manage playlists, search by song or artist name, inspect lyrics, or control playback.