Airflow best practices

From baekenough/oh-my-customcode · View interactive version

Airflow best practices is an AI agent skill from the GitHub repository baekenough/oh-my-customcode. Apache Airflow best practices for DAG authoring, testing, and production deployment

How to use this skill

Skill file

Apache Airflow Best Practices (3.2.0)

DAG Authoring

Imports (Airflow 3.x)

Top-Level Code (CRITICAL)

TaskFlow API (Default Pattern)

Dynamic Task Mapping

Scheduling

Task Dependencies

Testing

Local Testing

Unit Tests

Integration Tests

Production Deployment

Performance

Reliability

Migration: 2.x → 3.x

Deprecated (Remove or Replace)

| Deprecated | Replacement |

|-----------|-------------|

| from airflow.models import DAG | from airflow.sdk import DAG |

| from airflow.decorators import task | from airflow.sdk import task |

| Dataset | Asset |

| execution_date in context | dag_run.logical_date |

| conf in task context | Removed — use Variables or params |

Architecture Changes

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.