Data
Document a table nobody understands
Ask Merlin in #data to explain a confusing table. It writes descriptions for the model and every column from the code and the data, and opens a pull request.
@Merlin from now on, when someone in #data asks you to document a table, read the dbt model that builds it, its upstream models and a sample of its rows. Write a description for the model and each column in its YAML file and open a pull request linked in the thread. Mark any column whose meaning you inferred rather than read in the code, and don't change the model's SQL.
- Starts whenSomeone asks
@Merlinin#datawhat a table and its columns mean Merlin worksClaude Code or Codex reads the dbt model's SQL and its upstream models, and previews sample rows with dbt
- You getA pull request adding the model and column descriptions, linked in the thread
Tools
- Slack
- dbt
- GitHub
Capabilities
- Integrations
- Your agent's MCP
How it works
From a confusing table to a pull request that documents it.
Mention
@Merlinin#datawith the table you want explained.Claude Code or Codex reads the dbt model that builds the table and its upstream models, and previews sample rows with dbt.
A pull request adds a description for the model and every column to its YAML file and is linked in the thread. Inferred meanings are marked, and the SQL stays as it is.
Mention @Merlin in #data with the table you want explained.
Claude Code or Codex reads the dbt model that builds the table and its upstream models, and previews sample rows with dbt.
A pull request adds a description for the model and every column to its YAML file and is linked in the thread. Inferred meanings are marked, and the SQL stays as it is.
Acme
Channels
general
eng
product
support-eng
data
finance
it-help
legal
Direct messages
Merlin
Sam
Leo
data
24
Today
Sam15:12
@Merlin what is int_account_rollup and what do its columns mean? Three dashboards use it and nobody on Growth can explain it.
Message #data
Before and after
A table gets explained once, where people look for it.
Without Merlin
An analyst traces the model back through its upstream SQL and queries the data to work out what each column means.
- 01Get asked what a table means
- 02Open the model
- 03Trace each upstream model
- 04Preview sample rows
- 05Check which columns are ever set
- 06Ask who built it
- 07Describe each column
- 08Open a pull request
- 09Link it in the thread
With Merlin
One mention gets the table documented in the dbt project, with guesses marked.
@Merlinin#dataAsked by anyone who uses the tableReads the model and its dataCodex with dbt on the data team's Mac mini
- Docs pull request in the threadInferred columns marked
Setup
Give your agent dbt, keep the project on a machine, then ask in #data.
Set these up once and anyone in #data can ask for a table to be documented.
- 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
- 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 03Add dbt to your agentYour agent's MCPConnect the dbt MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Install the GitHub appIntegrationsPick the repositories Merlin can access, so it can read and link the pull requests there. Pushes use the machine owner's own Git access.
- 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 06Let dbt preview rowsRuntime
Sample rows come from
dbt show, so the dbt profile on that machine needs a target that can read the table. A read-only role is enough. - 07Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.
Prompt
Tell Merlin how to document a table, once.
@Merlin from now on, when someone in #data asks you to document a table, read the dbt model that builds it, its upstream models and a sample of its rows. Write a description for the model and each column in its YAML file and open a pull request linked in the thread. Mark any column whose meaning you inferred rather than read in the code, and don't change the model's SQL.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin in Slack
- IntegrationThe Slack app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex reads the model and its data
- SteeringYour team steers the work in the thread
- ResultMerlin links the docs pull request
Related use cases
More data tasks you can hand to Merlin.
- IntegrationsSkillsMemoryYour agent's MCP
Data
Answer a data question on agreed definitions
Ask Merlin for a number in #data and get it from your agreed dbt models instead of raw tables. The reply shows the SQL, the models used and the caveats.
@Merlinin#dataThe number with its SQL and caveats - IntegrationsYour agent's MCP
Data
Add a new metric as a dbt model
Delegate a metric request in Linear to Merlin. It writes the dbt model with tests and docs, runs it in dev and links the pull request on the issue.
Metric request delegated to MerlinPull request linked on the issue - IntegrationsMemoryYour agent's MCP
Data
Explain why two dashboards disagree
Ask Merlin in #data why two dashboards show different numbers. You get the difference in how each one counts and the numbers on both sides, with the SQL.
@Merlinin#dataThe difference and both numbers in the thread
Bring your coding agents into the tools your team already uses.
Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.