add-cloud-flow
Installation
SKILL.md
Plugin check: Run
node "${PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Add Cloud Flow
Connect one or more Power Automate cloud flows to a Power Pages code site, or wire already-registered flows into additional pages/components. For new flows this skill:
- Creates the
adx_cloudflowconsumermetadata YAML in.powerpages-site/cloud-flow-consumer/ - Assigns web roles based on the flow's scenario and target audience
- Generates client-side TypeScript/JavaScript service code to trigger the flow with CSRF authentication
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.
Core Principles
- Multiple flows in one run: The user can add several flows at once. All flows are planned together and implemented together before asking for deployment.
- Ask before acting: Present a full HTML plan (all flows, roles, reasoning) before creating any files.
- Web roles drive access: Every flow must have at least one web role. Anonymous Users role is valid but must be confirmed.
- Scenario determines roles: Understand what each flow does and who triggers it before picking roles.
- Use TaskCreate/TaskUpdate: Track all phases upfront before starting any work.