airflow-best-practices
Skill by baekenough
Provides Apache Airflow 3.2.0 best practices for DAG authoring, testing, and production deployment. Aimed at developers who build and run Airflow workflows.
Install airflow-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/baekenough/oh-my-customcode /tmp/oh-my-customcode && mkdir -p ~/.claude/skills && cp -r /tmp/oh-my-customcode/.claude/skills/airflow-best-practices ~/.claude/skills/airflow-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/baekenough/oh-my-customcode /tmp/oh-my-customcode && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/oh-my-customcode/.claude/skills/airflow-best-practices ~/.gemini/antigravity-cli/skills/airflow-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install airflow-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance on writing Apache Airflow DAGs for version 3.2.0. It covers DAG authoring with the TaskFlow API, dynamic task mapping, scheduling with cron expressions, timetables and Asset-based data-aware scheduling, and task dependencies. It also lists the steps to move from Airflow 2.x to 3.x, including replacing deprecated imports and the Dataset name.
The source also covers testing, with dag.test() for local debugging, unit tests for DAG imports and cycle detection, and integration tests in test mode. For production, it advises lazy-loading heavy libraries, keeping DAG parse time under 30 seconds, setting retries and failure callbacks, and logging important events. It is for developers who write and deploy Airflow DAGs.
Written from the project's SKILL.md and checked against it.
What it can do
- DAG authoring rulesGuidance on top-level code, imports and TaskFlow patterns for Airflow 3.x.
- Dynamic task mappingAdvice on task.expand() with partial(), mapping over lists, dicts or XCom outputs.
- Scheduling guidanceCovers cron expressions, timetables, Asset-based scheduling and SLA monitoring.
- Task dependency patternsAdvice on >> and << operators, TaskGroup and limiting nesting depth.
- Local DAG testingUse dag.test() in a main block to run all tasks in one serialized process.
- Unit and integration testsChecks for DAG import errors, dependency cycles and end-to-end workflows.
- Production performanceLazy-loading, connection pooling and keeping DAG parse time under 30 seconds.
- Reliability settingsGuidance on retries, retry_delay, SLA callbacks and on_failure_callback.
- Airflow 2.x to 3.x migrationTable of deprecated imports and replacements, such as Dataset to Asset.
What you need
- Apache Airflow 3.x (guide targets 3.2.0)
Try asking
- Review my Airflow DAG for top-level code that slows down parsing
- Convert my Airflow 2.x imports and Dataset usage to Airflow 3.x
- Add retries and a failure callback to my Airflow tasks
Good to know
- Targets Apache Airflow 3.2.0 and the 3.x SDK imports.
- Legacy 2.x imports are marked as deprecated in the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/airflow-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to airflow-best-practices
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
airflow-best-practices: common questions
Which Airflow version does this skill target?
It is written for Apache Airflow 3.2.0 and uses the Airflow 3.x SDK imports.
How do I migrate from Airflow 2.x to 3.x?
The source lists deprecated imports with replacements, such as airflow.models DAG to airflow.sdk DAG, and Dataset to Asset.
Does it cover testing Airflow DAGs?
Yes. It covers dag.test() for local debugging, unit tests for DAG imports and cycles, and integration tests.
How do I install airflow-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is airflow-best-practices free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is airflow-best-practices safe to use?
It scores 57 of 100. Grades: maintenance A, 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 airflow-best-practices?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
