Power BI Documentation

Power BI Documentation is a skill for Claude Code, Codex from MinaSaad1/pbi-cli. It costs 83 tokens per session (865 once invoked), scanned A, original, MIT.

A tool for creating a catalogue of everything in a Power BI semantic model, such as tables, fields, calculations, relationships, security roles, and queries.

In plain words
What is it for?
Use it to generate model overviews, counts, object lists, data dictionaries, inventories, and text-based TMDL documentation.
Why use it?
It gives teams a structured view of what a model contains instead of requiring them to inspect each object manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is pbi database export-tmdl ./model-docs/.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Power BI Documentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/minasaad1/pbi-cli/power-bi-docs.svg)](https://agentmods.dev/skills/minasaad1/pbi-cli/power-bi-docs)
Your own site
<a href="https://agentmods.dev/skills/minasaad1/pbi-cli/power-bi-docs"><img src="https://agentmods.dev/badge/skills/minasaad1/pbi-cli/power-bi-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 865 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.00865
Opus 5 $0.00042 $0.00432
Sonnet 5 $0.00017 $0.00173
Haiku 4.5 $0.00008 $0.00086

Measured 6d ago against content hash 0707d230894f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Power BI Documentation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/pbi_cli/skills/power-bi-docs/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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/

Read the full file on GitHub · 155 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 155 lines · 83 tokens per session scan A 0707d230894f

Subscribe to this mod's changes

Power BI Documentation is a skill published in the GitHub repository MinaSaad1/pbi-cli (451 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 865 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

powerbi-expert

Expert-level Power BI, DAX, M language, data modeling, Power Query, report design, and paginated reports. Use when the user mentions DAX, Power Query, BI, Microsoft platforms, analytics, or data modeling, or when the task involves DAX Fundamentals, Advanced DAX, Row-Level Security, or Report Design.

personamanagmentlayer/pcl · 73 tokens

powerbi-modeling

Power BI semantic models - DAX measures, star schemas, relationships, RLS, and performance tuning via MCP. Use when creating data models, writing DAX, or configuring table relationships in Power BI.

PracticalSwan/agent-skills · 46 tokens

pbi-check-loop

Closes the verify loop for Power BI Desktop development: reloads a .pbip so Desktop re-reads TMDL/PBIR changed on disk, and captures the window so a model can see what rendered. Power BI has no reload command of its own. Use whenever working on a .pbip project - editing measures, TMDL, relationships, M, visual.json…

C-QY/pbi-check-loop · 276 tokens

mcp-engine-dax-performance

Use when a DAX query, measure, or visual is slow, when interpreting analyze timings, Storage Engine / Formula Engine splits, or query plans, when VertiPaq storage size or cardinality drives cost, or when the user wants a tuning pass or before/after benchmark. For wrong values, use mcp-engine-dax-debugging; for writing…

maxanatsko/mcp-engine-public · 101 tokens

mcp-engine-onboarding

Use when a user types onboarding, asks to set up SemanticOps MCP, wants help choosing Free vs Pro, or wants licensing, modes, masking, guardrails, preferences, model safety, tests, reporting, diagnostics, RLS testing, or Enterprise posture tailored to their workflow. For changing security, policy, or masking on an…

maxanatsko/mcp-engine-public · 86 tokens

mcp-engine-bootstrap

Use when starting a SemanticOps MCP session, connecting to a Power BI model, checking the current connection, applying saved preferences, composing bulk or write payloads, or recovering from empty results, stale metadata, or argument validation errors. For task work after the session is healthy, use the matching…

maxanatsko/mcp-engine-public · 87 tokens