/migrate-to-orchestra:dagster-cross-job-to-orchestrafrom migrate-to-orchestra
Maps Dagster cross-job orchestration patterns (@run_status_sensor, @asset_sensor, cross-code-location dependencies) to Orchestra equivalents using trigger_events: blocks and TRIGGER_PIPELINE 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 cross-job patterns — @run_status_sensor launching a downstream job, @asset_sensor on an upstream asset, and cross-code-location asset dependencies — all have Orchestra equivalents. Orchestra provides two mechanisms:
TRIGGER_PIPELINE task — an explicit pipeline step that triggers another pipeline and waits for it to complete. Use when one pipeline must trigger another mid-flow and wait.
trigger_events: block — event-driven triggering at the pipeline root. When an upstream pipeline completes, this pipeline starts automatically. This is the cleaner equivalent of @run_status_sensor / @asset_sensor.
@run_status_sensor (SUCCESS, launching a job) -> trigger_events: (preferred)# Dagster
@run_status_sensor(
run_status=DagsterRunStatus.SUCCESS,
monitored_jobs=[nightly_elt],
request_job=daily_report,
)
def trigger_report_on_elt_success(context):
return RunRequest(run_config={"ops": {"build": {"config": {"env": "prod"}}}})
# Orchestra — daily-report pipeline
version: v1
name: daily-report
trigger_events:
- type: pipeline
pipeline_id: "uuid-of-nightly-elt-pipeline"
statuses: [SUCCEEDED, WARNING]
run_inputs:
env: prod
pipeline:
...
TriggerEventModel fields:
| Field | Required | Notes |
|---|---|---|
type | yes | Always pipeline |
pipeline_id | yes | UUID of the upstream pipeline, or "*" for any |
statuses | no | Default [SUCCEEDED, WARNING] |
run_inputs | no | Inputs passed to the triggered run |
Multiple entries = OR logic (fires when any upstream completes).
ORCHESTRA + TRIGGER_PIPELINEWhen a pipeline must trigger another and wait before continuing:
task-001:
integration: ORCHESTRA
integration_job: TRIGGER_PIPELINE
name: trigger_reporting
parameters:
pipeline_id: "uuid-of-daily-reporting-pipeline"
run_inputs:
env: prod
branch: null
depends_on: []
condition: null
tags: []
| Parameter | Required | Notes |
|---|---|---|
pipeline_id | yes | UUID from the Orchestra URL |
run_inputs | no | Inputs for the triggered pipeline |
branch | no | Git branch override |
TRIGGER_PIPELINE always waits for the triggered pipeline before proceeding — there is no fire-and-forget. If the Dagster sensor only launches (does not wait), prefer trigger_events: on the downstream pipeline.
@asset_sensor and cross-code-location deps -> trigger_events:An @asset_sensor watching an upstream materialization, or a cross-code-location asset dependency, maps to trigger_events: keyed on the upstream pipeline:
trigger_events:
- type: pipeline
pipeline_id: "uuid-of-producer-pipeline"
statuses: [SUCCEEDED]
from dagster import run_status_sensor, DagsterRunStatus, RunRequest, Definitions
@run_status_sensor(
run_status=DagsterRunStatus.SUCCESS,
monitored_jobs=[nightly_elt],
request_job=daily_report,
)
def trigger_report_on_elt_success(context):
return RunRequest(run_config={"ops": {"build": {"config": {"env": "prod"}}}})
defs = Definitions(jobs=[nightly_elt, daily_report], sensors=[trigger_report_on_elt_success])
# nightly-elt pipeline (separate YAML)
version: v1
name: nightly-elt
pipeline:
...
---
# daily-report pipeline — triggered by nightly-elt completion
version: v1
name: daily-report
trigger_events:
- type: pipeline
pipeline_id: "uuid-of-nightly-elt-pipeline"
statuses: [SUCCEEDED, WARNING]
run_inputs:
env: prod
pipeline:
stage-build:
tasks:
build-report:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
name: build_report
connection: my_python_conn_12345
parameters:
command: 'python scripts/build_report.py'
python_version: '3.12'
depends_on: []
condition: null
tags: []
@run_status_sensor(SUCCESS) launching a job -> trigger_events: — cleaner than polling.TRIGGER_PIPELINE task.pipeline_id is a UUID — from the Orchestra URL, not the pipeline name.TRIGGER_PIPELINE always waits — no fire-and-forget; prefer trigger_events: if the sensor only launches.@asset_sensor / cross-code-location deps -> trigger_events:.trigger_events: uses OR logic — chain pipelines for AND logic.RunRequest(run_config=...) -> run_inputs.statuses default — SUCCEEDED + WARNING if omitted.alerts:
- name: on-failure
statuses: [FAILED]
destinations:
- integration: SLACK
destination: '#data-alerts'
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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