using-dbt-for-analytics-engineering

Build and modify dbt models with ref() and source() macros.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/shapris/svarus-darbas --skill using-dbt-for-analytics-engineering-shapris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-dbt-for-analytics-engineering
Source: https://github.com/shapris/svarus-darbas/tree/main/.kilocode/skills/dbt/skills/using-dbt-for-analytics-engineering
Command: npx skills add https://github.com/shapris/svarus-darbas --skill using-dbt-for-analytics-engineering-shapris

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps analytics engineers and data teams build, modify, and validate dbt models using software engineering discipline so transformations are correct, well-tested, and safe for downstream consumers, reducing costly data incidents and rework.

Core Features & Use Cases

  • Model construction & refactoring: Plan model outputs, mock SQL, and implement transformations using {{ ref }} and {{ source }} to avoid hardcoded table names.
  • Data discovery & validation: Use dbt show to inspect source and model rows, profile columns, and prevent modeling errors before committing changes.
  • Testing and debugging: Add high-value dbt tests, review run_results.json and dbt logs, and follow structured debugging steps for parsing, compilation, and data issues.
  • Impact analysis & cost controls: Assess downstream dependencies, use selective builds (--select, state:modified+), and apply limits/deferral to minimize warehouse costs.
  • Use case: Onboard to an unfamiliar project, discover relevant source tables, plan and implement a staging model with tests, and validate results with dbt show and targeted dbt build.

Quick Start

Audit and implement a new dbt model by planning the desired output, discovering source columns with dbt show, writing SQL using ref() and source(), adding focused tests, and validating results with dbt show and a targeted dbt build.

Frequently Asked Questions about using-dbt-for-analytics-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and validate dbt models using software engineering practices?

Assess downstream dependencies and use selective dbt builds with --select and state:modified+ flags to target only modified models, applying limits and deferral to minimize warehouse costs.

How do I discover source schemas before writing a dbt model?

Discover source schemas by running dbt show to inspect source rows and profile columns directly, preventing modeling errors by validating data shapes before committing transformations.

What is the best way to debug dbt parsing and compilation errors?

Add high-value dbt tests to models to catch data quality issues early, validating transformations through run_results.json artifacts to ensure reliable downstream consumption.

Do I need the dbt CLI to use ref() and source() macros for data transformations?

Yes, the dbt CLI is required to execute transformations using ref() and source() macros, run tests, preview with dbt show, and validate outputs via compiled artifacts and run_results.json.