/migrate-to-orchestra:airflow-alerts-to-orchestrafrom migrate-to-orchestra
Migrates Airflow DAG notification patterns (callbacks, EmailOperator, PagerDutyEventsHook) to Orchestra's unified alerts block. Covers all seven destination types: SLACK, EMAIL, PAGER_DUTY, MICROSOFT_TEAMS, GOOGLE_CHAT, WEBHOOK, and DATADOG.
Ships in migrate-to-orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Airflow notifications are spread across callbacks (on_failure_callback, on_success_callback), dedicated operator tasks (EmailOperator, SlackWebhookOperator), and hooks (PagerDutyEventsHook). Orchestra consolidates all of these into a single alerts: block that can appear at the pipeline root (fires on overall pipeline status) or on individual TaskModel objects (fires on that specific task's status).
alerts:
- name: unique-alert-name # required, unique within scope
statuses: # required, at least one
- FAILED # FAILED | SUCCEEDED | CANCELLED | WARNING | SKIPPED | ANY_COMPLETED
destinations: # required, at least one
- integration: SLACK # NotificationTypesEnum — see table below
destination: '#channel' # required for SLACK and EMAIL
connection_id: null # required for PAGER_DUTY, TEAMS, GOOGLE_CHAT, WEBHOOK, DATADOG
parameters: null # optional — DATADOG priority, WEBHOOK body
custom_message: null # optional string, max 200 chars
destinations:
- integration: SLACK
destination: '#data-alerts' # channel name or member ID — required
# connection_id not needed — resolved from workspace-level Slack connection
destinations:
- integration: EMAIL
destination: '[email protected]' # email address — required
# connection_id not needed — uses Orchestra's email connection
destinations:
- integration: PAGER_DUTY
connection_id: pagerduty_conn_12345 # Orchestra PagerDuty connection — required
# destination not used
destinations:
- integration: MICROSOFT_TEAMS
connection_id: teams_webhook_12345 # Orchestra Teams connection — required
# destination not used
destinations:
- integration: WEBHOOK
connection_id: my_webhook_12345 # Orchestra Webhook connection — required
parameters:
body: # optional — custom JSON body
event: "pipeline_failed"
pipeline: "my-pipeline"
destinations:
- integration: DATADOG
connection_id: datadog_conn_12345 # Orchestra Datadog connection — required
parameters:
priority: 3 # optional — integer 1 (highest) to 5 (lowest)
destinations:
- integration: GOOGLE_CHAT
connection_id: google_chat_alerts_12345 # Orchestra Google Chat connection - required
# destination not used - the connection's incoming webhook fixes the space
| Orchestra status | Airflow equivalent | When it fires |
|---|---|---|
FAILED | on_failure_callback | Pipeline/task failed |
SUCCEEDED | on_success_callback | Pipeline/task succeeded |
WARNING | on_retry_callback (partial) | Task finished with warnings (e.g. test threshold hit) |
CANCELLED | (no equivalent) | Pipeline was manually cancelled |
SKIPPED | (no equivalent) | Task was skipped due to condition |
ANY_COMPLETED | on_failure_callback + on_success_callback | Fires on any terminal state |
on_failure_callback + on_success_callback# Airflow
default_args = {
"on_failure_callback": slack_fail_alert,
"on_success_callback": slack_success_alert,
}
# Orchestra — pipeline-level alerts
alerts:
- name: pipeline-failed
statuses: [FAILED]
destinations:
- integration: SLACK
destination: '#data-alerts'
custom_message: 'Pipeline failed — check Orchestra logs.'
- name: pipeline-succeeded
statuses: [SUCCEEDED]
destinations:
- integration: SLACK
destination: '#data-alerts'
EmailOperator task# Airflow
send_email = EmailOperator(
task_id="send_completion_email",
to="[email protected]",
subject="Pipeline complete",
html_content="Daily ELT finished successfully.",
)
# Orchestra — pipeline-level alert (no task needed)
alerts:
- name: completion-email
statuses: [SUCCEEDED]
destinations:
- integration: EMAIL
destination: '[email protected]'
custom_message: 'Daily ELT finished successfully.'
PagerDutyEventsHook in a callback# Airflow
def pagerduty_alert(context):
hook = PagerdutyEventsHook(pagerduty_conn_id="pagerduty")
hook.send_event(summary=f"Pipeline failed: {context['dag'].dag_id}")
# Orchestra
alerts:
- name: pagerduty-on-failure
statuses: [FAILED]
destinations:
- integration: PAGER_DUTY
connection_id: pagerduty_prod_12345
custom_message: 'Pipeline failed — oncall required.'
# Fire both Slack AND PagerDuty on failure
alerts:
- name: critical-failure
statuses: [FAILED]
destinations:
- integration: SLACK
destination: '#incidents'
- integration: PAGER_DUTY
connection_id: pagerduty_prod_12345
custom_message: 'Critical pipeline failure — immediate attention required.'
alerts:
- name: notify-slack-on-failure
statuses: [FAILED]
destinations:
- integration: SLACK
destination: '#data-alerts'
- name: page-oncall-on-failure
statuses: [FAILED]
destinations:
- integration: PAGER_DUTY
connection_id: pagerduty_prod_12345
custom_message: 'Data pipeline down — SLA at risk.'
- name: email-on-success
statuses: [SUCCEEDED]
destinations:
- integration: EMAIL
destination: '[email protected]'
custom_message: 'Daily report data is ready.'
- name: webhook-any-completion
statuses: [ANY_COMPLETED]
destinations:
- integration: WEBHOOK
connection_id: monitoring_webhook_12345
Pipeline-level — in the alerts: key at the top of the YAML. Fires based on the overall pipeline run status.
version: v1
name: my-pipeline
alerts: # ← pipeline-level
- name: ...
pipeline:
...
Task-level — in the alerts: key on a specific TaskModel. Fires when that individual task reaches the status.
pipeline:
stage-001:
tasks:
critical-task:
integration: DBT_CORE
integration_job: DBT_CORE_EXECUTE
alerts: # ← task-level
- name: dbt-task-failed
statuses: [FAILED]
destinations:
- integration: PAGER_DUTY
connection_id: pagerduty_prod_12345
Use task-level when you need different alert routing per task (e.g. page on-call only for the most critical transformation, not every step).
sla_miss_callback — no Orchestra equivalent. SLA monitoring must be handled via external monitoring tools or a time-based sensor.on_retry_callback — closest is WARNING status, but Orchestra's WARNING fires on quality test warnings, not on task retries. No direct equivalent for retry-specific notifications.connection_id format — must be the full Orchestra connection name including 5-digit suffix (e.g. pagerduty_prod_12345), not just the connection type.destination — omitting the channel name will fail schema validation.connection_id — destination is not used for these types.GOOGLE_CHAT destinations, one connection each.custom_message max 200 chars — longer messages are truncated or rejected.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orchestra-hq/orchestra-skills --plugin migrate-to-orchestra52 skills in this plugin
/airbyte-cloud-airflow-to-orchestraUse this skill when the user wants to convert an Airflow task that uses AirbyteTriggerSyncOperator or AirbyteSensor (apache-airflow-providers-airbyte) into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating, converting, or rewriting Airflow Airbyte tasks to Orchestra; any Airflow DAG code containing AirbyteTriggerSyncOperator or AirbyteSensor pointed at Airbyte Cloud./airbyte-cloud-dagster-to-orchestraUse this skill when the user wants to convert a Dagster integration that syncs Airbyte Cloud — AirbyteCloudResource, build_airbyte_assets, load_airbyte_cloud_asset_specs, or airbyte_assets — into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating or rewriting Dagster Airbyte assets/resources to Orchestra; any Dagster code importing from dagster_airbyte pointed at Airbyte Cloud./airbyte-cloud-prefect-to-orchestraUse this skill when the user wants to convert a Prefect task that syncs Airbyte Cloud — AirbyteConnection block, trigger_sync_run_and_wait_for_completion, or AirbyteSyncResult — into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating or rewriting Prefect Airbyte tasks to Orchestra; any Prefect flow code importing from prefect_airbyte pointed at Airbyte Cloud./airbyte-server-airflow-to-orchestraUse this skill when the user wants to convert an Airflow task that uses AirbyteTriggerSyncOperator or AirbyteSensor pointed at a self-hosted Airbyte Server instance into an equivalent Orchestra pipeline task. Triggers: any mention of migrating or converting Airflow self-hosted Airbyte tasks to Orchestra; Airflow DAG code with AirbyteTriggerSyncOperator using a host/port pointing to an on-prem or self-managed Airbyte deployment./airbyte-server-dagster-to-orchestraUse this skill when the user wants to convert a Dagster integration that syncs a self-hosted Airbyte Server (open-source / OSS) instance — AirbyteResource (with host/port) plus build_airbyte_assets — into an equivalent Orchestra pipeline task. Triggers: any mention of migrating self-hosted Airbyte Dagster assets to Orchestra; Dagster code using dagster_airbyte AirbyteResource configured with a host/port pointing to an on-prem or self-managed Airbyte deployment./airbyte-server-prefect-to-orchestraUse this skill when the user wants to convert a Prefect task that syncs a self-hosted Airbyte Server — AirbyteConnection block, trigger_sync_run_and_wait_for_completion, or AirbyteSyncResult pointed at a non-Cloud host — into an equivalent Orchestra pipeline task targeting Airbyte Server. Triggers: any mention of migrating or rewriting Prefect Airbyte tasks to Orchestra; any Prefect flow code importing from prefect_airbyte pointed at a self-hosted Airbyte Server.Other plugins' skills for the same job