/migrate-to-orchestra:dagster-shell-ssh-to-orchestrafrom migrate-to-orchestra
Maps Dagster shell/SSH/Pipes patterns (PipesSubprocessClient, dagster-shell, SSHResource, PipesK8sClient, PipesECSClient, PipesDatabricksClient) to Orchestra integrations like PYTHON, LINUX_SSH, AWS_ECS, GKE, and DATABRICKS.
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 runs external and shell workloads through several mechanisms: Dagster Pipes (PipesSubprocessClient, PipesK8sClient, PipesECSClient, PipesDatabricksClient, PipesGlueClient, PipesLambdaClient), dagster-shell (execute_shell_command), and SSHResource (dagster-ssh). Orchestra has no local shell execution model; map each to a purpose-built integration:
LINUX_SSH + LINUX_SSH_EXECUTE_COMMAND or WINDOWS_SSH + WINDOWS_SSH_COMMANDPYTHON + PYTHON_EXECUTE_SCRIPT (the better pattern)AWS_ECS, GKE, AZURE_CONTAINER_APPS, or AWS_EKS/AKSPipesGlueClient -> AWS_GLUE, PipesLambdaClient -> AWS_LAMBDA, PipesDatabricksClient -> DATABRICKS)Is it dbt?
-> YES: use dbt-core-dagster-to-orchestra
-> NO: continue
Does it run a Python script via subprocess/Pipes?
-> YES: PYTHON + PYTHON_EXECUTE_SCRIPT
Does it SSH to a remote server (SSHResource)?
-> Linux: LINUX_SSH + LINUX_SSH_EXECUTE_COMMAND
-> Windows: WINDOWS_SSH + WINDOWS_SSH_COMMAND
Is it a Kubernetes job (PipesK8sClient / k8s_job_op)?
-> AWS: AWS_EKS + AWS_EKS_RUN_JOB
-> GCP: GKE + GKE_RUN_JOB
-> Azure: AZURE_KUBERNETES_SERVICE + AKS_RUN_JOB
Is it a container (PipesECSClient / Cloud Run)?
-> AWS: AWS_ECS + AWS_ECS_RUN_TASK
-> GCP: GCP_CLOUD_RUN + GCP_CLOUD_RUN_EXECUTE_JOB
Managed-compute Pipes?
-> PipesGlueClient -> AWS_GLUE_RUN_JOB
-> PipesLambdaClient -> AWS_LAMBDA_EXECUTE_ASYNC_FUNCTION
-> PipesDatabricksClient -> DATABRICKS_RUN_WORKFLOW
Pure local glue (echo, mkdir)?
-> Assess whether it can be dropped or folded into an adjacent task
# Dagster
@asset
def process(context, pipes_subprocess_client: PipesSubprocessClient):
return pipes_subprocess_client.run(
command=["python", "scripts/etl.py", "--env", "prod"],
context=context.op_execution_context,
).get_results()
# Orchestra
task-001:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
name: process
connection: my_python_git_conn_12345
parameters:
command: 'python scripts/etl.py --env prod'
python_version: '3.12'
package_manager: PIP
depends_on: []
condition: null
tags: []
# Dagster
@op
def run_remote(context, ssh: SSHResource):
ssh.execute_remote_command("cd /data && ./process.sh --date 2024-01-01")
# Orchestra
task-001:
integration: LINUX_SSH
integration_job: LINUX_SSH_EXECUTE_COMMAND
name: run_remote
connection: my_linux_server_12345
parameters:
command: 'cd /data && ./process.sh --date 2024-01-01'
depends_on: []
condition: null
tags: []
The SSH user must have read/write access to /tmp/ on the target server.
# Dagster
@asset
def k8s_job(context, pipes_k8s_client: PipesK8sClient):
return pipes_k8s_client.run(
context=context.op_execution_context,
image="my-registry/etl:latest",
namespace="data-team",
).get_results()
# AWS EKS
task-001:
integration: AWS_EKS
integration_job: AWS_EKS_RUN_JOB
name: k8s_job
connection: aws_eks_prod_12345
parameters:
job_manifest: |
apiVersion: batch/v1
kind: Job
metadata:
name: my-etl-job
spec:
template:
spec:
containers:
- name: etl
image: my-registry/etl:latest
restartPolicy: Never
depends_on: []
task-001:
integration: AWS_ECS
integration_job: AWS_ECS_RUN_TASK
name: run_ecs_task
connection: aws_default_12345
parameters:
cluster: my-cluster
task_definition: my-task
subnet_ids: subnet-abc123,subnet-def456
security_group_ids: sg-abc123
assign_public_ip: false
tags:
team: data
cost-centre: "1234"
depends_on: []
tags is optional and puts key-value tags on the ECS task itself, which is the closest thing
Orchestra has to the labels a container scheduler carries for cost allocation. Keys cannot start
with orchestra: or aws:; those are reserved for the connection's optional Tag jobs with
Orchestra IDs setting, which adds the workspace, pipeline, pipeline run and task run IDs. Either
way the connection's role needs ecs:TagResource, or AWS rejects the RunTask call and the task
fails — so don't add tags to a pipeline without saying the role has to change too
(AWS ECS).
from dagster import op, asset, job, Definitions
from dagster_ssh import SSHResource
from dagster_pipes import PipesSubprocessClient
@op
def fetch_data(context, ssh: SSHResource):
ssh.execute_remote_command("cd /data && python fetch.py --date 2024-01-01")
@asset
def process(context, pipes_subprocess_client: PipesSubprocessClient):
return pipes_subprocess_client.run(
command=["python", "/opt/scripts/process.py"], context=context.op_execution_context,
).get_results()
@job
def data_pipeline():
fetch_data()
defs = Definitions(jobs=[data_pipeline], assets=[process],
resources={"ssh": SSHResource(remote_host="data_server"),
"pipes_subprocess_client": PipesSubprocessClient()})
version: v1
name: data-pipeline
pipeline:
stage-fetch:
tasks:
fetch-data:
integration: LINUX_SSH
integration_job: LINUX_SSH_EXECUTE_COMMAND
name: fetch_data
connection: data_server_12345
parameters:
command: 'cd /data && python fetch.py --date 2024-01-01'
depends_on: []
condition: null
tags: []
depends_on: []
stage-process:
tasks:
process-data:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
name: process
connection: my_python_git_conn_12345
parameters:
command: 'python scripts/process.py'
python_version: '3.12'
package_manager: PIP
depends_on: []
condition: null
tags: []
depends_on: [stage-fetch]
dbt-core-dagster-to-orchestra; DBT_CORE_EXECUTE is dedicated.PipesSubprocessClient (Python) -> PYTHON — the command list ["python","scripts/x.py"] becomes command: 'python scripts/x.py'.SSHResource.execute_remote_command -> LINUX_SSH — parameters.command.command, not a list; join the Pipes command list.PipesK8sClient / k8s_job_op -> EKS/GKE/AKS — Orchestra uses existing jobs/manifests, not arbitrary image launches.PipesECSClient -> AWS_ECS; PipesDatabricksClient -> DATABRICKS_RUN_WORKFLOW.set_outputs./tmp/ on the target server.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
Python, Docker, Kubernetes, AWS, GCP
dagster, orchestra, pipes, ssh, shell-commands, container-orchestration
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