/drt:drt-troubleshootfrom drt
Walks a drt setup through a top-to-bottom diagnostic checklist when the failing layer isn't obvious. Use for vague symptoms like 'nothing happens' or to verify a fresh setup end-to-end.
Ships in drt. 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.
Systematically isolate which layer of a drt setup is failing, then hand off the specific fix.
/drt-debug is reactive — the user has an error message and wants it fixed.
/drt-troubleshoot is for when the symptom is vague ("nothing happens",
"the data looks wrong", "I just set this up and want to confirm it works").
Walk the layers top to bottom, confirming each one is green before
moving on. The first layer that fails is where the problem lives — stop
there and fix it (or invoke /drt-debug for a known error pattern).
Run these in order. Each step has a "✅ green when" condition — only proceed to the next step once the current one is green.
drt doctor
Checks Python version, the ~/.drt/profiles.yml file, the active
drt_project.yml, installed extras, and common env-var gotchas (v0.7+).
drt-core[<extra>] for your connector;
~/.drt/profiles.yml not found (run drt init); wrong Python (<3.10).drt profile list # confirm the profile in drt_project.yml exists
drt profile show <name> # inspect it (secrets masked)
echo "$YOUR_PASSWORD_ENV" # confirm the referenced env vars are actually set
drt plugins list # installed extensions and isolated load failures
drt_project.yml exists in
profiles.yml, and every ${VAR} / *_env it references resolves to a
non-empty value in the shell.drt run --profile <name>
or DRT_PROFILE to override); env var unset or exported in a different
shell; secret hardcoded in YAML instead of an env reference (drt validate
flags this since v0.7.5).aws-sm://, gcp-sm://, and vault:// values in
*_env fields are provider references, not shell variables. Check the
matching optional extra plus IAM/path when one does not resolve.drt profile test <name> # round-trip the SOURCE connection (SELECT 1)
drt validate # also surfaces connection issues where supported
drt profile test is the cheapest way to separate "can't reach the
warehouse" from "the data is wrong" — it runs a real connection check against
the source. For the destination side, drt validate exercises a live
connection where supported; otherwise a one-off manual check works (psql /
curl -X POST <url> / the warehouse console).
GOOGLE_APPLICATION_CREDENTIALS unset or pointing at
a stale keyfile; for non-US BigQuery datasets, a missing location.drt validate # JSON-Schema + semantic checks on every sync YAML
drt list # confirm your sync is actually discovered
drt validate reports 0 errors and drt list shows the
sync you expect.syncs/; YAML indentation; a
model: ref('table') pointing at a table that doesn't exist; an
upsert/mirror mode without the required upsert_key; deprecation
warnings (v0.7.2+) that will become errors.incremental_strategy: diff requires
mode: upsert|mirror, no cursor_field, a destination upsert_key, and a
Postgres/Snowflake/Databricks/BigQuery source. state.backend: warehouse
requires connection_profile; both use that profile's managed_schema.drt run --select <name> --dry-run # config parses, rows extract, nothing is written
drt run --select <name> --dry-run --diff # record-level preview for queryable destinations (v0.7.1+)
This is the single most useful step for "the sync runs but the data looks wrong" — it shows exactly what would be written without touching the destination.
For sparse records, omission is meaningful: an upsert preserves a missing
field, replace displays <default>, and append-only output is labelled INSERT.
An explicit null remains a real null write (#1138).
--diff look correct.model filters
everything out, or mode: incremental already consumed the watermark —
inspect it with drt state show <name>, which also covers remote
watermark backends; probe a value with --cursor-value, or start over
with drt run --full-refresh when the stored cursor is wrong rather than
merely advanced, v0.8.4+); {{ row.field }}
referencing a column the source doesn't return (use tojson_safe for
datetime/Decimal/UUID, v0.7.6+); wrong column names in the template.managed_schema,
prevent same-sync overlap, and remember --limit leaves the baseline
unchanged.drt run --select <name> --limit 10 # sampled real send (#774) — load ≤10 rows, eyeball the destination
drt run --select <name> --verbose # row-level error detail
drt status # what actually happened
drt status --output json # machine-readable, for CI
--limit N really loads at most N rows (Census/Hightouch "test with sample
records"), so you can inspect them in the destination UI before opening the
tap. The watermark never advances on a sampled run, and it's refused for
mode: mirror / replace (a sampled mirror would delete the rows it skipped).
For a snapshot-diff upsert, the snapshot baseline also never advances on a
limited run.
When verifying a whole project, add --fail-fast (#775) so a systemic failure
(expired credential, warehouse down) stops after the first sync instead of
burning quota — skipped syncs report status: "skipped" in --output json.
result.success equals the dry-run row count and
result.failed is 0.rate_limit.requests_per_second;
HubSpot max 9/s, GitHub Actions 5/s); per-row auth/permission errors
(on_error: skip to see the full failure count instead of stopping at the
first); partial success where some rows fail validation downstream.destination.rate_limit_key to the stable,
non-secret quota identity when one vendor quota spans several hosts or
separate accounts share one host.column mismatch: the first batch fixes the positional
column union. Normalize sparse records or raise sync.batch_size so a
later-only field appears in batch one; missing known fields become blanks.sync.dlq.enabled: true + on_error: skip, v0.7.9+) so failed records
persist to .drt/dlq/<sync>.jsonl instead of being dropped. drt status
shows the queue depth; drt retry <sync> re-sends just the failures once
you've fixed the root cause. See docs/guides/dead-letter-queue.md.drt retry replays records from
the DLQ; drt run --failed (#773) re-runs the syncs whose last status
wasn't success — the sync-level recovery loop after you've fixed config.
It exits 0 (with a note) when nothing failed, so it's safe in CI.alerts.on_failure never fires. alerts.on_degraded
(v0.8.3+) adds thresholds on dlq_depth, row_errors_pct,
duration_seconds, and rows_extracted ({eq: 0} catches the empty
source) — e.g. dlq_depth: {gt: 100} pages once the backlog outgrows what
a single drt retry will clear. --output json reports which conditions
tripped in conditions_tripped, so CI can gate on it without a paging
target. See docs/guides/alerts.md.drt test --select <name> # freshness / unique / accepted_values tests, if defined
drt test --unit --select <name> # offline unit_tests fixtures through transforms
unique /
freshness tests fail — the data moved but isn't what was expected. This
usually points back to the source query (step 5), not the sync itself.target/drt/run_results.json even when the
console used text mode. It omits raw exception text and is not written for a
preflight failure before sync selection; --target-path relocates it./drt-debug for the known-pattern
fix.drt doctor, the sync YAML,
drt_project.yml, and drt run --verbose --output json output, and open a
discussion / issue with that bundle.docs/llm/CONTEXT.md — architecture and key conceptsdocs/llm/API_REFERENCE.md — all config fieldsdocs/connectors/ — per-connector auth, sync modes, and gotchas/drt-debug — the companion skill for fixing a specific error once this
checklist has localised itWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub drt-hub/drt --plugin drt6 skills in this plugin
/drt-create-syncGenerate a drt sync YAML configuration file. Use this skill whenever a user wants to create a new drt sync, connect a data warehouse table to an external service, or set up a Reverse ETL pipeline with drt.
/drt-debugDebug and fix a failing drt sync. Use this skill whenever a user reports errors running drt, asks why a sync is failing, or needs to diagnose drt configuration problems (auth errors, rate limits, template errors, etc.).
/drt-initGuide a user through initializing a new drt project. Use this skill when a user is setting up drt for the first time, asks how to get started with drt, or needs help configuring their data warehouse connection.
/drt-migrateHelp migrate from Census, Hightouch, Polytomic, or custom scripts to drt. Use this skill when a user wants to replace their existing Reverse ETL tool with drt, or asks how to replicate a sync they had in another tool.
/drt-review-syncReview what a drt sync is about to change and apply it only after a human approves. Use this skill whenever a user asks to preview, review, approve or safely apply a sync, especially one that deletes rows (mirror/replace), updates many records, or writes to a production CRM. Uses drt_plan / drt_apply (MCP) or `drt plan` / `drt apply` (CLI).
Other plugins' skills for the same job