/orchestra:account-health-checkfrom orchestra
Audits an Orchestra workspace against best practices, producing a read-only health report with findings grouped by area, severity, evidence, and fix recommendations.
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.
Audit an Orchestra workspace against the conventions the Orchestra team recommends during
onboarding and account reviews, then deliver a prioritised, evidence-backed report. This is
a read-only review: it inspects pipelines, runs, and assets through the Orchestra MCP and
writes a report file — it never mutates pipelines, settings, or runs. If the user wants
something fixed, hand off to create-orchestra-pipeline or fix-orchestra-pipeline.
The workspace is determined by the credential behind the connected Orchestra MCP server. Don't
assume that is a single workspace: a workspace API key targets exactly one, but an OAuth
sign-in or a personal user API key can cover several, in which case nothing is reviewed until
you say which. Call list_accounts first, and if it returns more than one workspace, confirm
which one the user means and pass its id as account_id on every call — a review silently
assembled from the wrong workspace is worse than one that paused to ask. Each workspace needs
its own review either way (there are no cross-workspace resources), so offer the others once
the first is done rather than merging them into one report.
references/best-practices-checklist.md — the rubric. Every check, what "good" looks
like, the MCP signal that detects a violation, its severity, and the doc link to cite. Read
this before evaluating — it's the heart of the skill. It has a table of contents; you can read
the sections relevant to the data you gathered rather than the whole file at once.../../references/orchestra/mcp/tools-quick-ref.md — Orchestra MCP tool names and arguments.Use the Orchestra MCP if connected (list_pipelines, get_pipeline, list_task_runs, etc.). If it
isn't, fall back to the public REST API with $ORCHESTRA_API_KEY (often already in the env); for
reading git-backed pipeline YAMLs, $GITHUB_TOKEN. 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 — recommend connecting the MCP regardless, since it also powers the fix/triage skills.
REST base: https://app.getorchestra.io/api/engine/public — header
Authorization: Bearer $ORCHESTRA_API_KEY. If that key covers several workspaces, send
X-Orchestra-Account-Id: <workspace id> alongside it on every request, or the API refuses the
call rather than picking one.
Tell the user which workspace you'll review (the one list_accounts settled) and ask if they want
the full review or a subset of areas (e.g. "just alerting and cost"). Default to full. For
large workspaces (many pipelines), it's fine to offer to sample or focus on production pipelines
first — reading every pipeline definition has a cost, so say so rather than silently truncating.
Check which Orchestra MCP tools are actually connected before you start. Tool coverage varies
by server: some deployments expose only the list_*/runtime tools, while a single-pipeline read
tool (get_pipeline, or similarly named) may be absent. Every definition-level check — alerts,
secrets, concurrency, MetaEngine, set_outputs, branching, unique IDs — needs that read tool. If
it isn't present, don't jump straight to metadata-only — fall back to the REST metadata API from
Step 0 (GET /pipelines/{alias} with $ORCHESTRA_API_KEY) to pull full definitions directly; it
doesn't depend on MCP tool coverage at all, only on having an API key. Only if that's also
unavailable (no key, no REST access) does the review actually become metadata-only — say so up
front, tell the user those checks will come back Not assessed, and note that connecting a
server with definition reads (e.g. the remote Orchestra MCP) removes the need for the fallback.
Don't discover this halfway through and silently degrade.
Pull the evidence before judging anything. Batch the list_* calls first, then read definitions.
list_pipelines. Capture for each pipeline: name, alias, storageProvider
(GITHUB/GITLAB/etc. = Git-backed; ORCHESTRA = UI-only), paused, numTasks, schedule,
sensors, webhook, and latest-run metadata. This list alone drives several checks (env-duplication
by naming, Git-backing, schedule cadence, pause state).alias or pipeline_id). This is where most checks live: alerts, concurrency, MetaEngine/matrix,
task groups, ${{ ENV. }} refs vs hardcoded secrets, branching conditions, inputs, triggers/
sensors, set_outputs. Default scope for large workspaces: the live + Git-backed set — every
unpaused, recently-run pipeline plus every Git-backed (storageProvider != ORCHESTRA) one, since
that's what a real audit hinges on. Skip dormant TEST:/demo-named pipelines unless asked, and
say what you covered vs skipped. If the MCP read tool is absent, use the REST fallback
(Step 1) instead — only skip this step and mark the definition-level checks Not assessed if
neither the tool nor the REST fallback can reach pipeline definitions.list_pipeline_runs over the last 7 days (the metadata window; pass
time_from/time_to, since it defaults to 24 hours). Use this
to spot concurrency skips, over- or under-scheduling, and noisy failure rates. list_task_runs
/list_operations add integration-level detail (e.g. source-tool jobs, dbt models) when a check
needs it.list_assets. Assets with no Orchestra operation in 7+ days are a governance
signal that work may be running outside Orchestra; confirm with list_operations filtered to
the asset's integration, with time_from/time_to covering the last 7 days, before flagging.list_monitors for the monitors in order,
and get_incident_settings for whether incidents are on at all, whether warnings can raise them,
and how big the per-incident alert budget is. Read each monitor's match (which pipelines, assets,
integrations, connections or external-event labels it claims, and whether it is narrowed to
operation failures only), its group-by, whether it names an assignee, subscribers and
destinations, and whether it leaves Raise incidents for warnings on the workspace setting or
overrides it. A monitor claiming nothing relevant, or claiming dbt integrations but grouping by
task, is the signal for 5.8; monitors with no owner, and external-event monitors with no
destinations, are 5.9; the warnings setting, workspace-wide and per monitor, is 5.11. Skip this
if get_incident_settings shows incidents are turned off — say so rather than reporting every
monitor check as a failure.PYTHON task runs (list_task_runs / GET /task_runs?integration=PYTHON& page_size=200&time_from=<ISO>&time_to=<ISO>) and sum completedAt - startedAt; note count,
frequency, and max memory/cpu params. Skip this if Python isn't materially used.Two data-shape traps, learned the hard way:
list_* outputs. list_pipelines and list_assets can exceed the tool-output token
limit on real workspaces and get spilled to a file instead of returned inline. When that happens,
don't try to read the whole file into context — jq it. Probe shape first
(jq '.result | type, length'), then compute the signals you need with jq/scripts (counts by
storageProvider, paused, cron cadence, staleness) and only surface the aggregates. list_assets
is paginated (page/page_size/total) — note when you've only seen page 1 and treat it as a
sample.list_pipelines, schedule, sensors,
webhook, and triggerEvents come back as strings like "[]" or "{\"enabled\":true}", not
parsed arrays/objects. A naive "is it empty?" test counts "[]" as non-empty and reports every
pipeline as scheduled/sensored — a false positive. Parse them first (jq 'fromjson') before
judging. This is exactly the kind of silent miscount to guard against.Field names also vary between the YAML form and the stored API form (e.g. max_active vs
maxActive, set_outputs vs setOutputs). Match on the concept, not one exact spelling.
Work through references/best-practices-checklist.md against the data you gathered. For each
violation, record: the check, the specific offending pipeline/task/field (evidence by
location — pipeline → task → field/key name, not vague claims), the severity, and the recommendation
with its doc link. When a checklist item gives caveats or constraints for its recommendation
(a limit, a dependency on another setting, a "caveat to state", why something looks wrong but
isn't), carry each into the recommendation as one short line. They're what stop the user acting
on a half-right fix, so they survive even in a concise report or chat answer. A clean check is worth noting too — the report's value is partly the reassurance
that the basics are covered.
Never reproduce a secret value. For credential findings (e.g. checks 4.3/4.4 — a literal secret in a task param, or a sensitive value in a plain-text env var), cite only the location and the field/env-var name and state that it holds a literal secret. Do not copy the value, or any fragment of it, into your working notes or the report — not even a masked prefix. The location and name are enough to fix it; the value must never enter the context or conversation history. The same applies to any other field whose contents are themselves sensitive.
Be precise and avoid false positives. If you didn't gather the data a check needs (e.g. you sampled pipelines, or a 7-day window hid something), mark that check Not assessed rather than passing or failing it. A confident "I couldn't see this" beats a guess.
Several conventions live in areas the MCP doesn't expose — RBAC roles and groups, IP restrictions, API-key rotation, the secrets-manager backend, deployment model, and whether source tools (Fivetran, Airbyte, etc.) are actually paused at the source. These can't be auto-checked. List them in the report under Manual verification as a short checklist the user runs in the UI, rather than asserting pass/fail. The checklist file marks these items explicitly.
Turn the evaluation into a single Account health score out of 100 plus per-area sub-scores, so
the user has a headline number to track over time and a leaderboard of where to improve. Compute it
with the Scoring method below — it's a weighted pass-rate over the checks you could actually
assess, not a vibe. Report a coverage figure alongside it (how many assessable checks you
evaluated) so a metadata-only review is honest about the score being provisional. Never inflate the
score by counting [MANUAL] or Not assessed checks as passes — they're excluded, not free points.
Write the report to orchestra-account-review.md (in the working directory unless the user names a
path) using the template below, then give a short chat summary: the health score and band, the
top 3–5 fixes, and the path to the file.
Write for a customer who wants to act, not read. Keep it tight and scannable — the value is the ranked fix list, not exhaustive prose. Concretely:
Use this template:
# Orchestra account review — <workspace name or "current workspace">
_Reviewed <YYYY-MM-DD>. Read-only audit against Orchestra best practices._
## Health score: <NN>/100 — <band emoji + label, e.g. 🟡 Needs attention>
| Area | | Score | |
|------|--|------:|--|
| Pipeline design & structure | 🟢/🟡/🔴 | <NN>/100 | <bar> |
| Environments & promotion | 🟢/🟡/🔴 | <NN>/100 | <bar> |
| Version control, Git & CI/CD | 🟢/🟡/🔴 | <NN>/100 | <bar> |
| Connections & credentials | 🟢/🟡/🔴 | <NN>/100 | <bar> |
| Alerting & observability | 🟢/🟡/🔴 | <NN>/100 | <bar> |
| Performance & cost | 🟢/🟡/🔴 | <NN>/100 | <bar> |
_<a> of <b> checks assessed (<c>%). <Add "Provisional — metadata-only; neither the MCP nor the REST
fallback could reach pipeline definitions." if applicable.>_
<Render `<bar>` as a 10-cell meter, e.g. `██████████` filled to the score. Status dot is a quick-glance
read of the same score: 🟢 ≥75, 🟡 60–74, 🔴 <60 — no extra computation, just a color on the number that's
already there. Drop an area row with no assessable checks rather than scoring it 0. Pipelines reviewed:
<n of m>; note any sampling here.>
## Fix first
1. **<headline fix>** — <impact in a few words; the concrete action>. ([docs](<link>))
2. ...
<The 3–5 highest-impact items. This is the report's payload — make each one do-able.>
## Findings
| Severity | Finding (with evidence) | Fix |
|----------|-------------------------|-----|
| High | <what's wrong + the specific pipeline/task/field; concrete value only if non-sensitive> | <what to do> ([docs](<link>)) |
<Real findings only, sorted High → Low. Skip clean and Not-assessed checks here. For secret/
credential findings, name the location and field only — never put a secret value (or fragment) in
this table.>
## Working well
- <2–4 clean checks worth the reassurance>
## Check manually (not visible to the MCP)
- [ ] <RBAC · IP restrictions · secrets backend · API-key rotation · source-tool pausing>
_Not assessed (<n> checks): <areas, e.g. alerting, secrets, concurrency> — needs pipeline
definitions. <Drop this line entirely if coverage was full.>_
LIMIT on
SQL sensor checks, stale assets to bring under orchestration, set_outputs enabled where unused.Calibrate to impact and the user's stage — don't bury a High finding under a pile of Lows.
The health score is a severity-weighted pass-rate over the checks you actually assessed — same inputs as the quick checklist, turned into a number. Compute it deterministically so the same workspace always scores the same:
[MANUAL] check in the rubric that you evaluated.
Exclude [MANUAL] checks and any you marked Not assessed — they're neither numerator nor
denominator. ([MANUAL] checks never count; a check is only assessable if you had the data.)Bands for the headline label:
Keep the score honest: it measures the assessed surface, not the whole account. A 95/100 at 40% coverage means "what I could see looks great, but I couldn't see most of it" — say exactly that.
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
/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"./databricks-cost-driversRank Databricks jobs and pipelines by cost/runtime and surface the biggest cost drivers, with trend direction. Use when the user asks what's costing the most in Databricks, which jobs got more expensive, or wants a weekly/ monthly cost review.Other plugins' skills for the same job