
Migrating Airflow 2 To 3
This tackles the messy work of moving Apache Airflow 2.x DAGs to 3.x, where the biggest gotcha is that workers can no longer talk directly to the metadata database. It leans on Ruff's AIR rules to auto-fix imports and deprecated operators, then walks you through the manual stuff like replacing session.query calls with the Airflow Python client or REST API, updating context keys (execution_date is gone), and handling the switch from Datasets to Assets. The skill includes search patterns for ORM usage and provider_session decorators, plus a checklist for config changes and scheduling quirks. Honestly most valuable if you've got custom operators or task functions that touch the metadata DB, since that's where the breaking changes bite hardest.
- skills.sh installs
- 1.1K
- GitHub stars
- 459
- last updated
- Aug 21, 2026
Install
$ npx -y skills add astronomer/agents --skill migrating-airflow-2-to-3 --agent claude-codeInstalls into .claude/skills of the current project.
Files
Airflow 2 to 3 Migration
This skill helps migrate Airflow 2.x DAG code to Airflow 3.x, focusing on code changes (imports, operators, hooks, context, API usage).
Important: Before migrating to Airflow 3, strongly recommend upgrading to Airflow 2.11 first, then to at least Airflow 3.0.11 (ideally directly to 3.1). Other upgrade paths would make rollbacks impossible. See: https://www.astronomer.io/docs/astro/airflow3/upgrade-af3#upgrade-your-airflow-2-deployment-to-airflow-3. Additionally, early 3.0 versions have many bugs - 3.1 provides a much better experience.
Migration at a Glance
Sponsors
Details
- Repository
- github.com/astronomer/agents
- Categories
- Documentation, AI & Agent Building
- First seen
- Apr 16, 2026
More from astronomer/agents
All 24- 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
- Debugging Dags1.2K
- Testing Dags1.2K