/orchestra:identify-pipeline-errorfrom orchestra
Entry point for debugging failed Orchestra pipelines. Identifies which task broke and why, then routes to the appropriate fixer skill (Python, dbt, or platform). Use first when a user reports a pipeline failure.
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.
None: SKILL.md is the whole skill.
The router. Identify which task broke and why, then route to the skill that fixes it.
This skill draws a clean line: it identifies and classifies; the fix-* skills fix. Do not
attempt code repairs, schema changes, or branch validation here — that is the fixer's job.
Narrate each step briefly, like a data engineer. Never print secrets/tokens.
MCP is preferred but optional. If the Orchestra MCP tools aren't present, use the public REST API
with $ORCHESTRA_API_KEY (check the env — it's often already set). If neither MCP nor a key is
available, point the user at the Orchestra MCP setup docs (https://docs.getorchestra.io/docs/mcp)
or ask for an API key, then stop.
whats_broken, diagnose, pipeline_context — each answers a whole
step below in one call. Prefer them (see §1a).list_pipeline_runs, list_task_runs, list_operations,
list_task_run_logs, download_task_run_log, list_task_run_artifacts,
list_pipelines — see ../../references/orchestra/mcp/tools-quick-ref.md.https://app.getorchestra.io/api/engine/public — header
Authorization: Bearer $ORCHESTRA_API_KEY.If a call comes back 403, the workspace does not have the Metadata API enabled. Say so and ask the user to have a workspace admin enable it — do not retry or fall back to guessing.
If whats_broken and diagnose are available, they collapse Steps 1-3 and you should
reach for them first. Steps 1-3 remain the fallback for a client without them, or for
anything they do not cover.
| You have | Call | You get |
|---|---|---|
| Nothing — "what's broken?" | whats_broken() | Every failing run in the last 24h, each with its failed tasks, messages and anomalies. Widen with window_hours, narrow with environment. |
| A pipeline run ID or URL | whats_broken(), then pick the run by ID | The same digest; the run you want is in it if it failed inside the window |
| A task run ID | diagnose(task_run_id) | Parameters, upstream statuses, log tail, artifact names |
| A pipeline name, alias or ID | pipeline_context(alias) | Definition, integrations, recent outcomes, duration baseline |
The usual sequence is whats_broken() → read the digest → diagnose(<failed task run id>)
on the first failed task. That is enough to classify and route in Step 4. Go deeper only
when it is not: the digest and the log tail say when they were truncated, and
download_task_run_log / list_operations take it from there.
Two things to carry across from the digest, since Step 4 needs them: the run's branch
(the feature-branch guard in Step 2 still applies) and the failed task's integration.
The user may give you several forms. Extract the IDs before doing anything else.
https://app.getorchestra.io/pipeline-runs/{pipeline_run_id}
https://app.getorchestra.io/pipeline-runs/{pipeline_run_id}/task-runs/{task_run_id}
https://app.getorchestra.io/pipelines/{pipeline_id}/runs/{pipeline_run_id}
https://app.getorchestra.io/pipelines/{pipeline_id}
Self-hosted instances use the same path structure on a different domain.get_pipeline_run /
GET /pipeline_runs/<id>), then as a task run ID (get_task_run / GET /task_runs/<id>, whose
pipelineRunId gives you the run). Both find a run however old it is. If neither matches, treat
it as a pipeline ID and look up its recent runs.list_pipelines, then find its latest FAILED run.whats_broken(), or list_pipeline_runs with
status=FAILED as the fallback. If several pipelines failed, present a
one-line-per-pipeline triage table and ask which to take.get_pipeline_run(pipeline_run_id=<RID>) # MCP
GET /pipeline_runs/<RID> # REST
Unlike list_pipeline_runs, this needs no time_from/time_to: it finds the run however long ago
it ran.
Capture: id (RID), pipelineId (PID), pipelineName, runStatus, message, branch, commit,
envName, triggeredBy. The run's branch is where the Orchestra YAML lives (not necessarily
the code branch).
Feature-branch guard: if the failure is on a non-main branch from a MANUAL trigger while
scheduled/main runs are green, this is likely mid-development, not an incident. Confirm with the
user before going further (see ../../references/orchestra/pipeline/diagnosis-patterns.md →
FEATURE_BRANCH_RUN).
list_task_runs(pipeline_ids=<PID>, status=FAILED, time_from=<now-7d>, time_to=<now>) # also pull status=WARNING for context
GET /task_runs?pipeline_ids=<PID>&page_size=50&time_from=<now-7d>&time_to=<now> # REST: filter to this RID client-side
Gotcha: pipeline_run_ids does not filter /task_runs over REST — filter by pipelineRunId
yourself. /task_runs returns only the last 24 hours unless you pass time_from/time_to (at
most 7 days apart), and includes superseded attempts unless you
pass include_superseded=false, so a retried task shows up twice.
Identify the first FAILED task (downstream FAILED/SKIPPED tasks are usually symptoms of it). Capture, for that task:
integration (e.g. PYTHON, DBT_CORE, SNOWFLAKE, HTTP, FIVETRAN, AIRBYTE_*)integrationJob, taskName, taskId, id (TRID)message, externalStatus, externalMessage, numberOfAttemptstaskParameters, runParameters, connectionIdPull just enough evidence to classify — the failed task's messages, and if the integration alone doesn't decide it, a quick look at logs/artifacts:
list_task_run_logs(<RID>, <TRID>) → download_task_run_log(... range_header="bytes=-262144")
list_task_run_artifacts(<RID>, <TRID>) # dbt: run_results.json is the tell for data-test fails
Don't deep-dive here. Reading full logs, reproducing locally, and downloading every artifact is the fixer's job — gather only what you need to route correctly.
Classify using the failed task's integration + messages + minimal evidence, cross-referenced with
../../references/orchestra/pipeline/diagnosis-patterns.md. Then route:
| Cause you identified | Route to |
|---|---|
Python task — code / dependency / destination-schema issue (integration=PYTHON; traceback, ModuleNotFoundError, bad logic, script writes a shape the destination rejects) | invoke fix-pipeline-python-task |
dbt task — code / config issue (DBT_CORE; compilation error, bad ref/source, SQL identifier, missing column, profiles.yml/target error) | invoke fix-pipeline-dbt-task |
Orchestra-platform / configuration issue (pipeline YAML misconfig, wrong/missing task inputs, task ordering, env/connection wiring, a transient Orchestra-side blip needing a plain retry, or an Orchestra-backed pipeline needing update_pipeline) | invoke fix-orchestra-pipeline |
| Any other cause (see §5) | handle here |
State the routing decision in one line before handing off, e.g.:
Identified: the dbt task
transform_corefailed with a compilation error — an issue with the dbt task code. Handing off tofix-pipeline-dbt-task.
Pass the fixer everything it needs so it doesn't re-identify: RID, PID, failed TRID, integration,
taskParameters (verbatim), branch/commit, and your cause classification. If the fixer later
discovers the category was wrong (e.g. a "dbt code" failure is really a data-quality test failure),
it hands back here.
These aren't python-code, dbt-code, or Orchestra-config problems, so there's no fix-* skill to
call. Identify precisely, then report with the right next action — don't edit code or data, and
don't retry data-writing tasks without the user's OK.
run_results.json). Decide with the user: legitimate data issue
(notify the data owner, don't touch the data) vs. an overly strict threshold (they may adjust it).ERROR STALE) — an upstream source hasn't refreshed. Point at the ingestion
task/pipeline that feeds it; this is usually a data/upstream issue, not code.platformLink and connectionId/connector id and tell the user what to fix in that
product's UI. Do not open a Git PR. "Sync already running" → increase the schedule interval.401/403, expired/rotated creds, insufficient privileges) — name the connectionId to
update and give the exact GRANT/IAM change. User action.SNOWFLAKE query errors, HTTP non-2xx, AWS/Azure/GCP jobs) — diagnose
with diagnosis-patterns.md. If the failure is misconfiguration in version-controlled pipeline
YAML, that's an Orchestra-config issue → route to fix-orchestra-pipeline instead. If it's a SQL
bug in a repo, treat it as a code fix and open a PR per fix-orchestra-pipeline Step 5.Read ../../references/orchestra/pipeline/diagnosis-patterns.md for per-integration signals and
../../references/orchestra/pipeline/remediation-playbooks.md for the recommended action.
When routing, keep it to the handoff line (§4) plus the IDs you're passing on.
When handling a cause yourself (§5), present a compact diagnosis and a recommendation:
## Diagnosis: `<pipeline name>`
- **Failed task:** `<task name>` (`<INTEGRATION>` / `<integrationJob>`)
- **Cause:** <one specific sentence — which object/test/credential/endpoint, not just "error">
- **Category:** DATA / VENDOR / AUTH / NETWORK / TIMEOUT / UPSTREAM / …
- **Evidence:** <quoted log line or external message; which operation failed>
- **Confidence:** High / Medium / Low
**Recommended next step:** <one line — who does what, with the exact GRANT/IP/UI path if relevant>
fix-* skills.taskParameters so it doesn't repeat identification.list_* calls.What SKILL.md sets; muted values are Claude Code's defaults
19 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".npx claudepluginhub orchestra-hq/orchestra-skills --plugin orchestraOther plugins' skills for the same job