add-data-source
Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify andโฆ
Integrates Power Automate cloud flows into a Power Pages site. Lists available flows, suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata files, and generates client-side code to call flows. Handles both new flow registration and adding
Claude Code
$ npx -y skills add microsoft/power-platform-skills --skill add-cloud-flow --agent claude-code
Codex
$ npx skills add microsoft/power-platform-skills --skill add-cloud-flow -a codex -y
Cursor
$ npx skills add microsoft/power-platform-skills --skill add-cloud-flow -a cursor -y
Gemini CLI
$ npx skills add microsoft/power-platform-skills --skill add-cloud-flow -a gemini-cli -y
GitHub Copilot
$ npx skills add microsoft/power-platform-skills --skill add-cloud-flow -a github-copilot -y
OpenCode
$ npx skills add microsoft/power-platform-skills --skill add-cloud-flow -a opencode -y
Windsurf
$ npx skills add microsoft/power-platform-skills --skill add-cloud-flow -a windsurf -y
name: add-cloud-flow description: >- Integrates Power Automate cloud flows into a Power Pages site. Lists available flows, suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata files, and generates client-side code to call flows. Handles both new flow registration and adding already-registered flows to additional pages without re-creating metadata. Use when the user wants to add, connect, register, or link a Power Automate cloud flow to their site. user-invocable: true allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Skill, Task, TaskCreate, TaskUpdate, TaskList model: opus
> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` โ if it outputs a message, show it to the user before proceeding.
Connect one or more Power Automate cloud flows to a Power Pages SPA site, or wire already-registered flows into additional pages/components. For new flows this skill:
For already-registered flows, the skill skips metadata and role creation and goes straight to client-side integration โ wiring the existing flow into new UI locations.
> **Prerequisites:** > - An existing Power Pages SPA site with `.powerpages-site` deployed > - PAC CLI authenticated (`pac auth who` must succeed) > - Azure CLI authenticated (`az login --allow-no-subscriptions` works whether or not your account has an Azure subscription โ Dataverse and Power Platform tokens are AAD-scoped)
**Initial request:** $ARGUMENTS
---
1. **Verify Prerequisites** โ Locate the project, confirm `.powerpages-site` exists, inventory web roles and existing flows 2. **List Available Flows** โ Fetch flows from the Power Automate Flow RP API 3. **Select Flows & Understand Scenarios** โ User picks one or more flows; determine scenario and audience for each 4. **Determine Web Roles** โ Propose minimum roles per flow with reasoning 5. **Review Plan** โ Render HTML plan for all flows; get user approval 6. **Create Metadata** โ Write `.cloudflowconsumer.yml` for each flow; create missing web roles first 7. **Client-Side Integration** โ Generate typed service code to call each flow from the frontend 8. **Verify & Summarize** โ Validate all YAMLs, record skill usage, offer deployment
---
**Goal**: Locate the Power Pages project and confirm all prerequisites are met
**Actions**:
1. Create todo list with all 8 phases (see [Progress Tracking](#progress-tracking) table)
Look for `powerpages.config.json` in the current directory or immediate subdirectories.
**If not found**: Tell the user to create a site first with `/create-site`.
Read `powerpages.config.json` to get the `siteName` (used for display and plan rendering).
Look for the `.powerpages-site` folder in the project root.
**If not found**:
<!-- gate: add-cloud-flow:1.3.deploy-first | category=plan | cancel-leaves=nothing -->
> ๐ฆ **Gate (plan ยท add-cloud-flow:1.3.deploy-first):** `.powerpages-site` missing โ cloud flow YAML lives inside it. Deploy first or stop. > > **Trigger:** Phase 1.3 found no `.powerpages-site` directory. > **Why we ask:** Cloud flow YAML written to a non-existent path will never deploy. > **Cancel leaves:** Nothing โ no YAML files written.
Use `AskUserQuestion`:
| Question | Options | |----------|---------| | `.powerpages-site` is required to add cloud flows. Would you like to deploy the site now? | Yes, deploy now (Required), Cancel |
**If "Yes, deploy now"**: Invoke `/deploy-site` first, then continue to Phase 2. **If "Cancel"**: Stop.
Read all `.webrole.yml` files from `.powerpages-site/web-roles/` to inventory available roles. Note each role's `id`, `name`, `adx_anonymoususersrole`, and `adx_authenticatedusersrole`.
Check `.powerpages-site/cloud-flow-consumer/` for existing `.cloudflowconsumer.yml` files. For each file, read:
Store these as the **already-registered flows** list. These flows already have metadata and web roles configured but may need additional frontend integration on other pages or components.
Read `package.json` to detect the framework (React, Vue, Angular, Astro). Note the framework and its conventions for Phase 7. See `${PLUGIN_ROOT}/references/framework-conventions.md` for the detection mapping.
**Output**: Project root, site name, framework, available web roles, already-registered flows (with processid, name, and web roles)
---
**Goal**: Fetch all Power Automate cloud flows that have a PowerPages trigger
**Actions**:
Run
Plugins from Microsoft that teach AI assistants, such as GitHub Copilot and Claude Code, to build on Power Platform.
Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify andโฆ
Creates or edits a Power Apps Canvas App through the Canvas Authoring MCP coauthoring session. Handles staged experience design,โฆ
Configure the Canvas Authoring MCP server for the current coauthoring session. Use before starting to edit a canvas app with theโฆ
Use this skill when the user wants to "report a bug", "file an issue", "report an issue", "submit a bug report", or report anyโฆ
Adds Azure DevOps connector to a Power Apps code app. Use when querying work items, creating bugs, managing pipelines, or makingโฆ
Adds any Power Platform connector to a Power Apps code app. Generic fallback for connectors not covered by a specific skill.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, orโฆ
Ask which skill or flow fits your situation. A router over the skills in this repo.