powerbi-to-sigma

powerbi-to-sigma is a skill for Claude Code from twells89/sigma-migration-skills. It costs 123 tokens per session (15,267 once invoked), scanned A, original, MIT.

A migration tool that recreates Power BI reports and their semantic models in Sigma. A semantic model defines the data tables, relationships, and calculations behind a report.

In plain words
What is it for?
Use it to convert Power BI Service, Fabric, .pbix, or .pbit reports into Sigma data models and dashboards, including their charts, calculations, and layout.
Why use it?
It removes the need to rebuild Power BI dashboards and their underlying logic manually when moving to Sigma. It also checks the conversion and its test suites.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ruby scripts/migrate-powerbi.rb --tmsl <model.bim> --pbir <report-bundle.json> --connection <id> --out <WORK>.

Part of the powerbi-to-sigma plugin — 3 skills shipped together

Good fit Use it to convert Power BI Service, Fabric, .pbix, or .pbit reports into Sigma data models and dashboards, including their charts, calculations, and layout.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/twells89/sigma-migration-skills
agentmods
npx agentmods add skills/twells89/sigma-migration-skills/powerbi-to-sigma

Made for: Claude Code.

Or install powerbi-to-sigma, the plugin that ships this one along with the rest of its 3 skills.

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 powerbi-to-sigma

