astronomer avatar

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-code

Installs 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
1cap-go avatarcapacitor-offline-firstcap-go/capgo-skillsGuide to building offline-first Capacitor apps with data synchronization, caching strategies, and conflict resolution. Covers Fast SQL, service workers, and net1.1Kskills.sh installs
2mblode avatartypography-auditmblode/agent-skillsAudits web typography against 78 rules in 10 categories: font selection and @font-face setup, sizing and measure, punctuation, spacing and rhythm, hierarchy, al1.1Kskills.sh installs
3forcedotcom avatarexternal-diagram-visual-generateforcedotcom/sf-skillsAI-powered image generation for Salesforce visuals via Nano Banana Pro. Use this skill when the user needs rendered PNG/SVG output such as visual ERDs (Entity R1.1Kskills.sh installs
4asyrafhussin avatartypescript-react-patternsasyrafhussin/agent-skillsTypeScript best practices for React development. Use when writing typed React components, hooks, events, refs, or generic components. Triggers on tasks involvin1.1Kskills.sh installs
5alirezarezvani avatarui-design-systemalirezarezvani/claude-skillsUI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handof1.1Kskills.sh installs
6kostja94 avataralternatives-page-generatorkostja94/marketing-skillsWhen the user wants to create, optimize, or audit alternatives or comparison content (page or blog article). Also use when the user mentions "alternatives page,1.1Kskills.sh installs