/migrate-to-orchestra:slack-airflow-to-orchestrafrom migrate-to-orchestra
Converts Airflow Slack notification tasks (SlackAPIOperator, SlackWebhookOperator, SlackAPIPostMessageOperator, callback functions, or PythonOperator using slack_sdk) into Orchestra pipeline alerts or SLACK tasks.
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 Slack notifications come in two forms:
on_failure_callback, on_success_callback) — not DAG tasks; fire when a task or DAG changes status.SlackWebhookOperator, SlackAPIPostMessageOperator, or a plain PythonOperator/@task that calls slack_sdk.WebClient(...).chat_postMessage(...) directly) — pipeline steps that send a message at a specific point. A task doesn't need to use a dedicated Slack operator to count here — if its whole job is formatting and posting a Slack message, treat it as form 2, not generic Python.In Orchestra, Slack notifications are handled two ways:
alerts block (pipeline-level or task-level) — fires on status change; no pipeline slot consumed.SLACK pipeline task (integration: SLACK, integration_job: SEND_SLACK_MESSAGE) — fires at a specific DAG position, useful when content depends on runtime logic or ordering matters.| Airflow pattern | Orchestra equivalent |
|---|---|
on_failure_callback / on_success_callback on default_args or task | Pipeline-level or task-level alerts YAML block |
SlackWebhookOperator at the end of a DAG (completion notification) | Pipeline-level alerts YAML block |
SlackWebhookOperator mid-DAG (status update between tasks) | SLACK + SEND_SLACK_MESSAGE pipeline task OR task-level alerts block |
Alerts live in the alerts key at the top level of the pipeline YAML. Orchestra fires them when the pipeline reaches any of the listed statuses.
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | ✅ | Unique within the pipeline |
statuses | array | ✅ | FAILED, SUCCEEDED, CANCELLED, WARNING, SKIPPED |
destinations | array | ✅ | One entry per channel/target |
custom_message | string | ❌ | Appended to the standard Orchestra alert message |
| Field | Value / notes |
|---|---|
integration | SLACK, EMAIL, PAGER_DUTY, WEBHOOK, MICROSOFT_TEAMS, GOOGLE_CHAT, or DATADOG |
destination | Channel name (e.g. #data-alerts) — required for Slack |
connection_id | Orchestra connection name — required for PagerDuty, Teams, Google Chat, Webhook, Datadog |
version: v1
name: my-pipeline
alerts:
- name: on-failure-slack
statuses:
- FAILED
destinations:
- integration: SLACK
destination: '#data-alerts'
custom_message: 'Check the logs and rerun from the failed task.'
- name: on-success-slack
statuses:
- SUCCEEDED
destinations:
- integration: SLACK
destination: '#data-alerts'
pipeline:
stage-001:
tasks:
task-001:
# ... your tasks here
SLACK IS a valid integration value — use integration: SLACK + integration_job: SEND_SLACK_MESSAGE to send a Slack message as an explicit pipeline step.
Required parameter: channel_name. At least one of text, blocks, or attachments must be provided.
version: v1
name: my-pipeline
pipeline:
stage-001:
tasks:
task-001:
integration: DBT_CORE
integration_job: DBT_CORE_EXECUTE
name: dbt_run
connection: my_dbt_conn_12345
parameters:
commands: 'dbt build;'
python_version: '3.12'
depends_on: []
condition: null
tags: []
task-002:
integration: SLACK
integration_job: SEND_SLACK_MESSAGE
name: notify_mid_pipeline
connection: slack_prod_12345
parameters:
channel_name: '#data-team'
text: 'dbt build complete — starting downstream loads.'
depends_on:
- task-001
condition: null
tags: []
When to use a task vs an alert:
alerts: block) when the message should fire on pipeline/task status (FAILED, SUCCEEDED, etc.) — no task slot needed.on_failure_callback / on_success_callback) from explicit DAG tasks.alerts: section at the top level of the pipeline YAML. Map on_failure_callback → statuses: [FAILED], on_success_callback → statuses: [SUCCEEDED].SlackWebhookOperator → pipeline-level alerts block — if it fires on overall completion, use a pipeline-level alert.SlackWebhookOperator → task-level alerts block — add an alerts: block directly on the upstream task to fire when that specific task reaches the target status.xoxb-... or Incoming Webhook URL).from airflow.providers.slack.operators.slack_webhook import SlackWebhookOperator
from airflow.hooks.base_hook import BaseHook
SLACK_CONN_ID = 'slack'
def task_fail_slack_alert(context):
slack_webhook_token = BaseHook.get_connection(SLACK_CONN_ID).password
channel = BaseHook.get_connection(SLACK_CONN_ID).login
slack_msg = f":x: Task Failed. *Task*: {context.get('task_instance').task_id}"
slack_alert = SlackWebhookOperator(
task_id='slack_fail',
webhook_token=slack_webhook_token,
message=slack_msg,
channel=channel,
http_conn_id=SLACK_CONN_ID
)
return slack_alert.execute(context=context)
def task_succeed_slack_alert(context):
# ... same pattern for success
default_args = {
'on_failure_callback': task_fail_slack_alert,
'on_success_callback': task_succeed_slack_alert,
}
version: v1
name: my-pipeline
alerts:
- name: slack-on-failure
statuses:
- FAILED
destinations:
- integration: SLACK
destination: '#data-alerts'
custom_message: 'Task failed — check Orchestra logs.'
- name: slack-on-success
statuses:
- SUCCEEDED
destinations:
- integration: SLACK
destination: '#data-alerts'
pipeline:
stage-001:
tasks:
# ... tasks unchanged
alerts is a list — multiple alert entries are supported; each needs a unique name.destination is required for Slack — it's the channel name (e.g. #data-alerts). Omitting it will fail validation.os.getenv("SLACK_CHANNEL", "#data-alerts") with nothing in the DAG actually varying it), put #data-alerts straight into destination/channel_name. Don't route it through ${{ ENV.* }} or an inputs: entry just because it happened to be read from an env var — only do that when the DAG genuinely needs the channel to vary (e.g. real per-environment or per-branch selection).connection_id is not needed for Slack — Orchestra resolves the Slack workspace from the workspace-level Slack connection; destination is sufficient.xoxb-...) allows chat.postMessage; Incoming Webhook is simpler but channel-locked.{{ ds }} in message text. In Orchestra use static strings or custom_message for context.statuses available: FAILED, SUCCEEDED, CANCELLED, WARNING, SKIPPED — map on_failure_callback → FAILED, on_success_callback → SUCCEEDED.alerts blocks OR an explicit SLACK task downstream.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