powerbi-import-to-snowflake

powerbi-import-to-snowflake is a skill for Claude Code from twells89/sigma-migration-skills. It costs 111 tokens per session (1,550 once invoked), scanned A, original, MIT.

A data-migration helper that moves source data from an Import-mode Power BI model into Snowflake, a cloud data warehouse. It prepares the data for use by Sigma, a warehouse-based analytics tool.

In plain words
What is it for?
Use it when a .pbix or semantic model imports data from Excel, Power Query, or flat files and must be moved to Snowflake before rebuilding the report in Sigma. It is not needed for DirectQuery models that already query a warehouse.
Why use it?
Import-mode Power BI stores copied data inside the report instead of in a warehouse. This provides Snowflake tables for Sigma to query.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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

Good fit Use it when a .pbix or semantic model imports data from Excel, Power Query, or flat files and must be moved to Snowflake before rebuilding the report in Sigma. It is not needed for DirectQuery models that already query a warehouse.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/twells89/sigma-migration-skills/powerbi-import-to-snowflake
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add twells89/sigma-migration-skills --skill powerbi-import-to-snowflake
Clone the repo
git clone --depth 1 https://github.com/twells89/sigma-migration-skills

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-import-to-snowflake

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/powerbi-import-to-snowflake"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/powerbi-import-to-snowflake.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,550 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00111 $0.01550
Opus 5.5 $0.00044 $0.00620
Sonnet 5.5 $0.00022 $0.00310
Haiku 4.5 $0.00011 $0.00155

Measured 1mo ago against content hash d89a1934bbcc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

powerbi-import-to-snowflake 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 1mo ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/browser-login.sh, scripts/get_token.py, scripts/get-token.sh, …), 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.

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.

plugins/powerbi-to-sigma/skills/powerbi-import-to-snowflake/SKILL.md · 113 lines

How it starts

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

Power BI (Import mode) → Snowflake

Sigma is warehouse-native: it has no in-memory import engine, so every table, column, and metric resolves as live SQL against a connected warehouse. When a .pbix imports its data from Excel / Power Query / flat files, that data lives only in Power BI's VertiPaq store — there is no warehouse table for Sigma to point at. This skill extracts that data and lands it in Snowflake, then hands off to powerbi-to-sigma for the model logic.

Two tracks, one migration (this skill is track 1):

1. DATA   (this skill)      Import-mode .pbix  → Snowflake tables + manifest
2. LOGIC  (powerbi-to-sigma) model.bim (DAX/relationships) → Sigma data model
3. REPOINT                  DM sources → the landed Snowflake tables  → live parity

Track 3 is automatic when column names line up — this skill's landed column names byte-match what powerbi-to-sigma's converter emits (see refs/naming-alignment.md), so no remapping is needed.

Skip this skill for DirectQuery models — they already query a warehouse. Only Import-mode (or mixed, for the Import tables) needs data landing.

Also the designated remediation for non-warehouse sources. When powerbi-to-sigma's converter flags a table sourced from a Fabric Dataflow / Lakehouse / OneLake / Dataverse / file (stats.nonWarehouseSourcedTables + ⛔ warnings), this skill is the fix: it enumerates tables via TMSL and extracts rows via executeQueries, so it lands the already-materialized data regardless of the upstream connector (a dataflow-fed Import model works unchanged). Then repoint with convert-model.rb --table-map manifest.json.

What it does

scripts/pbi_import_to_snowflake.py (generic — no hardcoded schemas):

  1. Auth — silent MSAL (Power BI + Fabric scopes), cached, device-code fallback.
  2. Resolve — workspace + dataset by name/id; or --pbix uploads the file first via the Power BI REST /imports endpoint.
  3. Enumerate — model tables/columns/dataType via TMSL getDefinition (version-independent; INFO.TABLES() fails on old compat levels). Skips auto date tables and calculated/binary columns (see refs/what-gets-landed.md).
  4. Extract — rows via /executeQueries (DAX SELECTCOLUMNS), with automatic integer-key band pagination (executeQueries silently truncates ~48k rows).
  5. Load — typed DDL + PUT/COPY via snow sql, with GRANTs.
  6. Sync — --sigma-connection <id> registers the new tables with Sigma (POST /v2/connections/<id>/sync) so the DM POST resolves them immediately. The co-located scripts/lib/sigma_rest.py reuses a valid token, refreshes a stored browser session before client-credential fallback, honors token age, and retries one HTTP 401.
  7. Manifest — out/<dataset>/manifest.json: pbi_table.col → sf_table.COLUMN.

Read the full file on GitHub · 113 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. 1mo ago Changed · +15 lines d89a1934bbcc
  2. 3mo ago First seen · 98 lines · 111 tokens per session scan A b88db04f7bef

Subscribe to this mod's changes

powerbi-import-to-snowflake is a skill published in the GitHub repository twells89/sigma-migration-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 111 tokens to every session and 1,550 once invoked, about $0.0004 per session on Opus 5.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

powerbi-import-to-snowflake compared with skills from other repositories

powerbi-import-to-snowflake next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
powerbi-import-to-snowflaketwells89/sigma-migration-skillsSkill181mo agoMITA111Claude Code
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9ktodayApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.6ktodayApache-2.0A117Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.6ktodayApache-2.0A65Claude Code, Codex