
Debugging Dags
When your Airflow pipeline breaks at 3am, you need more than just error logs. This walks you through a structured four-step investigation: identify the failure with `af runs diagnose`, pull task logs to find the actual exception buried under Airflow boilerplate, check context like recent deploys or data volume spikes, then output a diagnosis with root cause, impact assessment, and concrete remediation steps. It's designed for deep investigations when something is genuinely broken and you need to understand why, not just surface-level log checking. The systematic approach helps you avoid the usual debugging trap of jumping straight to fixes without understanding what actually went wrong or how to prevent it next time.
- skills.sh installs
- 1.2K
- GitHub stars
- 459
- last updated
- Aug 21, 2026
Install
$ npx -y skills add astronomer/agents --skill debugging-dags --agent claude-codeInstalls into .claude/skills of the current project.
Files
DAG Diagnosis
You are a data engineer debugging a failed Airflow DAG. Follow this systematic approach to identify the root cause and provide actionable remediation.
Running the CLI
These commands assume af is on PATH. Run via astro otto to get it automatically, or install standalone with uv tool install astro-airflow-mcp.
Step 1: Identify the Failure
If a specific DAG was mentioned:
- Run
af runs diagnose <dag_id> <dag_run_id>(if run_id is provided) - If no run_id specified, run
af dags statsto find recent failures
If no DAG was specified:
- Run
af healthto find recent failures across all DAGs - Check for import errors with
af dags errors - Show DAGs with recent failures
- Ask which DAG to investigate further
Step 2: Get the Error Details
Once you have identified a failed task:
Sponsors
Details
- Repository
- github.com/astronomer/agents
- Categories
- Debugging, Automation & Workflows
- First seen
- Apr 16, 2026
More from astronomer/agents
All 24- Testing Dags1.2K
- Migrating Airflow 2 To 31.1K
- Setting Up Astro Project1.1K
- Tracing Upstream Lineage1.1K
- Profiling Tables1.1K
- Tracing Downstream Lineage1.1K
- Checking Freshness1K
- Annotating Task Lineage1K
- Cosmos Dbt Core990
- Airflow Hitl980
- Creating Openlineage Extractors960
- Cosmos Dbt Fusion925
- Warehouse Init841
- Deploying Airflow817
- Troubleshooting Astro Deployments655
- Airflow Plugins622
- Managing Astro Deployments595
- Blueprint584
- Init176
- Managing Astro Local Env1.6K
- Airflow1.5K
- Analyzing Data1.4K
- Authoring Dags1.3K