/migrate-to-orchestra:dbt-core-dagster-to-orchestrafrom migrate-to-orchestra
Converts Dagster dbt integrations (DbtCliResource, @dbt_assets, DbtProject) into equivalent Orchestra pipeline tasks. Useful when migrating Dagster dbt assets to Orchestra.
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.
In Dagster, dbt Core is a flagship integration via dagster-dbt: a DbtCliResource runs the dbt CLI and @dbt_assets parses the dbt manifest.json to produce asset-level lineage. The decorated function streams dbt.cli([...]) commands.
In Orchestra, dbt Core is a first-class integration. A single Execute task under DBT_CORE replaces one or more @dbt_assets. Orchestra pulls the dbt project from a connected Git repository and runs the commands you specify.
| Dagster concept | Orchestra YAML field | Notes |
|---|---|---|
dbt.cli(["build", "--select", ...]) | parameters.commands | Semicolon-separated dbt CLI string |
| Python environment | parameters.python_version | e.g. '3.12' |
| pip / poetry / uv | parameters.package_manager | PIP, POETRY, or UV — infer from visible project files (poetry.lock/pyproject.toml → POETRY, uv.lock → UV, requirements.txt/Pipfile → PIP). If none of that is visible, don't silently guess PIP — see Gotchas |
DbtProject(project_dir=...) (Git repo + project) | connection: for the repo/credentials, parameters.project_dir for the path | The connection stores the repo URL; project_dir is a real task parameter — set it to the same subdirectory value, null if the project is at the repo root |
--project-dir | parameters.project_dir | Same as above — carry the path over, don't drop it |
profiles_dir / profiles.yml | Configured on the connection | Warehouse creds live on the connection |
--select / --exclude | Include in commands | e.g. dbt build --select models/marts |
--target | Include in commands or on connection | e.g. dbt run --target prod |
| asset key / op name | name: | Human-readable task name |
version: v1
name: <pipeline-name>
pipeline:
<stage-uuid>:
tasks:
<task-uuid>:
integration: DBT_CORE
integration_job: DBT_CORE_EXECUTE
name: <descriptive name>
connection: null # null = the workspace's default dbt-core connection; only set an existing connection's id (name_12345) to pick a specific one, never invent a name
parameters:
commands: 'dbt seed; dbt build --select tag:daily;'
package_manager: PIP
python_version: '3.12'
project_dir: null # optional — subdirectory holding dbt_project.yml, e.g. 'dbt' in a monorepo
depends_on: []
condition: null
tags: []
@dbt_assets / DbtCliResource and read the dbt.cli([...]) command lists.package_manager gets confirmed — see step 3.package_manager — infer it from visible signals (lockfile/manifest in the repo). If the source gives no such signal, don't silently default to PIP: add a # MANUAL: comment on the package_manager line so it surfaces in the migration checklist for the user to confirm/select when they set up the dbt Core connection.project_dir — DbtProject(project_dir=...)'s value is a real task parameter, not connection config. Set parameters.project_dir to that subdirectory; leave it null if the dbt project is at the repo root.commands string. Convert each dbt.cli(["build","--select","x"]) to dbt build --select x;.@dbt_assets (or seed -> run -> test) collapse into one Orchestra task.depends_on:.from pathlib import Path
from dagster import Definitions
from dagster_dbt import DbtCliResource, dbt_assets, DbtProject
dbt_project = DbtProject(project_dir=Path("dbt"))
dbt_resource = DbtCliResource(project_dir=dbt_project)
@dbt_assets(manifest=dbt_project.manifest_path)
def my_dbt_assets(context, dbt: DbtCliResource):
yield from dbt.cli(["build", "--select", "tag:daily", "--target", "prod"], context=context).stream()
defs = Definitions(assets=[my_dbt_assets], resources={"dbt": dbt_resource})
version: v1
name: my-pipeline
pipeline:
stage-001:
tasks:
task-001:
integration: DBT_CORE
integration_job: DBT_CORE_EXECUTE
name: dbt_daily_build
connection: data_dbt_bigquery_prod_12345
parameters:
commands: 'dbt seed; dbt build --select tag:daily --target prod;'
package_manager: PIP
python_version: '3.12'
project_dir: dbt # from DbtProject(project_dir=Path("dbt")) in the source above
depends_on: []
condition: null
tags: []
A dbt Core connection needs warehouse credentials, but they don't have to be re-typed into it. If the warehouse already exists as its own Orchestra connection — the Snowflake/Postgres/BigQuery connection the rest of the pipeline already uses — link it under Linked connections on the dbt Core connection's form rather than pasting the same password into that connection's Secrets. One credential, one place to rotate it.
Linked 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. Read them in profiles.yml with dbt's env_var():
my_project:
target: prod
outputs:
prod:
type: snowflake
account: "{{ env_var('SNOWFLAKE__PROD_12345__SNOWFLAKE_ACCOUNT') }}"
user: "{{ env_var('SNOWFLAKE__PROD_12345__SNOWFLAKE_USER') }}"
password: "{{ env_var('SNOWFLAKE__PROD_12345__SNOWFLAKE_PASSWORD') }}"
SNOWFLAKE__PROD_12345__SNOWFLAKE_PRIVATE_KEY instead of a password — check the integration's field IDs rather than assuming password.Full reference: Linked connections.
@dbt_assets granularity — Dagster expands the manifest into one asset per model/test; Orchestra collapses these into one DBT_CORE_EXECUTE task with the same --select filter. Observatory still surfaces per-model metadata.dbt.cli([...]) -> commands string — ["build","--select","tag:daily"] becomes dbt build --select tag:daily;. Join multiple calls with semicolons.dbt-oss>=2,<3 (rather than dbt-core), translate --models / --model / -m in the source command to --select / -s, and drop --partial-parse / --no-partial-parse. dbt v2 errors on all of them, so carrying the string across verbatim produces a task that fails on its first run. The dbt version comes from the repo's requirements.txt / pyproject.toml, not from any task parameter — there is no version field on DBT_CORE_EXECUTE (Running dbt v2 in Orchestra).--profiles-dir or hardcode credentials. If the warehouse is already its own Orchestra connection, link it rather than copying its secrets across (see above).project_dir is a real task parameter, not connection config — carry DbtProject(project_dir=...)'s value over to parameters.project_dir instead of dropping it. Only null it if the dbt project genuinely sits at the repo root.--vars — Orchestra has no backfill; convert vars to inputs: or hardcode and flag partition logic.manifest.json; Orchestra compiles on its runners, so you do not ship the manifest.package_manager: don't just guess PIP and move on. Flag it instead:
package_manager: PIP # MANUAL: could not detect pip/poetry/uv from the source — confirm/select the correct package manager when setting up the dbt Core connection
This surfaces as a Manual Review item in the migration checklist, so the user resolves it alongside connection setup rather than deploying a silently-wrong environment.If the Dagster code sends notifications via a run failure sensor, make_slack_on_run_failure_sensor, or op success/failure hooks, replace those with an alerts block in the pipeline YAML. Alerts fire based on overall pipeline status and support Slack, Email, PagerDuty, Microsoft Teams, and Webhook destinations.
version: v1
name: my-pipeline
alerts:
- name: on-failure
statuses:
- FAILED
destinations:
- integration: SLACK
destination: '#data-alerts'
custom_message: 'Optional context message.'
- name: on-success
statuses:
- SUCCEEDED
destinations:
- integration: SLACK
destination: '#data-alerts'
pipeline:
# ... tasks unchanged
Valid statuses: FAILED, SUCCEEDED, CANCELLED, WARNING, SKIPPED. Multiple alerts with different destinations are supported — each needs a unique name. See the slack-dagster-to-orchestra skill for full schema details.
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