Skip to content
Data
Skill

/plan-cli

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

From plugin
skills-for-fabric
1.4k28 skills5 agents3 MCP

Claude Code

$ npx -y skills add microsoft/skills-for-fabric --skill plan-cli --agent claude-code

SKILL.md

plan-cli.SKILL.md
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.

Microsoft Fabric Plan CLI

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.

Before any narrative read

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 selection

| 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) |

Mode boundary rule

`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.

Terminal write -- the step you must not skip for authoring

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.

Read Plan definitions

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

Read more
@microsoft
Ships withskills-for-fabric

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.

1.4k28 skills5 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.4k
Star history of microsoft/skills-for-fabric on GitHub, a chart by star-history.com

Other skills on skills-for-fabric.

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…

paddleocr2mo93k
@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem02w69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog3w41k
@posthog@posthogInstall Skill

Questions about plan-cli.

Which coding agents can use plan-cli?
plan-cli installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.