Answering Natural Language Questions With Dbt

🏢Official
by dbt-labs · vlatest · Repository

This skill uses dbt to answer natural language questions about your data warehouse, providing instant insights and reducing query complexity.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add answering-natural-language-questions-with-dbt npx -- -y @trustedskills/answering-natural-language-questions-with-dbt
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "answering-natural-language-questions-with-dbt": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/answering-natural-language-questions-with-dbt"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to interpret and answer natural language questions directly against your data warehouse using dbt. It bridges the gap between human inquiry and raw SQL by automatically generating and executing queries based on conversational input.

When to use it

  • Ad-hoc Analysis: Quickly investigate trends or anomalies without writing complex SQL manually.
  • Stakeholder Reporting: Generate instant answers for business questions from non-technical team members.
  • Exploratory Data Science: Rapidly prototype hypotheses by querying large datasets through simple text prompts.
  • Automated Dashboards: Feed dynamic, conversational insights into reporting tools that require real-time data validation.

Key capabilities

  • Parses natural language queries into executable SQL statements.
  • Leverages dbt models and macros to ensure query accuracy and consistency.
  • Executes queries directly against the connected data warehouse.
  • Returns structured results based on the specific question asked.

Example prompts

  • "Show me the total revenue for each product category last quarter."
  • "Which customer segment has the highest churn rate in the past 30 days?"
  • "Compare average order values between the US and EU regions for January."

Tips & gotchas

Ensure your dbt models are up to date before asking questions, as the skill relies on the current state of your data definitions. While powerful for standard aggregations, complex logic may require refining your natural language prompt to be more specific about joins or filters.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
dbt-labs
Installs
52

🏢 Official

Published by the company or team that built the technology.