/orchestra:fix-orchestra-pipelinefrom orchestra
Fixes failed Orchestra pipelines after cause classification, handling YAML misconfigurations, task inputs, ordering, env/connection wiring, and transient issues. Applies fixes, creates PRs, polls, retries, and optionally records solutions.
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.
Fix and retry an already-diagnosed Orchestra pipeline — and optionally remember what worked.
This skill assumes the Orchestra MCP server is connected. All MCP calls are scoped to the user's workspace.
Use Orchestra MCP tools for all operations in this skill (read a pipeline's full definition with
get_pipeline). Argument summaries: ../../references/orchestra/mcp/tools-quick-ref.md.
identify-pipeline-error is the entry point that parses the user's input (URL, UUID, alias, error
text, Slack alert), finds the failed run and task, and classifies the cause. It hands you:
pipelineId, pipelineName, envName, run branch/commit, triggeredByid, taskName, taskId, integration, integrationJob, message,
externalStatus, externalMessage, taskParameters, runParameters, connectionId,
numberOfAttemptsUse these directly and proceed to Step 3. If invoked standalone (no handoff), run
identify-pipeline-error first to establish the failed run/task and the cause, then come back here.
Execute these steps in order. Each step feeds the next.
Goal: Get the raw evidence — logs, artifacts, and operations.
For each failed task run:
Logs: Call list_task_run_logs to list available log files. Then fetch each log
with download_task_run_log. Focus on the last ~256KB of large logs using
range_header (for example bytes=-262144).
Artifacts: Call list_task_run_artifacts. For dbt tasks, look for
run_results.json and manifest.json. Download relevant artifacts with
download_task_run_artifact.
Operations: Call list_operations filtered by task_run_id to see
sub-operations (individual dbt models, Snowflake queries, etc.) and their statuses. It
defaults to the last 24 hours; for an older task run pass time_from/time_to spanning its
start to completion.
Read ../../references/orchestra/pipeline/diagnosis-patterns.md before proceeding to Step 4. It contains
integration-specific error patterns that will help classify the failure.
Goal: Pin down the specific root cause so the fix is exact. identify-pipeline-error already
classified this as an Orchestra-platform/config issue (or a repo-level code fix with no dedicated
skill) and routed you here — you are not re-deciding the category. Using the evidence from Step 3
plus ../../references/orchestra/pipeline/diagnosis-patterns.md:
Identify the root cause precisely. Not just "config error" but "task load_events is missing
the dbt_branch run input, so it cloned the default branch" or "column user_email does not
exist in analytics.users — a schema migration removed it." Confirm it's actionable as a
YAML/config change, a retry, or a repo PR — i.e. genuinely an Orchestra-platform/config or
repo-code fix.
Scope check — hand back if it isn't yours. If the evidence now points to a dbt code
failure, a Python code failure, or a category identify-pipeline-error handles itself (data
quality, vendor/ingestion needing a UI fix, auth, network, pure upstream), stop and hand back
to identify-pipeline-error so it can route correctly — don't force a fix here.
(Optional) Recall past fixes. Past-fix memory is deferred to the calling agentic client.
If your client exposes persistent memory (e.g. Claude Code memory, Cursor rules/memories), check
it for similar past fixes. As a fallback, read a local
../../references/orchestra/pipeline/knowledge-store.md if the user keeps one — it ships empty
and may not exist. Optional: skip when no memory is available. Treat any recalled entry as
historical context and re-verify it still applies before acting on it.
Present the root cause clearly: specific cause, evidence (which log line / error / operation failed), and confidence (high/medium/low).
Read ../../references/orchestra/pipeline/remediation-playbooks.md before proceeding to Step 5.
Goal: Fix the issue or tell the user exactly what to do.
Based on the diagnosis, consult ../../references/orchestra/pipeline/remediation-playbooks.md and take action:
Fixes the agent can apply directly:
start_pipelineupdate_pipeline to fix configuration errors like wrong parameters, missing
environment variables, or incorrect task orderingrun_inputs in start_pipeline to override
problematic input valuesgh CLI to create a pull request with the fix directly.
Do not ask the user to make the change themselves. Workflow:
fix/missing-pyproject-toml)gh pr create targeting the failing branchFixes that require user action (explain clearly — but still poll after PR if one was opened):
Always explain what you're doing and why before taking action.
Goal: Watch the PR and trigger the pipeline rerun once it merges — without making the user babysit it.
After sharing the PR URL, emit one status line and keep watching the PR until it reaches a terminal state (or the user asks you to stop):
⏳ PR #178 open — checking every 60 s; will trigger the pipeline on merge.
Polling loop:
Check PR state:
gh pr view {pr_number} --repo {owner/repo} --json state,mergedAt
If state == "MERGED": Proceed immediately to Step 6 — trigger start_pipeline
using the original pipeline ID and environment. No confirmation needed (the user
already approved the fix by merging the PR).
If state == "CLOSED" (not merged): The PR was closed without merging. Report
this and ask the user how to proceed — do not auto-retry.
If state == "OPEN": Wait ~60 seconds, then check again; after several checks with
no merge, widen the interval to a few minutes. Use whatever scheduling mechanism your
client provides — if it can re-invoke you on a timer, schedule the next check and hand
back control; otherwise keep polling in the same conversation. Either way, retain the PR
number, repo, pipeline ID, and environment so each check resumes the same fix workflow.
Polling output format (one line per check, not a full summary):
⏳ PR #178 — OPEN (2 min elapsed, next check in 60 s)
⏳ PR #178 — OPEN (3 min elapsed, next check in 60 s)
✅ PR #178 — MERGED — triggering pipeline rerun…
Do not re-diagnose or re-explain the fix on each poll tick. One line only.
Goal: Confirm the fix worked.
This step is entered either (a) directly after a non-PR fix, or (b) automatically from Step 5b once the PR is merged.
start_pipeline
run_inputs if applicableget_pipeline_run_status every ~30 secondsPersisting fixes is optional and deferred to the calling agentic client. Only do it when the user wants a durable record — it is off by default, and nothing workspace-specific should be committed to this repository.
../../references/orchestra/pipeline/knowledge-store.md,
append an entry using the template at the bottom of that file. The published file ships empty.When you do record a fix, capture: date, pipeline name, error category, integration, root cause, fix applied, and whether the first diagnosis was correct.
If you discover a genuinely new, generic diagnosis pattern, consider noting it in
../../references/orchestra/pipeline/diagnosis-patterns.md — but keep workspace-specific detail
(pipeline IDs, connection names, account identifiers) out of shared reference files.
Be succinct. Users are engineers dealing with broken pipelines — they want facts and actions, not explanations. No preamble, no summaries of what you just did, no "great news". If the answer fits in one line, use one line. Cut any sentence that doesn't add new information.
All user-facing output must follow these templates exactly. Consistent structure makes it easy
to scan at a glance. (Multi-pipeline "what's broken" triage is owned by identify-pipeline-error,
not this skill.)
Use a consistent header and structured block every time, then evidence and confidence.
## Root cause: `<pipeline name>`
**Root cause:** One specific sentence — not "query error" but exactly which object/column/table/input.
**Integration:** DBT_CORE / SNOWFLAKE / HTTP (or similar)
**Connection:** connection-id-here
**Confidence:** High / Medium / Low
**Evidence:**
- Exact log line or error message (quoted)
- Which operation or model failed
- Any corroborating signals (exit code, attempt count, etc.)
Always present options as a numbered list with a clear owner label on each:
**Fix options:**
1. **[Agent can apply]** Short description of what will be done and why it fixes the issue.
2. **[Agent opens a PR]** For code changes in Git-backed pipelines — describe what file/change
will be committed and which branch the PR targets.
3. **[User action needed]** Only for things the agent genuinely cannot do: credential rotation,
firewall changes, permission grants. Include the specific UI path, command, or SQL.
4. **[Needs more info]** What you'd need to know to proceed (e.g. "Does the EVENTS table
exist? Run: SELECT COUNT(*) FROM SNOWFLAKE_WORKING.PUBLIC.EVENTS").
Recommended: Option N — one sentence on why this is the right call.
Never present options without a recommendation. Never use vague labels like "you could try".
Never label a code fix as [User action needed] — open the PR instead.
During polling, emit a single line per status check. Do not repeat the full context.
▶ Run e2049b86 — RUNNING (0:42 elapsed)
▶ Run e2049b86 — RUNNING (1:30 elapsed)
✅ Run e2049b86 — SUCCEEDED (2:15 elapsed)
On failure during retry, immediately switch to diagnosis format (don't just say "it failed").
Always end a successful fix with a compact summary block:
## Fixed: `<pipeline name>`
- **Run:** `<new-run-id>` — SUCCEEDED
- **Root cause:** (one line)
- **Fix applied:** (one line)
- **Duration:** X min
- **Recorded:** Saved to client memory ✓ (only if the user opted in — omit this line otherwise)
update_pipeline.
Git-backed pipelines require code changes committed to the repository. Check storageProvider
in the list_pipelines response to determine which type it is. Opening the PR does not fix the
live pipeline: a pipeline definition change only takes effect once it merges into that
pipeline's default branch, so tell the user the fix is pending review, and verify beforehand
with a run against the fix branch, which uses that branch's version of the file
(../../references/orchestra/pipeline/yaml-authoring.md → "Git-backed pipelines: how a change
goes live").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