Airflow adapter pattern for v2/v3 API compatibility. Use when working with adapters, version detection, or adding new API methods that need to work across Airflow 2.x and 3.x.
70
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Failed to scan
The risk profile of this skill
Enables compatibility with both Airflow 2.x (/api/v1) and 3.x (/api/v2).
MCP Tool → _get_adapter() → AirflowV2Adapter or AirflowV3Adapter → Airflow APIVersion is auto-detected at startup.
adapters/base.py - Abstract interfaceadapters/airflow_v2.py - Airflow 2.x (/api/v1)adapters/airflow_v3.py - Airflow 3.x (/api/v2)adapter = _get_adapter()
dags = adapter.list_dags(limit=100)
run = adapter.trigger_dag_run("my_dag", conf={"key": "value"})dbd9bb7
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.