CSalcedoDataBI

Powerquery M For Agents — AI skill for Claude Code

AI community

The canonical Power Query M language reference for AI agents - every library function exported from the engine's own #shared, with signatures, types, host availability and the gotchas the docs leave o.

How to install Powerquery M For Agents

This entry records only its repository, not the path inside it, so there is no exact command to give. Open CSalcedoDataBI/powerquery-m-for-agents and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Powerquery M For Agents does

The canonical Power Query M language reference for AI agents - every library function exported from the engine's own #shared, with signatures, types, host availability and the gotchas the docs leave out.

Alternatives in AI

  • Pro Workflow — 1,400+ Battle-tested Claude Code workflows from power users 1.4k ★
  • MCP Server Excel — Automate real Microsoft Excel with AI via MCP Server or CLI — Power Query, DAX, VBA, PivotTables, and charts 961 ★
  • Linggen Memory — Local-first semantic memory for AI assistants — one store your preferences, decisions and gotchas follow you i 108 ★

README

powerquery-m-for-agents

**The canonical Power Query M language reference for AI agents**: every library function with its signature, types and the hosts that have it, plus the gotchas the documentation doesn't tell you.

**Status: early.** The catalogue is generated from one export, Power BI Desktop; its size and the build it came from are in the header of [`catalog.md`](plugins/powerquery-m-for-agents/skills/m-reference/generated/catalog.md), counted by the generator rather than typed here. Executed examples cover the Text, List and Table functions, and the language itself has hand-written concept pages. No second host yet.

Sibling of [dax-for-agents](https://github.com/CSalcedoDataBI/dax-for-agents), with the same architecture: an agent reads one flat index, finds the function, and opens **one** card.

What is different from DAX: the upstream is the engine

The DAX library was derived from `MicrosoftDocs/query-docs`, which has returned 404 since 2026-08. M does not need a documentation repo at all. `#shared` lists every function the engine has loaded, and each one carries its documentation as metadata on its type: description, category, examples, parameter types and return type.

So the catalogue is **exported, not scraped**:

  • A function in the catalogue exists in the host it was exported from.
  • Exporting several hosts (Desktop, Excel, Dataflows Gen2) and merging them gives every card a hosts field. No public document carries that.
  • Regenerating means running one query in a new Desktop build.

Does it stop invented functions?

Each question of the [bank](evals/hallucination/questions.yaml) is asked twice of the same model: alone, and with the catalogue rows of its category (names and one-line summaries, never the card that holds the answer). Every M library name written in the answer's code is looked up in the catalogue; a name the engine does not have is an invention. No model judges another. A question counts only when the model answe