Upgrading Mwaa Environments
aws/agent-toolkit-for-aws
Upgrades an MWAA environment to a newer Airflow version — within 2.x, within 3.x, or across the 2.x-to-3.x boundary.
Comprehensive DAG failure diagnosis and root-cause analysis with structured investigation and prevention recommendations.
$ npx skills add astronomer/agents --skill debugging-dags -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install astronomer/agents debugging-dags --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/astronomer/agents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/debugging-dags .claude/skills/debugging-dags && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "debugging-dags" agent skill from https://github.com/astronomer/agents/tree/main/skills/debugging-dags into .claude/skills/debugging-dags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-dags", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/astronomer/agents/tree/main/skills/debugging-dagsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add astronomer/agents --skill debugging-dags -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install astronomer/agents debugging-dags --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/astronomer/agents.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/debugging-dags .agents/skills/debugging-dags && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "debugging-dags" agent skill from https://github.com/astronomer/agents/tree/main/skills/debugging-dags into .agents/skills/debugging-dags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-dags", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add astronomer/agents --skill debugging-dags -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install astronomer/agents debugging-dags --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/astronomer/agents.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/debugging-dags .cursor/skills/debugging-dags && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "debugging-dags" agent skill from https://github.com/astronomer/agents/tree/main/skills/debugging-dags into .cursor/skills/debugging-dags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-dags", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/astronomer/agents.git --path skills/debugging-dags--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add astronomer/agents --skill debugging-dags -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install astronomer/agents debugging-dags --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/astronomer/agents.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/debugging-dags .gemini/skills/debugging-dags && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "debugging-dags" agent skill from https://github.com/astronomer/agents/tree/main/skills/debugging-dags into .gemini/skills/debugging-dags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-dags", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install astronomer/agents debugging-dagsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add astronomer/agents --skill debugging-dags -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/astronomer/agents.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/debugging-dags .github/skills/debugging-dags && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "debugging-dags" agent skill from https://github.com/astronomer/agents/tree/main/skills/debugging-dags into .github/skills/debugging-dags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-dags", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add astronomer/agents --skill debugging-dags -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install astronomer/agents debugging-dags --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/astronomer/agents.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/debugging-dags .opencode/skills/debugging-dags && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "debugging-dags" agent skill from https://github.com/astronomer/agents/tree/main/skills/debugging-dags into .opencode/skills/debugging-dags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-dags", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
debugging-dagsComprehensive DAG failure diagnosis and root-cause analysis with structured investigation and prevention recommendations.
Debugging Dags is an agent skill from astronomer/agents. Comprehensive DAG failure diagnosis and root-cause analysis with structured investigation and prevention recommendations. Use when deep failure investigation is needed, a DAG fails to import/parse or 'airflow dags list' errors on a file; a task or run is failing and must be diagnosed and fixed; requests like 'why did X fail', 'my dag keeps failing — find and fix it', or fixing a broken DAG so it loads cleanly. For simple 'why did it fail / show logs', the airflow skill handles it directly.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Data pipelines and ETL, Root cause analysis and Debugging. It works with Apache Airflow and Astro. The repository describes itself as: AI agent tooling for data engineering workflows. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1ec1a1f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dockerpipcurljquvFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
pypi.orgAlso links to:
astronomer.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Debugging Dags loads about 1.9k tokens when it runs. Until then it costs about 128 tokens; SKILL.md has 941 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from astronomer/agents at commit 1ec1a1f, republished under its Apache-2.0 licence (© astronomer). 941 words, ~1,868 tokens.
.claude/skills/debugging-dags/SKILL.md (or your agent's skills folder).You are a data engineer debugging a failed Airflow DAG. Follow this systematic approach to identify the root cause and provide actionable remediation.
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.
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.
A common cause of failures with no git activity is dependency drift — the user's code didn't change, but a package they depend on did. Check in this order:
Worker image diff (preferred when available). Every Astro deploy = new image tag, so the registry has a "before" and "after". Diff pip freeze between current and previous image — that's ground truth for what changed:
docker run --rm <current_image> pip freeze > /tmp/now.txt
docker run --rm <previous_image> pip freeze > /tmp/prev.txt
diff /tmp/prev.txt /tmp/now.txtAlso compare docker run --rm <image> python --version between the two — a Python minor-version bump (3.11 → 3.12, or even a patch) can break wheel compatibility even when pip freeze looks identical. af config providers lists currently installed provider versions, useful for cross-checking against modules named in the traceback.
Venv-style operators bypass the worker image. @task.virtualenv, PythonVirtualenvOperator, ExternalPythonOperator, and KubernetesPodOperator build their environment per task run, so an image diff won't catch failures inside them. If the failed task is one of these, read its requirements / image / python_version / python args directly:
pandas>=2.0.0 with no upper bound, or no specifier at all) → a new upstream release is the prime suspect.image="foo:latest" or no tag → the image moved underneath you.python_version="3.11" (on @task.virtualenv / PythonVirtualenvOperator) or a python path (on ExternalPythonOperator) resolving to a different interpreter than it used to — a Python minor-version change can break wheel compatibility for unchanged requirements. Same vector applies to the worker image itself if the base Python changed there.Fix is to pin: pandas>=2.0.0,<3.0.0, a lockfile, a specific image SHA, or a fully-qualified Python version (python_version="3.11.7" instead of "3.11").
Index lookup when image diff isn't conclusive (no image history, or a venv-style operator). Identify the configured index first — it may not be PyPI:
UV_INDEX_URL, PIP_INDEX_URL, PIP_EXTRA_INDEX_URLpyproject.toml → [[tool.uv.index]]~/.pip/pip.conf, /etc/pip.confDockerfile --index-url flagsThen query for releases of the suspect package since the first failure started. PyPI:
curl -s https://pypi.org/pypi/<pkg>/json | jq '.releases | to_entries | map({version: .key, uploaded: .value[0].upload_time}) | sort_by(.uploaded) | reverse | .[:5]'Private indexes usually expose the same /pypi/<pkg>/json shape; fall back to the Simple API (/simple/<pkg>/) or ask the user if neither works.
A release timestamp landing between the last green run and the first red run, for a package named in the traceback, is the answer.
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>© astronomer, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/debugging-dags of astronomer/agents.
Open the folder on GitHubat commit 1ec1a1f
Debugging Dags next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Debugging Dags this skillastronomer/agents | 450 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Upgrading Mwaa Environmentsaws/agent-toolkit-for-aws | 2.8k | — | ~7.3k | Automated safety check: Pass | Apache-2.0 | |
| Chart Testsastronomer/airflow-chart | 297 | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| Functional Testsastronomer/airflow-chart | 297 | — | ~2.2k | Automated safety check: Pass | Custom licence | |
| Helm Chartastronomer/airflow-chart | 297 | — | ~6.4k | Automated safety check: Pass | Custom licence | |
| Testing Mwaa Workflowaws/agent-toolkit-for-aws | 2.8k | — | ~3.8k | Automated safety check: Pass | Apache-2.0 |
aws/agent-toolkit-for-aws
Upgrades an MWAA environment to a newer Airflow version — within 2.x, within 3.x, or across the 2.x-to-3.x boundary.
astronomer/airflow-chart
A skill your agent uses when writing, editing, reviewing, or running Helm chart tests for the Astronomer airflow-chart repository.
astronomer/airflow-chart
A skill your agent uses when writing, editing, reviewing, or running functional (end-to-end) tests for the Astronomer airflow-chart repository.
astronomer/airflow-chart
A skill your agent uses for Helm chart work - creating charts, modifying existing charts, values design, testing.
aws/agent-toolkit-for-aws
Tests Amazon MWAA workflow execution end-to-end: trigger a run and monitor it to completion for Provisioned (Python DAG, via Airflow REST API) and Serverless (YAML workflow, via StartWorkflowRun).
STOmics/Stereopy
Stereopy project maintenance guide for code review, bug fixing, and feature development.
astronomer/agents
Queries the data warehouse with SQL and answers business questions about data.
astronomer/agents
Queries, manages, and troubleshoots Apache Airflow using the af CLI.
astronomer/agents
Guide for migrating Dagster projects to Apache Airflow 3 on Astro.
astronomer/agents
Workflow and best practices for writing Apache Airflow DAGs.
astronomer/agents
Deploys Airflow DAGs and projects. An agent skill from astronomer/agents.
astronomer/agents
Trace downstream data lineage and impact analysis. An agent skill from astronomer/agents.
Works with
Categories
Comprehensive DAG failure diagnosis and root-cause analysis with structured investigation and prevention recommendations. Debugging Dags is an agent skill from astronomer/agents. Comprehensive DAG failure diagnosis and root-cause analysis with structured investigation and prevention recommendations.
Debugging Dags fits situations like: deep failure investigation is needed; A DAG fails to import/parse; airflow dags list errors on a file; run is failing and must be diagnosed and fixed.
Run `npx skills add astronomer/agents --skill debugging-dags -a claude-code`. Or copy the skill folder (skills/debugging-dags in astronomer/agents) into .claude/skills/debugging-dags in your project. Claude Code loads it when a task matches its description.
Run `npx skills add astronomer/agents --skill debugging-dags -a codex`. Or copy the skill folder (skills/debugging-dags in astronomer/agents) into .agents/skills/debugging-dags in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add astronomer/agents --skill debugging-dags -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debugging-dags, .gemini/skills/debugging-dags, .github/skills/debugging-dags and .opencode/skills/debugging-dags in your project.
Going by SKILL.md and its folder, Debugging Dags needs the command-line tools its instructions call (docker, pip, curl, jq and uv). Our summary lists: Python 3; Docker.
SKILL.md names 2 domains. In commands or code: pypi.org; the agent is likely to contact it when it follows the instructions. As links in the text: astronomer.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Debugging Dags is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Debugging Dags: Upgrading Mwaa Environments (aws/agent-toolkit-for-aws, 2.8k stars), Chart Tests (astronomer/airflow-chart, 297 stars), Functional Tests (astronomer/airflow-chart, 297 stars) and Helm Chart (astronomer/airflow-chart, 297 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
astronomer (a GitHub organization) maintains it in astronomer/agents, which has 450 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on October 5, 2026.
Source: astronomer/agents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.