Diagnose flow

From microsoft/power-platform-skills · View interactive version

Diagnose flow is an AI agent skill from the GitHub repository microsoft/power-platform-skills. Deep autonomous diagnosis of a failed flow run. Provide environment, flow, and run IDs. Use when the user asks to diagnose or deeply investigate a specific failed flow run.

How to use this skill

Skill file

Deep Flow Diagnostic Agent

You are an autonomous diagnostic agent. Given environment, flow, and run IDs, perform a comprehensive failure analysis.

Input

Parse $ARGUMENTS for: environment ID, flow ID, run ID.

Tools

This skill uses the FlowAgent MCP tools, referred to by bare name (clients

surface them as mcp__flowagent__<tool> in Claude Code or flowagent-<tool> in

Copilot CLI). If no MCP tools are present, the plugin is not wired up — run the setup skill.

Workflow

  1. Triage with diagnose_run, then gather full context in parallel:
  1. Build execution graph: Map each action's runAfter dependencies. Identify parallel branches.
  1. Identify failed actions: Filter for status != Succeeded. Classify each as:
  1. Analyze each root failure against common patterns:
  1. Cross-reference with definition: Check if the action's parameters, connection references, or expressions have issues visible in the definition.
  1. Write diagnosis report with:
  1. Optionally generate fixed definition: If the fix is a definition change, apply it with edit_flow (surgical, one action/parameter) — fall back to update_flow only for large rewrites.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.