/migrate-to-orchestra:dagster-io-managers-to-orchestrafrom migrate-to-orchestra
Maps Dagster data-passing patterns (return values, Out/In wiring, IO managers, output metadata) to Orchestra's explicit typed outputs system, including set_output() usage and downstream references.
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 passes data between ops/assets implicitly: an op returns a value, an IO manager persists it, and the downstream op receives it as a typed input. This is one of Dagster's core abstractions.
Orchestra has no shared in-process object space and no IO-manager layer. It uses a typed outputs system: a task explicitly sets named outputs (with set_outputs: true and the Orchestra SDK's set_output() called on an instantiated OrchestraSDK client — not a bare imported function — or automatic capture for SQL tasks), and downstream tasks or conditions reference them via ${{ ORCHESTRA.PIPELINE_RUN_TASKS['task_id'].OUTPUTS['key'] }}.
Key architectural difference: Dagster data flow is implicit and can carry arbitrary objects; Orchestra outputs are explicit and small (IDs, counts, flags). Large data is staged externally and only the reference is passed.
| Dagster pattern | Orchestra equivalent |
|---|---|
return value consumed by downstream op | client.set_output('return_value', value) + downstream reference |
Custom IOManager persisting to S3/warehouse | Explicit write in the script; pass the path/table as an output |
Output(value, metadata=...) | client.set_output('key', value) (metadata is observability only) |
| IO-manager-loaded input | Downstream task reads from S3/warehouse, or via ${{ ...OUTPUTS... }} for small values |
| Branch on a returned value | condition: expression on the downstream stage |
| Large DataFrame passed between ops | Stage in S3/Snowflake; pass only the path/table name |
stage-extract:
tasks:
get-row-count:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
name: get_row_count
connection: my_python_conn_12345
parameters:
command: 'python scripts/get_row_count.py'
python_version: '3.12'
set_outputs: true # required
depends_on: []
# scripts/get_row_count.py
import os
import snowflake.connector
from orchestra_sdk.orchestra import OrchestraSDK
client = OrchestraSDK(api_key=os.environ.get("ORCHESTRA_API_KEY"))
conn = snowflake.connector.connect(...)
count = conn.cursor().execute("SELECT COUNT(*) FROM orders WHERE status = 'pending'").fetchone()[0]
client.set_output("pending_count", count)
client.set_output("has_pending", count > 0)
ORCHESTRA_API_KEY is auto-injected into every PYTHON_EXECUTE_SCRIPT task's environment — no connection or secret setup needed for this.
The warehouse credentials behind snowflake.connector.connect(...) do need a connection: if they already exist as their own Orchestra connection, link that connection rather than copying its secrets, and read it with client.get_linked_connection("snowflake", connection_id="prod_12345"). See Linked connections.
stage-notify:
tasks:
notify:
integration: SLACK
integration_job: SEND_SLACK_MESSAGE
name: notify_count
connection: slack_prod_12345
parameters:
channel_name: '#data-team'
text: "Pending orders: ${{ ORCHESTRA.PIPELINE_RUN_TASKS['get-row-count'].OUTPUTS['pending_count'] }}"
depends_on: []
stage-process:
depends_on: [stage-extract]
condition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['get-row-count'].OUTPUTS['has_pending'] == True }}"
tasks:
process-orders:
...
| Integration | integration_job | Field |
|---|---|---|
PYTHON | PYTHON_EXECUTE_SCRIPT | parameters.set_outputs: true |
SNOWFLAKE | SNOWFLAKE_RUN_QUERY | parameters.set_outputs: true |
GCP_BIG_QUERY | GCP_BQ_RUN_QUERY_JOB | parameters.set_outputs: true |
DATABRICKS | DATABRICKS_RUN_WORKFLOW / DATABRICKS_EXECUTE_STATEMENT | parameters.set_outputs: true |
HTTP | HTTP_REQUEST | parameters.set_outputs: true |
AWS_LAMBDA | AWS_LAMBDA_EXECUTE_ASYNC_FUNCTION | parameters.set_outputs: true |
MOTHERDUCK | MOTHERDUCK_EXECUTE_QUERY | parameters.set_outputs: true |
For SQL integrations, the first column of the first row is captured automatically as result — no SDK call needed.
from dagster import asset, Output, MetadataValue
@asset
def record_count(context) -> Output[int]:
import snowflake.connector
conn = snowflake.connector.connect(...)
count = conn.cursor().execute("SELECT COUNT(*) FROM new_records").fetchone()[0]
return Output(count, metadata={"count": MetadataValue.int(count)})
@asset
def processed(context, record_count: int):
if record_count > 0:
process_records()
else:
context.log.info("no new records")
version: v1
name: outputs-example
pipeline:
stage-count:
tasks:
get-count:
integration: SNOWFLAKE
integration_job: SNOWFLAKE_RUN_QUERY
name: record_count
connection: snowflake_prod_12345
parameters:
statement: 'SELECT COUNT(*) FROM new_records'
set_outputs: true
depends_on: []
stage-process:
depends_on: [stage-count]
condition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['get-count'].OUTPUTS['result'] > 0 }}"
tasks:
process-records:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
name: processed
connection: my_python_conn_12345
parameters:
command: 'python scripts/process.py'
python_version: '3.12'
depends_on: []
set_outputs: true is required — without it, client.set_output() is silently ignored.set_output is a method on an OrchestraSDK instance, not a bare function — from orchestra_sdk import set_output doesn't exist. Import from orchestra_sdk.orchestra import OrchestraSDK, instantiate client = OrchestraSDK(api_key=os.environ.get("ORCHESTRA_API_KEY")), then call client.set_output(...).client.set_output('return_value', result) (or use SQL auto-capture)..OUTPUTS['count'], not .OUTPUTS.count.set_outputs — first column of first row captured as result; write the query to return one meaningful value.PIPELINE_RUN_TASKS.MetadataValue is observability only; re-expose as an explicit output if downstream logic needs it.OUTPUTS reference in triple-quotes, not single/double — ${{ }} substitution is raw text with no escaping. json.loads("${{ ...OUTPUTS['key'] }}") breaks the moment the substituted JSON contains a " (i.e. always, for anything but a bare number). Use json.loads("""${{ ...OUTPUTS['key'] }}""") instead — a triple-quoted string only ends on three consecutive matching quotes, so individual " from the JSON payload is safe.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./airbyte-server-airflow-to-orchestraUse this skill when the user wants to convert an Airflow task that uses AirbyteTriggerSyncOperator or AirbyteSensor pointed at a self-hosted Airbyte Server instance into an equivalent Orchestra pipeline task. Triggers: any mention of migrating or converting Airflow self-hosted Airbyte tasks to Orchestra; Airflow DAG code with AirbyteTriggerSyncOperator using a host/port pointing to an on-prem or self-managed Airbyte deployment./airbyte-server-dagster-to-orchestraUse this skill when the user wants to convert a Dagster integration that syncs a self-hosted Airbyte Server (open-source / OSS) instance — AirbyteResource (with host/port) plus build_airbyte_assets — into an equivalent Orchestra pipeline task. Triggers: any mention of migrating self-hosted Airbyte Dagster assets to Orchestra; Dagster code using dagster_airbyte AirbyteResource configured with a host/port pointing to an on-prem or self-managed Airbyte deployment./airbyte-server-prefect-to-orchestraUse this skill when the user wants to convert a Prefect task that syncs a self-hosted Airbyte Server — AirbyteConnection block, trigger_sync_run_and_wait_for_completion, or AirbyteSyncResult pointed at a non-Cloud host — into an equivalent Orchestra pipeline task targeting Airbyte Server. Triggers: any mention of migrating or rewriting Prefect Airbyte tasks to Orchestra; any Prefect flow code importing from prefect_airbyte pointed at a self-hosted Airbyte Server.Other plugins' skills for the same job