kilo-org/kilo-marketplace/running-dbt-commands
Claude Code and agent skill by kilo-org/kilo-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Formats and executes dbt CLI commands, selects the correct dbt executable, and structures command parameters. Use when running models, tests, builds, compiles, or show queries via dbt CLI. Use when unsure which dbt executable to use or how to format command parameters.
Install
npx vskill@latest install kilo-org/kilo-marketplace/running-dbt-commandsSKILL.md
The same SKILL.md was published earlier as kilo-org/kilo-marketplace/running-dbt-commands.
Running dbt Commands
Preferences
- Use MCP tools if available (
dbt_build,dbt_run,dbt_show, etc.) - they handle paths, timeouts, and formatting automatically - Use `build` instead of `run` or `test` -
testdoesn't refresh the model, so testing a model change requiresbuild.builddoes arunand atestof each node (model, seed, snapshot) in the order of the DAG - Always use `--quiet` with
--warn-error-options '{"error": ["NoNodesForSelectionCriteria"]}'to reduce output while catching selector typos - Always use `--select` - never run the entire project without explicit user approval
Quick Reference
dbt CLI Flavors
Three CLIs exist. Ask the user which one if unsure.
| Flavor | Location | Notes | |
|---|---|---|---|
| dbt Core | Python venv | pip show dbt-core or uv pip show dbt-core | |
| dbt Fusion | ~/.local/bin/dbt or dbtf | Faster and has stronger SQL comprehension | |
| dbt Cloud CLI | ~/.local/bin/dbt | Go-based, runs on platform |
Common setup: Core in venv + Fusion at ~/.local/bin. Running dbt uses Core. Use dbtf or ~/.local/bin/dbt for Fusion.
Selectors
Always provide a selector. Graph operators:
| Operator | Meaning | Example | |
|---|---|---|---|
model+ | Model and all downstream | stg_orders+ | |
+model | Model and all upstream | +dim_customers | |
+model+ | Both directions | +orders+ | |
model+N | Model and N levels downstream | stg_orders+1 |
Resource type filter:
Valid types: model, test, unit_test, snapshot, seed, source, exposure, metric, semantic_model, saved_query, analysis
List
Use dbt list to preview what will be selected before running. Helpful for validating complex selectors.
Available output keys for `--output json`: unique_id, name, resource_type, package_name, original_file_path, path, alias, description, columns, meta, tags, config, depends_on, patch_path, schema, database, relation_name, raw_code, compiled_code, language, docs, group, access, version, fqn, refs, sources, metrics
Show
Preview data with dbt show. Use --inline for arbitrary SQL queries.
Important: Use --limit flag, not SQL LIMIT clause.
Variables
Pass as STRING, not dict. No special characters (\, \n).
Analyzing Run Results
After a dbt command, check target/run_results.json for detailed execution info:
Key fields:
status: success, error, fail, skipped, warnexecution_time: seconds spent executingcompiled_code: rendered SQLadapter_response: database metadata (rows affected, bytes processed)
Defer (Skip Upstream Builds)
Reference production data instead of building upstream models:
Flags:
--defer- enable deferral to state manifest--state <path>- path to manifest from previous run (e.g., production artifacts)--favor-state- prefer node definitions from state even if they exist locally
Static Analysis (Fusion Only)
Override SQL analysis for models with dynamic SQL or unrecognized UDFs:
Common Mistakes
| Mistake | Fix | |
|---|---|---|
Using test after model change | Use build - test doesn't refresh the model | |
Running without --select | Always specify what to run | |
Using --quiet without warn-error | Add --warn-error-options '{"error": ["NoNodesForSelectionCriteria"]}' | |
Running dbt expecting Fusion when we are in a venv | Use dbtf or ~/.local/bin/dbt | |
Adding LIMIT to SQL in dbt_show | Use limit parameter instead | |
| Vars with special characters | Pass as simple string, no \ or \n |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dbt/skills/running-dbt-commands/SKILL.md
Popularity
- Repository stars
- 153
- Repository forks
- 77
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kilo-org/kilo-marketplace/running-dbt-commands)