github/awesome-copilot/flowstudio-power-automate-debug
Claude Code and agent skill by github/awesome-copilot
- community
Checking that the SKILL.md file is still in the repository.
Debug failing Power Automate cloud flows using the FlowStudio MCP server. The Graph API only shows top-level status codes. This skill gives your agent action-level inputs and outputs to find the actual root cause. Load this skill when asked to: debug a flow, investigate a failed run, why is this flow failing, inspect action outputs, find the root cause of a flow error, fix a broken Power Automate flow, diagnose a timeout, trace a DynamicOperationRequestFailure, check connector auth errors, read error details from a run, or troubleshoot expression failures. Requires a FlowStudio MCP subscription — see https://mcp.flowstudio.app
Install
npx vskill@latest install github/awesome-copilot/flowstudio-power-automate-debugSKILL.md
The same SKILL.md was published earlier as github/awesome-copilot/flowstudio-power-automate-debug.
Power Automate Debugging with FlowStudio MCP
A step-by-step diagnostic process for investigating failing Power Automate cloud flows through the FlowStudio MCP server.
Real debugging examples: Expression error in child flow |
Prerequisite: A FlowStudio MCP server must be reachable with a valid JWT. See the flowstudio-power-automate-mcp skill for connection setup. Subscribe at https://mcp.flowstudio.app
Source of Truth
Always call `list_skills` / `tool_search` first to confirm available toolnames and parameter schemas. Tool names and parameters may change betweenserver versions.This skill covers response shapes, behavioral notes, and diagnostic patterns —things tool schemas cannot tell you. If this document disagrees withtool_searchor a real API response, the API wins.
Python Helper
Step 1 — Locate the Flow
Step 2 — Find the Failing Run
Step 3 — Get the Top-Level Error
CRITICAL:get_live_flow_run_errortells you which action failed.get_live_flow_run_action_outputstells you why. You must call BOTH.Never stop at the error alone — error codes likeActionFailed,NotSpecified, andInternalServerErrorare generic wrappers. The actualroot cause (wrong field, null value, HTTP 500 body, stack trace) is onlyvisible in the action's inputs and outputs.
Step 4 — Inspect the Failing Action's Inputs and Outputs
This is the most important step.get_live_flow_run_erroronly givesyou a generic error code. The actual error detail — HTTP status codes,response bodies, stack traces, null values — lives in the action's runtimeinputs and outputs. **Always inspect the failing action immediately afteridentifying it.**
What the action outputs reveal (that error codes don't)
Error code from get_live_flow_run_error | What get_live_flow_run_action_outputs reveals | |
|---|---|---|
ActionFailed | Which nested action actually failed and its HTTP response | |
NotSpecified | The HTTP status code + response body with the real error | |
InternalServerError | The server's error message, stack trace, or API error JSON | |
InvalidTemplate | The exact expression that failed and the null/wrong-type value | |
BadRequest | The request body that was sent and why the server rejected it |
Foreach iterations
When actionName refers to an action inside a foreach, the output tool can return every repetition of that action. Each item may include repetitionIndexes with the loop name and zero-based itemIndex. Use iterationIndex to inspect one iteration after you find the suspicious item:
Evidence Compose Bookends
For uncertain connector work, add a Compose_*_Request before the risky action and a Compose_*_Result after it, with the result action allowed on both Succeeded and Failed. This gives future debugging a clean payload snapshot without requiring another deploy. Do not include secrets or long binary payloads in these bookends.
Example: HTTP action returning 500
Example: Expression error on null
Step 5 — Read the Flow Definition
Find the failing action in the definition. Inspect its inputs expression to understand what data it expects.
Step 6 — Walk Back from the Failure
When the failing action's inputs reference upstream actions, inspect those too. Walk backward through the chain until you find the source of the bad data:
⚠️ Output payloads from array-processing actions can be very large.Always slice (e.g.[:500]) before printing.
Tip: OmitactionNameto list top-level actions when you're not surewhich action produced the bad data. Once you pick an action inside a foreach,passiterationIndexto avoid pulling every repetition into context.
Step 7 — Pinpoint the Root Cause
Expression Errors (e.g. split on null)
If the error mentions InvalidTemplate or a function name:
- Find the action in the definition
- Check what upstream action/expression it reads
- Inspect that upstream action's output for null / missing fields
Wrong Field Path
Expression triggerBody()?['fieldName'] returns null → fieldName is wrong. Inspect the trigger output to see the actual field names:
HTTP Actions Returning Errors
The error code says InternalServerError or NotSpecified — always inspect the action outputs to get the actual HTTP status and response body:
Connection / Auth Failures
Look for ConnectionAuthorizationFailed — the connection owner must match the service account running the flow. Cannot fix via API; fix in PA designer.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/flowstudio-power-automate-debug/SKILL.md
Popularity
- Repository stars
- 33,214
- Repository forks
- 4,045
- 7-day trend score
- 52
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/github/awesome-copilot/flowstudio-power-automate-debug)