/migrate-to-orchestra:slack-dagster-to-orchestrafrom migrate-to-orchestra
Converts Dagster Slack notifications (SlackResource, sensors, hooks) into Orchestra pipeline alerts or SLACK tasks. Guides migration of run-status sensors, op success/failure hooks, and explicit Slack messages to Orchestra's YAML alerts block or integration 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.
Dagster Slack notifications come in two forms:
make_slack_on_run_failure_sensor, @failure_hook, @success_hook) — fire when a run or op changes status; not pipeline steps.context.resources.slack.get_client().chat_postMessage(...)) — a message sent at a specific point in the run.In Orchestra these map to:
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 position, when content depends on runtime logic or ordering matters.| Dagster pattern | Orchestra equivalent |
|---|---|
make_slack_on_run_failure_sensor | Pipeline-level alerts block (statuses: [FAILED]) |
@failure_hook / @success_hook on whole job | Pipeline-level alerts block |
@failure_hook / @success_hook on a single op | Task-level alerts block on that task |
SlackResource.chat_postMessage inside an op (mid-run) | SLACK + SEND_SLACK_MESSAGE task |
| Slack message at end of job | Pipeline-level alerts block (statuses: [SUCCEEDED]) |
| Field | Required | Notes |
|---|---|---|
name | yes | Unique within scope |
statuses | yes | FAILED, SUCCEEDED, CANCELLED, WARNING, SKIPPED |
destinations | yes | One entry per channel/target |
custom_message | no | Appended to the standard Orchestra alert message |
| Field | Value / notes |
|---|---|
integration | SLACK, EMAIL, PAGER_DUTY, WEBHOOK, MICROSOFT_TEAMS, GOOGLE_CHAT, DATADOG |
destination | Channel name (e.g. #data-alerts) — required for Slack |
connection_id | 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.'
pipeline:
stage-001:
tasks:
task-001:
# ... your tasks here
SLACK IS a valid integration — use integration: SLACK + integration_job: SEND_SLACK_MESSAGE. Required parameter: channel_name; at least one of text, blocks, or attachments.
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: []
make_slack_on_run_failure_sensor and job-level @failure_hook to statuses: [FAILED]; success hooks to statuses: [SUCCEEDED].alerts: block to the specific task.chat_postMessage calls to SEND_SLACK_MESSAGE tasks positioned via depends_on.xoxb-... or Incoming Webhook).from dagster import Definitions, EnvVar
from dagster_slack import SlackResource, make_slack_on_run_failure_sensor
slack_on_failure = make_slack_on_run_failure_sensor(
channel="#data-alerts",
slack_token=EnvVar("SLACK_BOT_TOKEN"),
text_fn=lambda ctx: f"Run failed: {ctx.dagster_run.job_name}",
)
defs = Definitions(
sensors=[slack_on_failure],
resources={"slack": SlackResource(token=EnvVar("SLACK_BOT_TOKEN"))},
)
version: v1
name: my-pipeline
alerts:
- name: slack-on-failure
statuses:
- FAILED
destinations:
- integration: SLACK
destination: '#data-alerts'
custom_message: 'Run failed — check Orchestra logs.'
pipeline:
stage-001:
tasks:
# ... tasks unchanged
make_slack_on_run_failure_sensor -> pipeline-level alert — map to statuses: [FAILED], not a task.@failure_hook/@success_hook scope — op-level -> task-level alert; job-level -> pipeline-level alert.SlackResource inside an op -> SLACK task — explicit mid-run messages become SEND_SLACK_MESSAGE.destination is required for Slack — the channel name; omitting it fails validation.EnvVar/os.getenv with nothing actually varying it), put the real channel straight into destination/channel_name. Don't route it through ${{ ENV.* }} just because it happened to be read from an env var — only do that when the code genuinely needs the channel to vary (e.g. real per-environment selection).connection_id not needed for Slack — resolved from the workspace Slack connection.text_fn / blocks — run-context interpolation has no direct equivalent; use custom_message or a SLACK task with ${{ }} expressions.FAILED, success hooks -> SUCCEEDED.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