activator-cli
Creates and inspects Fabric Activator (Reflex) alerts: rules, their data sources, conditions, and the Teams or email action they…
Creates, renames and deletes Microsoft Fabric Plan items. Reads and validates saved Microsoft Fabric Plan definitions. Summarizes or narrates Plan visuals from supplied values or a host visual-read tool, as prose or raw JSON. Load before calling any Plan visual-read tool, even
Claude Code
$ npx -y skills add microsoft/skills-for-fabric --skill plan-cli --agent claude-code
Codex
$ npx skills add microsoft/skills-for-fabric --skill plan-cli -a codex -y
Cursor
$ npx skills add microsoft/skills-for-fabric --skill plan-cli -a cursor -y
Gemini CLI
$ npx skills add microsoft/skills-for-fabric --skill plan-cli -a gemini-cli -y
GitHub Copilot
$ npx skills add microsoft/skills-for-fabric --skill plan-cli -a github-copilot -y
OpenCode
$ npx skills add microsoft/skills-for-fabric --skill plan-cli -a opencode -y
Windsurf
$ npx skills add microsoft/skills-for-fabric --skill plan-cli -a windsurf -y
name: plan-cli description: "Creates, renames and deletes Microsoft Fabric Plan items. Reads and validates saved Microsoft Fabric Plan definitions. Summarizes or narrates Plan visuals from supplied values or a host visual-read tool, as prose or raw JSON. Load before calling any Plan visual-read tool, even for partial or failed reads. Never writes a narrative back. For Power BI report or semantic-model data use fabriciq; for report visuals use powerbi-report-cli."
> **Telemetry — MANDATORY.** Every `api.fabric.microsoft.com` call must carry > `x-ms-fabric-skill: plan-cli` (`az rest`: `--headers "x-ms-fabric-skill=plan-cli"`), > including every LRO poll, `fabric_lro` and retry. Snippets omit it — add it anyway.
Create, rename and delete Plan items; read saved Plan definitions; and narrate supplied or completed, authorized visual data for Planning and Intelligence. Authoring creates, renames and deletes Plan items only -- it never edits sheets, visuals, definitions, narratives or editor state. Saving a narrative, visual data or a definition change remains unsupported in every mode.
Apply this skill before using a registered reader for a Plan summary, including partial or failed results. A tool schema describes retrieval, not the complete evidence and answer contract.
| Mode | Request | Guidance | |---|---|---| | `authoring` | Create, rename/re-describe, or delete a Plan item | [references/authoring.md](references/authoring.md) | | `consumption` | Read a Plan definition or inspect saved configuration | [Read Plan definitions](#read-plan-definitions) | | `consumption` | Narrate supplied values or authorized visual read results | [Narrative summaries](#narrative-summaries) |
`consumption` issues only read-only calls (Get Definition and whatever a registered host reader documents). Any state-changing call -- Create, Update or Delete of the Plan item -- requires `authoring` mode: say so, read [references/authoring.md](references/authoring.md), then proceed. A narrative or definition-read request never becomes a write, and an authoring request never edits a definition, sheet or visual.
If the mode is ambiguous after reading this table, ask one short clarifying question (the exact workspace and Plan, or the target and intended change) instead of guessing.
Reading the reference and composing a request body is NOT completing the task. Authoring ends with exactly one state-changing call for the requested change.
| Mode | Terminal write | |---|---| | `authoring` | The `POST .../plans`, `PATCH .../plans/{id}` or `DELETE .../plans/{id}` for the requested change, confirmed by a readback. | | `consumption` | None -- this mode is read-only. |
Create may return `202 Accepted` (LRO): capture the operation id and poll the public host until `Succeeded` before reporting success. An acknowledgement is not completion.
1. If the export is pasted inline in the request, validate it in place; do not write it to a file or run any command -- not `scripts/plan_definition.py`, not a read of its source, not a base64 decode. Read short payloads directly (`e30=` is `{}`); a repeated part path is visible in the part list itself. If an export path is supplied, decode it once with the bundled helper, using the supplied path as `EXPORT_PATH`, with no redirection or fallback commands. A relative path is relative to the current working directory: pass it exactly as given, without first checking for it or searching (`find`, `ls`, glob):
python3 skills/plan-cli/scripts/plan_definition.py "$EXPORT_PATH"
`skills/plan-cli/` is this skill's own folder -- the directory that contains this SKILL.md; use that absolute path and never search for the script. It validates every part and prints the Plan name, its semantic model binding, its sheets and visuals, and the sorted part paths. A direct read of the export file is also fine. Do not authenticate, refetch, run existence probes or search with `find`/globbing. If missing, report that path and stop. Answer from that output: do not invent a second extraction command or pipeline (for example `cat <path> | jq '[.definition.parts[].path] | sort'`) to list paths or verify the answer. If the output is incomplete or the script reports an error, report it instead of improvising commands. Write the answer yourself; do not print it with another command (`jq -n`, `echo`). 2. Otherwise confirm the exact workspace, Plan and environment using [COMMON-CORE.md](../../common/COMMON-CORE.md) and [COMMON-CLI.md](../../common/COMMON-CLI.md); clarify ambiguity and delegate auth to shared guidance. Any Fabric portal link for a Plan uses the public origin `https://api.fabric.microsoft.com`. Do not ask for another origin. Get Definition requires read/write permissions and `Item.ReadWrite.All` despite being a read workflow. 3. Send `POST /v1/workspaces/{workspaceId}/plans/{planId}/getDefinition` with `{}` exactly once, with the shared `fabric_lro` helper in COMMON-CLI.md or another client that shows the 202 headers. Do not use `az rest` for this POST: it prints nothing for a 202, so the operation ID is lost. Never send a second Get Definition for the same Plan while one is running: overlapping calls leave both operations stuck in `Running`. Poll the first call's operation. Accept a complete 200 response or finish a 202 using the shared LRO pattern. Prefer `x-ms-operation-id`, construct status/result paths on the initiating host, reject conflicting identities and honor `Retry-After`. Never forward credentials across hosts or redirects. Acknowledgement is not completion. 4. Follow [HTTP JSON handling](references/http-json.md). Decode compression once, then strict UTF-8/JSON and each `InlineBase64` part. Already decompressed
Microsoft Fabric Skills are reusable AI assistant instructions for working with Microsoft Fabric. They help GitHub Copilot CLI and compatible AI coding tools understand Fabric workloads, APIs, query patterns, and operational best practices.
Creates and inspects Fabric Activator (Reflex) alerts: rules, their data sources, conditions, and the Teams or email action they…
Brings Azure Monitor, Application Insights, and Log Analytics telemetry into Fabric as Eventhouse external delta tables and…
Analyzes Database Hub inventory, health, and security posture through Entra-authenticated Fabric APIs. Use for estate counts;…
Ports existing Databricks notebooks and jobs to Fabric, covering dbutils to notebookutils, secret scopes to Key Vault, DBFS to…
Manages Fabric Dataflow Gen2 items, including creation, M editing, connections, output destinations, getDefinition and…
Manages Fabric deployment pipelines for ALM promotion across dev, test, and prod stages, including stage creation, workspace…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…