/powerplatform-core:power-automate-flowsfrom powerplatform-core
Inspects, lints, and edits solution-aware Power Automate cloud flows in Dataverse - connector governance, hardening (retry/concurrency/pagination/idempotency), HTTP-trigger callback resolution, and run-history inspection.
Ships in powerplatform-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill handles solution-aware Power Automate cloud flows as first-class Dataverse workflow records (category = 5). It inspects, lints, and reviews live flows, then makes the smallest correct change — patching only the workflow properties that need to move — and resolves HTTP-trigger callback URLs and the environment variables flows depend on. It is code-first and ALM-aware: live edits are for authoring and validation, while cross-environment promotion stays in the solution export/import path with connection references and environment variables kept explicit. It is intentionally generic about environment URL, publisher prefix, solution name, and folder layout — discover those per task.
Route here from the powerplatform-core orchestrator. For schema, plug-ins, PCF, or solution packaging, use the matching sibling skill instead.
The helpers live in the plugin's scripts/ directory at the plugin root, not in this skill folder. Resolve the plugin root and invoke them like:
python "$CLAUDE_PLUGIN_ROOT/scripts/inspect_flow.py" --spec <spec.json> (Claude Code)python "$CODEX_PLUGIN_ROOT/scripts/inspect_flow.py" --spec <spec.json> (also exposed as $PLUGIN_ROOT)scripts/ folder sits beside this skill bundle — invoke by its path within the install.| Helper | Purpose |
|---|---|
inspect_flow.py | Inspect one flow or list solution-scoped flows; return identifiers, state, connection-reference summary, and definition summary. |
inspect_flow_runs.py | Read-only run history. List a solution flow's recent runs (status, start/end, duration, error) from the Dataverse flowrun table by --name / --workflow-id / --unique-name, with --max-runs and an optional --status filter. Reports whether run-history capture is enabled so an empty list is not mistaken for "no runs". |
lint_flow.py | Detect missing connection references, missing triggers/actions, broken runAfter, hardcoded GUIDs, and hardcoded Dataverse URLs. Works from live Dataverse or a local clientData/definition/JSON file. |
review_flow_connectors.py | Review connector-specific read/write patterns (Dataverse, SharePoint, Outlook action shapes). Same live-or-local sources as the linter. |
review_flow_hardening.py | Hardening checklist for retry policy, concurrency, pagination, idempotency, error handling, and maintainability. Same live-or-local sources. |
create_flow.py | Create a new solution-aware flow from clientData, or from definition plus connectionReferences; add it to the selected solution. New flows start draft/off unless activate is set. |
update_flow.py | Update an existing flow by workflowId, workflowUniqueId, uniqueName, or name. When clientData is supplied, it inspects the live baseline, runs semantic regression checks, updates, then re-inspects the live result. Auto-loads a repo flow-guard contract. |
get_flow_trigger_url.py | Resolve the signed callback URL for an HTTP-trigger flow. Windows-only / optional: depends on Windows PowerShell plus the PowerApps admin module, and may prompt for a separate Power Apps sign-in. Skip gracefully where unavailable and tell the user. |
inspect_environment_variable.py | Inspect an environment variable definition or read the current value that applies in the target environment. |
set_environment_variable_value.py | Create or update the live environmentvariablevalue record for an existing definition. Prefer this over manual maker-portal edits when wiring a flow endpoint or environment-specific value. |
create_environment_variable_definition.py | Create a new solution-aware environmentvariabledefinition (schemaName must carry the publisher prefix; type is string/number/boolean/json/datasource/secret) with optional description, defaultValue, and an initial value. Use when the definition itself does not exist yet; use set_environment_variable_value.py once it does. |
inspect_flow.py whenever the user wants to analyze, troubleshoot, or enhance a flow, so you work from the live baseline rather than assumptions.lint_flow.py to catch missing connection references, broken runAfter, hardcoded GUIDs, and hardcoded Dataverse URLs.review_flow_hardening.py for retry/concurrency/pagination/idempotency/error-handling concerns and review_flow_connectors.py for connector-specific patterns.update_flow.py and patch only the workflow properties that need to move (typically clientData, plus name/description/owner/state). Prefer create_flow.py only for genuinely new flows. Do not recreate a flow to deploy it.get_flow_trigger_url.py, store it with set_environment_variable_value.py, then smoke-test only if the user asked. apply_requirement_spec.py can orchestrate this chain.inspect_flow_runs.py to confirm the flow actually ran and whether it succeeded or failed (and why), rather than asking for a portal screenshot. Dataverse run history covers only solution-aware flows, needs the capture feature enabled (Organization.FlowRunTimeToLiveInSeconds > 0), is retained for a limited window (28 days by default), and is a best-effort mirror — the Power Automate portal is the complete, transactional source.update_flow.py blocks updates that empty a previously non-empty switch case, remove previously existing branch actions, or violate a repo-owned flow-guard contract. Only pass --allow-semantic-drift when the branch/action removal is genuinely intended and the user accepts it.update_flow.py auto-loads a guard contract from the repo's flow-guard path or the project-profile flowGuardSpecPath. For critical flows, add a real contract in the repo rather than leaving the safeguard only in chat. Start from references/power-platform.flow-guards.template.json.inspect_flow.py, the lint/review helpers, and inspect_flow_runs.py are read-only — no live-mutation preflight. But treat Dataverse run history as best-effort, not proof: if a run is missing or you need guaranteed-complete history, the Power Automate portal is the source of truth.powerplatform-core orchestrator before any create, update, activate, or environment-variable write. Do not restate the full preflight here — invoke it there.references/power-automate-flows.md — working model, preferred execution path, helper intent, and spec patterns.references/queries-and-xml.md — Power Automate Dataverse queries, OData, and FetchXML inside flow actions.references/power-platform.flow-guards.template.json — starting template for a repo flow-guard contract protecting critical switch branches.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub satriotsubasa/powerplatform-core --plugin powerplatform-core12 skills in this plugin
/code-appsUse for Power Apps Code Apps - the pro-code model where a standalone Vite-built React/Vue/TS single-page app uses the `@microsoft/power-apps` client library and is pushed into a Power Platform environment with no server to manage. Covers scaffolding from the official Vite template, initializing with `power.config.json`, adding Dataverse data sources that generate typed model/service files, local dev, building, and pushing via `npx power-apps push` (npm CLI) or legacy `pac code push`. Trigger whenever the user mentions a code app, `power.config.json`, `@microsoft/power-apps`, `pac code` / `power-apps` CLI, a `CodeApp/` folder, or wants to build, run, or push a custom SPA into Power Platform, even if no helper is named. Not for PCF controls embedded in model-driven forms (use pcf-and-web-resources) or Canvas/maker apps.
/custom-connectorsUse to DESIGN Power Platform custom connectors and integration wrappers - review an OpenAPI/Swagger description, choose the auth shape (API key, OAuth2, basic, none), inventory operations, and decide whether to expose an API as a direct custom connector or behind an Azure Function / API facade. Produces a connector name, auth approach, operation summaries, a recommended pattern, suggested environment variables, and solution-aware connection-reference guidance. Trigger whenever the user mentions a custom connector, OpenAPI/Swagger for Power Platform, connecting a flow or app to an external/REST API, an integration wrapper or facade, or whether an Azure Function should front an integration, even if no helper is named. Design-first - it does not publish the connector. Not for authoring the flow that calls it (use power-automate-flows) or server-side Dataverse logic (use plugins-server-extensions).
/data-operationsUse for Dataverse row/record DATA and queries - create, read, update, upsert, or delete rows, seed or sync reference/config data, and design and run queries. Trigger on "create a record/row", "read/retrieve this record", "get the value of a field on a row", "list/query the rows where", "how many rows match", "update this record", "upsert by alternate key", "delete this row", "seed config data", "import/sync these rows", "design an OData / FetchXML query", or "build the List rows filter for a flow", even when no helper is named. Covers keyed create/read/update/upsert/delete via the Dataverse SDK and query execution with bounded paging and total-count reporting, plus query design across OData, FetchXML, and Power Automate "List rows". Not for table/column/form/view/ribbon METADATA - use dataverse-schema.
/dataverse-schemaUse for Dataverse table METADATA - tables, columns, lookups/relationships, choices/option sets, alternate keys, main forms, public/lookup views, the form-level ribbon (RibbonDiffXml), form event handlers and script libraries, and table icons - plus up-front schema and query-shape design before metadata exists. Trigger on "create a table", "add a column/field", "add a lookup", "add a choice", "set an alternate key", "update the main form", "add a view / change view columns", "add a button to the form ribbon", "set the table icon", or "design a Dataverse schema", even when no helper is named. Prefer this over hand-edited customizations.xml. Not for row/record DATA, seeding config rows, or query authoring - use data-operations.
/document-generationUse for Dataverse document generation built on Word Templates - inventory the content controls in a `.docx`/`.dotx` template, map placeholders to data, and plan a template-aware change before editing blindly. Fires whenever the user mentions a Word Template, document generation, content controls, placeholder or merge-field mapping, document-definition records, "why is this field blank in the generated doc", "add a placeholder to the template", "what tags does this template use", or a document-generation plug-in, even if no helper is named. Treats `Word Templates/` as first-class source, surfaces duplicate tags, missing required placeholders, and unused controls, and points at the `*.Business`, `*.Plugins`, and `*.Data` touchpoints a placeholder change implies. Run the live-mutation preflight from the `powerplatform-core` orchestrator before any live template or component write.
/pcf-and-web-resourcesUse for the client-side surfaces of a model-driven app - Power Apps component framework (PCF) controls, web resources (JS/HTML/CSS/XML/image), client form scripts, and Power Fx formula review. Covers scaffolding a PCF control, binding it to a form control, building/deploying via wrapper solution or direct push, keeping manifest and wrapper-solution versions in sync, single and batch web resource sync/publish, OnLoad/OnSave/OnChange handler registration, and Xrm.WebApi code. Trigger whenever the user mentions PCF, pcfproj, ControlManifest, `pac pcf`, web resources, form scripts, ribbon JavaScript rules, Xrm/formContext, or wants a Power Fx / canvas formula debugged, even if no helper is named. Not for a standalone Vite SPA Code App - use code-apps.
Other plugins' skills for the same job