Insight · AI Solutions

    Agent Skills for Fabric and the GitHub Copilot CLI: Querying Power BI from the Command Line

    Skills for Fabric are Microsoft's open-source agent skills that let GitHub Copilot CLI and other coding agents explore lakehouses, query warehouses and Power BI models, and build Fabric items from the terminal.

    Nick de Vrye, CTOPublished 8 June 2026Updated 11 November 20267-8 min readMore on Copilot and AI agents
    Terminal window showing GitHub Copilot CLI responding to a natural language Fabric query, with Microsoft Fabric and GitHub Copilot logos in the corner.

    In Short: Fabric From the Terminal

    Agent skills for Microsoft Fabric - Microsoft calls the collection Skills for Fabric - are open-source instruction files that teach AI coding tools how to work with Fabric. Install them into the GitHub Copilot CLI and you can ask, in plain language, to explore a lakehouse, query a warehouse or a Power BI semantic model, build a medallion architecture or document a workspace, without leaving the terminal.

    Microsoft publishes them under the MIT licence in the microsoft/skills-for-fabric repository. They work with the GitHub Copilot CLI, Visual Studio Code, Claude Code, Cursor, Windsurf and other tools that read an AGENTS.md file.

    This post was first published in June 2026 and updated on 11 November 2026 against Microsoft's current documentation.

    What Agent Skills Are

    A skill is a markdown file (SKILL.md) that tells an AI coding tool how to do one specific task: the phrases that should trigger it, which APIs, commands or query languages to use, how to authenticate and which best practices to follow. The tool loads the installed skills at the start of a session and, when your prompt matches one, follows its instructions.

    Skills do not run anything themselves. In Microsoft's words, skills teach the AI assistant what to do, and MCP servers do it. The coding agent does the work by calling Fabric REST APIs, the Fabric CLI, SQL analytics endpoints, KQL or PySpark, guided by the skill. Some installation bundles also configure Fabric MCP servers alongside the skills.

    The practical difference from a conventional CLI is that you describe intent. "Show me the tables in my Sales lakehouse and how fresh they are" works without knowing the endpoint, the item ID or the query syntax, because the skill carries that knowledge.

    What Skills for Fabric Enable

    Microsoft packages the skills into bundles:

    • fabric-skills - the full Fabric collection: authoring, consumption, operations, migration and end-to-end architecture
    • fabric-authoring - REST APIs, CLI automation, notebooks, T-SQL, KQL, Dataflows Gen2, Eventstreams and semantic models
    • fabric-consumption - read-only exploration and query skills across Fabric workloads
    • fabric-operations - performance and health diagnostics
    • powerbi-authoring - a separate Power BI plug-in for semantic model authoring, report planning and PBIP workflows

    Schema and Data Exploration

    Ask what tables a lakehouse holds and how fresh they are, profile a dataset, or run a query against a warehouse and get the results back in the terminal. The consumption skills are read-only, which makes them a safe starting point.

    Querying Power BI From the Command Line

    For questions over Power BI data, pair the skills with Microsoft's Fabric IQ MCP server, which is generally available and lets an agent discover reports and semantic models, inspect their metadata and run DAX queries, using the signed-in user's permissions. The powerbi-authoring plug-in covers building and changing semantic models.

    Building and Operating Fabric Items

    The authoring skills create lakehouses, notebooks, pipelines and semantic model definitions, translate T-SQL into a Fabric warehouse, and set up Git integration and deployment pipelines. The operations skills investigate warehouse health, failed queries and capacity spikes.

    One limit worth knowing: Microsoft notes that the skills produce Fabric item definitions and data-movement code but do not render finished Power BI reports. Report design still happens in Power BI.

    The Developer Workflow Impact

    Standard Fabric development involves several contexts: the Fabric portal for data engineering, Power BI Desktop for semantic modelling, the Azure portal for capacity, and GitHub or Azure DevOps for version control. Switching between them has a real cognitive cost, especially in the middle of a debugging session.

    Skills for Fabric collapse part of that workflow into the terminal. A data engineer can stay in VS Code with a terminal open, explore Fabric data, generate and test a query, check a workspace and commit the result, without opening a browser tab.

    This does not replace visual tools. Power BI Desktop and the Fabric portal remain the right place for report layout, relationship editing and complex model design. The skills cut the interruptions around exploration, scaffolding and diagnostics.

    Getting Started

    Microsoft's install guide lists these prerequisites for the GitHub Copilot CLI route:

    • GitHub Copilot CLI, which installs as an npm package and needs Node.js
    • PowerShell 7
    • The Azure CLI, signed in with az login, because most Fabric operations need Azure authentication
    • Permission in the Fabric workspace for the operations you plan to run

    Then, inside the Copilot CLI:

    • Add the marketplace with /plugin marketplace add microsoft/skills-for-fabric
    • Install the Fabric collection with /plugin install fabric-skills@fabric-collection
    • Install the Power BI plug-in separately with /plugin install powerbi-authoring@fabric-collection
    • Restart the CLI and run /skills to check they loaded

    Claude Code uses the same plugin marketplace commands. For Cursor, Windsurf and Codex, you clone the repository into your project folder.

    The skills act with your own identity and Fabric permissions, so they see exactly what you can see in the portal. A team already using GitHub Copilot can usually be productive within a day, starting against a development workspace.

    Our Microsoft Fabric team and AI Solutions practice can advise on bringing Skills for Fabric into your engineering team's workflow as part of Fabric implementation or optimisation work.

    When Agent Skills Help, and When They Do Not

    Terminal-driven, agent-assisted work suits some tasks considerably better than others.

    Genuinely useful for: repetitive scaffolding across many similar items, bulk operations that would otherwise be a lot of portal clicking, and anything you want reproducible rather than remembered. Creating twenty similarly-shaped items by hand is error-prone in a way that a scripted approach is not.

    Less useful for: anything requiring judgement about your specific data model, first-time design decisions, or work where the cost of a confidently wrong action is high. An agent that provisions the wrong thing quickly has not helped.

    The distinction is roughly: use it where you already know what you want and the work is mechanical. Microsoft's own advice is to plan before executing, to name the workspace explicitly in every prompt, and to be careful with modes that let the agent act without confirmation.

    Governance Before You Roll This Out

    Agent-assisted platform operations create a governance question that portal-based work does not, and it is worth settling before the capability spreads through the team.

    Identity and permissions. Agents act as someone. Establish whose credentials are in use, and ensure the permissions match the human's rather than a broadly-scoped service principal that quietly bypasses the access model.

    Environment boundaries. Development and production should not be equally reachable from the same terminal session. If they are, the first serious incident is a matter of time.

    Auditability. Actions taken through an agent need to land in the same audit trail as actions taken through the portal, or your change history develops gaps precisely where velocity is highest.

    None of this is an argument against the capability. It is an argument for deciding these things deliberately rather than discovering them after an incident. For the hosted server that exposes Fabric's management APIs to agents, see the Fabric Core MCP Server; for the remote server's history and scope, what Fabric's remote MCP server is. Our Copilot and AI agents hub collects the rest of our coverage.

    Sources and Further Reading

    Frequently asked

    Skills for Fabric are Microsoft's open-source collection of agent skills: markdown instruction files (SKILL.md) that teach AI coding tools such as the GitHub Copilot CLI, VS Code, Claude Code and Cursor how to work with Fabric. They tell the agent which Fabric APIs, CLI commands and query languages to use for a task, so you can explore lakehouses, query warehouses, build items and document workspaces in plain language. They are MIT-licensed and maintained in the microsoft/skills-for-fabric repository on GitHub.

    To use them in the GitHub Copilot CLI, yes: you need a GitHub Copilot plan that includes the CLI. The skills themselves are free and also work in Claude Code, Cursor, Windsurf and other tools. Microsoft's install guide also lists Node.js, PowerShell 7, the Azure CLI signed in with az login, and permission in the Fabric workspace you want to work in.

    Yes. Pair the skills with Microsoft's Fabric IQ MCP server, which is generally available and lets an agent discover Power BI reports and semantic models, inspect their metadata and run DAX queries against data you are allowed to see. The separate powerbi-authoring plug-in covers creating and changing semantic models. Queries run with your own permissions.

    The Fabric REST API requires specific API knowledge, endpoint construction, authentication headers and response parsing. Skills do not replace it: they teach the coding agent how to use it, so you describe what you want in plain language and the agent constructs and runs the right calls. Skills suit interactive developer workflows; the REST API remains the basis for programmatic integrations and automation.