/migrate-to-orchestra:dagster-sensors-to-orchestrafrom migrate-to-orchestra
Converts Dagster sensors (@sensor, @asset_sensor, @multi_asset_sensor, freshness sensors) into Orchestra pipeline triggers with declarative checks for S3, SQL, SFTP, and pipeline status.
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 sensors are functions evaluated on a tick interval that inspect external state and yield RunRequest(...) to launch a run when a condition is met (or SkipReason otherwise). In Orchestra, sensors are pipeline triggers — they live in the sensors: block at the pipeline root (not inside pipeline:). When all of a sensor's checks pass, the pipeline run is triggered automatically.
Key difference: Dagster sensors run arbitrary Python every tick. Orchestra sensors use a cron window + polling interval model with declarative checks drawn from SensorChecksEnum.
sensors:
<sensor-id>:
name: My Sensor
cron: '0 8 * * ? *' # when the check window opens
timezone: UTC
timeout_mins: 60 # max 7200; must be < cron interval
frequency_secs: 60 # polling interval (60-600)
exclude: []
run_inputs: {}
checks:
<check-id>:
integration: SNOWFLAKE
sensor_type: SNOWFLAKE_QUERY
connection: my_snowflake_12345
parameters:
query: "SELECT COUNT(*) FROM daily_files WHERE date = CURRENT_DATE"
map_outputs:
file_count: "result"
alerts:
- name: sensor-timed-out
statuses: [FAILED]
destinations:
- integration: SLACK
destination: '#data-alerts'
sensor_type | Integration | What it checks |
|---|---|---|
AWS_S3_FILE | AWS_S3 | File exists at S3 prefix |
ADLS_FILE | AZURE_DATA_LAKE_STORAGE | File exists in ADLS container |
SFTP_FILE | SFTP | File exists on SFTP server |
SNOWFLAKE_QUERY | SNOWFLAKE | SQL query returns rows |
POSTGRES_QUERY | POSTGRES | SQL query returns rows |
GCP_BIG_QUERY_QUERY | GCP_BIG_QUERY | SQL query returns rows |
SQL_SERVER_QUERY | SQL_SERVER | SQL query returns rows |
DATABRICKS_QUERY | DATABRICKS | SQL query returns rows |
FABRIC_SYNAPSE_QUERY | FABRIC_SYNAPSE | SQL query returns rows |
ORCHESTRA_PIPELINE_STATUS | ORCHESTRA | Another pipeline completed with a status |
ORCHESTRA_TASK_STATUS | ORCHESTRA | One task in another pipeline finished with a given status |
ORCHESTRA_WEBHOOK_EVENT | ORCHESTRA | Webhook event received |
@sensor -> AWS_S3_FILE# Dagster
@sensor(job=transform_job, minimum_interval_seconds=60)
def s3_file_sensor(context, s3: S3Resource):
keys = s3.get_client().list_objects_v2(Bucket="my-bucket", Prefix="data/")
if keys.get("KeyCount", 0) > 0:
yield RunRequest(run_key="data-arrived")
else:
yield SkipReason("no file yet")
# Orchestra
sensors:
wait-for-s3-file:
name: Wait for daily orders file
cron: '0 6 * * ? *'
timezone: UTC
timeout_mins: 60
frequency_secs: 60
checks:
s3-file-check:
integration: AWS_S3
sensor_type: AWS_S3_FILE
connection: aws_default_12345
parameters:
bucket_name: my-bucket
prefix: data/
@sensor -> SNOWFLAKE_QUERY# Dagster
@sensor(job=process_job, minimum_interval_seconds=300)
def data_ready_sensor(context, snowflake: SnowflakeResource):
with snowflake.get_connection() as conn:
count = conn.cursor().execute(
"SELECT COUNT(*) FROM orders WHERE created_date = CURRENT_DATE").fetchone()[0]
if count > 0:
yield RunRequest(run_key=str(context.cursor))
# Orchestra
sensors:
wait-for-snowflake-data:
name: Wait for daily order data
cron: '0 4 * * ? *'
timezone: UTC
timeout_mins: 120
frequency_secs: 300
checks:
row-check:
integration: SNOWFLAKE
sensor_type: SNOWFLAKE_QUERY
connection: snowflake_prod_12345
parameters:
query: "SELECT COUNT(*) FROM orders WHERE created_date = CURRENT_DATE"
map_outputs:
order_count: "result"
@asset_sensor on an upstream materialization -> prefer trigger_events:If the upstream is another Orchestra pipeline, use trigger_events: rather than polling:
trigger_events:
- type: pipeline
pipeline_id: "uuid-of-upstream-pipeline"
statuses: [SUCCEEDED, WARNING]
Or a polling sensor:
sensors:
wait-for-upstream:
name: Wait for upstream pipeline
cron: '0 5 * * ? *'
timezone: UTC
timeout_mins: 120
checks:
pipeline-check:
integration: ORCHESTRA
sensor_type: ORCHESTRA_PIPELINE_STATUS
parameters:
pipeline_id: "uuid-of-upstream-pipeline"
status: SUCCEEDED
from dagster import sensor, RunRequest, SkipReason, Definitions
from dagster_aws.s3 import S3Resource
@sensor(job=transform_job, minimum_interval_seconds=60)
def s3_file_sensor(context, s3: S3Resource):
keys = s3.get_client().list_objects_v2(Bucket="my-bucket", Prefix="data/")
if keys.get("KeyCount", 0) > 0:
yield RunRequest(run_key="data-arrived")
else:
yield SkipReason("no file yet")
defs = Definitions(jobs=[transform_job], sensors=[s3_file_sensor])
version: v1
name: daily-pipeline
sensors:
wait-for-orders-file:
name: Wait for daily orders file
cron: '0 6 * * ? *'
timezone: UTC
timeout_mins: 60
frequency_secs: 60
checks:
s3-check:
integration: AWS_S3
sensor_type: AWS_S3_FILE
connection: aws_default_12345
parameters:
bucket_name: my-bucket
prefix: data/
pipeline:
stage-transform:
tasks:
transform:
integration: SNOWFLAKE
integration_job: SNOWFLAKE_RUN_QUERY
name: transform
connection: snowflake_prod_12345
parameters:
statement: 'INSERT INTO orders_final SELECT * FROM orders_raw'
depends_on: []
sensors:.@sensor logic to the closest SensorChecksEnum, or run a PYTHON task at the start of the pipeline.@asset_sensor -> prefer trigger_events: — if upstream is an Orchestra pipeline.timeout_mins < cron interval — a daily cron with timeout_mins: 1500 exceeds 24h.cron is 6-field AWS EventBridge syntax — minute hour day-of-month month day-of-week year, one of dom/dow must be ?. Don't copy Dagster's 5-field cron_schedule verbatim.map_outputs — declare matching inputs: to reference results.RunRequest(run_config=...) -> run_inputs.minimum_interval_seconds -> frequency_secs (clamped 60-600).@schedule is NOT a sensor — that belongs in schedule:.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