/orchestra:merge-duplicate-pipelinesfrom orchestra
Detects duplicate Orchestra pipelines (per-environment copies or copy-pasted task graphs) and drafts consolidated YAML using environment overlays, inputs, conditionals, or MetaEngine matrices. Requires user approval before any changes.
Ships in 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.
Read when SKILL.md points to them.
Find pipelines in an Orchestra workspace that are the same process duplicated — across environments or conceptually — and consolidate each duplicate set into one pipeline with the right parameterisation in place of the copy-paste. Detection is read-only; anything that changes a pipeline requires an explicit choice from the user for that specific set.
../../references/orchestra/mcp/tools-quick-ref.md — MCP tool names and arguments.../../references/orchestra/pipeline/yaml-authoring.md — schema and variable syntax
(${{ ENV.* }}, ${{ inputs.* }}, ${{ MATRIX.* }}, conditions).references/detection-and-patterns.md — read this before drafting anything. The
similarity heuristic in full, the ENV-LABELED vs CONCEPTUAL classification, and
before/after YAML for each consolidation pattern.../account-health-check/references/best-practices-checklist.md checks 1.1
(one pipeline per process, not per environment), 1.3 (MetaEngine instead of
duplicated tasks/pipelines), 1.9 (inputs/env vars/conditionals over duplication), and
2.1 (don't run one pipeline per environment) — this skill is the fix for those
findings.If the user hands you an existing account-review report, or pastes findings that name checks 1.1/1.3/1.9/2.1, read it for the pipelines it already flagged and skip straight to Step 3 with those as your starting candidate set — no need to re-scan the account. Otherwise start at Step 1.
Same access pattern as account-health-check: use the Orchestra MCP if connected
(list_pipelines, get_pipeline); otherwise fall back to the REST API with
$ORCHESTRA_API_KEY (https://app.getorchestra.io/api/engine/public). If neither is
available, point the user at the MCP setup docs and stop.
Tell the user which workspace you're scanning and confirm scope: full account, or a named
subset. For large workspaces, default to the live + Git-backed set (every unpaused,
recently-run pipeline plus every Git-backed one) for the same reason account-health-check
does — reading every definition has a real cost — and say what you skipped.
list_pipelines for the inventory: name, alias, storageProvider, paused,
numTasks, schedule. Parse schedule/sensors/webhook out of their JSON-encoded
string form before using them (see the trap noted in account-health-check).get_pipeline (or the REST fallback) for the full definition of every in-scope
pipeline. This is what the similarity signatures in Step 3 are built from — there's no
cheaper source, so this is the expensive step; that's why scope matters.list_environments/get_environment to see whether the account already
has Orchestra Environments configured. This changes the framing of a finding: "you
haven't set up Environments yet" vs. "you have Environments, but this pipeline isn't
using them."Run both passes from references/detection-and-patterns.md and union the results:
For every candidate set, classify it ENV-LABELED or CONCEPTUAL per the reference file — this determines which pattern you draft next.
Per the classification:
${{ ENV.VAR }} using the same variable name across every variant. Tasks present in
only some variants become their own task group gated with condition (Pattern B). Name
the environments in the draft (schedule environment: pins, any ENVIRONMENT_NAME
reference) using the real names/IDs from Step 2's list_environments call whenever
that succeeded — don't guess a name like prod/staging when the real one was
available. Only fall back to a naming-pattern guess when Environments couldn't be
reached, and flag it explicitly as unconfirmed.orchestra-cli pipeline validate <path> if available, else MCP
validate_pipeline.Detection and drafting are read-only up to this point. For each candidate set, show:
Then ask the user which action to take for that specific set — there is no default:
references/detection-and-patterns.md §7 for exactly when each is safe to
do versus when to leave it as a manual UI step instead.Every set gets its own answer; don't assume the same choice applies to all of them. Option 5 is additive to whichever of 1–4 was chosen, not a replacement for it.
The unified pipeline is always a new, additional pipeline — never one of the original duplicates rewritten in place. That keeps "create the consolidation" and "retire the originals" as two separable, individually-approved actions rather than one irreversible step:
start_pipeline with branch=...) — same gate as triage-orchestra-pipeline. Nothing
merges to main until the user approves the PR, and the original duplicate files are
untouched by this PR.storageProvider: ORCHESTRA): create_pipeline for the new unified
pipeline. Do not call update_pipeline/migrate_pipeline on any of the original
duplicate pipelines here — those tools are only used in the pausing step below, and only
to flip paused, never to rewrite a definition. (Aside: if create_pipeline or a later
update_pipeline call 422s on storage_provider with extra_forbidden, that's a known
Orchestra MCP quirk — retry the equivalent call via migrate_pipeline instead, which
omits that field.)update_pipeline/migrate_pipeline — a paused: true toggle
on the existing duplicate, nothing else in its definition changes. Never delete a
pipeline — that's not offered as an option for a reason.Write (or append to) orchestra-pipeline-consolidation.md: one section per candidate set
with the evidence, classification, action taken or deferred, links to the PR/pipeline, and
any outstanding manual steps. Chat summary: how many sets found, what was done per set,
what's still pending on the user.
${{ ENV.* }}/${{ inputs.* }}.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orchestra-hq/orchestra-skills --plugin orchestra19 skills in this plugin
/account-health-checkAudit an Orchestra workspace/account against Orchestra's best practices and produce a read-only health report — findings grouped by area, each tagged with severity, evidence, and a fix recommendation, written to a markdown file plus a chat summary. Use whenever the user wants an "account review", "workspace audit", "health check", "best-practice review", "onboarding review", or asks "is my Orchestra set up correctly?", "what should I improve?", "are we following best practices?", "review my pipelines", or "audit my workspace". Also trigger when the user mentions reviewing pipeline design, environment/promotion setup, Git/CI-CD coverage, alerting coverage, connections/secrets hygiene, concurrency, cost, RBAC, repeated tasks (MetaEngine), metadata/lineage, auto-fix agents, or hybrid-deployment fit across their Orchestra account. This skill only inspects and reports — it never edits pipelines or changes settings.
/build-data-reconciliation-pipelineBuilds Orchestra pipeline YAML using the native Data Reconciliation tasks (DATA_RECONCILIATION_MANUAL_QUERY, DATA_RECONCILIATION_CURSOR_FIELD) to prove two data stores match — the "did the migration land correctly" check between a source and destination integration (SNOWFLAKE, SQL_SERVER, DATABRICKS, any pairing). Use whenever the user wants to compare, validate, or reconcile data across two systems for a migration, replatform, cutover, or CDC/replication setup — phrases like "make sure the migration matches", "reconcile Snowflake and Databricks", "validate the cutover", "did we lose any rows moving to the new warehouse", "set up drift monitoring", or any mention of Data Reconciliation / DataRec. Produces a one-off full-match validation pipeline plus, optionally, an ongoing cursor-field drift monitor. Don't use create-orchestra-pipeline for this — Data Reconciliation tasks have sharp edges (single-scalar results, thresholds that silently no-op if omitted) covered in this skill's references.
/configure-dbt-build-afterConfigure dbt model build_after for Orchestra state-aware orchestration — author the config.freshness.build_after block (count, period, updates_on) on dbt models so Orchestra rebuilds a model only after a minimum SLA window AND when its upstream data is fresh, then ensure use_state_orchestration is enabled on the Orchestra dbt task. Use when asked to set up build_after, configure per-model rebuild SLAs, gate model rebuilds on upstream freshness, stop unnecessary dbt rebuilds, or set up state-aware orchestration in Orchestra. Trigger on phrases like "configure build_after", "add build_after", "only rebuild when upstream is fresh", "per-model SLA", "updates_on any/all", or "stop rebuilding models that haven't changed" in a dbt or Orchestra context. build_after is warehouse-agnostic (same config for Snowflake, BigQuery, Databricks, MotherDuck) but depends on source freshness being configured — the source/freshness-signal half is the separate configure-dbt-source-freshness skill./configure-dbt-source-freshnessConfigure dbt source freshness for Orchestra state-aware orchestration — author warn_after/error_after thresholds and loaded_at_field/loaded_at_query in a dbt project's sources YAML, getting the warehouse details right for Snowflake, BigQuery, Databricks, or MotherDuck/DuckDB, then enable use_state_orchestration on the Orchestra dbt task. Use when asked to set up dbt source freshness, configure freshness checks, detect stale sources, set up state-aware orchestration in Orchestra, or make Orchestra skip downstream models when upstream data hasn't changed. Trigger on phrases like "add source freshness", "configure freshness", "set up state aware orchestration", "skip models when sources are stale", "loaded_at_field", or "warn_after/error_after" in a dbt or Orchestra context. This is the source/freshness-signal half of state-aware orchestration; configuring per-model rebuild SLAs (build_after) is the separate configure-dbt-build-after skill./create-orchestra-pipelineCreate, validate, and remediate Orchestra pipeline definitions, as YAML or OML. Use when asked to build a new pipeline, add tasks to an existing pipeline, fix pipeline validation errors, or author Orchestra workflow definitions from a description. Trigger on phrases like "create a pipeline", "add a dbt task", "write orchestra yaml", "write orchestra oml", "fix validate errors", or when editing `.yml`, `.yaml` or `.oml` files under orchestra/ or similar pipeline directories.
/databricks-cost-auditRuns a daily, one-off Databricks cost-optimisation audit. Executes 10 checks against Databricks system tables (billing, compute, query history, lakeflow), writes ranked findings with estimated $ savings to a Delta table, and returns a summary highlighting what's new today vs. still-open. Use when the user asks to audit Databricks spend, find cost savings, run the daily cost check, or review compute/warehouse/storage waste. Triggers: "databricks cost audit", "check our databricks spend", "cost optimisation", "run the daily audit".Other plugins' skills for the same job