README.md
[![agentmods](https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/powerbi-to-sigma/github.svg)](https://agentmods.dev/skills/twells89/sigma-migration-skills/powerbi-to-sigma)
Your own site
<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/powerbi-to-sigma"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/powerbi-to-sigma/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 powerbi-to-sigma

Your own site · 80×15
<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/powerbi-to-sigma"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/powerbi-to-sigma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 15,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 36
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Data Exfiltration · line 155
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Rogue Agent · line 206
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00123 $0.15267
Opus 5 $0.00062 $0.07634
Sonnet 5 $0.00025 $0.03053
Haiku 4.5 $0.00012 $0.01527

Measured today against content hash ed2abc860505, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

powerbi-to-sigma scanned grade A with 1 finding 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 today.

The scan reads SKILL.md. This mod also ships 7 executable files (converter/powerbi.mjs, fixtures/validate.py, scripts/apply_sigma_rls.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> - **NEVER hand-author a workbook JSON and `curl`-POST it to `/v2/workbooks`, and
plugins/powerbi-to-sigma/skills/powerbi-to-sigma/SKILL.md · 503 lines

How it starts

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

Verifying a change locally

Run both test directories — this plugin keeps suites in scripts/ AND tests/:

cd plugins/powerbi-to-sigma/skills/powerbi-to-sigma
for t in scripts/test-*.rb tests/*.rb; do ruby "$t" >/dev/null 2>&1 || echo "FAIL $t"; done
for t in scripts/test-*.py tests/test-*.py; do python3 "$t" >/dev/null 2>&1 || echo "FAIL $t"; done

Globbing only scripts/test-*.rb reports an accurate-looking count while skipping tests/test-grounding.rb — that omission once merged a change that left main red on 7 assertions. scripts/test-suite-registration.rb enforces that every suite in both directories is also registered in CI, so a new suite cannot be added and silently never run.

Power BI → Sigma

Windows / first run — run the environment doctor before anything else: bash scripts/doctor.sh (macOS/Linux/Git Bash) or powershell -ExecutionPolicy Bypass -File scripts\doctor.ps1 (Windows). It checks Ruby/Python/Node/bash and flags the Python "Store stub" + CRLF with exact fixes. Details: refs/environment.md.

⛔ STEP 1 — THE ONE PATH (do not improvise a workbook)

This conversion runs through one orchestrator that builds every chart and verifies each one's data against Power BI before it's done:

ruby scripts/migrate-powerbi.rb --tmsl <model.bim> --pbir <report-bundle.json> --connection <id> --out <WORK>
  • You need the model (TMSL) + report layout (PBIR) first. Get them by CONNECTING to Power BI — do NOT ask the user to hand them over and do NOT proceed without them. Run the device-code login (no Entra app):
    python scripts/fabric-extract.py --report "<report name>" [--workspace "<ws id|name>"] \
      --out-dir <WORK> --report-out-dir <WORK> --report-bundle <WORK>/report-bundle.json
    
    It prints a device code + https://microsoft.com/devicelogin — tell the user to open that URL and enter the code (one sign-in; token caches). Then run the orchestrator with the extracted --tmsl/--pbir. Full recipe: refs/connection.md.
  • COMPOSITE / live-connected reports → prefer the local .pbix (the orchestrator PROMPTS for it). Many reports are Power BI composite models (local tables + a reference to a shared/remote dataset) or are thin reports live-connected to a shared dataset. For these, getDefinition of the report's bound model is INCOMPLETE (it misses the report-local measures/calc tables, or isn't a resolvable standalone model), and Power BI blocks export-to-.pbix for live-connected reports, so device-auth can't download it. The COMPLETE model is in the author's local .pbix. The orchestrator DETECTS this (Fabric-path TMSL shows DirectQuery/entity/remote-dataset references) and STOPS with an OPEN QUESTION (exit 10) asking for the local .pbix — do not silently build a DM from the incomplete model. Ask the user for the file and re-run with --pbix (offline tell in a .pbix: its Connections member's RemoteArtifacts). Only pass --allow-incomplete-model if the user knowingly accepts the partial model.
  • FULLY-LOCAL .pbix (no Fabric / no tenant / not published). When the user has only a local .pbix on disk, skip the CONNECT/EXTRACT steps entirely — run the orchestrator with --pbix and it extracts BOTH halves locally (Phase 0):
    ruby scripts/migrate-powerbi.rb --pbix <file.pbix> --connection <id> --database <DB> --schema <SCHEMA> --out <WORK>
    
    • Model: scripts/extract-model-pbix.py reads the .pbix's binary VertiPaq DataModel with pbixray and emits a TMSL model.bim (same shape --tmsl eats), including DAX calculated tables (pbixray.dax_tables) as calculated partitions rather than fake warehouse tables. pbixray must be installed — its xpress9/xmhuffman deps ship broken sdists and must be built from source; one-time setup in refs/local-pbix.md. Without pbixray the model half exits with a clear install hint (the report half and the Fabric --tmsl path are unaffected).
    • Report: scripts/extract-report-classic.py --pbix <file> unzips the Report/Layout member (a single UTF-16LE classic sections[] doc) — no Fabric. It also accepts --report-layout <file> for an already-extracted Layout.
    • Import-mode .pbix with no live warehouse to point at? Land the frozen data first (see the Import-mode → Snowflake data-landing skill), then pass that connection/db/schema here.
  • NEVER hand-author a workbook JSON and curl-POST it to /v2/workbooks, and never lay out empty "placeholder" pages. That bypasses the DAX conversion, chart build, and parity gate and ships an EMPTY workbook (invented page names, no elements) — the #1 way this migration fails. If you cannot extract the model (no Fabric access / not published), STOP and tell the user you need to connect to Power BI (device-code) or that the report must be published — do not fall back to a hand-built shell.
  • "Done" is not "pages exist." The migration is complete only when ruby scripts/verify-complete.rb --workdir <WORK> prints ✅ DONE — i.e. the assert-phase6-ran parity gate passed with real chart elements. An empty or placeholder workbook is never done, no matter how it looks.
  • Small/older models (e.g. running on Haiku): if the report is large or complex, say so and confirm scope with the user before building — don't silently degrade to a partial shell.

Read the full file on GitHub · 503 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · +12 lines ed2abc860505
  2. 12d ago First seen · 491 lines · 123 tokens per session scan A 81de01e43859

Subscribe to this mod's changes

powerbi-to-sigma is a skill published in the GitHub repository twells89/sigma-migration-skills (16 stars, last pushed yesterday), licensed MIT. It adds 123 tokens to every session and 15,267 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens