hamzabellouch/agent-skills/apache-airflow-dag-orchestration
Claude Code and agent skill by hamzabellouch/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Enterprise Apache Airflow 2.x DAG authoring, TaskFlow API, deferrable operators, idempotent execution models, and production workflow orchestration.
Install
npx vskill@latest install hamzabellouch/agent-skills/apache-airflow-dag-orchestrationSKILL.md
The same SKILL.md was published earlier as hamzabellouch/agent-skills/apache-airflow-dag-orchestration.
Apache Airflow DAG Orchestration
Comprehensive architectural guide for authoring resilient, idempotent, and scalable data pipelines using Apache Airflow 2.x+ with TaskFlow API, custom operators, and Kubernetes/Celery executors.
1. Core Architecture & Execution Model
1.1 Airflow Components
- Scheduler: Parses DAG files continuously, evaluates scheduling rules, monitors task state, and enqueues commands to the executor.
- Webserver: Flask/React UI displaying DAG topology, execution history, metrics, and manual triggers.
- Worker: Executes actual task instances (in CeleryWorker pods, K8s Pods, or LocalExecutor threads).
- Triggerer: Runs an asynchronous event loop (asyncio) handling Deferrable Operators (Sensors/Async tasks) to save worker slots.
- Metadata Database: PostgreSQL/MySQL database storing DAG definitions, run history, variables, connection strings, and XComs.
2. Pipeline Idempotency & Backfill Guarantees
2.1 Deterministic Execution Logic
Every DAG run MUST be deterministic for its target logical_date (data_interval_start). Never rely on system time (datetime.now()) inside execution logic.
3. Production Anti-Patterns
| Anti-Pattern | Operational Failure | Production Standard | |
|---|---|---|---|
Heavy data processing in PythonOperator | Worker memory crash (OOM), blocks worker pool | Offload compute to Spark, Databricks, Snowflake, or EKS/ECS | |
Top-level DB / API calls in DAG .py files | Scheduler lag; executes query every 30s during parsing | Move all external connection calls inside @task functions | |
| Pushing large DataFrames / payloads into XCom | Database bloat, serializing gigabytes in Metadata DB | Store large artifacts in S3/GCS, pass URI via XCom | |
| Synchronous Sensors blocking worker slots | Exhaused worker concurrency slots waiting on external API | Use Deferrable Sensors (deferrable=True) handled by Triggerer | |
| Hardcoding credentials or static dates in code | Security vulnerability, broken backfills | Use Airflow Connections/Variables and {{ ds }} macros |
4. Production Implementation Blueprint
TaskFlow API DAG with Deferrable Sensor, Retries, and SLA Alerts
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingProgramming/Data_Engineering/Pipelines_and_ETL/apache-airflow-dag-orchestration/SKILL.md
Popularity
- Repository stars
- 8
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hamzabellouch/agent-skills/apache-airflow-dag-orchestration)