dbt-labs avatar

Running Dbt Commands

This handles the messy reality of running dbt commands: picking the right CLI flavor (Core, Fusion, or Cloud), formatting selectors with graph operators, and structuring parameters so they actually work. It defaults to `dbt build` over `dbt run` because testing alongside execution catches issues immediately, always uses `--select` to avoid accidentally running your entire project, and includes `--quiet` with error options to reduce noise while catching selector typos. The Quick Reference section is legitimately useful if you forget the syntax for inline queries or how to pass variables as JSON strings. Built by dbt Labs, so the opinions here (like always using selectors, always building instead of just running) reflect how the tool is meant to be used in practice.

skills.sh installs
1.1K
GitHub stars
759
last updated
Aug 21, 2026

Install

$ npx -y skills add dbt-labs/dbt-agent-skills --skill running-dbt-commands --agent claude-code

Installs into .claude/skills of the current project.

Files

Running dbt Commands

Preferences

  1. Use MCP tools if available (dbt_build, dbt_run, dbt_show, etc.) - they handle paths, timeouts, and formatting automatically
  2. Always use build — even when users say "run" - When a user asks to "run" a model, recommend dbt build instead. build = run + test in one step, so it catches data quality issues immediately. dbt run alone is almost never the right answer during development.
  3. Always use --quiet with --warn-error-options '{"error": ["NoNodesForSelectionCriteria"]}' to reduce output while catching selector typos
  4. Always use --select - never run the entire project without explicit user approval

Quick Reference

# Standard command pattern
dbt build --select my_model --quiet --warn-error-options '{"error": ["NoNodesForSelectionCriteria"]}'

# Preview model output
dbt show --select my_model --limit 10

# Run inline SQL query
dbt show --inline "select * from {{ ref('orders') }}" --limit 5

# With variables (JSON format for multiple)
dbt build --select my_model --vars '{"key": "value"}'

# Full refresh for incremental models
dbt build --select my_model --full-refresh

Sponsors

Details

Repository
github.com/dbt-labs/dbt-agent-skills
Categories
Code Review & Quality, AI & Agent Building, CLI & Terminal
First seen
Jun 3, 2026

More from dbt-labs/dbt-agent-skills

All 13
1github avatararize-annotationgithub/awesome-copilotCreates and manages annotation configs (categorical, continuous, freeform label schemas) and annotation queues (human review workflows) on Arize. Applies human 1.1Kskills.sh installs
2posit-dev avatarcritical-code-reviewerposit-dev/skillsRigorously review code or pull requests for correctness, security, accessibility, maintainability, tests, and edge cases. Use when users request a critical code1.1Kskills.sh installs
3paulrberg avatarbiome-jspaulrberg/agent-skillsThis skill should be used when the user asks to "configure Biome", "extend biome config", "set up BiomeJS", "add biome overrides", "biome lint-staged", "fix bio1.1Kskills.sh installs
4vercel-labs avataryamlvercel-labs/json-renderYAML wire format for json-render with streaming parser, prompt generation, and AI SDK transform. Use when working with @json-render/yaml, YAML-based spec stream1.1Kskills.sh installs
5eronred avatarapp-rejection-recoveryeronred/aso-skillsWhen the user's app or update was rejected by Apple App Review or Google Play Review and they need to diagnose why, fix it, and resubmit fast. Use when the user1.1Kskills.sh installs
6frames-engineering avatarwebshframes-engineering/skillsA shell for the web. Navigate URLs like directories, query pages with Unix-like commands. Activate on `websh` command, shell-style web navigation, or when treat1.1Kskills.sh installs