What problem does it solve?
This Skill reduces the risk and effort of upgrading Apache Airflow 2.x DAGs to Airflow 3.x by identifying breaking changes in imports, operators, context keys, scheduling semantics, and metadata access patterns.
Core Features & Use Cases
- Upgrade guidance with guardrails: Recommends upgrading Airflow 2.11 first and stresses safer rollback constraints before moving to Airflow 3.
- Automated detection & fixing: Guides running Ruff with Airflow-specific rule sets (AIR30/AIR301/AIR302/AIR31/AIR311/AIR312) to auto-fix common breakages.
- Production-aware migration patterns: Covers Airflow 3 runtime restrictions such as removal of direct ORM/metadata DB access and provides replacement approaches using the Airflow Python client or REST API.
- Migration checklist & targeted search patterns: Helps you scan for legacy imports, removed/renamed DAG arguments, deprecated context keys, XCom pickling changes, and Datasets→Assets migration.
- Use Case: When you have an Airflow 2 codebase with legacy operators/hooks and DAGs relying on execution_date and direct ORM session queries, use this to modernize the codebase for Airflow 3 runtime constraints and API changes.
Quick Start
Ask the AI to migrate your Airflow 2 project to Airflow 3 using Ruff AIR rules and then generate a checklist of remaining issues to manually review.