airflow

Build and debug Airflow DAGs with KubernetesPodOperator across versions 2.x and 3.x.

2|Updated Jun 29, 2021
One-click install
npx skills add https://github.com/pypeaday/dotfiles --skill airflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: airflow
Source: https://github.com/pypeaday/dotfiles/tree/main/opencode/.config/opencode/skill/airflow
Command: npx skills add https://github.com/pypeaday/dotfiles --skill airflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Airflow users struggle to design, debug, and migrate DAGs across Airflow 2.x and 3.x, including KubernetesPodOperator usage and XCom patterns.

Core Features & Use Cases

  • DAG Skeletons and patterns for Airflow 2.x and 3.x, with guidance on version-specific adjustments.
  • KubernetesPodOperator usage, operator selection, and task orchestration examples.
  • Debugging workflow: common failure modes, log inspection, and best practices for observability across environments.
  • Migration notes and anti-patterns: how to upgrade from 2.x to 3.x and avoid deprecated APIs.

Quick Start

  • Create a ready-to-use Airflow DAG template compatible with Airflow 2.x and 3.x, including a KubernetesPodOperator example and a debugging checklist.

Frequently Asked Questions about airflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Airflow DAGs that are compatible with both 2.x and 3.x?

To build compatible Airflow DAGs, use version-aware DAG syntax and skeleton patterns that adjust imports dynamically. This approach ensures your data pipelines operate seamlessly across Airflow 2.x and 3.x environments without requiring separate codebases.

What's the best way to debug Airflow DAG failures and inspect logs?

The best way to debug Airflow DAG failures is following a structured debugging workflow: inspecting task logs, identifying common failure modes, and applying observability best practices across development, testing, and production environments.

How do I use the KubernetesPodOperator in an Airflow DAG?

Use the KubernetesPodOperator by defining it within your DAG skeleton to execute task orchestration in isolated Kubernetes pods. Proper operator selection ensures environment-specific configurations are handled correctly across your pipeline.

Can I use XCom patterns to pass data between Airflow tasks?

Yes, you can use XCom patterns to pass data between Airflow tasks, but you must apply anti-pattern avoidance best practices. Proper XCom usage prevents performance bottlenecks when orchestrating complex data pipelines across different environments.

How to migrate Airflow DAGs from 2.x to 3.x and avoid deprecated APIs?

Migrate Airflow DAGs from 2.x to 3.x by following specific migration notes and applying version-specific adjustments to your DAG syntax. This process actively helps you avoid deprecated APIs and update operator choices for successful upgrades.