airflow-dag-patterns
它能做什么
这个工具帮助你按照最佳实践,为 Apache Airflow 搭建自动化工作流(称为 DAG)。它能确保你的工作流稳定、易于测试,并可直接用于生产环境。
适用场景
- ✓搭建自动处理数据的系统时。
- ✓编排需要按顺序执行的一系列任务时。
- ✓安排在特定时间运行的作业时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/airflow-dag-patterns/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我创建一个 Airflow 工作流,每天处理销售数据,出错时发出提醒。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会采用成熟的模式来组织你的工作流,明确任务之间如何衔接、如何处理错误,以及如何监控执行过程。重点是让任务可重复执行且安全可靠。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Apache Airflow DAG Patterns
Production-ready patterns for Apache Airflow including DAG design, operators, sensors, testing, and deployment strategies.
Use this skill when
- Creating data pipeline orchestration with Airflow
- Designing DAG structures and dependencies
- Implementing custom operators and sensors
- Testing Airflow DAGs locally
- Setting up Airflow in production
- Debugging failed DAG runs
Do not use this skill when
- You only need a simple cron job or shell script
- Airflow is not part of the tooling stack
- The task is unrelated to workflow orchestration
Instructions
- Identify data sources, schedules, and dependencies.
- Design idempotent tasks with clear ownership and retries.
- Implement DAGs with observability and alerting hooks.
- Validate in staging and document operational runbooks.
Refer to resources/implementation-playbook.md for detailed patterns, checklists, and templates.
Safety
- Avoid changing production DAG schedules without approval.
- Test backfills and retries carefully to prevent data duplication.
Resources
resources/implementation-playbook.mdfor detailed patterns, checklists, and templates.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
什么是 DAG?
DAG 是 Directed Acyclic Graph(有向无环图)的缩写。在 Airflow 中,它用来定义工作流,展示各个任务以及它们的执行顺序。
为什么要遵循“最佳实践”?
遵循最佳实践可以让工作流更可靠、更易理解和维护,也能减少故障,尤其是在项目变大或有更多人参与时。
什么时候不应该使用这个工具?
如果你只需要一个偶尔运行的简单脚本,或者你的工具链中没有 Airflow,那么这个工具可能并不太适合。
详情
作者的原始描述
Build production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling batch jobs.
热度
- GitHub 星标
- 48k
- 排名
- #3726
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。