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.
@Merlin from now on, when someone in #data asks for a number, start from our dbt models and the metric definitions skill, then query only the curated Unity Catalog tables those models build, never raw tables. Reply with the number, the SQL you ran, the models you used and any caveats. If there is no agreed definition, say so and ask an analyst instead of inventing one. When an analyst corrects a definition, remember it for this channel.
- Starts whenSomeone asks
@Merlinin#datafor a number, such as last month's active workspaces Merlin worksClaude Code or Codex reads the dbt models and metric definitions, then queries only curated Unity Catalog tables in Databricks with read-only access
- You getThe number, the SQL, the models used and the caveats in the thread. Analyst corrections are saved to
#datamemory.
Tools
- Slack
- dbt
- Databricks
Capabilities
- Integrations
- Skills
- Memory
- Your agent's MCP
How it works
From a question in #data to a number you can check.
Mention
@Merlinin#datawith the number you need. Analysts can add context in the same thread.Claude Code or Codex reads the dbt models and metric definitions, then queries only curated Unity Catalog tables in Databricks with read-only access.
The reply gives the number, the SQL, the models it used and the caveats. When an analyst corrects a definition, Merlin saves it to
#datamemory.
Mention @Merlin in #data with the number you need. Analysts can add context in the same thread.
Claude Code or Codex reads the dbt models and metric definitions, then queries only curated Unity Catalog tables in Databricks with read-only access.
The reply gives the number, the SQL, the models it used and the caveats. When an analyst corrects a definition, Merlin saves it to #data memory.
Acme
Channels
general
eng
product
support-eng
data
finance
it-help
legal
Direct messages
Merlin
Nora
Leo
data
24
Today
Nora09:41
@Merlin how many active workspaces did we have in September? It's for the board deck.
Message #data
Before and after
Quick numbers stop coming from raw tables.
Without Merlin
Someone asks an analyst, who stops their own work to find the right model, write the query and explain it.
- 01Ask who knows in #data
- 02Wait for an analyst
- 03Find the right model
- 04Check the metric definition
- 05Write the query
- 06Run it on the curated table
- 07Compare with the dashboard
- 08Explain the caveats
- 09Answer the follow-up
With Merlin
One mention gets an answer on the agreed definitions, with the SQL to check it.
@Merlinin#dataAsked by Nora in the channelQueries curated tables on the data team's Mac miniCodex with dbt and Databricks
- Number, SQL and caveats in the threadCorrections saved to #data memory
Setup
Give your agent dbt and Databricks, then ask in #data.
Set these up once and anyone in #data can ask for a number. Memory is optional; notes saved in a public channel like #data can inform runs across the workspace.
- 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.
- 04Add Databricks to your agentYour agent's MCPConnect the Databricks MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 05Keep metric definitions in a skillSkills
Put your metric definitions, standard exclusions and which models count as curated in a shared skill, so every answer applies them the same way.
- 06Give Databricks read-only accessYour agent's MCP
Sign the Databricks MCP server in as a user or service principal that can only read the curated schemas. Unity Catalog permissions apply to every query it runs.
- 07Turn on memoryOptionalMemoryMemory is off by default. When an owner or admin turns it on, every run gets the facts your team saves in public Slack channels. A private channel also keeps its own store for its members.
- 08Paste 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 which definitions count, once.
@Merlin from now on, when someone in #data asks for a number, start from our dbt models and the metric definitions skill, then query only the curated Unity Catalog tables those models build, never raw tables. Reply with the number, the SQL you ran, the models you used and any caveats. If there is no agreed definition, say so and ask an analyst instead of inventing one. When an analyst corrects a definition, remember it for this channel.
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 queries the curated tables
- SteeringYour team steers the work in the thread
- ResultMerlin replies with the number and its SQL
Related use cases
More data tasks you can hand to Merlin.
- 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 - 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 - IntegrationsYour agent's MCP
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.
@Merlinin#dataA docs pull request linked 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.