g1joshi/agent-skills/dbt
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert dbt (data build tool) assistance covering SQL modeling, Jinja macros, tests, documentation, and semantic layer. Use when building analytics engineering pipelines on BigQuery, Snowflake, or PostgreSQL.
Install
npx vskill@latest install g1joshi/agent-skills/dbtSKILL.md
The same SKILL.md was published earlier as g1joshi/agent-skills/dbt.
dbt (Data Build Tool)
dbt manages data transformation in the warehouse using SQL. v2.0 introduces the Fusion Engine (Rust) for performance.
When to Use
- Analytics Engineering & Data Transformations: Transforming raw data inside modern cloud warehouses (Snowflake, BigQuery, Databricks, Redshift).
- Modular SQL with Jinja & Version Control: Building reusable SQL models with DAG dependencies and macros.
- Data Quality & Schema Testing: Enforcing
unique,not_null, referential integrity, and custom singular tests. - Automated Data Documentation & Lineage: Generating interactive dependency lineage graphs directly from codebase schemas.
Quick Start
Core Concepts
Declarative SQL Modeling with ref() & source()
Building transformation models with dependency resolution:
Schema Testing & Documentation in YAML
Enforcing column constraints and documentation:
Jinja Macros for DRY Reusable Logic
Creating custom reusable SQL utilities:
Common Patterns
Incremental Models with Timestamp Filtering
Problem: Rebuilding multi-billion-row tables from scratch on every dbt run is slow and expensive.
Solution: Use incremental materialization with is_incremental():
Best Practices
Do:
- Organize projects into standard layers:
staging(1-to-1 with raw sources),intermediate, andmarts. - Always use
{{ ref('model_name') }}and{{ source('source_name', 'table_name') }}to maintain DAG lineage. - Implement incremental models (
materialized='incremental') for multi-million row fact tables. - Run
dbt testin CI pipelines on every pull request to catch data schema regressions.
Don't:
- Write raw database table references (e.g.
analytics.raw.users); always usesource()orref(). - Perform business logic inside staging models; staging should only clean, cast, and rename columns.
- Hardcode environments (dev vs prod); use
target.nameconditionals in profiles.yml.
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
Compilation Error: Model '...' depends on a node named '...' which was not found | Typo in {{ ref('model_name') }} or model file missing. | Check model filename matches referenced string exactly. | |
dbt test failed: unique constraint violated | Duplicate keys generated by non-unique join condition. | Inspect duplicate keys in compiled SQL in target/compiled/. | |
Schema change error during incremental run | Upstream model added/removed columns breaking existing incremental table. | Run with --full-refresh once to rebuild schema: dbt run --full-refresh. |
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ai-ml/dbt/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 2
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (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/g1joshi/agent-skills/dbt)