CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

cassis/dbt-agent-readiness

Audit a dbt project for what an AI agent will get wrong if you point it at the data today: wrong metric, wrong table, missed rows, broken joins. Produces one evidence-backed report with blockers, verification queries, and a safe starting perimeter.

Quality

90%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

ground-truth.mdtest-fixtures/messy-jaffle-shop/

Messy-jaffle-shop: ground truth

Every intentional issue planted in this fixture, with its exact location. Use this to validate the dbt-agent-readiness skill: every issue should be found, no extras hallucinated.

Models inventory

  • 10 SQL models: stg_customers, stg_orders, stg_payments, stg_customer_events, int_order_payments, int_customer_orders, customers, orders, fct_revenue, rpt_daily_revenue
  • 3 YAML schema files: _stg_schema.yml, _int_schema.yml, _marts_schema.yml
  • 1 sources definition in _stg_schema.yml

Description coverage issues

Models without YAML schema entries

#ModelFileIssue
D1stg_customer_eventsmodels/staging/stg_customer_events.sqlNo YAML entry at all. 5 columns completely undocumented.
D2int_order_paymentsmodels/intermediate/int_order_payments.sqlNo YAML entry. 6 columns undocumented. Referenced by customers and orders.
D3rpt_daily_revenuemodels/marts/rpt_daily_revenue.sqlNo YAML entry. 7 columns undocumented. Downstream reporting model.

Missing column descriptions (in documented models)

#ModelColumnFile
D4stg_ordersorder_date_stg_schema.yml — no description
D5stg_ordersstatus_stg_schema.yml — no description
D6stg_ordersis_completed_stg_schema.yml — no description
D7stg_paymentsorder_id_stg_schema.yml — no description
D8customersfirst_name_marts_schema.yml — no description
D9customerslast_name_marts_schema.yml — no description
D10customersmost_recent_order_marts_schema.yml — no description
D11ordersorder_date_marts_schema.yml — no description
D12orderspayment_count_marts_schema.yml — no description
D13orderspayment_method_count_marts_schema.yml — no description
D14fct_revenueALL columns_marts_schema.yml — fct_revenue has zero descriptions for any column
D15int_customer_ordersorder_count_int_schema.yml — no description
D16int_customer_orderscompleted_order_count_int_schema.yml — no description

Low-quality descriptions

#ModelColumnDescriptionIssue
D17stg_ordersorder_id"The ID"Restates column name, adds no value
D18ordersamount"The amount"Restates column name, adds no value
D19ordersorder_id"Order ID"Restates column name
D20stg_customerscustomer_id"Primary key"Too generic, doesn't describe the business concept
D21stg_paymentspayment_id"Payment ID"Restates column name

Model without description

#ModelFileIssue
D22fct_revenue_marts_schema.ymlNo model-level description

Naming consistency issues

Same-concept-different-name (customer identifier)

#ModelColumn nameIssue
N1stg_customerscustomer_idStandard name
N2stg_orderscust_idAbbreviation variant
N3stg_customer_eventsuser_idDifferent concept name entirely
N4fct_revenuecust_idAbbreviation variant
N5int_customer_orderscustomer_idStandard name
N6customerscustomer_idStandard name
N7orderscustomer_idStandard name (aliased from cust_id in SQL)

All refer to the same business concept but use 3 different names: customer_id, cust_id, user_id.

Convention violations: model naming

#Issue
N8fct_revenue uses fct_ prefix but customers and orders in the same directory have no prefix. Inconsistent mart-layer naming convention.

Convention violations: date/timestamp suffixes

#ModelColumnsIssue
N9int_customer_ordersfirst_order_date vs last_order_atMixed _date and _at suffixes for temporal columns in the same model
N10stg_customerssignup_dateUses _date
N11stg_customer_eventsevent_timestampUses _timestamp — a third convention

Convention violations: boolean prefixes

#ModelColumnsIssue
N12stg_ordersis_completedUses is_ prefix
N13stg_customer_eventshas_convertedUses has_ prefix
N14fct_revenuehas_refundUses has_ prefix

Mixed is_ and has_ for booleans. While semantically different, inconsistency within a project is a signal.

Same column name, ambiguous meaning

