astronomer avatar

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-code

Installs 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 stats to find recent failures

If no DAG was specified:

  • Run af health to 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

Recommended

More Debugging
1jnmetacode avatarsystematic-debuggingjnmetacode/superpowers-zh遇到任何 bug、测试失败或异常行为时使用,在提出修复方案之前执行1.2Kskills.sh installs
2heygen-com avatarliveavatar-debugheygen-com/liveavatar-agent-skillsTroubleshoot and debug LiveAvatar integration issues. Use when the user's LiveAvatar integration isn't working, the avatar is silent, audio is garbled, sessions1.1Kskills.sh installs
3daymade avatarclaude-skills-troubleshootingdaymade/claude-code-skillsDiagnose and resolve Claude Code plugin and skill issues. This skill should be used when plugins are installed but not showing in available skills list, skills 960skills.sh installs
4new-silvermoon avatargradle-build-performancenew-silvermoon/awesome-android-agent-skillsDebug and optimize Android/Gradle build performance. Use when builds are slow, investigating CI/CD performance, analyzing build scans, or identifying compilatio809skills.sh installs
5daymade avatardebugging-network-issuesdaymade/claude-code-skillsEvidence-driven investigation for network, streaming, and protocol-layer bugs where symptoms don't match the obvious cause. Use when debugging connection resets710skills.sh installs
6yeachan-heo avatardebugyeachan-heo/oh-my-claudecodeDiagnose the current OMC session or repo state using logs, traces, state, and focused reproduction683skills.sh installs