/orchestra:triage-orchestra-pipelinefrom orchestra
Diagnoses failed Orchestra pipelines or traces downstream symptoms upstream, opens a fix PR, validates on a branch run, and presents a triage summary for user approval before merging.
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.
Diagnose a failed (or symptom-reported) pipeline, open a fix PR, validate it on the branch, then present a compact triage report and stop for human approval. Nothing merges to main until the user says so.
Orchestra docs live under references/orchestra/. Index and layout: ../../references/orchestra/README.md. Paths below are relative to this skill folder.
Pipeline
../../references/orchestra/pipeline/diagnosis-patterns.md — error classification../../references/orchestra/pipeline/remediation-playbooks.md — fix strategies../../references/orchestra/pipeline/knowledge-store.md — (optional) local fix history; prefer your client's persistent memoryMCP
../../references/orchestra/mcp/tools-quick-ref.md — tool arguments and behaviour (use get_pipeline to read a pipeline's full definition)Before doing anything, classify the input:
Error-first — the pipeline has a red status, or the user gives a run ID/URL/UUID, or says "my pipeline failed". Skip to Step 1.
Symptom-first — the user describes something wrong in a downstream system without mentioning a pipeline error: "Lightdash dashboard looks wrong", "numbers are off", "chart is stale", "dbt model returning bad values". Go to Step 0b.
Goal: Find the root cause by starting at the system the user named and walking backwards through the pipeline until something is wrong.
Extract the system keyword from the prompt (e.g. "Lightdash", "dbt", "Fivetran").
Call list_pipeline_runs for the relevant pipeline, with time_from/time_to covering the
last 7 days, to get the most recent run (without a window only the last 24 hours are searched).
Call list_task_runs_for_pipeline_run for that run to get all tasks and their execution order.
Match the keyword to a task via the integration field (e.g. LIGHTDASH, DBT_CORE,
FIVETRAN). This is the entry task. If no pipeline is named, ask the user which
pipeline to check before proceeding.
For the entry task in the most recent run, check three things in order:
Run status. Was it SUCCEEDED, WARNING, SKIPPED, or FAILED? Note it — even a SUCCEEDED task can produce wrong output if its inputs were bad.
Recent code commits. Identify the git repo for this task from runParameters
(branch, commit, platformLink). Fetch the last 10 commits on that branch:
gh api repos/<owner>/<repo>/commits?sha=<branch>&per_page=10
For each commit in the last 7 days, check the diff for changes to files relevant to the symptom. Examples:
.yml metric/dimension definitions, schema.yml joinsArtifacts/logs. Download available artifacts (e.g. dbt run_results.json) and
check for warnings or row count anomalies even on technically passing runs.
Decision:
Walk backwards through the pipeline task list by execution order. For each upstream task, repeat Step 0b-2: check run status, recent commits in its repo, and artifacts.
Example traversal order for a Fivetran → dbt → Lightdash pipeline:
Prompt: "Lightdash dashboard looks wrong"
Layer 1: Lightdash task
→ status: SUCCEEDED
→ commits: no changes in last 7 days
→ no issue found → move upstream
Layer 2: dbt task
→ status: SUCCEEDED
→ commits: found commit 3 days ago changing model SQL in affected area
→ STOP — root cause identified
(Layer 3: Fivetran task — not reached)
Stop as soon as a suspicious commit or anomaly is found. Do not keep looking once a cause is identified.
If traversal reaches the source with nothing found across all layers, report: "No issues found in the last 7 days across all layers" with a table of what was checked at each layer (task, status, commits reviewed, conclusion).
Once identified, classify it exactly as you would an error-first diagnosis:
Proceed to Step 2.
If the commit represents an intentional business logic change (not a bug), do not open a revert PR. Instead, present the triage summary with a [User action needed] resolution: explain which commit introduced the change and ask the user to decide whether to revert or adjust the downstream layer to match the new logic.
Run the full diagnosis: find the failed run, get task runs, fetch logs/artifacts/operations,
classify the error, identify root cause. Where whats_broken and diagnose are available,
start with those two — they return the same evidence pre-joined, in two calls instead of
five or six (see ../../references/orchestra/mcp/tools-quick-ref.md → Reach for these first).
Read ../../references/orchestra/pipeline/diagnosis-patterns.md;
optionally recall similar past fixes from your client's persistent memory (or a local
../../references/orchestra/pipeline/knowledge-store.md if the user keeps one).
Do not present a verbose diagnosis block to the user yet. Collect all findings silently — the output comes at the end in the triage summary.
Apply the fix exactly as in fix-orchestra-pipeline Step 5:
gh pr createupdate_pipeline if Orchestra-backedCritical difference: Do NOT merge. Do NOT call gh pr merge. Leave the PR open.
Collect:
Trigger a pipeline run against the fix branch (not main) to prove the fix works before anyone merges it:
start_pipeline(
alias_or_pipeline_id=<pipeline_id>,
branch=<fix-branch-name>,
environment=<same env as the failed run>
)
Poll get_pipeline_run_status every 60 s until terminal (SUCCEEDED / FAILED / WARNING).
Do not present anything to the user until the branch run reaches a terminal state.
If the pipeline writes data (ingestion, reverse-ETL), warn the user before running: "This pipeline writes data — branch run will also write. Proceed?"
Output the triage summary in the format below, then explicitly stop. Do not schedule a wakeup. Do not merge anything. Wait for the user.
Optimised for Slack: scannable, no preamble, decision-ready.
## Triage: `<pipeline name>`
**What broke:** <one sentence — which task, which test/error>
**Why:** <one sentence — specific root cause>
| Value / change | Field | Origin |
|---|---|---|
| `VALUE` | `column_name` | API enum expansion / bad commit / etc. |
---
**How it was found:**
1. `list_task_runs` → dbt task FAILED, exit code 1
2. Downloaded `run_results.json` → 3 `accepted_values` test failures
3. `list_operations` → `REUSED` present in live operation data
---
**PRs opened:**
| PR | File | Change |
|---|---|---|
| [#N](url) | `models/staging/schema.yml` | Added `REUSED` to `operation_status` accepted values |
**Branch validation:** Run `<run-id>` on `<branch>` — ✅ SUCCEEDED / ❌ FAILED
---
**Why this fixes it:** <2–3 sentences on what the test does, why the new value broke it,
and why this is the right fix rather than a data issue.>
---
> **Ready to apply?** Reply `merge` to merge the PR(s) and trigger a production run,
> or `reject` to close them.
## Triage: `<pipeline name>` — symptom: "<user's description>"
**Entry layer:** <system the user named>
**Root cause found at:** <layer where the issue was identified>
**What changed:** Commit `<sha>` on `<date>` — "<commit message>"
---
**Layers checked:**
| Layer | Task status | Commits checked | Finding |
|---|---|---|---|
| Lightdash | SUCCEEDED | 0 in last 7d | Clean |
| dbt Core | SUCCEEDED | 4 in last 7d | ⚠️ Commit `abc1234` changed `store_sales_example.sql` |
| Fivetran | — | not reached | — |
---
**Suspect commit diff:**
- File: `models/clean/store_sales_example.sql`
- Change: `WHERE sales > 0` → `WHERE sales > 1000` (filters out low-value stores)
---
**PRs opened:**
| PR | File | Change |
|---|---|---|
| [#N](url) | `models/clean/store_sales_example.sql` | Reverted threshold change |
**Branch validation:** Run `<run-id>` on `<branch>` — ✅ SUCCEEDED / ❌ FAILED
---
**Why this fixes it:** <explanation of the causal chain from the commit to the symptom>
---
> **Ready to apply?** Reply `merge` to merge and trigger a production run,
> or `reject` to close the PR(s).
> If this was an intentional change, reply `intentional` and I'll investigate the
> downstream layer instead.
merge (or: "yes", "approve", "ship it", "lgtm"):
gh pr merge <N> --repo <owner/repo> --squash --delete-branch for each PRstart_pipeline(pipeline_id, environment=Production)../../references/orchestra/pipeline/knowledge-store.md if the user keeps one. Off by default.reject (or: "no", "close it", "abandon"):
gh pr close <N> --repo <owner/repo> for each PRintentional (symptom-first only — the commit was deliberate, not a bug):
User provides feedback ("change X to Y", "also fix Z"):
knowledge-store.md as an opt-in fallback —
see fix-orchestra-pipeline. Never commit workspace-specific fix history to this repo.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchestra, pipeline-triage, data-pipeline, fix-pr, branch-validation
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