/orchestra:configure-dbt-source-freshnessfrom orchestra
Configures dbt source freshness thresholds (warn_after/error_after) and loaded_at_field/loaded_at_query in sources YAML for Orchestra state-aware orchestration. Handles warehouse-specific details for Snowflake, BigQuery, Databricks, DuckDB, and others.
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.
Author dbt source freshness so Orchestra can tell which sources have new data and skip
downstream models when they don't. This is one half of state-aware orchestration (SAO); the other
is build_after (see the configure-dbt-build-after skill). This skill writes config only —
it does not run dbt or trigger pipelines. It explains how to verify instead.
models/staging/_sources.yml, sources.yml, or a dbt sources: block are in play.warn_after/error_after, and an explicit loaded_at_field/loaded_at_query
where the warehouse needs one) is added to the dbt sources YAML, correct for the warehouse.use_state_orchestration: true is set on the Orchestra dbt Core task (so the config is
actually consumed). No dbt source freshness command is added to the pipeline — once SAO is on,
Orchestra runs the freshness check itself. This skill only authors the config.Load these before editing — the warehouse file is the part most often wrong if guessed:
../../references/orchestra/dbt-sao/source-freshness.md — freshness schema + the dbt-version
placement trap (config: block in 1.9+, loaded_at_field in 1.10+).../../references/orchestra/dbt-sao/warehouses/<warehouse>.md — for the detected warehouse.../../references/orchestra/dbt-sao/orchestra-task.md — enabling SAO on the task.Detect the warehouse. Read profiles.yml (the type: — snowflake, bigquery,
databricks, duckdb/MotherDuck, redshift, fabric, postgres) or ask. The warehouse
decides how freshness can be computed, and this is narrower than dbt's own metadata support
— judge it by Orchestra SAO's matrix, not dbt's. Read the matching warehouses/*.md
(other.md for anything unlisted).
Infer the freshness signal — actively, per source. Default to figuring it out, not asking. For each source table, work down this order and use the first that applies; only leave freshness unset if the user told you to, or if you genuinely can't locate any usable signal:
loaded_at_field. Look first at the columns the
source already declares in YAML, then — if your client can run read-only warehouse queries —
list the table's columns (information_schema.columns, describe table, etc.) and pick the
best load/sync timestamp. Strong candidates: loaded_at, _loaded_at, _synced_at,
_fivetran_synced, _airbyte_emitted_at, ingested_at, etl_loaded_at, dbt_loaded_at.
Weaker fallbacks (event time, not load time): updated_at, created_at — usable, but
confirm with the user since they can lag the actual load. (Large/partitioned table → add a
filter or a bounded loaded_at_query for cost.)loaded_at_query so dbt reads it cheaply instead of scanning data. Available
where simple: Snowflake (INFORMATION_SCHEMA … LAST_ALTERED) and BigQuery
(__TABLES__.last_modified_time) — see those warehouse files for the exact query. Confirm the
view/column is reachable; warn the user it reflects any change, not just loads.loaded_at_field entirely; Orchestra infers
freshness via DESCRIBE HISTORY. On dbt 2.x that Orchestra fallback isn't what runs —
implicit freshness comes from dbt's own metadata freshness instead — so don't carry the
"Databricks can omit it" shortcut onto a 2.x project without checking (see the README).Net: try to populate freshness for every source you can from warehouse metadata/columns; empty is the exception (user opt-out or no signal found), not the default.
Check the dbt version — it decides two things. Read require-dbt-version in
dbt_project.yml, dbt --version, or the dbt packages installed for the task.
>=2,<3).
On dbt 2.x the project installs pip install dbt-orchestra "dbt-oss>=2,<3" and must not
have dbt-core or adapter packages alongside it — flag that if you see both. Below 1.10 is
outside what Orchestra supports: say so instead of authoring config that may not be consumed.freshness under config:; 1.10+ and 2.x → loaded_at_field under
config: too. If the project already uses an older root-level form, stay consistent with
it. (See the reference.)The major version also changes what happens when you omit loaded_at_field/loaded_at_query
(step 2) — so settle the version before choosing the freshness signal, not after.
Find the sources. Locate existing sources: YAML (often models/**/_sources.yml or
models/**/src_*.yml). If sources aren't defined yet, that's a prerequisite — define them or
tell the user. Read a neighbouring source file to match the project's naming and layout.
Author freshness. Add warn_after/error_after based on each source's real load cadence
plus headroom (see the reference for picking thresholds). Add the freshness signal chosen in
step 2 (loaded_at_field, a metadata loaded_at_query, or — Databricks only — neither). Add a
filter for soft-deletes or partition pruning where it helps cost. Don't invent tight
thresholds you can't justify — leave a marked placeholder and explain it if cadence is unknown.
Ensure SAO is enabled on the Orchestra task. use_state_orchestration: true is the SAO
master switch — it makes Orchestra consume all SAO config (freshness and build_after),
not a freshness-specific setting. Find the dbt Core task (integration: DBT_CORE,
integration_job: DBT_CORE_EXECUTE) and make sure it's on. Follow orchestra-task.md for the
Git-backed (edit YAML + commit) vs Orchestra-backed (validate + update_pipeline, falling back
to migrate_pipeline on a 422) distinction. If it's already enabled (e.g. build_after was set
up first), just confirm it — don't re-toggle. Don't touch the task's commands — flipping
the toggle is all that's needed; the existing dbt build is fine. Orchestra runs the freshness
check for you, so do not prepend dbt source freshness or change the dbt commands.
Hand off. Report: files changed, the freshness signal used per source (real column vs metadata query) and why, thresholds (and any placeholders to tune), whether SAO was newly enabled, and how to verify (next step).
Tell the user how to confirm, rather than executing. This is a local sanity check, not a pipeline step — don't add it to the Orchestra dbt task:
dbt source freshness # -> target/sources.json
dbt source freshness --select "source:<name>.<table>"
A healthy result shows state: pass with a recent max_loaded_at. On the next Orchestra run with
SAO enabled, models below a stale source are skipped.
dbt, never start_pipeline, never mutate
the warehouse. You may run read-only warehouse inspection (list columns, check a
last-modified metadata view) to infer the freshness signal — that's expected, not a violation.loaded_at_field under Orchestra SAO
(metadata inference). On Snowflake, BigQuery, MotherDuck/DuckDB and others, an explicit
loaded_at_field/loaded_at_query is required — don't leave it off. On dbt 2.x the implicit
path is dbt's own metadata freshness rather than Orchestra's fallbacks, so the per-warehouse
answer is dbt's, not Orchestra's — an explicit field stays the safe default either way. Leave a
source's freshness unset only on user opt-out or when no load column / simple metadata can be
located.use_state_orchestration is SAO — not Slim CI. Don't conflate them.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./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