/migrate-to-orchestra:dagster-connections-to-orchestrafrom migrate-to-orchestra
Converts Dagster resources holding credentials (ConfigurableResource, EnvVar, SnowflakeResource, S3Resource, DbtCliResource) to Orchestra connections. Maps resource patterns to connection YAML, handles naming with 5-digit suffixes, and avoids inventing connections for credential-free code.
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 stores credentials in resources — typically ConfigurableResource subclasses (or built-in integration resources like SnowflakeResource, S3Resource, DbtCliResource) wired into Definitions(resources={...}), with secret values supplied via EnvVar. Orchestra connections serve the same purpose but live outside the pipeline code — set up in the Orchestra UI (Settings -> Connections), or through the public API / Orchestra MCP — and are referenced by name in pipeline YAML. This skill maps common Dagster resources to their Orchestra equivalents and covers naming, environment patterns, and secrets.
connection: my_snowflake_12345 # format: descriptive-name_XXXXX (5-digit suffix from UI)
The 5-digit suffix is assigned by Orchestra when the connection is created — never invent it. Read it back rather than asking someone to find it: connections are managed through the public API and the Orchestra MCP server as well as the UI, so listing the workspace's connections returns each one's descriptive_name_NNNNN id directly. Fall back to copying it from the UI only where neither is available.
No resource referenced? If the @op/@asset doesn't actually instantiate a credentialed resource — pure computation, no external client, no secrets — don't invent a connection name or a fake env var placeholder just to fill the field:
connection: null # no distinct resource in the source; Orchestra uses the workspace default for this integration
Only set a specific name_XXXXX or ${{ ENV.VAR }} when the source code actually references a distinct resource/credential.
This extends to task parameters that duplicate connection-level scope, too — e.g. Power BI's workspace_id, or any other parameter whose value is also stored on the Orchestra connection itself. If the source code just reads the same single value everywhere (one env var, one resource-level config field) rather than genuinely varying it per task, leave that parameter null/omitted and let the connection's own configured value apply. Only carry an explicit value through (literal, input, or ${{ ENV.VAR }}) when a specific task truly needs to override it — e.g. targeting a different Power BI workspace than the one configured on the connection.
For environment-specific connections:
connection: ${{ ENV.SNOWFLAKE_CONNECTION_NAME }}
Set SNOWFLAKE_CONNECTION_NAME=my_snowflake_12345 in Orchestra's environment settings.
| Dagster resource | Orchestra connection type | Key fields |
|---|---|---|
PostgresResource / dagster-postgres | Postgres | host, port, database, user, password |
SnowflakeResource (dagster-snowflake) | Snowflake | account, warehouse, database, role, user, password/key pair |
DatabricksClientResource (dagster-databricks) | Databricks | host (workspace URL), token |
BigQueryResource (dagster-gcp) | GCP Big Query | service account JSON |
S3Resource (dagster-aws) | AWS | access key ID, secret, region |
ADLS2Resource (dagster-azure) | Azure | tenant, client ID, client secret |
MSSQL via pyodbc | SQL Server | host, port, database, user, password |
RedshiftClientResource (dagster-aws) | AWS Redshift | host, port, database, user, password |
MotherDuckResource (dagster-motherduck) | MotherDuck | token |
| Dagster resource | Orchestra connection type | Notes |
|---|---|---|
AirbyteCloudResource | Airbyte Cloud | API key |
AirbyteResource(host=,port=) | Airbyte Server | host URL + API key |
FivetranResource | Fivetran | API key + secret |
DbtCliResource / DbtProject | dbt Core | Git repo URL + branch + warehouse creds |
CensusResource | Census | API token |
HightouchResource | Hightouch | API key |
HexResource | Hex | API token |
| Dagster resource | Orchestra connection type | Notes |
|---|---|---|
SlackResource | Slack | Bot Token (xoxb-...) or Incoming Webhook |
PagerDutyService (dagster-pagerduty) | PagerDuty | integration key |
MSTeamsResource (dagster-msteams) | Microsoft Teams | Incoming Webhook URL |
| email / SMTP | SMTP host, port, login, password |
| Dagster resource | Orchestra connection type | Notes |
|---|---|---|
SSHResource (dagster-ssh) | Linux SSH | host, port, username, private key |
SSHResource (Windows OpenSSH) | Windows SSH | host, port, username, key/password |
SFTPResource / sftp_resource | SFTP | host, port, username, key or password |
requests in an @asset (HTTP) | HTTP | base URL, optional auth headers |
TableauCloudWorkspace | Tableau Cloud | server URL, site, PAT |
Never hardcode credentials in YAML. All credentials go in the Orchestra connection — the YAML references only the connection name.
# Correct
task-001:
integration: SNOWFLAKE
integration_job: SNOWFLAKE_RUN_QUERY
connection: snowflake_prod_12345
parameters:
statement: 'SELECT 1'
AWS_SECRETS_MANAGER and AZURE_KEY_VAULT are credential stores a connection reads from, not task integrations — neither has an integration_job, so there is no task that fetches a secret mid-run for a later task to consume. A resource that resolves its credential from one of them is handled on the connection, below.
A resource that resolves its secret at runtime from a secret store — SecretsManagerResource / secretsmanager_resource (dagster-aws), or an azure-keyvault-secrets client wrapped in a ConfigurableResource — usually needs no re-keying at all. An Orchestra connection can read its own credentials straight out of AWS Secrets Manager or Azure Key Vault:
Only those two stores work this way; a resource backed by Hashicorp Vault or GCP Secret Manager still means a manual re-entry. Both store integrations are in beta, so confirm they're enabled on the account before planning the migration around them. See External secret storage and Azure Key Vault.
A SnowflakeResource injected into an @op that also runs arbitrary Python becomes a PYTHON_EXECUTE_SCRIPT task (see python-dagster-to-orchestra), which needs those warehouse credentials at runtime.
Decision rule: if the credential already exists as its own Orchestra connection — the Snowflake/Postgres/AWS connection from the table above — link it on the Python/dbt Core connection (Linked connections on that connection's form) instead of copying its user/password into that connection's Secrets. One credential, one place to rotate it.
Each linked connection's fields arrive as environment variables named <INTEGRATION>__<CONNECTION_ID>__<FIELD>: every part upper-cased, each run of non-alphanumeric characters collapsed to a single _, and the parts joined by a double underscore. <CONNECTION_ID> is the id the YAML's connection: field uses (it survives renames), and <FIELD> is the field's ID from that integration's Authentication parameters table — so a Snowflake connection prod_12345 exports SNOWFLAKE__PROD_12345__SNOWFLAKE_PASSWORD.
orchestra.get_linked_connection("snowflake", connection_id="prod_12345"), keyed by field ID.profiles.yml: {{ env_var('SNOWFLAKE__PROD_12345__SNOWFLAKE_PASSWORD') }}.Full reference: Linked connections (same section on dbt Core).
pipeline:
stage-001:
tasks:
task-001:
integration: SNOWFLAKE
integration_job: SNOWFLAKE_RUN_QUERY
connection: ${{ ENV.SNOWFLAKE_CONN }}
parameters:
statement: 'SELECT * FROM orders LIMIT 10'
In Orchestra: Settings -> Environments -> set SNOWFLAKE_CONN=snowflake_dev_11111 in dev and snowflake_prod_22222 in prod. This mirrors how Dagster swaps resources per deployment/environment.
Enforce the split, don't just rely on it. Pointing SNOWFLAKE_CONN at a different connection
per environment keeps dev off production by convention — a task that hardcodes the prod
connection id still reaches production from a dev run. Restrict the production connection to the
production environment (Allowed environments on the connection, or Connection
restrictions on the environment's Configuration tab) and the platform enforces it: a task
whose connection isn't allowed in the run's environment is skipped, with the allowed
environments named in its message. A connection with no allowed environments is usable
everywhere, which is how every existing connection behaves, so this is opt-in per connection.
Note the skip — the run doesn't fail, so a migration verified only by "the pipeline went green"
can hide a task that never ran. See
restricting a connection to environments.
Non-credential config (a table name, an environment flag) supplied via EnvVar or a Config field should become inputs::
# Dagster
class Cfg(Config):
target_table: str = "orders"
# Orchestra
inputs:
target_table:
type: string
default: orders
pipeline:
stage-001:
tasks:
task-001:
parameters:
statement: 'SELECT * FROM ${{ inputs.target_table }}'
Definitions block wires up many resources at onceconnection: <name> with the real name${{ ENV.VAR }}connection: snowflake_prod fails; use snowflake_prod_12345.AirbyteCloudResource -> Cloud connection; AirbyteResource(host=,port=) -> Server connection.<INTEGRATION>__<CONNECTION_ID>__<FIELD> variables instead.EnvVar — secrets -> connection; non-secret config -> inputs:.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