
Debugging Dags
astronomer/agentsOfficial
Structured DAG failure diagnosis that traces root causes through logs, git history, and package version drift.
- skills.sh installs
- 1.3K
- GitHub stars
- 463
- last updated
- Aug 21, 2026
What it does
- Covers the full failure workflow: identify the failed run, read task logs, categorize the failure, check context, and deliver a fix
- Includes dependency-drift checks: worker image
pip freezediffs, venv-style operator pins, and package release timelines on PyPI or private indexes - Provides a root-cause report with impact assessment, immediate fix, prevention steps, and ready-to-run
af runs clearandaf tasks clearcommands - Designed for Airflow DAGs that fail to parse or fail at runtime, not for simple log lookups, which the airflow skill covers
Install
$ npx -y skills add astronomer/agents --skill debugging-dags -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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:
Details
- Repository
- github.com/astronomer/agents
- Categories
- Debugging, Workflow Automation, Data Science & Analytics
- First seen
- Apr 16, 2026
More from astronomer/agents
All 24- Testing Dags1.2K
- Migrating Airflow 2 To 31.2K
- Setting Up Astro Project1.1K
- Tracing Upstream Lineage1.1K
- Profiling Tables1.1K
- Tracing Downstream Lineage1.1K
- Checking Freshness1K
- Annotating Task Lineage1K
- Cosmos Dbt Core1K
- Airflow Hitl992
- Creating Openlineage Extractors972
- Cosmos Dbt Fusion936
- Warehouse Init853
- Deploying Airflow835
- Troubleshooting Astro Deployments669
- Airflow Plugins635
- Managing Astro Deployments606
- Blueprint599
- Init176
- Managing Astro Local Env1.8K
- Airflow1.5K
- Analyzing Data1.5K
- Authoring Dags1.3K
Similar to Debugging Dags
More Debugging
testing-dagsastronomer/agents1.2K installsIterative test-debug-fix loop for Airflow DAGs, starting with a single trigger-and-wait run.
airflowastronomer/agents1.5K installsCommand-line toolkit that queries, manages, and troubleshoots Apache Airflow through the af CLI.
diagnose-ci-failureswarpdotdev/common-skills28.7K installsStructured CI failure triage for a PR using the GitHub CLI, covering status, logs, and fix planning.
troubleshooting-application-failuresaws/agent-toolkit-for-aws7.2K installsStructured CloudWatch log investigation that finds failing log groups, error patterns, and likely root causes.
debuganthropics/knowledge-work-plugins6.1K installsStructured debugging session that reproduces, isolates, diagnoses, and fixes issues from error messages or symptoms.