- How you use it
- Always on in your project
- What it can do
- writes files
- What's inside
The option
| Option | ARules · v1.0.0dbt documentation review rules |
|---|---|
| How you use it | Always on in your project |
| What it can do | writes files |
| What's inside |
What this thread does
Give the dbt agent SQL and existing YAML, use the manifest for model dependencies, and require a cited expression for every column-lineage claim.
Do first: in an already configured dbt project, run dbt parse to refresh metadata.
Start with one model
1. Select a model with a known owner. Supply its SQL, relevant macros, source declarations and properties YAML, plus nearby descriptions that demonstrate the team's vocabulary. 2. With an already configured dbt project, run dbt parse to refresh metadata. This parses the project without running model queries; configuration still needs to be valid. See dbt Labs' parse reference. 3. Ask for model grain, business purpose, column descriptions, units, null meaning and dependencies. Require a table of output column, upstream expression, file reference and uncertainty before any proposed edits. 4. Review joins, aliases, aggregation, window functions and macro expansion. An upstream model edge does not establish which input column produced an output. Mark dynamic SQL, unresolved macros and ambiguous expressions unknown. 5. Approve a small properties-YAML diff. Preserve existing descriptions and tests. Have the data owner confirm business definitions; parsing cannot establish that “net revenue” means what finance intends.
Package you can try
Write this entire block, including its final newline, to .claude/rules/ww-dbt-documentation.md. These are original WhatWorks rules; no upstream files are copied. The package manifest includes read-only existence and exact-content checks. They verify installation, not the accuracy of an agent's documentation.
# dbt documentation review
Read SQL, macros and existing YAML before editing descriptions. Cite file and column expressions for each lineage claim. Treat manifest edges as model dependencies only. Mark unresolved lineage unknown. Preserve existing descriptions and tests. Propose YAML changes for human review.
Prompt for the agent
“Document this model in our existing style. First show its grain and a column-lineage evidence table with file references. Separate observed expressions from business assumptions. Show unresolved columns as unknown, then propose the smallest YAML diff for review.”
What the metadata establishes
The dbt Labs manifest reference describes first-order parent and child maps for resources. Compiled SQL is present only for executed nodes; a parse artifact is not a universal column-lineage engine. The docs command reference explains documentation generation and catalog inspection; warehouse-backed documentation generation is a separate step from writing descriptions.
dbt v1 1.12.6, checked 2026-10-28. This is a documentation workflow, not a version migration.
Evidence and common mistakes
dbt Labs' agent-skills repository lists a documentation-maintenance skill. That establishes an available workflow, not measured lineage correctness. In issue 14556, dbeatty10 describes project-local skill distribution; it is implementation context, not a trial of this rule file.
Evidence: none found for an independently measured end-to-end documentation-and-column-lineage trial. Avoid claiming the agent traced every field merely because the model graph looks complete. Do not replace a reviewed description with a fluent guess.
Limits
The rules have no SQL parser and cannot reconstruct hidden transformation logic. No warehouse execution or agent trial is claimed. Manifest coverage and compiled SQL availability vary with the command and project; business meaning still requires an owner.
Started from a post by @dbt Labs, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.