FormingRulesclaude-codepublished fresh until

dbt: document models without guessing column lineage

Summary As of October 2026, give the agent model SQL, existing descriptions and a fresh manifest; require expression-level evidence for column lineage and human review of business meaning. Refresh metadata with dbt parse.

Not for Claude Code generating dbt models; see agent-writes-good-dbt-models-context-checks-skills.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ARules · v1.0.0dbt documentation review rules
How you use itAlways on in your project
What it can dowrites files
What's inside
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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# dbt: document models without guessing column lineage
Summary: As of October 2026, give the agent model SQL, existing descriptions and a fresh manifest; require expression-level evidence for column lineage and human review of business meaning. Refresh metadata with `dbt parse`.

## Options
- A · dbt documentation review rules · early, no verdict yet · writes files
Copy for agent
get the whatworks thread dbt-agent-documentation-column-lineage and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread dbt-agent-documentation-column-lineage

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · dbt documentation review rules

Original WhatWorks review rules, provided in full in the thread. Installing writes one project file; it does not install or execute a runtime.

Format
Rules
Source
—
Pinned
v1.0.0 · sha256:b095e
Content hash
b095e5b6bf9bbad9
Audit
scan passed
Can do
writes files
Works with
claude-code
Check
The project rule file exists.; The installed rules exactly match the complete reviewed text.
Author
@WhatWorks
Kudos
0

This package has no public source link yet.

Are you @WhatWorks? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package ww-dbt-documentation-review-rules before installing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp