
Migrating Airflow 2 To 3
astronomer/agentsOfficial
Guide for migrating Apache Airflow 2.x DAG code to 3.x, covering imports, operators, context, and API usage.
- skills.sh installs
- 1.2K
- GitHub stars
- 463
- last updated
- Aug 21, 2026
What it does
- Covers DAG code changes: Ruff auto-fixes, metadata DB access replacements, scheduling semantics, context keys, and XCom and Assets updates
- Includes reference files for
airflow.cfgchanges, migration patterns, removed model methods, and a manual search checklist - Enforces an upgrade path through Airflow 2.11 and then 3.0.11 or later, since other paths would make rollbacks impossible
- Designed for teams moving Airflow 2.x projects to 3.x that need to modernize DAG code and test refactored scheduling logic
Install
$ npx -y skills add astronomer/agents --skill migrating-airflow-2-to-3 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/astronomer/agents
- Categories
- Data Science & Analytics, Python
- 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 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
- Debugging Dags1.3K
- Testing Dags1.2K
Similar to Migrating Airflow 2 To 3
More Data Science & Analytics
dataPluginanthropics/claude-plugins-official47.9K starsData engineering for Apache Airflow and Astronomer. Author DAGs with best practices, debug pipeline failures, trace data lineage, profile tables, migrate Airflo
authoring-dagsSkillastronomer/agents1.3K installsStructured workflow for writing Apache Airflow DAGs, from discovery through validation and test handoff.
airflowSkillastronomer/agents1.5K installsCommand-line toolkit that queries, manages, and troubleshoots Apache Airflow through the af CLI.
airflow-dag-patternsSkillwshobson/agents11.5K installsProduction Apache Airflow DAG patterns covering operators, sensors, testing, and deployment for batch pipelines.
apache-airflow-orchestrationSkillmanutej/luxor-claude-marketplace440 installsComprehensive Airflow guide covering DAG authoring, operators, sensors, XComs, dependencies, dynamic workflows, and production deployment.
heroui-migrationSkillheroui-inc/heroui4.5K installsGuide for migrating HeroUI v2 apps to v3, covering component, styling, and hook changes with fetched docs.