跳到正文
Skillpedia
机器学习48k · #3726

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/airflow-dag-patterns/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Identify data sources, schedules, and dependencies.
  2. Design idempotent tasks with clear ownership and retries.
  3. Implement DAGs with observability and alerting hooks.
  4. 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.md for 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#3726
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能