debug-flow
Skill0 starsChanged 10 days agoMITView on GitHub
Diagnose a failing Power Automate flow with the power-platform MCP tools. Use when a flow run failed, a flow that worked yesterday broke, failures are intermittent, or the user asks why their flow is not working. Walks the loop from finding the failed run to attributing the cause and verifying the fix.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- troskater/flowdeck-claudetheir own version, first seen Oct 25, 2026
- microsoft/power-platform-skillstheir own version, first seen Oct 13, 2026
- ravid7000/skillstheir own version, first seen Aug 1, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- microsoft/power-platform-skills★ 1.1ksame name
- ravid7000/skills★ 1same name
- troskater/flowdeck-claude★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- agent-toolSkill
- build-flowSkill
- dataverse-schemaSkill
- solution-from-baseSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Not there? It may be in another environment: list_environments (extras.py) shows which one the tools are pointed at.
- Distinctive: line 50
When the error points at the action's shape rather than its data (a missing or unknown parameter, an operation that no longer exists), …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Debug a Power Automate flow
Work the loop in order. Skip a step only when you already hold its output.
- Resolve the flow.
list_flows, match ondisplay_name, keep theflow_id. Not there? It may be in another environment:list_environments(extras.py) shows which one the tools are pointed at. If a run is still going and doing damage,cancel_runit first andset_flow_state(..., "Stopped")the flow - cancelling undoes nothing, it only stops what has not run yet. - Find the failure.
list_runs(flow_id, status="Failed"). Newest first. - Diagnose one run.
explain_run(flow_id, run_id)on the newest failed run.failed_actions[].erroris the real error text, already resolved from the SAS-signed blob. Do not go fetch it yourself.failed_actionsempty while status is Failed means the TRIGGER failed.get_flowand inspect the trigger's condition and inputs.- The cause is usually upstream: read the
succeededoutputs for the value that fed the failing action.
- Error clear but cause not ("it worked yesterday", intermittent,
data-dependent):
compare_runs(flow_id, failed_run_id). It auto-picks the most recent Succeeded run as baseline. Readdiverged_atfirst, thenoutput_changes- an action that succeeded in both runs with different output is usually the real cause.only_in_failed/only_in_baselinemeans a condition or branch evaluated differently. - Recurring or flaky:
analyze_flow_health(flow_id). Trust theverdict:- broken (near-100% failure) - fix the definition, stop rerunning it
- flaky, concentrated in one action - targeted fix on that action
- flaky, spread across actions - suspect trigger data or a connection, not logic
- Fix and verify.
get_flow-> edit the returneddefinition->update_flow_definitionwith the COMPLETE definition (there is no partial update). Verify on the data that broke it:resubmit_run(flow_id, run_id)on the failed run (extras.py) replays its original payload.run_flowstarts a fresh run with no payload, so for any flow fed by real data a green result there proves nothing about this failure. Thenlist_runsandexplain_runagain.
Rules learned the hard way
- SAS URLs on old runs expire. If
explain_runreports the error blob unavailable, re-run the flow and diagnose the fresh run instead of digging. run_flowdoes not forward a body:@triggerBody()is null when triggered through the management API. If the failure only reproduces with a real payload, call the flow's actual HTTP trigger URL.- Deterministic vs data-dependent: the same action failing in both compared runs
with empty
output_changesmeans the definition is wrong. Different upstream outputs mean the data is. - When the error points at the action's shape rather than its data (a missing
or unknown parameter, an operation that no longer exists), check the connector
reference with the Microsoft Learn MCP server before editing the definition.
Fetch
https://learn.microsoft.com/connectors/<connector>/and confirm the operationId, its keys, and whether it is marked[DEPRECATED].
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

