Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

airflowairflow 日程管理

Agent Skill

airflow 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

384

周安装

16

GitHub Stars

4

下载量

128
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:airflow(airflow 日程管理)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/airflow
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill airflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill airflow

简介

airflow 是 Python 驱动的工作流编排工具,用于定义、调度和监控数据管道。

  • 适合 ETL 流程、批处理作业及具有依赖关系的复杂任务调度。
  • 支持动态调度、重试机制和可视化监控,兼容 Spark 等大数据组件。
  • 安装命令为 npx skills add https://github.com/alphaonedev/openclaw-graph --skill airflow。
  • 使用时需注意 DAG 设计规范,避免循环依赖和资源竞争问题。

SKILL.md

airflow

Purpose

Airflow is an open-source workflow orchestration tool for defining, scheduling, and monitoring data pipelines as code. It uses Python to create Directed Acyclic Graphs (DAGs) that represent task dependencies and execution flows.

When to Use

Use Airflow for scenarios involving recurring data tasks, such as ETL processes, batch jobs, or complex workflows with dependencies. It's ideal when you need dynamic scheduling, retries, and monitoring in data engineering pipelines, especially for production-scale operations with tools like Spark or databases.

Key Capabilities

  • Define workflows as DAGs in Python, specifying tasks, dependencies, and schedules.
  • Built-in schedulers that run tasks at defined intervals (e.g., cron-style).
  • Web UI for real-time monitoring, including task logs and DAG status via endpoints like /admin/.
  • Operators like BashOperator for shell commands or PythonOperator for custom functions.
  • Extensible hooks for integrations, such as PostgresHook for database connections.
  • Configuration via airflow.cfg file, e.g., set [core] executor = LocalExecutor for local testing.

Usage Patterns

To use Airflow, install it via pip install apache-airflow, then initialize the database with airflow db init. Define DAGs in the dags folder of your Airflow home directory. Always use a virtual environment to avoid conflicts. For authentication, set environment variables like $AIRFLOW_UID for user isolation.

  • Pattern 1: For scheduled ETL, create a DAG that runs daily, using sensors to wait for data inputs.
  • Pattern 2: Chain tasks with dependencies, e.g., run a Python script only after a database query succeeds.
  • Example 1: Define a simple DAG for daily backups: from airflow import DAG from airflow.operators.bash import BashOperator dag = DAG('daily_backup', schedule_interval='@daily') task = BashOperator(task_id='backup', bash_command='mysqldump db > backup.sql', dag=dag)
  • Example 2: Schedule a pipeline that processes data with Spark: from airflow.providers.apache.spark.operators.spark_submit import SparkSubmitOperator task = SparkSubmitOperator(task_id='spark_job', application='/path/to/script.py', dag=dag)

Common Commands/API

Run Airflow from the command line after setting up your environment. Use $AIRFLOW__CORE__FERNET_KEY for encrypted connections if needed.

  • CLI Commands:

- Initialize database: airflow db init --with-db-init - Start webserver: airflow webserver --port 8080 - Run scheduler: airflow scheduler --dag-id my_dag - Trigger a DAG: airflow dags trigger my_dag --conf '{"key":"value"}' - List DAGs: airflow dags list

  • API Endpoints (via REST API, enabled in airflow.cfg with [api] auth_backend = airflow.api.auth.backend.default):

- GET /api/v1/dags to list all DAGs, requires authentication via API token set as $AIRFLOW_API_TOKEN. - POST /api/v1/dags/{dag_id}/dagRuns to trigger a DAG run, e.g., with JSON payload {"conf": {"param": "value"}}. - Example snippet for API call using requests: import requests response = requests.get('http://localhost:8080/api/v1/dags', headers={'Authorization': f'Bearer {os.environ["AIRFLOW_API_TOKEN"]}'}) print(response.json())

Integration Notes

Integrate Airflow with other tools via hooks and operators. For secrets, use Airflow's Variables or Connections, stored in the metadata database. Set environment variables like $AIRFLOW_CONN_POSTGRES_DEFAULT for database connections (e.g., postgresql://user:pass@localhost/db).

  • Integrate with Spark: Use SparkSubmitOperator and set executor configs in the operator, e.g., conf={"spark.executor.memory": "4g"}.
  • Integrate with AWS: Use S3Hook for file operations; set $AWS_ACCESS_KEY_ID and $AWS_SECRET_ACCESS_KEY as env vars.
  • For Kubernetes, configure [kubernetes] namespace = default in airflow.cfg and use KubernetesPodOperator.

Error Handling

Handle errors by configuring retries in task definitions, e.g., retries=3, retry_delay=timedelta(minutes=5). Check logs via the Web UI or airflow tasks logs <dag_id> <task_id>. Use on_failure_callback in DAGs to trigger alerts.

  • Common errors: Task failures due to dependencies; fix by ensuring prerequisites like database connections are set.
  • Prescriptive steps: In a task, add email_on_failure=True and set [smtp] smtp_host = your.smtp.server in airflow.cfg.
  • Example: Define a task with error handling: from airflow.utils.email import send_email task = PythonOperator(task_id='failing_task', python_callable=my_function, on_failure_callback=lambda context: send_email('admin@example.com', 'Task Failed', 'Error details'))

Graph Relationships

  • Related to: spark (for task execution in data pipelines), hadoop (for distributed processing integration), and database tools (for metadata storage).
  • Depends on: scheduler components and external hooks like postgres or s3.
  • Integrates with: orchestration tools in the data-engineering cluster, such as for combined workflows with ETL frameworks.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.16%
按下载量换算48

Claude

28.56%
按下载量换算37

Cursor

18.16%
按下载量换算23

Gemini CLI

9.01%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills