Dbt Test Creator

🌐Community
by jeremylongshore · vlatest · Repository

Automatically generates dbt test code based on your model descriptions, improving data quality and reliability.

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 dbt-test-creator npx -- -y @trustedskills/dbt-test-creator
2

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

~/.claude/settings.json
{
  "mcpServers": {
    "dbt-test-creator": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/dbt-test-creator"
      ]
    }
  }
}

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

About This Skill

What it does

This skill automatically generates dbt (data build tool) tests based on your data model definitions. It analyzes the structure of your models and creates corresponding test configurations to ensure data quality and consistency within your data warehouse. The generated tests cover aspects like uniqueness, not null constraints, and relationships between tables.

When to use it

  • New dbt projects: Quickly establish a baseline for testing when setting up a new dbt project.
  • Expanding existing models: Automate test creation as you add or modify data models in your existing dbt workflow.
  • Ensuring data quality: Proactively identify and prevent data errors by automatically enforcing constraints through generated tests.
  • Reducing manual effort: Eliminate the repetitive task of manually writing dbt tests for each model.

Key capabilities

  • Generates dbt test configurations.
  • Analyzes data model structures.
  • Creates tests for uniqueness, not null constraints, and relationships.
  • Automates test creation process.

Example prompts

  • "Create dbt tests for my 'customers' model."
  • "Generate tests based on the schema of my 'orders' table in dbt."
  • "Can you create a uniqueness test for the 'customer_id' column in my 'transactions' model?"

Tips & gotchas

  • Requires access to your dbt project and data models.
  • The generated tests may need adjustments based on specific business logic or edge cases not captured by the schema alone.

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
jeremylongshore
Installs
11

🌐 Community

Passed automated security scans.