Debug a failing dbt model without thrashing
何时使用: dbt run just failed with a cryptic error and you don't know if it's schema, lineage, or SQL.
步骤
-
Feed Claude the error + modelUse debugging-dbt-errors. Here's the stderr and models/marts/fct_orders.sql. Diagnose the root cause — don't guess.✓ 已复制→ Claude reads upstream refs, diagnoses in order: schema → lineage → SQL
-
Apply the fix and verifyApply the fix and run dbt build --select fct_orders+. Show me the before/after row counts.✓ 已复制→ Clean run + row count verification
结果: Green CI plus a note of the root cause so it doesn't recur.
注意事项
- Fixing a symptom downstream when the bug is upstream — The skill enforces an upstream-first diagnosis; don't skip the lineage step