dbt-ci-cd

Automate dbt CI/CD with validation, linting, and selective builds.

1|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/nrakow/ae-skills-dev --skill dbt-ci-cd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dbt-ci-cd
Source: https://github.com/nrakow/ae-skills-dev/tree/main/skills/dbt-ci-cd
Command: npx skills add https://github.com/nrakow/ae-skills-dev --skill dbt-ci-cd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

dbt project deployments can be error-prone and slow without a repeatable CI/CD workflow. This skill automates validation, linting, and deployment of dbt changes across PRs and production, reducing risk and manual effort.

Core Features & Use Cases

  • CI checks for PRs: SQLFluff lint, dbt parse, and targeted dbt build on modified models.
  • Continuous deployment: safe promotion to prod with defer and state comparison against prod artifacts.
  • Cross-platform support: works with GitHub Actions, GitLab CI, and dbt Cloud Slim CI.
  • Guidance and templates: reusable workflows and configs for quick adoption in analytics projects.

Quick Start

Clone this skill into your repository and enable the provided workflow templates to start validating and deploying dbt changes.

Frequently Asked Questions about dbt-ci-cd

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

FAQPage Schema
How do I set up dbt CI checks for modified models in pull requests?

dbt CI checks for pull requests validate changes by running SQLFluff linting, dbt parsing, and targeted dbt builds on modified models. This automated validation prevents errors before merging changes into production.

What is state comparison in dbt continuous deployment?

State comparison in dbt continuous deployment uses prod manifests as a baseline to defer and selectively build only changed models. This ensures safe promotions to production by comparing PR artifacts against current prod state.

Does this dbt CI/CD automation work with GitLab CI and dbt Cloud?

Yes, this dbt CI/CD automation supports GitHub Actions, GitLab CI, and dbt Cloud Slim CI. It provides cross-platform reusable workflow templates and configurations for quick adoption across different CI platforms.

Do I need a prod manifest baseline to run selective dbt builds?

Yes, a prod manifest baseline is required to run selective dbt builds. Environment credentials and context from data-stack-context and dbt-project-setup are also needed to tailor the workflows for safe state comparison.

What's the best way to automate dbt deployments and reduce manual promotion errors?

Automating dbt deployments with CI/CD workflows reduces manual errors by validating changes, linting SQL with SQLFluff, and performing selective builds. This creates a repeatable, safe promotion process across PRs and production.

How do I lint SQL in dbt before deploying to production?

SQL linting in dbt is automated using SQLFluff within CI checks on pull requests. The workflow parses dbt models and runs lint validation to catch SQL issues before changes are promoted to production.