migrating-airflow-2-to-3
Skill by JinyiHan99
Guides migration of Apache Airflow 2.x DAG code to Airflow 3.x. It covers imports, operators, context keys, metadata access and Ruff auto-fixes. Aimed at developers with existing Airflow 2 projects.
Install migrating-airflow-2-to-3
Built from the published package, never by AI.
git clone --depth 1 https://github.com/JinyiHan99/Skill-Use-Bench /tmp/Skill-Use-Bench && mkdir -p ~/.claude/skills && cp -r /tmp/Skill-Use-Bench/benchmark/migrating-airflow-2-to-3/skill ~/.claude/skills/migrating-airflow-2-to-3Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install migrating-airflow-2-to-3 in Claude Code
git clone --depth 1 https://github.com/JinyiHan99/Skill-Use-Bench /tmp/Skill-Use-Bench && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Skill-Use-Bench/benchmark/migrating-airflow-2-to-3/skill ~/.gemini/antigravity-cli/skills/migrating-airflow-2-to-3Antigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install migrating-airflow-2-to-3 in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides migration of Apache Airflow 2.x DAG code to Airflow 3.x, focusing on imports, operators, hooks, context and API usage. It runs Ruff's Airflow rules (AIR30, AIR301, AIR302, AIR31, AIR311, AIR312) to auto-fix detectable issues, then uses a manual search checklist and reference files for the rest. It also covers replacing direct metadata database access with the Airflow Python client or REST API calls, and lists changed default settings such as schedule and catchup.
It recommends upgrading to Airflow 2.11 first, then to at least 3.0.11 or ideally 3.1, because other upgrade paths would make rollbacks impossible. A PostToolUse hook reminds the user to run the Ruff check after edits. The skill is aimed at developers and teams with Airflow 2.x projects who plan to move to Airflow 3. It tells users to test refactored metadata, scheduling and context logic after changes.
Written from the project's SKILL.md and checked against it.
What it can do
- Ruff auto-fixRuns Ruff's Airflow rules to auto-fix detectable Airflow 2 to 3 issues.
- Manual migration checklistScans for issues Ruff does not catch, such as metadata DB access and legacy imports.
- Import replacementsMaps Airflow 2 operator, decorator and Dataset imports to Airflow 3 equivalents.
- Context key changesLists removed context keys and their Airflow 3 replacements.
- Metadata access replacementsShows how to use the Airflow Python client or REST API instead of direct DB access.
- Config and behavior notesCovers cron scheduling, .airflowignore syntax, OAuth callback URLs and default changes.
- Callback behavior changesExplains changes to on_success_callback, on_skipped_callback and teardown behavior.
What you need
- Python project with Apache Airflow 2.x DAG code
- Ruff with the preview AIR rules (run via uv)
- uv to run the Ruff commands
- Airflow runtime version for the apache-airflow-client package
- Deployment API token for the Airflow REST API examples
Try asking
- Migrate my Airflow 2 DAGs in this project to Airflow 3.
- Run the Ruff Airflow rules and fix what they can.
- Find direct metadata DB access in my DAGs and replace it with the REST API.
Good to know
- Covers code changes only, not full upgrade operations.
- Early Airflow 3.0 versions have many bugs, so the skill recommends 3.1.
- Other upgrade paths than the recommended ones would make rollbacks impossible.
- Users must test refactored metadata, scheduling and context logic after changes.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: benchmark/migrating-airflow-2-to-3/skill/skill.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to migrating-airflow-2-to-3
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
migrating-airflow-2-to-3: common questions
Which Airflow version should I upgrade to first?
The skill recommends upgrading to Airflow 2.11 first, then to at least 3.0.11, ideally directly to 3.1.
Does it fix all breaking changes automatically?
No. Ruff's AIR rules fix many issues automatically, but the skill also provides a manual checklist for the issues Ruff does not catch.
Can it help with direct metadata database access?
Yes. The source shows replacements using the Airflow Python client or direct REST API calls, since direct ORM access fails in Airflow 3.
How do I install migrating-airflow-2-to-3?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is migrating-airflow-2-to-3 free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is migrating-airflow-2-to-3 safe to use?
It scores 59 of 100. Grades: maintenance B, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to migrating-airflow-2-to-3?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
