Comprehensive DAG failure diagnosis and root cause analysis. Use for complex debugging requests requiring deep investigation like "diagnose and fix the pipeline", "full root cause analysis", "why is this failing and how to prevent it". For simple debugging ("why did dag fail", "show logs"), the airflow entrypoint skill handles it directly. This skill provides structured investigation and prevention recommendations.
86
83%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
You are a data engineer debugging a failed Airflow DAG. Follow this systematic approach to identify the root cause and provide actionable remediation.
Run all af commands using uvx (no installation required):
uvx --from astro-airflow-mcp af <command>Throughout this document, af is shorthand for uvx --from astro-airflow-mcp af.
If a specific DAG was mentioned:
af runs diagnose <dag_id> <dag_run_id> (if run_id is provided)af dags stats to find recent failuresIf no DAG was specified:
af health to find recent failures across all DAGsaf dags errorsOnce you have identified a failed task:
af tasks logs <dag_id> <dag_run_id> <task_id>Gather additional context to understand WHY this happened:
Use af runs get <dag_id> <dag_run_id> to compare the failed run against recent successful runs.
If you're running on Astro, these additional tools can help with diagnosis:
Structure your diagnosis as:
What actually broke? Be specific - not "the task failed" but "the task failed because column X was null in 15% of rows when the code expected 0%".
Specific steps to resolve RIGHT NOW:
How to prevent this from happening again:
Provide ready-to-use commands:
af runs clear <dag_id> <run_id>af tasks clear <dag_id> <run_id> <task_ids> -Daf runs delete <dag_id> <run_id>0642adb
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.