/migrate-to-orchestra:dagster-alerts-to-orchestrafrom migrate-to-orchestra
Maps Dagster notification patterns (run-status sensors, op hooks, integration resources) to Orchestra alert configurations. 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.
Dagster notifications are spread across run-status sensors (@run_failure_sensor, @run_status_sensor), prebuilt factories (make_slack_on_run_failure_sensor, make_email_on_run_failure_sensor, make_teams_on_run_failure_sensor), op hooks (@failure_hook, @success_hook), and integration resources (PagerDutyService, MSTeamsResource, DatadogResource). 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 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
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' # required
destinations:
- integration: EMAIL
destination: '[email protected]' # required
destinations:
- integration: PAGER_DUTY
connection_id: pagerduty_conn_12345 # required
destinations:
- integration: MICROSOFT_TEAMS
connection_id: teams_webhook_12345 # required
destinations:
- integration: WEBHOOK
connection_id: my_webhook_12345 # required
parameters:
body:
event: "pipeline_failed"
pipeline: "my-pipeline"
destinations:
- integration: DATADOG
connection_id: datadog_conn_12345 # required
parameters:
priority: 3 # 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 | Dagster equivalent | When it fires |
|---|---|---|
FAILED | @run_failure_sensor / RunStatusSensor(FAILURE) / @failure_hook | Pipeline/task failed |
SUCCEEDED | RunStatusSensor(SUCCESS) / @success_hook | Pipeline/task succeeded |
WARNING | asset check warn / soft failure | Finished with warnings |
CANCELLED | run canceled | Manually cancelled |
SKIPPED | (no direct equivalent) | Skipped due to condition |
ANY_COMPLETED | success + failure sensors | Any terminal state |
@run_failure_sensor (whole job)@run_failure_sensor
def slack_on_failure(context):
...
alerts:
- name: pipeline-failed
statuses: [FAILED]
destinations:
- integration: SLACK
destination: '#data-alerts'
custom_message: 'Pipeline failed — check Orchestra logs.'
make_email_on_run_failure_sensoremail_sensor = make_email_on_run_failure_sensor(
email_from="[email protected]", email_to=["[email protected]"],
)
alerts:
- name: completion-email
statuses: [FAILED]
destinations:
- integration: EMAIL
destination: '[email protected]'
custom_message: 'Pipeline failed.'
PagerDutyService in a @run_failure_sensor@run_failure_sensor
def pagerduty_on_failure(context, pagerduty: PagerDutyService):
pagerduty.get_session().trigger_incident(summary=..., severity="critical")
alerts:
- name: pagerduty-on-failure
statuses: [FAILED]
destinations:
- integration: PAGER_DUTY
connection_id: pagerduty_prod_12345
custom_message: 'Pipeline failed — oncall required.'
@failure_hook / @success_hook on a single op -> task-level alertpipeline:
stage-001:
tasks:
critical-task:
integration: DBT_CORE
integration_job: DBT_CORE_EXECUTE
alerts:
- name: dbt-task-failed
statuses: [FAILED]
destinations:
- integration: PAGER_DUTY
connection_id: pagerduty_prod_12345
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.'
Pipeline-level — top-level alerts: key; fires on overall pipeline run status. Maps to job-scoped run status sensors.
Task-level — alerts: on a specific TaskModel; fires on that task's status. Maps to op-scoped hooks. Use when you need different routing per task (e.g. page on-call only for the most critical transformation).
@run_failure_sensor / @run_status_sensor -> pipeline-level alert — RUN_FAILURE -> [FAILED], RUN_SUCCESS -> [SUCCEEDED].@failure_hook/@success_hook -> task-level alert.make_*_on_run_failure_sensor factories -> alerts block with the matching destination.connection_id format — full name with 5-digit suffix (e.g. pagerduty_prod_12345).destination; PAGER_DUTY/TEAMS/GOOGLE_CHAT/WEBHOOK/DATADOG require connection_id.GOOGLE_CHAT destinations, one connection each.custom_message max 200 chars.build_sensor_for_freshness_checks / FreshnessPolicy have no direct alert mapping; use external monitoring or model as an Orchestra test/sensor.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.Other plugins' skills for the same job