#ColumnModelsIssue
N15amountstg_payments.amount (per-payment USD), orders.amount (total order USD)Same name, different granularity. An agent would not know which to use for "revenue."
N16order_countint_customer_orders.order_count, fct_revenue.order_count, rpt_daily_revenue.daily_ordersSame concept with different names and granularity across models

Join path clarity issues

Missing relationship tests

#ModelColumnRefs toIssue
J1stg_orderscust_idstg_customers.customer_idNo relationships test declared, and the name mismatch (cust_id vs customer_id) makes the implicit join even harder for an agent to discover
J2stg_paymentsorder_idstg_orders.order_idHas not_null test but no relationships test
J3int_order_paymentsorder_idstg_payments.order_idNo YAML entry at all, so no relationship test possible
J4int_customer_orderscustomer_idstg_orders.cust_idNo relationship test; also the join involves a name mismatch (customer_id vs cust_id)

Missing primary key tests

#ModelExpected PKIssue
J5ordersorder_idNo unique or not_null tests
J6fct_revenuecomposite (revenue_date, cust_id)No PK tests at all. No tests of any kind.
J7rpt_daily_revenuerevenue_dateNo YAML at all
J8int_order_paymentsorder_idNo YAML at all

ref() without declared relationships

#SQL fileref()Issue
J9customers.sqlref('stg_orders')refs stg_orders but there's no relationship test connecting these models
J10customers.sqlref('int_order_payments')refs a model that has no YAML entry at all
J11fct_revenue.sqlref('stg_orders')No relationship declared
J12rpt_daily_revenue.sqlref('fct_revenue')Neither model has relationship tests

Test coverage issues

Models with zero tests

#ModelIssue
T1fct_revenueHas YAML entry but zero tests on any column
T2ordersHas YAML entry but zero tests on any column
T3int_order_paymentsNo YAML entry, so no tests
T4stg_customer_eventsNo YAML entry, so no tests
T5rpt_daily_revenueNo YAML entry, so no tests
T6int_customer_ordersHas YAML entry but zero tests

Categoricals without accepted_values tests

#ModelColumnIssue
T7stg_ordersstatusNo accepted_values test (stg_payments.payment_method has one, inconsistent)

Documentation-to-schema drift (stale YAML)

#ModelIssue
S1customersYAML documents a loyalty_tier column that does not exist in the SQL model

SQL logic issues (bonus tier)

These issues are not intentionally planted but are genuine bugs/risks present in the fixture. They should be counted as true positives if found.

#IssueFileDetail
X1fct_revenue.has_refund broken SQL referencemodels/marts/fct_revenue.sqlhas_refund appears in SELECT and GROUP BY but is not defined in any CTE or source table. Query would fail to build.
X2rpt_daily_revenue self-referencing aliasmodels/marts/rpt_daily_revenue.sqlSQL references aliases defined in the same SELECT statement. Fails on most warehouses.
X3Model overlap clusters (revenue question)Multiplefct_revenue, orders, and rpt_daily_revenue can all answer "what is our revenue?" with no disambiguation
X4Fan-out risk on int_order_payments joinsint_order_payments -> customers, ordersNo unique test on join column, two downstream models join to it
X5Source raw_refunds orphaned_stg_schema.ymlSource defined but not referenced by any model
X6int_customer_orders.last_order_at timestamp vs date_int_schema.ymlColumn name uses _at (implying timestamp) but SQL produces a date
X7stg_payments.amount unit contradiction_stg_schema.yml vs SQLModel description says "cents" but column description says "USD" (converted from cents)
X8Abbreviation inconsistency (cc vs full forms)Multiplecc_revenue vs credit_card in descriptions
X9customers LEFT JOIN without COALESCEmodels/marts/customers.sqlLEFT JOIN to int_order_payments, NULLs propagate silently to order_count, amount

Summary counts

CategoryCount
Models without YAML3
Columns missing descriptions~25+
Low-quality descriptions5
Naming inconsistencies16
Missing relationship tests4
Missing PK tests4
Models with zero tests6
Stale YAML (phantom column)1
ref() without relationship4
SQL logic issues (bonus)9
Total67

CHANGELOG.md

LICENSE

README.md

report-template.md

requirements.txt

SKILL.md

tile.json

TROUBLESHOOTING.md