pbi-context: Skill for Claude Code

.claude/skills/analyze-pbi-model/SKILL.md

analyze-pbi-model is a skill for Claude Code from Osc2405/pbi-context. It costs 97 tokens per session (1,116 once invoked), scanned A, original, MIT.

A tool for examining a Power BI data model, the structure behind reports and dashboards, including tables, fields, measures, and relationships.

In plain words
What is it for?
Use it to explain or document a Power BI model and answer questions about its DAX measures, columns, tables, and connections.
Why use it?
It turns model files into searchable context so you can understand them without loading every file manually.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is Osc2405/pbi-context's own configuration. It tells Claude Code how to work on pbi-context itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pbi-context configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Osc2405/pbi-context. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Osc2405/pbi-context/main/.claude/skills/analyze-pbi-model/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Osc2405/pbi-context

Made for: Claude Code.

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 analyze-pbi-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/osc2405/pbi-context/analyze-pbi-model/github.svg)](https://agentmods.dev/skills/osc2405/pbi-context/analyze-pbi-model)
Your own site
<a href="https://agentmods.dev/skills/osc2405/pbi-context/analyze-pbi-model"><img src="https://agentmods.dev/badge/skills/osc2405/pbi-context/analyze-pbi-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-pbi-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/osc2405/pbi-context/analyze-pbi-model"><img src="https://agentmods.dev/badge/skills/osc2405/pbi-context/analyze-pbi-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,116 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00097 $0.01116
Opus 5 $0.00048 $0.00558
Sonnet 5 $0.00019 $0.00223
Haiku 4.5 $0.00010 $0.00112

Measured 9d ago against content hash 56c99bfc15de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

analyze-pbi-model 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 9d 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.

.claude/skills/analyze-pbi-model/SKILL.md · 78 lines

How it starts

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

Analyze a Power BI model

Target model: $ARGUMENTS

If no path was given, ask the user for the .pbit file, .pbip file, .SemanticModel/ folder, or project root folder before doing anything else.

Step 1 — Extract

Run the extractor once to generate the model's indexed output:

pbi-context -i "$ARGUMENTS" -o output

If pbi-context is not on PATH (not installed as a package), run it as a module from this skill's repo root instead — cli.py uses relative imports, so it must run with -m, not as a bare script:

python -m pbi_extractor.cli -i "$ARGUMENTS" -o output

run with working directory ${CLAUDE_PROJECT_DIR} (this skill's repo root), regardless of where $ARGUMENTS itself points on disk.

Add --lang es for Spanish documentation, or --index-format toon when the model is large and every token spent loading table/column/relationship listings matters.

The output lands in output/<model-name>/, where <model-name> is the input file's stem (for .pbit) or the .SemanticModel folder's name without the suffix (for .pbip).

Step 2 — Query, never load whole files speculatively

Use pbi-context --query output/<model-name> ... (or python -m pbi_extractor.cli --query ... with the same fallback rule as Step 1) instead of reading tables/<Name>.json or relationships.json directly — the resolver already handles TOON decoding for you, so you never need to think about {__toon, __fields, __rows} at all, regardless of which --index-format was used.

  1. Always start with output/<model-name>/index.json (read the file directly, it's tiny). It has, per table: name, hidden/technical flags, column count, measure count, categories present. For "what's in this model" / "how many tables" questions, index.json alone is usually enough.
  2. For a specific table's columns/measures/DAX, run pbi-context --query output/<model-name> --table "TableName" — returns one JSON object with a unified measures list (name, category, complexity, format_string, display_folder, formatted_expression). Add nothing else; don't read the raw tables/*.json file yourself.
  3. For one specific measure once you already know the table and measure name, run pbi-context --query output/<model-name> --table "TableName" --measure "MeasureName" — cheaper than loading the whole table.
  4. For "which tables have X measures/columns" / "find the measure/column that does Y" questions (something index.json alone can't answer — it would otherwise require opening every table file by hand), run pbi-context --query output/<model-name> --search-measures "keyword" or --search-columns "keyword" (optionally --category revenue etc.).
  5. For relationship/join questions, run pbi-context --query output/<model-name> --relationships [--table "TableName"].
  6. For a full human-readable narrative doc (the user wants something to paste elsewhere, not an answer to a specific question), read output/<model-name>/model_documentation.md directly.
  7. metadata.json is the complete, unfiltered dump (every table, every column, every DAX expression). Only read it directly if the question genuinely spans the whole model and index.json + a couple of --query calls aren't enough — it's the heaviest file in the output.

Read the full file on GitHub · 78 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. 9d ago First seen · 78 lines · 97 tokens per session scan A 56c99bfc15de

Subscribe to this mod's changes

analyze-pbi-model is a skill published in the GitHub repository Osc2405/pbi-context (15 stars, last pushed 1mo ago), licensed MIT. It adds 97 tokens to every session and 1,116 once invoked, about $0.0005 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

surf

Surf (asksurf.ai) is RETIRED on BlockRun and the blockrunsurf tool was REMOVED in 0.49.0 — the gateway has answered every /v1/surf/ path with HTTP 410 endpointretired since 2026-09-06. Use this skill to route a former Surf question (on-chain SQL, wallet labels and net worth, CEX order books, social mindshare, news) to…

BlockRunAI/blockrun-mcp · 110 tokens

gentech-blockrun

GenTech Labs' integration patterns for BlockRun MCP from Hermes Agent. Covers daily usage patterns, cost-optimized workflows, multi-tool pipelines, and reliable error handling for BlockRun's full toolset.

BlockRunAI/blockrun-mcp · 46 tokens

portainer-mcp-hygiene

How to drive the Portainer MCP server's tools correctly — both reading and mutating. Reading: project responses with select (JMESPath), where the heavy fields live (snapshots, status blocks, managed fields), how to handle non-JSON Docker/K8s proxy endpoints (container and pod logs, stats, exec), and how to interpret…

portainer/portainer-mcp · 315 tokens

vault-for-llm

Connect OpenClaw to Vault Agent Memory as a local-first governed project memory layer. Search first, then bounded-read cited source ranges; propose new memories as candidates instead of writing directly into active memory.

zycaskevin/Vault-Agent-Memory · 46 tokens

setup

Configure the Qdrant Power after installation. Use this skill for missing uvx, missing environment variables, unapproved environment variables, unavailable Qdrant tools, "Failed to connect" errors, and setup requests.

qdrant/mcp-server-qdrant · 45 tokens

kicad-library

Library management workflow for KiCAD — creating symbols, footprints, and managing libraries via MCP tools. Triggers on: "create a symbol", "make a footprint", "custom component", "register library", "find a part", "pin numbering", "new symbol", "new footprint", "add to library", "library path", "pad layout".

mixelpixx/Konnect · 77 tokens