power-query
Skill by data-goblin
Authors, validates, and tests Power Query M expressions in semantic model import partitions. It is for people who write or debug Power Query loads in Power BI semantic models.
Install power-query
Built from the published package, never by AI.
git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development /tmp/power-bi-agentic-development && mkdir -p ~/.claude/skills && cp -r /tmp/power-bi-agentic-development/plugins/semantic-models/skills/power-query ~/.claude/skills/power-queryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development /tmp/power-bi-agentic-development && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/power-bi-agentic-development/plugins/semantic-models/skills/power-query ~/.gemini/antigravity-cli/skills/power-queryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant write, validate, and test Power Query M expressions in the import partitions of a semantic model. It covers writing correct M code, preserving query folding, and checking expressions against real data sources. The skill also gives guidance on column pruning, row filtering, type handling, step naming, incremental refresh partitions, Lakehouse sources, and native SQL with Value.NativeQuery.
There are two validation routes. The first runs an expression through the Fabric executeQuery API using the bundled execute_m.py script, then parses the response to verify the data. The second saves the partition through XMLA or TOM, where Analysis Services checks the M syntax without running the query. Partition expressions are read with the fab CLI. The skill is for users who write or debug Power Query in semantic model partitions.
Written from the project's SKILL.md and checked against it.
What it can do
- Write M expressionsWrites Power Query M code for semantic model import partitions.
- Preserve query foldingOrders steps so that foldable operations run early and translate to native source queries.
- Execute via APIRuns an M expression against real data using the Fabric executeQuery endpoint.
- Validate via XMLA or TOMSaves the partition to the model so Analysis Services checks the M syntax.
- Preview partition stepsShows data at any step by truncating the let and in chain, with optional row limits.
- Handle incremental refreshApplies RangeStart and RangeEnd filters and inlines concrete dates for testing.
- Connect to Lakehouse sourcesShows how to navigate Lakehouse.Contents to a table in an M expression.
- Use native SQL queriesUses Value.NativeQuery with EnableFolding for SQL that M cannot express.
What you need
- Microsoft Fabric workspace access
- fab CLI
- Python
Try asking
- Write a Power Query partition expression that filters orders by status
- Check whether my M steps still fold to SQL Server
- Preview the first 100 rows after the Changed Type step
Good to know
- Saving through XMLA does not catch runtime errors such as wrong column names or data source issues.
- Folding behavior depends on the data source; Table.TransformColumnTypes often breaks folding on SQL Server.
- Some deployment steps are shown only as comments and need a manual tool such as Tabular Editor or SSMS.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/semantic-models/skills/power-query/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to power-query
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
power-query: common questions
What is query folding in Power Query?
Query folding is when the M engine translates compatible steps into a native source query, such as SQL. When folding breaks, later steps run in the mashup engine and pull all data into memory first.
How can I test a Power Query partition without deploying it?
The skill runs the expression through the Fabric executeQuery API with execute_m.py and returns the data for checking. It can also preview data at any step by truncating the let and in clause.
Does this skill work with Lakehouse and SQL sources?
The source includes examples for Lakehouse.Contents navigation and for Sql.Database with Value.NativeQuery. Folding support depends on the source.
How do I install power-query?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is power-query free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is power-query safe to use?
It scores 75 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to power-query?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
