/migrate-to-orchestra:prefect-conditions-to-orchestrafrom migrate-to-orchestra
Converts Prefect conditional execution patterns (if/else, allow_failure, conditional submit) into Orchestra condition expressions. Useful when migrating Prefect flows 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.
This skill converts Prefect conditional execution patterns into Orchestra condition: expressions. It covers input-driven branches, runtime output-driven branches, allow_failure patterns, and always-run tasks.
| Prefect construct | Orchestra field | Notes |
|---|---|---|
| Default (no condition) | condition: null | Orchestra default |
| Input-driven branch | condition: "${{ inputs.flag == true }}" | Decision known at trigger time |
result = task.submit(); if result.result(): | upstream PYTHON task with set_outputs: true + downstream condition | Runtime decision via outputs |
allow_failure=True | treat_failure_as_warning: true on upstream task | Downstream continues regardless |
| Skip if no data | condition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['id'].OUTPUTS['key'] > 0 }}" | |
| Always run | condition: "${{ True }}" | Runs even if upstream failed |
.submit(wait_for=[other]) | depends_on: [other-task-id] | Dependency without data passing |
.map() over list | matrix: block on TaskGroupModel | See prefect-data-passing-to-orchestra |
version: v1
name: conditional-pipeline
pipeline:
stage-check:
tasks:
task-check-new-data:
integration: SNOWFLAKE
integration_job: SNOWFLAKE_RUN_QUERY
parameters:
statement: "SELECT COUNT(*) AS row_count FROM staging.new_records"
depends_on: []
condition: null
tags: []
depends_on: []
stage-process:
tasks:
task-process-records:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
parameters:
command: python scripts/process_records.py
depends_on: []
condition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['task-check-new-data'].OUTPUTS['row_count'] > 0 }}"
tags: []
depends_on:
- stage-check
stage-skip:
tasks:
task-log-skip:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
parameters:
command: python scripts/log_skip.py
depends_on: []
condition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['task-check-new-data'].OUTPUTS['row_count'] == 0 }}"
tags: []
depends_on:
- stage-check
condition: "${{ inputs.param == value }}" directlycondition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['task-id'].OUTPUTS['key'] op value }}"allow_failure=True with treat_failure_as_warning: true on the upstream task.submit(wait_for=[...]) with depends_on: [...] on the downstream task/group.map() calls for prefect-data-passing-to-orchestra (matrix pattern)from prefect import flow, task
@task
def check_new_data() -> bool:
count = run_query("SELECT COUNT(*) FROM staging.new_records")
return count > 0
@task
def process_records():
...
@task
def log_skip():
...
@flow
def conditional_flow():
has_data = check_new_data.submit()
if has_data.result():
process_records.submit(wait_for=[has_data])
else:
log_skip.submit(wait_for=[has_data])
version: v1
name: conditional-flow
pipeline:
stage-check:
tasks:
task-check-new-data:
integration: SNOWFLAKE
integration_job: SNOWFLAKE_RUN_QUERY
parameters:
statement: "SELECT COUNT(*) AS row_count FROM staging.new_records"
depends_on: []
condition: null
tags: []
depends_on: []
stage-process:
tasks:
task-process-records:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
parameters:
command: python scripts/process_records.py
depends_on: []
condition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['task-check-new-data'].OUTPUTS['row_count'] > 0 }}"
tags: []
depends_on:
- stage-check
stage-skip:
tasks:
task-log-skip:
integration: PYTHON
integration_job: PYTHON_EXECUTE_SCRIPT
parameters:
command: python scripts/log_skip.py
depends_on: []
condition: "${{ ORCHESTRA.PIPELINE_RUN_TASKS['task-check-new-data'].OUTPUTS['row_count'] == 0 }}"
tags: []
depends_on:
- stage-check
OrchestraSDK and calls client.set_output() to expose values — see prefect-data-passing-to-orchestra for the client setup.submit(wait_for=[...]) is a dependency pattern, not a data-passing pattern — use depends_on:allow_failure=True → treat_failure_as_warning: true on the upstream task (downstream continues).map() over a list is a matrix pattern — see prefect-data-passing-to-orchestracondition is evaluated after depends_on is satisfied; a skipped task does not fail the pipeline${{ True }} as a condition means always run, even if an upstream task failedSee prefect-alerts-to-orchestra for all notification patterns.
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